ChangeLog 700 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603
  1. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Use vector instead of deque for ChunkChecksum.
  3. * src/ChunkChecksum.h
  4. * src/MetalinkParserController.cc
  5. * src/MetalinkParserController.h
  6. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  8. algorithm in Metalink properly
  9. * src/MetalinkParserController.cc
  10. * src/MetalinkParserController.h
  11. * src/messageDigest.cc
  12. * src/messageDigest.h
  13. * test/MetalinkProcessorTest.cc
  14. * test/metalink4.xml
  15. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Replaced null or control characters in file path with '_'. For
  17. MinGW32 build, additional characters which is not allowed in
  18. Windows kernel are also replaced. util::detectDirTraversal() now
  19. returns true if given string contains null or control characters.
  20. * src/DownloadContext.cc
  21. * src/DownloadContext.h
  22. * src/Metalink2RequestGroup.cc
  23. * src/MetalinkParserController.cc
  24. * src/bittorrent_helper.cc
  25. * src/util.cc
  26. * src/util.h
  27. * test/UtilTest.cc
  28. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Discard metalink:file if its name attribute is empty string.
  30. Removed FileEntry instantiation in
  31. MetalinkParserController::setFileLengthOfEntry()
  32. * src/MetalinkParserController.cc
  33. * src/MetalinkParserStateV3Impl.cc
  34. * src/MetalinkParserStateV4Impl.cc
  35. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Discard torrent file if path data in it contains directory
  37. traversal directives. Discard metalink:file element in Metalink3
  38. format if its name attribute contains directory traversal
  39. directives. Ignore name attribute of metalink:signature element
  40. in Metalink3 format if it contains directory traversal directives.
  41. * src/MetalinkParserStateV3Impl.cc
  42. * src/bittorrent_helper.cc
  43. * src/message.h
  44. * test/BittorrentHelperTest.cc
  45. * test/Makefile.am
  46. * test/MetalinkProcessorTest.cc
  47. * test/metalink3-dirtraversal.xml
  48. * test/test.xml
  49. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Removed useless comment
  51. * src/MetalinkParserStateV4Impl.cc
  52. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Supported name attribute of metalink::metaurl element and
  54. multi-file torrent with Metalink4. Files with same metaurl are
  55. grouped and downloaded in one RequestGroup.
  56. * src/BtDependency.cc
  57. * src/FileEntry.h
  58. * src/Metalink2RequestGroup.cc
  59. * src/Metalink2RequestGroup.h
  60. * src/MetalinkEntry.cc
  61. * src/MetalinkEntry.h
  62. * src/MetalinkHelper.cc
  63. * src/MetalinkHelper.h
  64. * src/MetalinkMetaurl.cc
  65. * src/MetalinkMetaurl.h
  66. * src/MetalinkParserController.cc
  67. * src/RequestGroup.cc
  68. * src/RequestGroup.h
  69. * src/bittorrent_helper.cc
  70. * test/BittorrentHelperTest.cc
  71. * test/BtDependencyTest.cc
  72. * test/MetalinkHelperTest.cc
  73. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  75. * src/MetalinkMetaurl.h
  76. * src/MetalinkParserController.cc
  77. * src/MetalinkParserController.h
  78. * src/MetalinkParserStateMachine.cc
  79. * src/MetalinkParserStateMachine.h
  80. * src/MetalinkParserStateV4Impl.cc
  81. * test/MetalinkProcessorTest.cc
  82. * test/metalink4-dirtraversal.xml
  83. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  85. element.
  86. * src/Makefile.am
  87. * src/Metalink2RequestGroup.cc
  88. * src/MetalinkEntry.cc
  89. * src/MetalinkEntry.h
  90. * src/MetalinkMetaurl.cc
  91. * src/MetalinkMetaurl.h
  92. * src/MetalinkParserController.cc
  93. * src/MetalinkParserController.h
  94. * src/MetalinkParserStateMachine.cc
  95. * src/MetalinkParserStateMachine.h
  96. * src/MetalinkParserStateV4Impl.cc
  97. * src/MetalinkParserStateV4Impl.h
  98. * test/MetalinkProcessorTest.cc
  99. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Added Metalink4 support. Currently, name attribute of
  101. metalink::metaurl is ignored and multi-file torrent cannot be used
  102. with Metalink4.
  103. * doc/aria2c.1.txt
  104. * src/DownloadHandlerConstants.cc
  105. * src/ExpatMetalinkProcessor.cc
  106. * src/Makefile.am
  107. * src/Metalink2RequestGroup.cc
  108. * src/MetalinkEntry.cc
  109. * src/MetalinkEntry.h
  110. * src/MetalinkParserController.cc
  111. * src/MetalinkParserController.h
  112. * src/MetalinkParserState.h
  113. * src/MetalinkParserStateImpl.cc
  114. * src/MetalinkParserStateImpl.h
  115. * src/MetalinkParserStateMachine.cc
  116. * src/MetalinkParserStateMachine.h
  117. * src/MetalinkParserStateV3Impl.cc
  118. * src/MetalinkParserStateV3Impl.h
  119. * src/MetalinkParserStateV4Impl.cc
  120. * src/MetalinkParserStateV4Impl.h
  121. * src/MetalinkResource.cc
  122. * src/MetalinkResource.h
  123. * src/Metalinker.cc
  124. * src/RequestGroup.cc
  125. * src/RequestGroup.h
  126. * src/XML2SAXMetalinkProcessor.cc
  127. * src/messageDigest.cc
  128. * src/util.cc
  129. * src/util.h
  130. * test/Makefile.am
  131. * test/MetalinkEntryTest.cc
  132. * test/MetalinkParserControllerTest.cc
  133. * test/MetalinkProcessorTest.cc
  134. * test/MetalinkerTest.cc
  135. * test/UtilTest.cc
  136. * test/metalink4-attrs.xml
  137. * test/metalink4-dirtraversal.xml
  138. * test/metalink4.xml
  139. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Added aiFlags argument to getInterfaceAddress(). Use
  141. AI_NUMERICHOST to find interface specified using
  142. --bt-lpd-interface option to avoid time-consuming address lookup.
  143. * src/BtSetup.cc
  144. * src/SocketCore.cc
  145. * src/SocketCore.h
  146. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  148. is bad in LpdMessageReceiver.
  149. * src/LpdMessage.h
  150. * src/LpdMessageReceiver.cc
  151. * src/LpdMessageReceiver.h
  152. * src/LpdReceiveMessageCommand.cc
  153. * test/LpdMessageReceiverTest.cc
  154. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Added --bt-lpd-interface option to specify the interface to use
  156. for Local Peer Discovery. LpdMessageDispatcher object now has its
  157. own socket. LpdMessageReceiver's socket is binded to multicast
  158. address to only receive multicast packets.
  159. * src/BtSetup.cc
  160. * src/LpdMessageDispatcher.cc
  161. * src/LpdMessageDispatcher.h
  162. * src/LpdMessageReceiver.cc
  163. * src/LpdMessageReceiver.h
  164. * src/LpdReceiveMessageCommand.cc
  165. * src/LpdReceiveMessageCommand.h
  166. * src/OptionHandlerFactory.cc
  167. * src/SocketCore.cc
  168. * src/SocketCore.h
  169. * src/prefs.cc
  170. * src/prefs.h
  171. * src/usage_text.h
  172. * test/LpdMessageDispatcherTest.cc
  173. * test/LpdMessageReceiverTest.cc
  174. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Put the portion of code to get interface addresses in
  176. SocketCore::bindAddress() into newly added getInterfaceAddress().
  177. * src/SocketCore.cc
  178. * src/SocketCore.h
  179. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Rewritten util::parseInt() and parseUInt()
  181. * src/util.cc
  182. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Fixed compile error with mingw32 cross compiler. Defined
  184. a2_sockopt_t as void* for the target systems other than mingw32.
  185. * src/SocketCore.cc
  186. * src/a2netcompat.h
  187. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Removed 'always true' condition
  189. * src/util.cc
  190. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Documented --bt-enable-lpd option in man page.
  192. * doc/aria2c.1.txt
  193. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Added Local Peer Discovery. It is disabled by default. Use
  195. --bt-enable-lpd to enable the function.
  196. * src/BtConstants.h
  197. * src/BtSetup.cc
  198. * src/LpdDispatchMessageCommand.cc
  199. * src/LpdDispatchMessageCommand.h
  200. * src/LpdMessage.h
  201. * src/LpdMessageDispatcher.cc
  202. * src/LpdMessageDispatcher.h
  203. * src/LpdMessageReceiver.cc
  204. * src/LpdMessageReceiver.h
  205. * src/LpdReceiveMessageCommand.cc
  206. * src/LpdReceiveMessageCommand.h
  207. * src/Makefile.am
  208. * src/OptionHandlerFactory.cc
  209. * src/Peer.cc
  210. * src/Peer.h
  211. * src/PeerInteractionCommand.cc
  212. * src/SocketCore.cc
  213. * src/SocketCore.h
  214. * src/prefs.cc
  215. * src/prefs.h
  216. * src/usage_text.h
  217. * src/util.cc
  218. * src/util.h
  219. * test/LpdMessageDispatcherTest.cc
  220. * test/LpdMessageReceiverTest.cc
  221. * test/Makefile.am
  222. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. User-defined custom request headers specified by --header option
  224. now override builtin headers if they have same name.
  225. * src/HttpRequest.cc
  226. * src/HttpRequest.h
  227. * test/HttpRequestTest.cc
  228. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Rewirtten util::isNumber()
  230. * src/util.cc
  231. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  233. because without it localized error messages are not printed
  234. correctly.
  235. * src/Platform.cc
  236. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Added unit tests for util::getContentDispositionFilename() from
  238. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  239. tests are passed.
  240. * src/util.cc
  241. * test/UtilTest.cc
  242. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  244. util.cc
  245. * src/Platform.cc
  246. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Support RFC2231 "Parameter Value Character Set and Language
  248. Information" in Content-Disposition header.
  249. * src/HttpResponse.cc
  250. * src/util.cc
  251. * src/util.h
  252. * test/UtilTest.cc
  253. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Print CXXFLAGS
  255. * configure.ac
  256. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Small optimization for A2_WOULDBLOCK(e)
  258. * src/SocketCore.cc
  259. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Removed test file
  261. * test/CookieStorageTest.cc
  262. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Check both EAGAIN and EWOULDBLOCK
  264. * src/SocketCore.cc
  265. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Removed ret == 0 checking for SSL_read(), SSL_write() and
  267. SSL_peek() because the checks are done in the caller. In
  268. SocketBuffer::send(), throw exception if nothing could be written
  269. and socket error was not EWOULDBLOCK
  270. * src/SocketBuffer.cc
  271. * src/SocketCore.cc
  272. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Fixed error code handling so that it can handle Winsock2 error
  274. code.
  275. * src/SocketCore.cc
  276. * src/SocketCore.h
  277. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Bump up version number to 1.9.0a
  279. * configure.ac
  280. * doc/aria2c.1.txt
  281. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Fixed the bug that aria2 doesn't handle return value if error
  283. occurred before download begins.
  284. * src/MultiUrlRequestInfo.cc
  285. * src/main.cc
  286. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Removed SegmentManFactory class.
  288. * src/AbstractSegmentManFactory.h
  289. * src/DefaultSegmentManFactory.cc
  290. * src/DefaultSegmentManFactory.h
  291. * src/Makefile.am
  292. * src/RequestGroup.cc
  293. * src/RequestGroup.h
  294. * src/SegmentManFactory.h
  295. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Destroyed digest context after getting calculated hash.
  297. * src/Piece.cc
  298. * src/Piece.h
  299. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Removed BitfieldManFactory class.
  301. * src/BitfieldManFactory.cc
  302. * src/BitfieldManFactory.h
  303. * src/DefaultPieceStorage.cc
  304. * src/Makefile.am
  305. * src/PeerSessionResource.cc
  306. * src/Piece.cc
  307. * src/main.cc
  308. * test/DefaultPieceStorageTest.cc
  309. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Removed unused methods from BitfieldMan class. Moved
  311. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  312. class.
  313. * src/BitfieldMan.cc
  314. * src/BitfieldMan.h
  315. * src/BitfieldManFactory.cc
  316. * src/BitfieldManFactory.h
  317. * src/bitfield.h
  318. * src/main.cc
  319. * test/BitfieldManTest.cc
  320. * test/DefaultPieceStorageTest.cc
  321. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Moved getFirstNMissingIndex to bitfield.h and made it return the
  323. number of appended indexes.
  324. * src/BitfieldMan.cc
  325. * src/BitfieldMan.h
  326. * src/Piece.cc
  327. * src/Piece.h
  328. * src/bitfield.h
  329. * test/BitfieldManTest.cc
  330. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Added more tests.
  332. * test/BitfieldManTest.cc
  333. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  335. unused block indexes at once instead of calling
  336. getFirstMissingUnusedIndex() multiple times. Made use of it in
  337. Piece class and DefaultBtRequestFactory class via Piece class.
  338. * src/BitfieldMan.cc
  339. * src/BitfieldMan.h
  340. * src/DefaultBtRequestFactory.cc
  341. * src/Piece.cc
  342. * src/Piece.h
  343. * test/BitfieldManTest.cc
  344. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Use std::make_pair(...)
  346. * src/DHTMessageTracker.cc
  347. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Use std::make_pair(...)
  349. * src/bittorrent_helper.cc
  350. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. urlencode(removeFragment(...)) in parseUrl(...)
  352. * src/Request.cc
  353. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  355. * src/AbstractCommand.cc
  356. * src/AdaptiveURISelector.cc
  357. * src/BtPieceMessage.cc
  358. * src/BtPortMessage.cc
  359. * src/CreateRequestCommand.cc
  360. * src/DHTAbstractNodeLookupTask.cc
  361. * src/DHTBucket.cc
  362. * src/DHTGetPeersCommand.cc
  363. * src/DHTMessageDispatcherImpl.cc
  364. * src/DHTMessageFactoryImpl.cc
  365. * src/DHTMessageTracker.cc
  366. * src/DHTPeerAnnounceStorage.cc
  367. * src/DHTRoutingTable.cc
  368. * src/DHTSetup.cc
  369. * src/DefaultBtAnnounce.cc
  370. * src/DefaultBtInteractive.cc
  371. * src/DefaultBtMessageDispatcher.cc
  372. * src/DefaultBtMessageReceiver.cc
  373. * src/DefaultBtProgressInfoFile.cc
  374. * src/DefaultBtRequestFactory.cc
  375. * src/DefaultPeerStorage.cc
  376. * src/DefaultPieceStorage.cc
  377. * src/DownloadCommand.cc
  378. * src/DownloadEngine.cc
  379. * src/EpollEventPoll.cc
  380. * src/FileAllocationCommand.cc
  381. * src/FileEntry.cc
  382. * src/FtpNegotiationCommand.cc
  383. * src/HandshakeExtensionMessage.cc
  384. * src/HttpListenCommand.cc
  385. * src/HttpServer.cc
  386. * src/HttpSkipResponseCommand.cc
  387. * src/IteratableChunkChecksumValidator.cc
  388. * src/Logger.h
  389. * src/MSEHandshake.cc
  390. * src/MetalinkPostDownloadHandler.cc
  391. * src/MultiDiskAdaptor.cc
  392. * src/PeerAbstractCommand.cc
  393. * src/PeerConnection.cc
  394. * src/PeerListenCommand.cc
  395. * src/PeerReceiveHandshakeCommand.cc
  396. * src/RequestGroup.cc
  397. * src/RequestGroupMan.cc
  398. * src/SegmentMan.cc
  399. * src/SelectEventPoll.cc
  400. * src/ServerStat.cc
  401. * src/SimpleBtMessage.cc
  402. * src/SocketCore.cc
  403. * src/TrackerWatcherCommand.cc
  404. * src/UTMetadataDataExtensionMessage.cc
  405. * src/UTMetadataRequestFactory.cc
  406. * src/UTMetadataRequestTracker.cc
  407. * src/XmlRpcMethod.cc
  408. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. Changed log level from debug to info
  410. * src/BtDependency.cc
  411. * src/BtPostDownloadHandler.cc
  412. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Removed unused PeerSessionResource::_latency.
  414. * src/BtConstants.h
  415. * src/BtPieceMessage.cc
  416. * src/Peer.cc
  417. * src/Peer.h
  418. * src/PeerSessionResource.cc
  419. * src/PeerSessionResource.h
  420. * test/PeerSessionResourceTest.cc
  421. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Fixed the bug that --file-allocation=falloc doesn't work with
  423. single file download.
  424. * src/AbstractSingleDiskAdaptor.cc
  425. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Release 1.8.2
  427. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Added Portuguese translation. Updated Ukrainian and Spanish
  429. translation. Thanks to all translators.
  430. * po/LINGUAS
  431. * po/es.po
  432. * po/pt.po
  433. * po/uk.po
  434. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Remove fragment from redirected URI.
  436. * src/Request.cc
  437. * test/RequestTest.cc
  438. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Updated po templates.
  440. * po/aria2.pot
  441. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Drop legacy ifdef for ares support and code cleanup.
  443. * src/AsyncNameResolver.cc
  444. * src/AsyncNameResolver.h
  445. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Call ares_library_init and ares_library_cleanup if they are
  447. available. Some code cleanups.
  448. * src/Platform.cc
  449. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Call ares_process_fd() each time after epoll to handle timeout.
  451. * src/EpollEventPoll.cc
  452. * src/EpollEventPoll.h
  453. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Suppressed type-cast compiler warning
  455. * src/CookieStorage.cc
  456. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Fixed compile error on Mac OS X.
  458. * src/CookieStorage.h
  459. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Removed cookietest.txt from Makefile.am
  461. * test/Makefile.am
  462. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Updated version number in man page.
  464. * doc/aria2c.1.txt
  465. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Rewritten help message for --allow-overwrite option.
  467. * doc/aria2c.1.txt
  468. * src/usage_text.h
  469. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Added bittorrent key to the response of tellStatus XML-RPC method.
  471. The associated value of the key is a struct and contains data
  472. retrieved from .torrent file, such as name, announce-list,
  473. comment, etc.
  474. * doc/aria2c.1.txt
  475. * src/XmlRpcMethodImpl.cc
  476. * src/XmlRpcMethodImpl.h
  477. * test/XmlRpcMethodTest.cc
  478. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Removed parse(std::istream&) and parse(const std::string&) from
  480. CookieParser.
  481. * src/CookieParser.cc
  482. * src/CookieParser.h
  483. * test/CookieParserTest.cc
  484. * test/cookietest.txt: Removed
  485. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Fixed the bug that cookie for domain a.b.c is not sent to the host
  487. a.b.c if no other cookies are stored. Fixed the bug that
  488. Cookie::markOriginServerOnly() is not called when cookies are
  489. loaded from file/sqlite3 database.
  490. * src/Cookie.h
  491. * src/CookieStorage.cc
  492. * src/NsCookieParser.cc
  493. * src/Sqlite3MozCookieParser.cc
  494. * test/CookieStorageTest.cc
  495. * test/NsCookieParserTest.cc
  496. * test/Sqlite3MozCookieParserTest.cc
  497. * test/cookies.sqlite
  498. * test/nscookietest.txt
  499. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  501. both _pieceStorage and _segmentMan are initialized or they are
  502. not.
  503. * src/RequestGroup.cc
  504. * src/RequestGroup.h
  505. * test/BtDependencyTest.cc
  506. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Bump up version number to 1.8.2
  508. * configure.ac
  509. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Replaced "." with A2STR::DOT_C
  511. * src/AbstractCommand.cc
  512. * src/Cookie.cc
  513. * src/DownloadContext.cc
  514. * src/FtpConnection.cc
  515. * src/RequestGroup.cc
  516. * src/util.cc
  517. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Replaced isNumberAndDotsNotation() with isNumericHost().
  519. isNumericHost() can handle IPv6 address.
  520. * src/Cookie.cc
  521. * src/CookieStorage.cc
  522. * src/util.cc
  523. * src/util.h
  524. * test/CookieTest.cc
  525. * test/UtilTest.cc
  526. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Included A2STR.h
  528. * src/CookieStorage.cc
  529. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Rewritten Cookie storage.
  531. * src/Cookie.cc
  532. * src/Cookie.h
  533. * src/CookieParser.cc
  534. * src/CookieStorage.cc
  535. * src/CookieStorage.h
  536. * src/a2functional.h
  537. * test/CookieParserTest.cc
  538. * test/CookieStorageTest.cc
  539. * test/CookieTest.cc
  540. * test/HttpResponseTest.cc
  541. * test/TestUtil.h
  542. * test/a2functionalTest.cc
  543. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Handle redirected URI which is not properly percent encoded.
  545. * src/Request.cc
  546. * test/RequestTest.cc
  547. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  549. not found' in the N times(N is where --max-file-not-found=N, N>0)
  550. in a row without single '200 OK' response.
  551. * src/RequestGroup.cc.
  552. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  554. readout by 80 characters in mingw32 build. Catch exception in
  555. DHTMessageReceiver::receiveMessage().
  556. * src/AbstractDiskWriter.cc
  557. * src/ConsoleStatCalc.cc
  558. * src/DHTMessageReceiver.cc
  559. * src/File.cc
  560. * src/RequestGroupMan.cc
  561. * src/a2io.h
  562. * test/FileTest.cc
  563. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Fixed compile error with intel compiler
  565. * src/XmlRpcMethodImpl.cc
  566. * src/XmlRpcMethodImpl.h
  567. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Release 1.8.1
  569. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Updated Swedish, Russian and Italian translations. Thanks to all
  571. translators.
  572. * po/it.po
  573. * po/ru.po
  574. * po/sv.po
  575. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Fixed broken OptionParser::findByName().
  577. * src/OptionParser.cc
  578. * test/OptionParserTest.cc
  579. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Fixed test error without BitTorrent support.
  581. * test/XmlRpcMethodTest.cc
  582. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Fixed compile error without GNUTLS/OpenSSL.
  584. * src/util.cc
  585. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Changed compression level to Z_DEFAULT_COMPRESSION.
  587. * src/GZipEncoder.cc
  588. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Added missing command line options: --http-no-cache,
  590. --bt-save-metadata and --bt-metadata-only.
  591. * doc/xmlrpc/aria2rpc
  592. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  594. client accepts gzip content encoding.
  595. * src/A2STR.cc
  596. * src/A2STR.h
  597. * src/GZipEncoder.cc
  598. * src/GZipEncoder.h
  599. * src/HttpHeader.cc
  600. * src/HttpHeader.h
  601. * src/HttpServer.cc
  602. * src/HttpServer.h
  603. * src/HttpServerBodyCommand.cc
  604. * src/HttpServerCommand.cc
  605. * src/Makefile.am
  606. * src/XmlRpcResponse.cc
  607. * src/XmlRpcResponse.h
  608. * test/GZipEncoderTest.cc
  609. * test/Makefile.am
  610. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Added XML-RPC client sample code in Python.
  612. * doc/aria2c.1.txt
  613. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Updated po templates.
  615. * po/aria2.pot
  616. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Bump up version number to 1.8.1
  618. * configure.ac
  619. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Added version number to man page. Updated copyright year in man
  621. page.
  622. * doc/aria2c.1.txt
  623. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Rewritten toTagString
  625. * src/NameMatchOptionHandler.cc
  626. * test/OptionHandlerTest.cc
  627. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Added dir and files key to the response struct of aria2.tellStatus
  629. XML-RPC method. The value associated with files key is the list
  630. of files. Its element is the same struct used in aria2.getFiles
  631. XML-RPC method. Added uris key to the response struct of
  632. aria2.getFiles XML-RPC method. The value associated with uris key
  633. is the list of URIs. Its element is the same struct used in
  634. aria2.getUris XML-RPC method.
  635. * doc/aria2c.1.txt
  636. * src/XmlRpcMethodImpl.cc
  637. * test/XmlRpcMethodTest.cc
  638. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Added aria2.getSessionInfo XML-RPC method. This method returns a
  640. struct containing Session ID, which is generated each time when
  641. aria2 is invoked.
  642. * doc/aria2c.1.txt
  643. * doc/xmlrpc/aria2rpc
  644. * src/DownloadEngine.cc
  645. * src/DownloadEngine.h
  646. * src/XmlRpcMethodFactory.cc
  647. * src/XmlRpcMethodImpl.cc
  648. * src/XmlRpcMethodImpl.h
  649. * test/XmlRpcMethodTest.cc
  650. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Moved generateRandomKey() from bittorrent_helper to util.
  652. * src/DHTBucket.cc
  653. * src/DHTNode.cc
  654. * src/bittorrent_helper.cc
  655. * src/bittorrent_helper.h
  656. * src/util.cc
  657. * src/util.h
  658. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Updated doc about GID.
  660. * doc/aria2c.1.txt
  661. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  663. accepts a negative integer. 'offset' == -1 points last download
  664. in the waiting queue and 'offset' == -2 points the download before
  665. the last download, and so on. The downloads in the response are in
  666. reversed order.
  667. * doc/aria2c.1.txt
  668. * src/XmlRpcMethodImpl.cc
  669. * src/XmlRpcMethodImpl.h
  670. * test/XmlRpcMethodTest.cc
  671. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added --human-readable option. This option, when true is given,
  673. prints sizes and speed in human readable format(e.g., 1.2Ki,
  674. 3.4Mi) in the console readout. The default value is true and it
  675. looks exactly the same as aria2-1.8.0. So the 'new feature'
  676. appears when false is given. In this case, sizes and speed are
  677. printed without in bytes. No Ki, Mi units conversion is used.
  678. This may be useful for a program to parse the output of aria2.
  679. * doc/aria2c.1.txt
  680. * src/ConsoleStatCalc.cc
  681. * src/ConsoleStatCalc.h
  682. * src/OptionHandlerFactory.cc
  683. * src/main.cc
  684. * src/prefs.cc
  685. * src/prefs.h
  686. * src/usage_text.h
  687. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  689. option accepts empty string "". When "" is given, it erases
  690. previously defined proxy.
  691. * doc/aria2c.1.txt
  692. * src/OptionHandlerImpl.h
  693. * src/usage_text.h
  694. * test/OptionHandlerTest.cc
  695. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Code cleanup for proxy URI handling.
  697. * src/AbstractCommand.cc
  698. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Added --bt-metadata-only option. If true is given to this option,
  700. aria2 downloads metadata only. The file(s) described in metadata
  701. will not be downloaded. This option has effect only when
  702. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  703. * doc/aria2c.1.txt
  704. * src/OptionHandlerFactory.cc
  705. * src/UTMetadataPostDownloadHandler.cc
  706. * src/download_helper.cc
  707. * src/prefs.cc
  708. * src/prefs.h
  709. * src/usage_text.h
  710. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Fixed memory leak. Commands stored in std::deque<Command*> are not
  712. deleted when exception is thrown. Make sure that when passing
  713. std::deque<Command*> to function to store Commands, handle
  714. exception and delete these Commands.
  715. * src/AbstractCommand.cc
  716. * src/CheckIntegrityCommand.cc
  717. * src/FileAllocationCommand.cc
  718. * src/RequestGroup.cc
  719. * src/TrackerWatcherCommand.cc
  720. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  722. * src/A2STR.cc
  723. * src/A2STR.h
  724. * src/FtpNegotiationCommand.cc
  725. * src/HttpResponseCommand.cc
  726. * src/util.cc
  727. * src/util.h
  728. * test/UtilTest.cc
  729. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Treat --dir="" as --dir="."
  731. * src/FtpNegotiationCommand.cc
  732. * src/HttpResponseCommand.cc
  733. * src/Metalink2RequestGroup.cc
  734. * src/UTMetadataPostDownloadHandler.cc
  735. * src/bittorrent_helper.cc
  736. * src/download_helper.cc
  737. * src/util.cc
  738. * src/util.h
  739. * test/UtilTest.cc
  740. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Code clean up.
  742. * src/main.cc
  743. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Reset GID to 1 when they reach maximum value. Rewritten
  745. CUIDCounter::newID()
  746. * src/CUIDCounter.h
  747. * src/RequestGroup.cc
  748. * src/RequestGroup.h
  749. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Documented --http-no-cache option in man page.
  751. * doc/aria2c.1.txt
  752. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Added --http-no-cache option. When true is given, aria2 sends
  754. Cache-Control: no-cache and Pragma: no-cache header to avoid
  755. cached content. If false is given , these headers are not sent
  756. and you can add Cache-Control header with a directive you like
  757. using --header option.
  758. * src/HttpRequest.cc
  759. * src/HttpRequest.h
  760. * src/HttpRequestCommand.cc
  761. * src/OptionHandlerFactory.cc
  762. * src/download_helper.cc
  763. * src/prefs.cc
  764. * src/prefs.h
  765. * src/usage_text.h
  766. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Removed Logger from OptionParser. When OptionParser is used to
  768. parse options at bootstrap, LogFactory is not configured yet
  769. properly. When LogFactory is used in OptionParser, it initializes
  770. itself to return a logger which has no ability to write log to the
  771. disk.
  772. * src/OptionParser.cc
  773. * src/OptionParser.h
  774. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added following sentance to the help message of --out option:
  776. --out option is ignored when -Z is used.
  777. * doc/aria2c.1.txt
  778. * src/usage_text.h
  779. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Added --bt-save-metadata option to -i list options.
  781. * doc/aria2c.1.txt
  782. * src/download_helper.cc
  783. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  785. additional libraries.
  786. * src/MultiUrlRequestInfo.cc
  787. * src/NameResolver.cc
  788. * src/SelectEventPoll.cc
  789. * src/SelectEventPoll.h
  790. * src/SocketCore.cc
  791. * src/SocketCore.h
  792. * src/a2netcompat.h
  793. * src/daemon.cc
  794. * src/main.cc
  795. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed typo.
  797. * src/DHTMessageReceiver.cc
  798. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Fixed the bug that causes segmentation fault if unknown option is
  800. put in aria2.conf file. BUG#2928303
  801. * src/OptionParser.cc
  802. * src/OptionParser.h
  803. * src/option_processing.cc
  804. * test/OptionParserTest.cc
  805. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Ignore port message with port=0.
  807. * src/BtPortMessage.cc
  808. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Run autoupdate
  810. * configure.ac
  811. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Updated autoconf/automake auxiliary files.
  813. * INSTALL
  814. * config.guess
  815. * config.sub
  816. * depcomp
  817. * install-sh
  818. * m4/intldir.m4
  819. * missing
  820. * mkinstalldirs
  821. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Removed unused function.
  823. * src/SharedHandle.h
  824. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Find pooled socket using all cached addresses.
  826. * src/DNSCache.h
  827. * src/DownloadEngine.cc
  828. * src/DownloadEngine.h
  829. * src/InitiateConnectionCommand.cc
  830. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Updated copyright year.
  832. * src/version_usage.cc
  833. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Pool connection if _contentEncodingDecoder is used and server
  835. supports persistent connection.
  836. * src/HttpDownloadCommand.cc
  837. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Updated doc.
  839. * src/DownloadCommand.cc
  840. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Untabify. Fixed one line in copyright which is longer than 80
  842. columns.
  843. * src
  844. * test
  845. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Release 1.8.0
  847. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Updated po templates.
  849. * po/aria2.pot
  850. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Documented --bt-save-metadata option in man page.
  852. * doc/aria2c.1.txt
  853. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Fixed usage of --bt-save-metadata option.
  855. * src/usage_text.h
  856. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Updated po templates.
  858. * po/aria2.pot
  859. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  861. causes name resolution error when none of network interface has
  862. IPv4 address.
  863. * src/main.cc
  864. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Bump up version number to 1.8.0.
  866. * configure.ac
  867. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Use info hash as a filename when saving BitTorrent metadata.
  869. * src/UTMetadataPostDownloadHandler.cc
  870. * test/UTMetadataPostDownloadHandlerTest.cc
  871. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Documented system.multicall XML-RPC method in man page.
  873. * doc/aria2c.1.txt
  874. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Added signal handler for SIGHUP to save .aria2 file when terminal
  876. is closed. The handler is the same one for SIGINT and SIGTERM.
  877. * src/MultiUrlRequestInfo.cc
  878. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Defined method name in XmlRpcMethod subclasses.
  880. * src/XmlRpcMethodFactory.cc
  881. * src/XmlRpcMethodImpl.cc
  882. * src/XmlRpcMethodImpl.h
  883. * test/XmlRpcMethodTest.cc
  884. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Added system.multicall XML-RPC method.
  886. * src/XmlRpcMethod.cc
  887. * src/XmlRpcMethod.h
  888. * src/XmlRpcMethodFactory.cc
  889. * src/XmlRpcMethodImpl.cc
  890. * src/XmlRpcMethodImpl.h
  891. * test/XmlRpcMethodTest.cc
  892. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Check structure depth when decoding.
  894. * src/bencode.cc
  895. * src/bencode.h
  896. * test/BencodeTest.cc
  897. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Documented tellStopped XML-RPC method in man page.
  899. * doc/aria2c.1.txt
  900. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Added tellStopped XML-RPC method to aria2rpc.
  902. * doc/xmlrpc/aria2rpc
  903. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Added tellStopped XML-RPC method. This method returns stopped
  905. download in the specified range. It takes same parameters with
  906. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  907. * src/XmlRpcMethodFactory.cc
  908. * src/XmlRpcMethodImpl.cc
  909. * src/XmlRpcMethodImpl.h
  910. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  912. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  913. when conducting unit tests because they fail if networking
  914. interface is not configured with IPv4 address.
  915. * src/NameResolver.cc
  916. * src/SocketCore.cc
  917. * src/SocketCore.h
  918. * src/a2netcompat.h
  919. * test/AllTest.cc
  920. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Fixed unit test error
  922. * test/UTMetadataPostDownloadHandlerTest.cc
  923. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Defined static string constants for efficiency.
  925. * src/XmlRpcMethodImpl.cc
  926. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Added --bt-save-metadata option. When true is given, it saves
  928. metadata as .torrent file. This option has effect only when
  929. BitTorrent Magnet URI is used. The filename is name in metadata
  930. with suffix .torrent. The directory to be saved is the same
  931. directory where download file is saved. If the same file already
  932. exists, metdata is not saved.
  933. * src/OptionHandlerFactory.cc
  934. * src/UTMetadataPostDownloadHandler.cc
  935. * src/UTMetadataPostDownloadHandler.h
  936. * src/message.h
  937. * src/prefs.cc
  938. * src/prefs.h
  939. * src/usage_text.h
  940. * test/UTMetadataDataExtensionMessageTest.cc
  941. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Added util::saveAs() function. Use it in Signature::save().
  943. * src/Signature.cc
  944. * src/util.cc
  945. * src/util.h
  946. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Upcase info hash in Magnet URI.
  948. * doc/aria2c.1.txt
  949. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Refactored RequestGroupMan::changeReservedGroupPosition()
  951. * src/RequestGroupMan.cc
  952. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Updated the description for aria2.addTorrent XML-RPC method.
  954. * doc/aria2c.1.txt
  955. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Added changePosition to aria2rpc.
  957. * doc/xmlrpc/aria2rpc
  958. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Documented changePosition XML-RPC method in man page.
  960. * doc/aria2c.1.txt
  961. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  963. pos and how. This method changes the position of download denoted
  964. by gid. If how is POS_SET, it moves the download to a position
  965. relative to the beginning of the queue. If how is POS_CUR, it
  966. moves the download to a position relative to the current
  967. position. If how is POS_END, it moves the download to a position
  968. relative to the end of the queue. If the destination position is
  969. less than 0 or beyond the end of the queue, it moves the download
  970. to the beginning or the end of the queue respectively. Returns
  971. the destination position.
  972. * src/RequestGroupMan.cc
  973. * src/RequestGroupMan.h
  974. * src/XmlRpcMethodFactory.cc
  975. * src/XmlRpcMethodImpl.cc
  976. * src/XmlRpcMethodImpl.h
  977. * test/RequestGroupManTest.cc
  978. * test/XmlRpcMethodTest.cc
  979. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Added getOption and getGlobalOption to aria2rpc.
  981. * doc/xmlrpc/aria2rpc
  982. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Documented getOption and getGlobalOption XML-RPC method in man
  984. page
  985. * doc/aria2c.1.txt
  986. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Added getOption and getGlobalOption XML-RPC method. getOption
  988. takes GID as a parameter and returns its options as struct.
  989. getGlobalOption takes no parameter and returns global
  990. options. Because global option is used as a template for the
  991. option of newly added downloads, it includes options returned by
  992. getOption.
  993. * src/Option.h
  994. * src/XmlRpcMethodFactory.cc
  995. * src/XmlRpcMethodImpl.cc
  996. * src/XmlRpcMethodImpl.h
  997. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Sort _optionHandlers in OptionParser by name in ascending order.
  999. Use vector instead of deque for efficiency.
  1000. * src/OptionHandler.h
  1001. * src/OptionHandlerFactory.h
  1002. * src/OptionParser.cc
  1003. * src/OptionParser.h
  1004. * src/version_usage.cc
  1005. * test/OptionParserTest.cc
  1006. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Code cleanup
  1008. * src/XmlRpcMethod.cc
  1009. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Documented about followedBy and belongsTo in man page.
  1011. * doc/aria2c.1.txt
  1012. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added following 2 keys, followedBy and belongsTo, to the response
  1014. of tellStatus.
  1015. followedBy: List of GIDs which are generated by the consequence of
  1016. this download. For example, when aria2 downloaded Metalink file,
  1017. it generates downloads described in it(see *--follow-metalink*
  1018. option). This value is useful to track these auto generated
  1019. downloads. If there is no such downloads, this key will not be
  1020. included in the response.
  1021. belongsTo: GID of a parent download. Some downloads are a part of
  1022. another download. For example, if a file in Metalink has
  1023. BitTorrent resource, the download of .torrent is a part of that
  1024. file. If this download has no parent, this key will not be
  1025. included in the response.
  1026. * src/BtPostDownloadHandler.cc
  1027. * src/DownloadResult.h
  1028. * src/Metalink2RequestGroup.cc
  1029. * src/MetalinkPostDownloadHandler.cc
  1030. * src/RequestGroup.cc
  1031. * src/RequestGroup.h
  1032. * src/UTMetadataPostDownloadHandler.cc
  1033. * src/XmlRpcMethodImpl.cc
  1034. * src/XmlRpcMethodImpl.h
  1035. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Assigned BObject in BDE() to avoid segmentation fault when calling
  1037. methods of BDE::none().
  1038. * src/BDE.cc
  1039. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Show info hash in Magnet URI in upper case letters in -S output.
  1041. * src/bittorrent_helper.cc
  1042. * test/BittorrentHelperTest.cc
  1043. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Removed old useless comment
  1045. * src/MultiUrlRequestInfo.cc
  1046. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1048. not properly used in configure script and failed to detect gnutls.
  1049. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1050. and the initialization of pkg-config is done in first occurrence
  1051. of PKG_CHECK_MODULES which is not executed because it is inside of
  1052. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1053. * configure.ac
  1054. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Release 1.7.2
  1056. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1058. true even if all downloads haven't finished, especially when
  1059. PostDownloadHandler is involved. Changed the condition so that it
  1060. only returns true if both _requestGroups and _reservedGroups are
  1061. empty.
  1062. * src/RequestGroupMan.cc
  1063. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Log listening port for BitTorrent/DHT in notice level.
  1065. * src/DHTConnectionImpl.cc
  1066. * src/PeerListenCommand.cc
  1067. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Updated po templates.
  1069. * po/aria2.pot
  1070. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Bump up version number to 1.7.2
  1072. * configure.ac
  1073. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Changed default value of --enable-dht from 'false' to 'true'.
  1075. * doc/aria2c.1.txt
  1076. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Enabled DHT by default because of Magnet URI support. To disable
  1078. DHT, use --enable-dht=false
  1079. * src/OptionHandlerFactory.cc
  1080. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Print Magnet URI in -S output.
  1082. * src/AnnounceList.cc
  1083. * src/bittorrent_helper.cc
  1084. * src/bittorrent_helper.h
  1085. * test/BittorrentHelperTest.cc
  1086. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Added --bt-prioritize-piece option to aria2rpc.
  1088. * doc/xmlrpc/aria2rpc
  1089. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Refer Magnet URI in --help. Made some cosmetic changes.
  1091. * src/version_usage.cc
  1092. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Updated -T and -M option.
  1094. * doc/aria2c.1.txt
  1095. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Fixed typo
  1097. * doc/aria2c.1.txt
  1098. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Fixed the bug that line separator is missing in horizontal bar.
  1100. * doc/xmlrpc/aria2mon
  1101. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Updated usage text for --metalink-file option.
  1103. * src/usage_text.h
  1104. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. If '-' is given as an argument to --metalink-file option, aria2
  1106. reads Metalink file from stdin.
  1107. * src/OptionHandlerFactory.cc
  1108. * src/OptionHandlerImpl.h
  1109. * src/a2io.h
  1110. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed the bug that aria2 listens wrong port if --interface option
  1112. is used.
  1113. * src/SocketCore.cc
  1114. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Fixed the bug that query parameter in magnet URI is not decoded.
  1116. * src/magnet.cc
  1117. * test/MagnetTest.cc
  1118. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Specified defaultSize as an argument for easy testing.
  1120. * src/util.cc
  1121. * src/util.h
  1122. * test/UtilTest.cc
  1123. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Release 1.7.1
  1125. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Bump up version number to 1.7.1
  1127. * configure.ac
  1128. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Fixed the bug --bt-prioritize-piece=tail is not working.
  1130. * src/util.cc
  1131. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Release 1.7.0
  1133. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Updated po templates.
  1135. * po/aria2.pot
  1136. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Updated help message for --bt-prioritize-piece. Some cosmetic
  1138. changes.
  1139. * doc/aria2c.1.txt
  1140. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1142. * src/usage_text.h
  1143. * src/util.cc
  1144. * test/UtilTest.cc
  1145. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Updated Russian, Ukrainian, German and French translations.
  1147. Thanks to all translators involved.
  1148. * po/de.po
  1149. * po/fr.po
  1150. * po/ru.po
  1151. * po/uk.po
  1152. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Mentioned about pkg-config
  1154. * README
  1155. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Fixed typo. Referred --index-out option in BitTorrent notes.
  1157. * README
  1158. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1160. bind, try all addresses until success
  1161. * src/SocketCore.cc
  1162. * src/SocketCore.h
  1163. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Updated po templates.
  1165. * po/aria2.pot
  1166. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Bump up version number to 1.7.0
  1168. * configure.ac
  1169. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1171. * src/DefaultPieceStorage.cc
  1172. * src/DefaultPieceStorage.h
  1173. * src/PieceStorage.h
  1174. * src/UnknownLengthPieceStorage.cc
  1175. * src/UnknownLengthPieceStorage.h
  1176. * test/MockPieceStorage.h
  1177. * test/ProtocolDetectorTest.cc
  1178. * test/XmlRpcMethodTest.cc
  1179. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Documented in man page that if getifaddrs() is missing,
  1181. --interface option doesn't accept interface name.
  1182. * doc/aria2c.1.txt
  1183. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1185. * src/DefaultBtAnnounce.cc
  1186. * src/DefaultBtAnnounce.h
  1187. * test/DefaultBtAnnounceTest.cc
  1188. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Fixed the bug that connection is always dropped if handshake
  1190. message in extension protocol don't have metadata_size.
  1191. src/HandshakeExtensionMessage.cc
  1192. * src/HandshakeExtensionMessage.cc
  1193. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1195. text saying DHT is recommended when Magnet URI is provided.
  1196. * doc/aria2c.1.txt
  1197. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1199. URI is supplied. Notify user that they should consider enabling
  1200. DHT if they use Magnet URI.
  1201. * src/RequestGroup.cc
  1202. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Added --disable-ipv6 option to disable IPv6.
  1204. * doc/aria2c.1.txt
  1205. * src/InitiateConnectionCommand.cc
  1206. * src/NameResolver.cc
  1207. * src/NameResolver.h
  1208. * src/OptionHandlerFactory.cc
  1209. * src/main.cc
  1210. * src/prefs.cc
  1211. * src/prefs.h
  1212. * src/usage_text.h
  1213. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Updated usage text for --bt-prioritize-piece option.
  1215. * doc/aria2c.1.txt
  1216. * src/usage_text.h
  1217. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1219. given and PACKAGE is missing in the system or FEATURE cannot be
  1220. enabled, print error message and stop the script.
  1221. * configure.ac
  1222. * m4/aria2_arg.m4
  1223. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Halt metadata download immediately when metadata download is done.
  1225. Don't wait unresponsive tracker.
  1226. * src/ByteArrayDiskWriter.h
  1227. * src/DefaultBtInteractive.cc
  1228. * src/DefaultExtensionMessageFactory.cc
  1229. * src/DefaultExtensionMessageFactory.h
  1230. * src/PeerInteractionCommand.cc
  1231. * src/UTMetadataDataExtensionMessage.cc
  1232. * src/UTMetadataDataExtensionMessage.h
  1233. * src/UTMetadataRequestExtensionMessage.cc
  1234. * test/UTMetadataDataExtensionMessageTest.cc
  1235. * test/UTMetadataRequestExtensionMessageTest.cc
  1236. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Documented --interface option in man page.
  1238. * doc/aria2c.1.txt
  1239. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Try resolved address in the order received from the resolver.
  1241. * src/DNSCache.h
  1242. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added debug logs.
  1244. * src/SocketCore.cc
  1245. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Fixed type of tail to uint64_t
  1247. * src/util.cc
  1248. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added --interface option. This feature binds sockets to given
  1250. interface. You can specify interface name, IP address and
  1251. hostname.
  1252. * configure.ac
  1253. * src/OptionHandlerFactory.cc
  1254. * src/SocketCore.cc
  1255. * src/SocketCore.h
  1256. * src/main.cc
  1257. * src/message.h
  1258. * src/prefs.cc
  1259. * src/prefs.h
  1260. * src/usage_text.h
  1261. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Updated man page for bt-prioritize-piece option in -i list.
  1263. * doc/aria2c.1.txt
  1264. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Added bt-prioritize-piece option to -i list.
  1266. * src/download_helper.cc
  1267. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Removed --http-auth-scheme option from man page.
  1269. * doc/aria2c.1.txt
  1270. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Removed --http-auth-scheme option since it doesn't do nothing.
  1272. * src/OptionHandlerFactory.cc
  1273. * src/prefs.cc
  1274. * src/prefs.h
  1275. * src/usage_text.h
  1276. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Adjusted the number of peer info which get_peers reply message can
  1278. carry.
  1279. * src/DHTGetPeersReplyMessage.cc
  1280. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Added extension_message_test_helper.h to aria2c_SOURCES.
  1282. * test/Makefile.am
  1283. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Documented --bt-prioritize-piece option in man page.
  1285. * doc/aria2c.1.txt
  1286. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added option --bt-prioritize-piece. This option instruct aria2 to
  1288. try to download first and last pieces of each file first. The
  1289. argument can contain 2 keywords:head and tail. To include both
  1290. keywords, they must be separated by comma. These keywords can take
  1291. one parameter, SIZE. For example , if head=SIZE is specified,
  1292. pieces in the range of first SIZE bytes of each file get higher
  1293. priority. tail=SIZE means the range of last SIZE bytes of each
  1294. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1295. * src/DefaultPieceStorage.h
  1296. * src/Makefile.am
  1297. * src/OptionHandlerFactory.cc
  1298. * src/OptionHandlerImpl.h
  1299. * src/PriorityPieceSelector.cc
  1300. * src/PriorityPieceSelector.h
  1301. * src/RequestGroup.cc
  1302. * src/prefs.cc
  1303. * src/prefs.h
  1304. * src/usage_text.h
  1305. * src/util.cc
  1306. * src/util.h
  1307. * test/Makefile.am
  1308. * test/MockPieceSelector.h
  1309. * test/PriorityPieceSelectorTest.cc
  1310. * test/UtilTest.cc
  1311. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Fixed typo
  1313. * src/HttpRequest.h
  1314. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. In Magnet URI with tr parameter, put each announce URI in separate
  1316. tier.
  1317. * src/bittorrent_helper.cc
  1318. * test/BittorrentHelperTest.cc
  1319. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Renamed ExtensionMessage::getBencodedData() as
  1321. ExtensionMessage::getPayload()
  1322. * src/BtExtendedMessage.cc
  1323. * src/ExtensionMessage.h
  1324. * src/HandshakeExtensionMessage.cc
  1325. * src/HandshakeExtensionMessage.h
  1326. * src/UTMetadataDataExtensionMessage.cc
  1327. * src/UTMetadataDataExtensionMessage.h
  1328. * src/UTMetadataRejectExtensionMessage.cc
  1329. * src/UTMetadataRejectExtensionMessage.h
  1330. * src/UTMetadataRequestExtensionMessage.cc
  1331. * src/UTMetadataRequestExtensionMessage.h
  1332. * src/UTPexExtensionMessage.cc
  1333. * src/UTPexExtensionMessage.h
  1334. * test/HandshakeExtensionMessageTest.cc
  1335. * test/MockExtensionMessage.h
  1336. * test/UTMetadataDataExtensionMessageTest.cc
  1337. * test/UTMetadataRejectExtensionMessageTest.cc
  1338. * test/UTMetadataRequestExtensionMessageTest.cc
  1339. * test/UTPexExtensionMessageTest.cc
  1340. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Updated man page for BitTorrent Magnet URI.
  1342. * doc/aria2c.1.txt
  1343. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Call DownloadContext::setOwnerRequestGroup() in
  1345. RequestGroup::setDownloadContext().
  1346. * src/BtDependency.cc
  1347. * src/RequestGroup.cc
  1348. * src/RequestGroup.h
  1349. * src/download_helper.cc
  1350. * test/DefaultBtMessageDispatcherTest.cc
  1351. * test/DefaultExtensionMessageFactoryTest.cc
  1352. * test/HandshakeExtensionMessageTest.cc
  1353. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1355. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1356. from metadata, use new metadata2Torrent() function.
  1357. * src/BtDependency.cc
  1358. * src/UTMetadataPostDownloadHandler.cc
  1359. * src/bittorrent_helper.cc
  1360. * src/bittorrent_helper.h
  1361. * test/BittorrentHelperTest.cc
  1362. * test/BtDependencyTest.cc
  1363. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Use createRequestGroupForUri to create the download for torrent
  1365. file.
  1366. * src/Metalink2RequestGroup.cc
  1367. * test/Metalink2RequestGroupTest.cc
  1368. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Fixed typo
  1370. * src/DownloadContext.h
  1371. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Use createRequestGroupForBitTorrent()
  1373. * src/BtPostDownloadHandler.cc
  1374. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Added remove().
  1376. * src/Option.cc
  1377. * src/Option.h
  1378. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Removed options which is only valid for URIs specified in
  1380. command-line. If they are left, because op is used as a template
  1381. for new RequestGroup(such as created in XML-RPC command,
  1382. BtPostDownloadHandler etc), they causes unintentional effect.
  1383. * src/main.cc
  1384. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Refer to option value of PREF_OUT only in download_helper.
  1386. * src/FtpNegotiationCommand.cc
  1387. * src/HttpResponseCommand.cc
  1388. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1390. * src/download_helper.cc
  1391. * src/download_helper.h
  1392. * src/XmlRpcMethodImpl.cc
  1393. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Updated man page for changeOption XML-RPC method.
  1395. * doc/aria2c.1.txt
  1396. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Added --bt-max-peers option to changeOption XML-RPC method.
  1398. * src/XmlRpcMethod.cc
  1399. * src/XmlRpcMethodImpl.cc
  1400. * test/XmlRpcMethodTest.cc
  1401. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1403. * test/XmlRpcMethodTest.cc
  1404. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Removed redundant DownloadContext::hasAttribute(...) calls.
  1406. * src/ConsoleStatCalc.cc
  1407. * src/RequestGroup.cc
  1408. * src/XmlRpcMethodImpl.cc
  1409. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Changed the number of tracker request attempt from 5 to 2.
  1411. * src/TrackerWatcherCommand.cc
  1412. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Use host and protocol in original URI, because URI selector
  1414. selects URI based on original URI, not redirected one.
  1415. * src/Request.cc
  1416. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Fixed the bug which causes segmentation fault with tellWaiting
  1418. XML-RPC method when BitTorrent download is waiting. The key of
  1419. BtRegistry is changed from info hash to GID, because it is
  1420. registered per RequestGroup, not info hash.
  1421. * src/BtRegistry.cc
  1422. * src/BtRegistry.h
  1423. * src/BtSetup.cc
  1424. * src/ConsoleStatCalc.cc
  1425. * src/InitiatorMSEHandshakeCommand.cc
  1426. * src/PeerInitiateConnectionCommand.cc
  1427. * src/PeerInteractionCommand.cc
  1428. * src/PeerInteractionCommand.h
  1429. * src/PeerReceiveHandshakeCommand.cc
  1430. * src/RequestGroup.cc
  1431. * src/XmlRpcMethodImpl.cc
  1432. * test/BtRegistryTest.cc
  1433. * test/XmlRpcMethodTest.cc
  1434. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Updated man page for changeOption XML-RPC method.
  1436. * doc/aria2c.1.txt
  1437. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1439. method.
  1440. * src/XmlRpcMethod.cc
  1441. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Documented about BitTorrent Magnet URI in man page.
  1443. * doc/aria2c.1.txt
  1444. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1446. inherited to generated RequestGroup.
  1447. * src/UTMetadataPostDownloadHandler.cc
  1448. * test/UTMetadataPostDownloadHandlerTest.cc
  1449. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Prepended "[METADATA]" before dn.
  1451. * src/bittorrent_helper.cc
  1452. * test/BittorrentHelperTest.cc
  1453. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Rewritten Magnet URI parser.
  1455. * src/Makefile.am
  1456. * src/ProtocolDetector.cc
  1457. * src/bittorrent_helper.cc
  1458. * src/bittorrent_helper.h
  1459. * src/download_helper.cc
  1460. * src/magnet.cc
  1461. * src/magnet.h
  1462. * test/BittorrentHelperTest.cc
  1463. * test/MagnetTest.cc
  1464. * test/Makefile.am
  1465. * test/ProtocolDetectorTest.cc
  1466. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Use hton64
  1468. * src/base32.cc
  1469. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Added Base32 encoded BitTorrent Magnet Link support.
  1471. * src/Makefile.am
  1472. * src/base32.cc
  1473. * src/base32.h
  1474. * src/bittorrent_helper.cc
  1475. * test/Base32Test.cc
  1476. * test/BittorrentHelperTest.cc
  1477. * test/Makefile.am
  1478. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1480. supported yet. Fixed typo in method name in RequestGroup. In
  1481. metadataGetMode, don't show "Your share ratio was ..." message.
  1482. * src/DefaultBtInteractive.cc
  1483. * src/DefaultBtInteractive.h
  1484. * src/DownloadHandlerFactory.cc
  1485. * src/DownloadHandlerFactory.h
  1486. * src/HandshakeExtensionMessage.cc
  1487. * src/Makefile.am
  1488. * src/Metalink2RequestGroup.cc
  1489. * src/PeerInteractionCommand.cc
  1490. * src/RequestGroup.cc
  1491. * src/RequestGroup.h
  1492. * src/UTMetadataPostDownloadHandler.cc
  1493. * src/UTMetadataPostDownloadHandler.h
  1494. * src/download_helper.cc
  1495. * test/HandshakeExtensionMessageTest.cc
  1496. * test/Makefile.am
  1497. * test/UTMetadataPostDownloadHandlerTest.cc
  1498. * test/UTMetadataRejectExtensionMessageTest.cc
  1499. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. In metadataGetMode, don't show SEEDING.
  1501. * src/ConsoleStatCalc.cc
  1502. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Fixed ut_metadata data handling. Implemented
  1504. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1505. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1506. metadata_size is received.
  1507. * src/DefaultExtensionMessageFactory.cc
  1508. * src/DefaultExtensionMessageFactory.h
  1509. * src/HandshakeExtensionMessage.cc
  1510. * src/HandshakeExtensionMessage.h
  1511. * src/UTMetadataDataExtensionMessage.cc
  1512. * src/UTMetadataDataExtensionMessage.h
  1513. * src/UTMetadataRequestExtensionMessage.cc
  1514. * src/UTMetadataRequestFactory.cc
  1515. * src/UTMetadataRequestFactory.h
  1516. * src/UTMetadataRequestTracker.cc
  1517. * src/UTMetadataRequestTracker.h
  1518. * test/DefaultExtensionMessageFactoryTest.cc
  1519. * test/HandshakeExtensionMessageTest.cc
  1520. * test/MockBtMessage.h
  1521. * test/UTMetadataDataExtensionMessageTest.cc
  1522. * test/UTMetadataRequestExtensionMessageTest.cc
  1523. * test/UTMetadataRequestFactoryTest.cc
  1524. * test/UTMetadataRequestTrackerTest.cc
  1525. * test/extension_message_test_helper.h
  1526. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Drop connection if ut_metadata reject message is received.
  1528. * src/UTMetadataRejectExtensionMessage.cc
  1529. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1531. get high enough in that mode.
  1532. * src/ActivePeerConnectionCommand.cc
  1533. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Added BitTorrent magnet link support to ProtocolDetector.
  1535. * src/ProtocolDetector.cc
  1536. * src/ProtocolDetector.h
  1537. * test/ProtocolDetectorTest.cc
  1538. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Don't inject validator into BtMessage in metadataGetMode because
  1540. most of the checks depends on the total length of download but it
  1541. is unknown. Delegate metadataGetMode to BtMessage.
  1542. * src/DefaultBtMessageFactory.cc
  1543. * src/DefaultBtMessageFactory.h
  1544. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1546. * src/DefaultPieceStorage.h
  1547. * src/PieceStorage.h
  1548. * src/UnknownLengthPieceStorage.h
  1549. * test/MockPieceStorage.h
  1550. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Added markTotalLengthIsKnown().
  1552. * src/DownloadContext.h
  1553. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1555. missing. If metadata is missing, always use DHT when it is ready.
  1556. * src/BtSetup.cc
  1557. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Added parseMagnetLink(). Hex encoded info hash is supported.
  1559. Base32 encoded info hash is not supported yet.
  1560. * src/bittorrent_helper.cc
  1561. * src/bittorrent_helper.h
  1562. * test/BittorrentHelperTest.cc
  1563. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added FromHex()
  1565. * src/util.cc
  1566. * src/util.h
  1567. * test/UtilTest.cc
  1568. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Added _metadataGetMode member variable. It toggles the action when
  1570. messages are received: usually they almost do nothing if
  1571. _metadataGetMode is true.
  1572. * src/AbstractBtMessage.cc
  1573. * src/AbstractBtMessage.h
  1574. * src/BtAllowedFastMessage.cc
  1575. * src/BtBitfieldMessage.cc
  1576. * src/BtCancelMessage.cc
  1577. * src/BtChokeMessage.cc
  1578. * src/BtHaveAllMessage.cc
  1579. * src/BtHaveMessage.cc
  1580. * src/BtInterestedMessage.cc
  1581. * src/BtNotInterestedMessage.cc
  1582. * src/BtPieceMessage.cc
  1583. * src/BtRejectMessage.cc
  1584. * src/BtRequestMessage.cc
  1585. * src/BtUnchokeMessage.cc
  1586. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Added bencode::decode overload functions. They have extra argument
  1588. 'end', passed by reference. 'end' points to the beyond the last
  1589. position of data used in decoding process.
  1590. * src/bencode.cc
  1591. * src/bencode.h
  1592. * test/BencodeTest.cc
  1593. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Initial support of Extension for Peers to Send Metadata
  1595. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1596. metadata from swarm.
  1597. * src/BtConstants.h
  1598. * src/DefaultBtInteractive.cc
  1599. * src/DefaultExtensionMessageFactory.cc
  1600. * src/DefaultExtensionMessageFactory.h
  1601. * src/ExtensionMessage.h
  1602. * src/ExtensionMessageRegistry.h
  1603. * src/HandshakeExtensionMessage.cc
  1604. * src/HandshakeExtensionMessage.h
  1605. * src/Makefile.am
  1606. * src/PeerConnection.h
  1607. * src/PeerInteractionCommand.cc
  1608. * src/UTMetadataDataExtensionMessage.cc
  1609. * src/UTMetadataDataExtensionMessage.h
  1610. * src/UTMetadataExtensionMessage.cc
  1611. * src/UTMetadataExtensionMessage.h
  1612. * src/UTMetadataRejectExtensionMessage.cc
  1613. * src/UTMetadataRejectExtensionMessage.h
  1614. * src/UTMetadataRequestExtensionMessage.cc
  1615. * src/UTMetadataRequestExtensionMessage.h
  1616. * src/bittorrent_helper.cc
  1617. * src/bittorrent_helper.h
  1618. * test/BittorrentHelperTest.cc
  1619. * test/DefaultExtensionMessageFactoryTest.cc
  1620. * test/HandshakeExtensionMessageTest.cc
  1621. * test/Makefile.am
  1622. * test/UTMetadataDataExtensionMessageTest.cc
  1623. * test/UTMetadataRejectExtensionMessageTest.cc
  1624. * test/UTMetadataRequestExtensionMessageTest.cc
  1625. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Cancel segment in prepareForRetry() because there is a chance that
  1627. the command has segments.
  1628. * src/CreateRequestCommand.cc
  1629. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Fixed the bug that slow server is not knocked down in favor of
  1631. faster one.
  1632. * src/AbstractCommand.cc
  1633. * src/DefaultPieceStorage.cc
  1634. * src/DefaultPieceStorage.h
  1635. * src/PieceStorage.h
  1636. * src/UnknownLengthPieceStorage.cc
  1637. * src/UnknownLengthPieceStorage.h
  1638. * test/MockPieceStorage.h
  1639. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Fixed the bug that Request object is not added to
  1641. _inFlightRequests in findFasterRequest().
  1642. * src/FileEntry.cc
  1643. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Changed the strategry of how to increase the number of outstanding
  1645. requests. Now the number is doubled if there are no outstanding
  1646. requests after receiving messages.
  1647. * src/BtConstants.h
  1648. * src/DefaultBtInteractive.cc
  1649. * src/DefaultBtInteractive.h
  1650. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Check socket for reading if there are outstanding requests.
  1652. * src/PeerInteractionCommand.cc
  1653. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Moved frequently called methods to header file so they get
  1655. inlined.
  1656. * src/RequestSlot.cc
  1657. * src/RequestSlot.h
  1658. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Copied in_addr instead of just casting from char* which might
  1660. violate strict aliasing rules.
  1661. * src/AsyncNameResolver.cc
  1662. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Use dynamic_pointer_cast
  1664. * test/BtPieceMessageTest.cc
  1665. * test/BtRequestMessageTest.cc
  1666. * test/DefaultBtRequestFactoryTest.cc
  1667. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Added testSetUrl20()
  1669. * test/RequestTest.cc
  1670. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Code cleanup
  1672. * src/bittorrent_helper.cc
  1673. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Use C++ style cast
  1675. * src/AsyncNameResolver.cc
  1676. * src/Base64.h
  1677. * src/BtBitfieldMessage.cc
  1678. * src/BtHandshakeMessage.cc
  1679. * src/DefaultBtMessageFactory.cc
  1680. * src/DefaultBtProgressInfoFile.cc
  1681. * src/EpollEventPoll.cc
  1682. * src/ExpatMetalinkProcessor.cc
  1683. * src/IteratableChecksumValidator.cc
  1684. * src/IteratableChunkChecksumValidator.cc
  1685. * src/MessageDigestHelper.cc
  1686. * src/Platform.cc
  1687. * src/RequestGroupMan.cc
  1688. * src/SingleFileAllocationIterator.cc
  1689. * src/Sqlite3MozCookieParser.cc
  1690. * src/XML2SAXMetalinkProcessor.cc
  1691. * src/Xml2XmlRpcRequestProcessor.cc
  1692. * src/util.cc
  1693. * src/util.h
  1694. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Fixed integer potential alignment problem.
  1696. * src/bitfield.h
  1697. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1699. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1700. include file ordering.
  1701. * src/PeerListProcessor.h
  1702. * src/bittorrent_helper.cc
  1703. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1705. * src/Request.cc
  1706. * src/util.cc
  1707. * src/util.h
  1708. * test/RequestTest.cc
  1709. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Rewritten util::uitos()
  1711. * src/util.h
  1712. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Code cleanup
  1714. * src/Request.cc
  1715. * src/Request.h
  1716. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Rewritten Request::parseUrl()
  1718. * src/Request.cc
  1719. * test/RequestTest.cc
  1720. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Removed unused macro SAFE_CHARS
  1722. * src/Request.cc
  1723. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Updated doc
  1725. * src/DHTRoutingTableDeserializer.cc
  1726. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Release 1.6.3
  1728. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Removed unused function.
  1730. * test/DHTPeerAnnounceStorageTest.cc
  1731. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Only decrement cols if cols > 0
  1733. * src/ConsoleStatCalc.cc
  1734. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1736. translations. Thanks to all translators.
  1737. * po/ca.po
  1738. * po/fr.po
  1739. * po/it.po
  1740. * po/ja.po
  1741. * po/pl.po
  1742. * po/ru.po
  1743. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Updated translation template
  1745. * po
  1746. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Fixed compile error without ssl library.
  1748. * src/util.cc
  1749. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Logged received nodes in get_peers reply message.
  1751. * src/DHTAbstractNodeLookupTask.cc
  1752. * src/DHTAbstractNodeLookupTask.h
  1753. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1755. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1756. * src/DHTMessageDispatcherImpl.cc
  1757. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Don't reuse URI if Request pool is not empty.
  1759. * src/CreateRequestCommand.cc
  1760. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1762. receive get_peers request for torrent which the client is now
  1763. downloading.
  1764. * src/BtSetup.cc
  1765. * src/DHTPeerAnnounceEntry.cc
  1766. * src/DHTPeerAnnounceEntry.h
  1767. * src/DHTPeerAnnounceStorage.cc
  1768. * src/DHTPeerAnnounceStorage.h
  1769. * src/RequestGroup.cc
  1770. * test/DHTPeerAnnounceEntryTest.cc
  1771. * test/DHTPeerAnnounceStorageTest.cc
  1772. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Fixed the bug that in Windows environment new blank line is
  1774. inserted when console readout is updated.
  1775. * src/ConsoleStatCalc.cc
  1776. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Throw exception if binding listening port is failed. Removed
  1778. RequestGroupMan::getInitialCommand(). Use
  1779. fillRequestGroupFromReserver() instead. Delete commands for
  1780. RequestGroup which has errors when it is being added.
  1781. * src/BtSetup.cc
  1782. * src/DownloadEngine.cc
  1783. * src/DownloadEngine.h
  1784. * src/DownloadEngineFactory.cc
  1785. * src/MultiUrlRequestInfo.cc
  1786. * src/RequestGroupMan.cc
  1787. * src/RequestGroupMan.h
  1788. * test/RequestGroupManTest.cc
  1789. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Fixed the bug that when downloading more than one torrent,
  1791. listening port is not reported properly to tracker for 2nd or
  1792. later torrents.
  1793. * src/BtSetup.cc
  1794. * src/PeerListenCommand.cc
  1795. * src/PeerListenCommand.h
  1796. * src/RequestGroup.cc
  1797. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Bump up version number to 1.6.3
  1799. * configure.ac
  1800. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1801. Removed Util.cc from POTFILES.in
  1802. * po/POTFILES.in
  1803. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Updated man page for previous change.
  1805. * doc/aria2c.1.txt
  1806. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. If user name is embedded but password is missing in URI, first
  1808. resolve password using .netrc. If password is found in .netrc,
  1809. then use it as password. If not, use the password specified in
  1810. --ftp-passwd.
  1811. * src/AuthConfigFactory.cc
  1812. * src/Request.cc
  1813. * src/Request.h
  1814. * test/AuthConfigFactoryTest.cc
  1815. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Fixed typo
  1817. * doc/aria2c.1.txt
  1818. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Fixed typo
  1820. * src/usage_text.h
  1821. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Added missing bitfield.cc
  1823. * src/bitfield.cc
  1824. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Renamed Util.{cc,h} as util.{cc,h}
  1826. * src/Util.cc
  1827. * src/Util.h
  1828. * src/util.cc
  1829. * src/util.h
  1830. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Moved static functions in Util class to namespace util.
  1832. * src
  1833. * test
  1834. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1836. Moved generateRandomKey to bittorrent_helper.cc.
  1837. * src/DHTBucket.cc
  1838. * src/DHTGetPeersMessage.cc
  1839. * src/DHTGetPeersReplyMessage.cc
  1840. * src/DHTMessage.cc
  1841. * src/DHTNode.cc
  1842. * src/DHTTokenTracker.cc
  1843. * src/DHTUtil.cc: Removed.
  1844. * src/DHTUtil.h: Removed.
  1845. * src/Makefile.am
  1846. * src/Util.cc
  1847. * src/Util.h
  1848. * src/bitfield.h
  1849. * src/bittorrent_helper.cc
  1850. * src/bittorrent_helper.h
  1851. * test/ARC4Test.cc
  1852. * test/BNodeTest.cc
  1853. * test/DHTAnnouncePeerMessageTest.cc
  1854. * test/DHTAnnouncePeerReplyMessageTest.cc
  1855. * test/DHTFindNodeMessageTest.cc
  1856. * test/DHTFindNodeReplyMessageTest.cc
  1857. * test/DHTGetPeersMessageTest.cc
  1858. * test/DHTGetPeersReplyMessageTest.cc
  1859. * test/DHTPingMessageTest.cc
  1860. * test/DHTPingReplyMessageTest.cc
  1861. * test/DHTTokenTrackerTest.cc
  1862. * test/DHTUtilTest.cc: Removed.
  1863. * test/Makefile.am
  1864. * test/UtilTest.cc
  1865. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Removed the call to trim() because trim() is called for each
  1867. element in split().
  1868. * src/CookieParser.cc
  1869. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Replaced Util::slice() with split()
  1871. * src/AbstractCommand.cc
  1872. * src/CookieParser.cc
  1873. * src/File.cc
  1874. * src/HttpHeaderProcessor.cc
  1875. * src/HttpRequest.cc
  1876. * src/Metalink2RequestGroup.cc
  1877. * src/MetalinkParserController.cc
  1878. * src/Netrc.cc
  1879. * src/NsCookieParser.cc
  1880. * src/ParameterizedStringParser.cc
  1881. * src/ServerStatMan.cc
  1882. * src/UriListParser.cc
  1883. * src/Util.cc
  1884. * src/Util.h
  1885. * src/bittorrent_helper.cc
  1886. * test/UtilTest.cc
  1887. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Use request->getDir() instead of "/" for embedded user/pass in
  1889. URI.
  1890. * src/AuthConfigFactory.cc
  1891. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Fixed wrong insertion point for BasicCred.
  1893. * src/AuthConfigFactory.cc
  1894. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Allowed non-regular file in LocalFilePathOptionHandler
  1896. * src/OptionHandlerImpl.h
  1897. * src/message.h
  1898. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1900. * src/Netrc.cc
  1901. * src/Util.h
  1902. * test/NetrcTest.cc
  1903. * test/sample.netrc
  1904. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Fixed typo
  1906. * src/BtDependency.cc
  1907. * src/BtRejectMessage.cc
  1908. * src/FtpConnection.cc
  1909. * src/HttpHeaderProcessor.h
  1910. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Fixed lintian report in man page
  1912. * doc/aria2c.1.txt
  1913. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Release 1.6.2
  1915. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Updated Ukrainian translation. Thanks to all translators.
  1917. * po/uk.po
  1918. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Updated translation template
  1920. * po
  1921. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Bump up version number to 1.6.2
  1923. * configure.ac
  1924. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Updated licence message in -v output.
  1926. * src/version_usage.cc
  1927. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Replaced aria2 with aria2c in help message.
  1929. * src/version_usage.cc
  1930. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1932. * src/version_usage.cc
  1933. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Quoted localedir
  1935. * src/Makefile.am
  1936. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1938. utime. Check header for utime.h.
  1939. * configure.ac
  1940. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1942. * configure.ac
  1943. * src/daemon.cc
  1944. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Don't set localedir manually. Leave it to autoconf.
  1946. * configure.ac
  1947. * src/Makefile.am
  1948. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Added --install to ACLOCAL_AMFLAGS.
  1950. Removed m4 from SUBDIRS.
  1951. Updated automake 1.11 and autoconf 2.64.
  1952. Replaced some obsolute macros with new one.
  1953. * Makefile.am
  1954. * configure.ac
  1955. * m4/aria2_arg.m4
  1956. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Removed Makefile.am in m4 directory.
  1958. * configure.ac
  1959. * m4/ChangeLog
  1960. * m4/Makefile.am
  1961. * m4/Makefile.in
  1962. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Removed unused m4 macros.
  1964. * m4/intldir.m4
  1965. * m4/inttypes.m4
  1966. * m4/isc-posix.m4
  1967. * m4/libgnutls-extra.m4
  1968. * m4/ulonglong.m4
  1969. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Fixed the bug that causes segmentation fault if
  1971. req->getCurrentUrl() contains printf formatting characters such as
  1972. %d. The statement that causes this bug is useless and removed.
  1973. * src/AbstractCommand.cc
  1974. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. * Release 1.6.1
  1976. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Updated Simplified Chinese translation. Thanks to translators.
  1978. * po/zh_CN.po
  1979. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Updated translation template
  1981. * po
  1982. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Bump up version number to 1.6.1
  1984. * configure.ac
  1985. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Changed interval from 120 to 60 for dropping inactive peer.
  1987. * src/DefaultBtInteractive.cc
  1988. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Updated man page for --user-agent and --peer-id-prefix option.
  1990. * doc/aria2c.1.txt
  1991. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Code clean up
  1993. * src/BtPostDownloadHandler.cc
  1994. * src/ContentTypeRequestGroupCriteria.cc
  1995. * src/ContentTypeRequestGroupCriteria.h
  1996. * src/DownloadHandlerConstants.cc
  1997. * src/DownloadHandlerConstants.h
  1998. * src/DownloadHandlerFactory.cc
  1999. * src/MetalinkPostDownloadHandler.cc
  2000. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Don't save control file when aria2 exists while checking piece
  2002. hash(behavior of -V option). If control file doesn't exist when
  2003. aria2 launched, the completed length in saved control file will be
  2004. 0 byte and this confuses user. disableSaveControlFile() is called
  2005. in RequestGroup::processCheckIntegrityEntry().
  2006. enableSaveControlFile() will be called after hash checking is
  2007. done. See CheckIntegrityCommand.
  2008. * src/CheckIntegrityCommand.cc
  2009. * src/RequestGroup.cc
  2010. * src/RequestGroup.h
  2011. * src/RequestGroupMan.cc
  2012. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Included version number in Peer ID and client version. Peer ID
  2014. now starts with "aria2/VERSION-", where VERSION is
  2015. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2016. * src/DefaultBtInteractive.cc
  2017. * src/OptionHandlerFactory.cc
  2018. * src/bittorrent_helper.cc
  2019. * src/bittorrent_helper.h
  2020. * src/main.cc
  2021. * src/usage_text.h
  2022. * test/BittorrentHelperTest.cc
  2023. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Fixed memory leak.
  2025. * src/DownloadCommand.cc
  2026. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Removed server, port, user and passwd key from options before
  2028. XMLRPC::Client.call since they are not options of aria2.
  2029. * doc/xmlrpc/aria2mon
  2030. * doc/xmlrpc/aria2rpc
  2031. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Included version number in user-agent string.
  2033. * src/OptionHandlerFactory.cc
  2034. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Fixed the bug that the option values changed by XML-RPC
  2036. method(changeOption and changeGlobalOption) are overwritten to the
  2037. previous value by the next these request which doesn't contain
  2038. that option value. Supporse max-download-limit is initially 0. You
  2039. changed this value to 100K by changeOption. Then you issue
  2040. changeOption request to change max-upload-limit to 50K. This
  2041. second request doesn't contain xml-download-limit, so it is back
  2042. to initial value, 0. Another improvement is that exception is
  2043. thrown when changeOption and changeGlobalOption request contains
  2044. option name which doesn't allowed in each request.
  2045. * src/DownloadEngine.h
  2046. * src/XmlRpcMethod.cc
  2047. * src/XmlRpcMethod.h
  2048. * src/XmlRpcMethodImpl.cc
  2049. * src/download_helper.cc
  2050. * src/download_helper.h
  2051. * test/XmlRpcMethodTest.cc
  2052. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Added missing MetalinkParserStateImpl.{cc,h}
  2054. * src/MetalinkParserStateImpl.cc
  2055. * src/MetalinkParserStateImpl.h
  2056. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Put all MetalinkParserState subclasses into
  2058. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2059. * src/FileMetalinkParserState.cc: Removed
  2060. * src/FileMetalinkParserState.h: Removed
  2061. * src/FilesMetalinkParserState.cc: Removed
  2062. * src/FilesMetalinkParserState.h: Removed
  2063. * src/FinMetalinkParserState.cc: Removed
  2064. * src/FinMetalinkParserState.h: Removed
  2065. * src/HashMetalinkParserState.cc: Removed
  2066. * src/HashMetalinkParserState.h: Removed
  2067. * src/InitialMetalinkParserState.cc: Removed
  2068. * src/InitialMetalinkParserState.h: Removed
  2069. * src/LanguageMetalinkParserState.cc: Removed
  2070. * src/LanguageMetalinkParserState.h: Removed
  2071. * src/Makefile.am
  2072. * src/MetalinkMetalinkParserState.cc: Removed
  2073. * src/MetalinkMetalinkParserState.h: Removed
  2074. * src/MetalinkParserState.h
  2075. * src/MetalinkParserStateMachine.cc
  2076. * src/MetalinkParserStateMachine.h
  2077. * src/OSMetalinkParserState.cc: Removed
  2078. * src/OSMetalinkParserState.h: Removed
  2079. * src/PieceHashMetalinkParserState.cc: Removed
  2080. * src/PieceHashMetalinkParserState.h: Removed
  2081. * src/PiecesMetalinkParserState.cc: Removed
  2082. * src/PiecesMetalinkParserState.h: Removed
  2083. * src/ResourcesMetalinkParserState.cc: Removed
  2084. * src/ResourcesMetalinkParserState.h: Removed
  2085. * src/SignatureMetalinkParserState.cc: Removed
  2086. * src/SignatureMetalinkParserState.h: Removed
  2087. * src/SizeMetalinkParserState.cc: Removed
  2088. * src/SizeMetalinkParserState.h: Removed
  2089. * src/SkipTagMetalinkParserState.cc: Removed
  2090. * src/SkipTagMetalinkParserState.h: Removed
  2091. * src/URLMetalinkParserState.cc: Removed
  2092. * src/URLMetalinkParserState.h: Removed
  2093. * src/VerificationMetalinkParserState.cc: Removed
  2094. * src/VerificationMetalinkParserState.h: Removed
  2095. * src/VersionMetalinkParserState.cc: Removed
  2096. * src/VersionMetalinkParserState.h: Removed
  2097. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Move all functions in PeerMessageUtil to bittorrent_helper.
  2099. * src/BtBitfieldMessage.cc
  2100. * src/BtBitfieldMessageValidator.h
  2101. * src/BtExtendedMessage.cc
  2102. * src/BtHandshakeMessage.cc
  2103. * src/BtHandshakeMessageValidator.h
  2104. * src/BtPieceMessage.cc
  2105. * src/BtPieceMessageValidator.h
  2106. * src/BtPortMessage.cc
  2107. * src/DHTFindNodeReplyMessage.cc
  2108. * src/DHTGetPeersReplyMessage.cc
  2109. * src/DHTMessageFactoryImpl.cc
  2110. * src/DHTRoutingTableDeserializer.cc
  2111. * src/DHTRoutingTableSerializer.cc
  2112. * src/DHTTokenTracker.cc
  2113. * src/DefaultBtMessageFactory.cc
  2114. * src/IndexBtMessage.cc
  2115. * src/IndexBtMessage.h
  2116. * src/IndexBtMessageValidator.h
  2117. * src/Makefile.am
  2118. * src/PeerMessageUtil.cc: Removed.
  2119. * src/PeerMessageUtil.h: Removed.
  2120. * src/RangeBtMessage.cc
  2121. * src/RangeBtMessage.h
  2122. * src/RangeBtMessageValidator.h
  2123. * src/UTPexExtensionMessage.cc
  2124. * src/ZeroBtMessage.cc
  2125. * src/ZeroBtMessage.h
  2126. * src/bittorrent_helper.cc
  2127. * src/bittorrent_helper.h
  2128. * test/BittorrentHelperTest.cc
  2129. * test/BtAllowedFastMessageTest.cc
  2130. * test/BtBitfieldMessageTest.cc
  2131. * test/BtCancelMessageTest.cc
  2132. * test/BtChokeMessageTest.cc
  2133. * test/BtExtendedMessageTest.cc
  2134. * test/BtHandshakeMessageTest.cc
  2135. * test/BtHaveAllMessageTest.cc
  2136. * test/BtHaveMessageTest.cc
  2137. * test/BtHaveNoneMessageTest.cc
  2138. * test/BtInterestedMessageTest.cc
  2139. * test/BtNotInterestedMessageTest.cc
  2140. * test/BtPieceMessageTest.cc
  2141. * test/BtPortMessageTest.cc
  2142. * test/BtRejectMessageTest.cc
  2143. * test/BtRequestMessageTest.cc
  2144. * test/BtSuggestPieceMessageTest.cc
  2145. * test/BtUnchokeMessageTest.cc
  2146. * test/DHTFindNodeReplyMessageTest.cc
  2147. * test/DHTGetPeersReplyMessageTest.cc
  2148. * test/DHTMessageFactoryImplTest.cc
  2149. * test/DHTRoutingTableDeserializerTest.cc
  2150. * test/DHTRoutingTableSerializerTest.cc
  2151. * test/DefaultBtMessageFactoryTest.cc
  2152. * test/DefaultExtensionMessageFactoryTest.cc
  2153. * test/Makefile.am
  2154. * test/PeerListProcessorTest.cc
  2155. * test/PeerMessageUtilTest.cc: Removed.
  2156. * test/UTPexExtensionMessageTest.cc
  2157. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Limit the size of values list when sending get_peers reply.
  2159. * src/DHTGetPeersReplyMessage.cc
  2160. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Updated banner
  2162. * doc/xmlrpc/aria2rpc
  2163. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Added missing help message for remove command.
  2165. * doc/xmlrpc/aria2rpc
  2166. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Generated configure and config.h.in
  2168. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2169. Add check for fork(), which is missing on MinGW
  2170. * src/daemon.cc
  2171. * configure.ac
  2172. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2174. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2175. Util::httpGMT().
  2176. * src/Util.cc
  2177. * src/Util.h
  2178. * test/UtilTest.cc
  2179. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. * Release 1.6.0
  2181. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Fixed a path to xmlrpc/README.txt
  2183. * doc/Makefile.am
  2184. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Added XML-RPC in -v Configuration output.
  2186. * src/FeatureConfig.cc
  2187. * src/FeatureConfig.h
  2188. * test/FeatureConfigTest.cc
  2189. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Updated Bulgarian, Russian, Slovak and Japanese
  2191. translations. Thanks to all translators.
  2192. * po/bg.po
  2193. * po/ja.po
  2194. * po/ru.po
  2195. * po/sk.po
  2196. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Removed --retry-wait option from aria2rpc
  2198. * doc/xmlrpc/aria2rpc
  2199. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Removed --retry-wait option from man page.
  2201. * doc/aria2c.1.txt
  2202. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Removed --retry-wait option since the current architecture doesn't
  2204. allow sleep for particular URI.
  2205. * src/AbstractCommand.cc
  2206. * src/OptionHandlerFactory.cc
  2207. * src/download_helper.cc
  2208. * src/prefs.cc
  2209. * src/prefs.h
  2210. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Removed Retry-After header support. Since the current architecture
  2212. doesn't allow sleep for particular URI.
  2213. * src/HttpSkipResponseCommand.cc
  2214. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Updated the help message for --daemon option.
  2216. * doc/aria2c.1.txt
  2217. * src/usage_text.h
  2218. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Added our own daemon() function for systems which desn't have
  2220. daemon(3).
  2221. * configure.ac
  2222. * src/Makefile.am
  2223. * src/daemon.cc
  2224. * src/daemon.h
  2225. * src/option_processing.cc
  2226. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Simplified File::getCurrentDir()
  2228. * src/File.cc
  2229. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Use exit() instead of _exit
  2231. * src/RequestGroupMan.cc
  2232. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Replaced "CATEGORY" with "TAGS".
  2234. * src/usage_text.h
  2235. * doc/aria2c.1.txt
  2236. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Updated the help message for --help option.
  2238. * src/usage_text.h
  2239. * doc/aria2c.1.txt
  2240. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Updated man page for added help tags.
  2242. * doc/aria2c.1.txt
  2243. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Added help category #file. Added #file tag to the options related
  2245. to downloaded file.
  2246. * src/OptionHandlerFactory.cc
  2247. * src/help_tags.h
  2248. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Added help categories: #cookie and #hook. Added #https tag to
  2250. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2251. * src/OptionHandlerFactory.cc
  2252. * src/help_tags.h
  2253. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Made MSG_NOT_FILE translatable.
  2255. * src/message.h
  2256. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Updated man page for --help option.
  2258. * doc/aria2c.1.txt
  2259. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Updated doc.
  2261. * src/XmlRpcMethod.h
  2262. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Help category now starts with "#" to distinguish a category from
  2264. keyword search. For example, "http" categroy is now "#http". You
  2265. can type "--help=#http" to get explanation of options related to
  2266. http. If '#' is omitted, then the argument is treated as a keyword
  2267. and aria2 searches options whose name includes the keyword and
  2268. print matched ones. For example, "--help=http" will show options
  2269. whose name includes "http".
  2270. * src/OptionHandlerFactory.cc
  2271. * src/help_tags.h
  2272. * src/usage_text.h
  2273. * src/version_usage.cc
  2274. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Documented missing experimental tag and newly added xml-rpc tag in
  2276. man page.
  2277. * doc/aria2c.1.txt
  2278. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Added xml-rpc help tag. Tagged xml-rpc related options with
  2280. xml-rpc tag.
  2281. * src/OptionHandlerFactory.cc
  2282. * src/help_tags.h
  2283. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Updated message when a path is not a file. Updated common message
  2285. for wrong option.
  2286. * src/OptionHandlerException.cc
  2287. * src/message.h
  2288. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Use File::isFile() instead of File::exists(). Updated message when
  2290. a path is not a file.
  2291. * src/OptionHandlerImpl.cc
  2292. * src/message.h
  2293. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Fixed the bug that server performence profile is not updated when
  2295. aria2c was terminated by emergency shutdown.
  2296. * src/TrackerWatcherCommand.cc
  2297. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Use LocalFilePathOptionHandler for -T and -M option.
  2299. Updated message of MSG_FILE_NOT_EXIST.
  2300. * src/OptionHandlerFactory.cc
  2301. * src/message.h
  2302. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Added LocalFilePathOptionHandler which check whether the specified
  2304. file path does exist or not.
  2305. * src/OptionHandlerImpl.cc
  2306. * src/message.h
  2307. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Updated wiki page URI.
  2309. * README
  2310. * doc/aria2c.1.txt
  2311. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Added README.txt for xmlrpc directory.
  2313. * doc/Makefile.am
  2314. * doc/xmlrpc/README.txt
  2315. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Bump up version number to 1.6.0.
  2317. * configure.ac
  2318. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Added XML-RPC client scripts written in ruby.
  2320. * doc/Makefile.am
  2321. * doc/xmlrpc/aria2mon
  2322. * doc/xmlrpc/aria2rpc
  2323. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Added support for IPv6 literal address in URI. Now aria2 can
  2325. handle URI such as http://[::1]/
  2326. * src/HttpRequest.cc
  2327. * src/HttpRequest.h
  2328. * src/Request.cc
  2329. * src/Request.h
  2330. * test/HttpRequestTest.cc
  2331. * test/OptionHandlerTest.cc
  2332. * test/RequestTest.cc
  2333. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Fixed the bug that HTTP request header for XML-RPC request is not
  2335. parsed properly.
  2336. * src/HttpHeader.cc
  2337. * src/HttpHeaderProcessor.cc
  2338. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Fixed the bug that XML-RPC authorization might be done before HTTP
  2340. request header is fully received.
  2341. * src/HttpServerCommand.cc
  2342. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Documented --xml-rpc-listen-all option in man page.
  2344. * doc/aria2c.1.txt
  2345. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Added --xml-rpc-listen-all option. If true is given to this
  2347. option, aria2 listens incoming XML-RPC requests on all network
  2348. interfaces. If false is given, listens only on local loopback
  2349. interface. The default value is false.
  2350. * src/HttpListenCommand.cc
  2351. * src/OptionHandlerFactory.cc
  2352. * src/SocketCore.cc
  2353. * src/SocketCore.h
  2354. * src/prefs.cc
  2355. * src/prefs.h
  2356. * src/usage_text.h
  2357. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. * Release 1.5.2
  2359. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Updated Ukrainian and Russian translations. Thanks to all
  2361. translators.
  2362. * po/ru.po
  2363. * po/uk.po
  2364. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Bump up version number to 1.5.2
  2366. * configure.ac
  2367. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Get comment, comment.utf-8, created by and creation date from
  2369. .torrent file and print them in -S output.
  2370. * src/bittorrent_helper.cc
  2371. * src/bittorrent_helper.h
  2372. * test/BittorrentHelperTest.cc
  2373. * test/test.torrent
  2374. * test/utf8.torrent
  2375. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Show exact file size along in -S option output.
  2377. * src/Util.h
  2378. * src/bittorrent_helper.cc
  2379. * test/UtilTest.cc
  2380. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Avoided unnecessary memory allocation in
  2382. BitfieldMan::getCompletedLength().
  2383. * src/BitfieldMan.cc
  2384. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Fixed the bug that download fails if
  2386. SocketCore::establishConnection() throws exception and aria2
  2387. doesn't try another address.
  2388. * src/AbstractCommand.cc
  2389. * src/InitiateConnectionCommand.cc
  2390. * src/message.h
  2391. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2393. detected properly.
  2394. * m4/sqlite3.m4
  2395. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2397. because it causes compile error if PARAMS macro is defined.
  2398. * src/XmlRpcElements.cc
  2399. * src/XmlRpcElements.h
  2400. * src/XmlRpcRequestParserStateImpl.cc
  2401. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. * Release 1.5.1
  2403. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Bump up version number to 1.5.1
  2405. * configure.ac
  2406. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Fixed compile error without BitTorrent support
  2408. * src/DefaultBtProgressInfoFile.cc
  2409. * src/DownloadEngine.cc
  2410. * src/DownloadEngine.h
  2411. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Added missing '=' in Download Results
  2413. * src/RequestGroupMan.cc
  2414. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Fixed compiler warning
  2416. * src/DefaultBtProgressInfoFile.cc
  2417. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Fixed compiler warning on 32bit systems.
  2419. * src/DownloadCommand.cc
  2420. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Call flush from ServerStatMan::save()
  2422. * src/ServerStatMan.cc
  2423. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Check stream status after file is opened.
  2425. * src/CookieStorage.cc
  2426. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Rewritten Signature::save()
  2428. * src/Signature.cc
  2429. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Rewritten RequestGroupMan::saveServerStat()
  2431. * src/RequestGroupMan.cc
  2432. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Rewritten stream error handling
  2434. * src/DHTAutoSaveCommand.cc
  2435. * src/DHTRoutingTableDeserializer.cc
  2436. * src/DHTRoutingTableSerializer.cc
  2437. * src/DHTSetup.cc
  2438. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Check stream status after file is opened.
  2440. * src/DefaultBtProgressInfoFile.cc
  2441. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Rewritten stream error handling
  2443. * src/DefaultBtProgressInfoFile.cc
  2444. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Make sure that stream is closed before renaming file. Unit test
  2446. fails on mingw32 in the previous implementation.
  2447. * src/CookieStorage.cc
  2448. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Fixed the unit test error without sqlite3
  2450. * test/CookieStorageTest.cc
  2451. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Fixed the undefined reference error
  2453. * test/HttpResponseTest.cc
  2454. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. * Release 1.5.0
  2456. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2458. Ukrainian translations. Thanks to all translators.
  2459. * po/ru.po
  2460. * po/it.po
  2461. * po/da.po
  2462. * po/bg.po
  2463. * po/ja.po
  2464. * po/uk.po
  2465. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Added missing src/Logger.cc
  2467. * src/Logger.cc
  2468. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Rewritten Logger to avoiding constly virtual call.
  2470. * src/LogFactory.cc
  2471. * src/LogFactory.h
  2472. * src/Logger.h
  2473. * src/Makefile.am
  2474. * src/Makefile.in
  2475. * src/NullLogger.h: Removed.
  2476. * src/SimpleLogger.cc
  2477. * src/SimpleLogger.h
  2478. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Updated doc
  2480. * src/main.cc
  2481. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Updated debug log message
  2483. * src/AbstractCommand.cc
  2484. * src/message.h
  2485. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Avoid to create zombie process when commands specified in
  2487. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2488. X and NetBSD.
  2489. * src/main.cc
  2490. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Fixed typo
  2492. * src/usage_text.h
  2493. * doc/aria2c.1.txt
  2494. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Documented 'errorCode' of tellStatus in man page.
  2496. * doc/aria2c.1.txt
  2497. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2499. This key is only available for stopped/completed downloads and its
  2500. value is the error code defined in EXIT STATUS in man page.
  2501. * src/XmlRpcMethodImpl.cc
  2502. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Fixed the bug that session download length is not updated when
  2504. PeerStat is not fastest one.
  2505. * src/SegmentMan.cc
  2506. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Updated doc.
  2508. * doc/aria2c.1.txt
  2509. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Updated doc.
  2511. * src/AbstractCommand.cc
  2512. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Handle the case when DownloadContext has no FileEntry.
  2514. * src/XmlRpcMethodImpl.cc
  2515. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Handle the situation where struct option.name is char *.
  2517. * configure.ac
  2518. * src/OptionParser.cc
  2519. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Code cleanup
  2521. * src/AbstractCommand.cc
  2522. * src/DownloadCommand.cc
  2523. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Use option of each download to create AuthConfig instead of global
  2525. option.
  2526. * src/AuthConfigFactory.cc
  2527. * src/AuthConfigFactory.h
  2528. * src/FtpNegotiationCommand.cc
  2529. * src/HttpRequest.cc
  2530. * src/HttpRequest.h
  2531. * src/HttpRequestCommand.cc
  2532. * src/HttpSkipResponseCommand.cc
  2533. * src/MultiUrlRequestInfo.cc
  2534. * test/AuthConfigFactoryTest.cc
  2535. * test/FtpConnectionTest.cc
  2536. * test/HttpRequestTest.cc
  2537. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Don't call prepareForRetry(1) if all segments are ignored in
  2539. SegmentMan.
  2540. * src/AbstractCommand.cc
  2541. * src/BitfieldMan.cc
  2542. * src/BitfieldMan.h
  2543. * src/SegmentMan.cc
  2544. * src/SegmentMan.h
  2545. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Removed FileEntry::getAssociatedUris()
  2547. * src/FileEntry.h
  2548. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Updated doc: TODO1.5 -> TODO
  2550. * src/FileEntry.cc
  2551. * src/HttpResponseCommand.cc
  2552. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2554. involved.
  2555. * src/RequestGroup.cc
  2556. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Eliminated duplicated filterBitfield initialization code.
  2558. * src/BitfieldMan.cc
  2559. * src/BitfieldMan.h
  2560. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2562. relatively naive approach, though). For DownloadFailureException,
  2563. we handle the case when req is null properly.
  2564. * src/AbstractCommand.cc
  2565. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Added function returning suffix of control file to
  2567. DefaultBtProgressInfoFile.
  2568. * src/DefaultBtProgressInfoFile.cc
  2569. * src/DefaultBtProgressInfoFile.h
  2570. * src/RequestGroup.cc
  2571. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Documented getVersion in man page.
  2573. * doc/aria2c.1.txt
  2574. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Documented type of offset and num for tellWaiting xml-rpc method.
  2576. * doc/aria2c.1.txt
  2577. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Implemented getVersion xml-rpc method. This method returns struct
  2579. which has 2 key-value pairs: "version" key is associated to the
  2580. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2581. associated to the list of enabled features, such as "Async DNS",
  2582. "BitTorrent".
  2583. * src/FeatureConfig.h
  2584. * src/XmlRpcMethodFactory.cc
  2585. * src/XmlRpcMethodImpl.cc
  2586. * src/XmlRpcMethodImpl.h
  2587. * test/XmlRpcMethodTest.cc
  2588. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2590. for compatibility issue.
  2591. * src/SocketCore.cc
  2592. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Fixed compile error with openSSL
  2594. * src/bittorrent_helper.cc
  2595. * src/messageDigest.h
  2596. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Removed bad code: setting certificate type priority to key
  2598. exchange priority.
  2599. * src/SocketCore.cc
  2600. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Disconnect seeder if client is also in seed state.
  2602. * src/BtBitfieldMessage.cc
  2603. * src/BtHaveAllMessage.cc
  2604. * src/BtHaveMessage.cc
  2605. * src/message.h
  2606. * test/BtBitfieldMessageTest.cc
  2607. * test/BtHaveAllMessageTest.cc
  2608. * test/BtHaveMessageTest.cc
  2609. * test/MockPieceStorage.h
  2610. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Keep CreateRequestCommand in queue when no segment is available so
  2612. that they can pick up pieces which slow BitTorrent peers are
  2613. downloading.
  2614. * src/AbstractCommand.cc
  2615. * src/CreateRequestCommand.cc
  2616. * src/CreateRequestCommand.h
  2617. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. --bt-stop-timeout now only checks download speed.
  2619. * src/BtStopDownloadCommand.cc
  2620. * src/BtStopDownloadCommand.h
  2621. * src/BtSetup.cc
  2622. * src/usage_text.h
  2623. * doc/aria2c.1.txt
  2624. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Fixed compile error regarding BUFSIZE.
  2626. * src/DownloadCommand.cc
  2627. * src/DownloadCommand.h
  2628. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Documented tellWaiting xml-rpc method in man page.
  2630. * doc/aria2c.1.txt
  2631. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Bump up version number to 1.5.0
  2633. * configure.ac
  2634. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Removed resolved TODO1.5
  2636. * src/AbstractCommand.cc
  2637. * src/DownloadCommand.cc
  2638. * src/RequestGroup.cc
  2639. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Release pooled and in-flight Request objectsand URIResult objects
  2641. in FileEntry after download completed.
  2642. * src/DownloadContext.cc
  2643. * src/DownloadContext.h
  2644. * src/FileEntry.cc
  2645. * src/FileEntry.h
  2646. * src/RequestGroup.cc
  2647. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Set manual and source attribute in aria2c.1.txt
  2649. * doc/aria2c.1.txt
  2650. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Documented that the default value of --use-head is 'false' in man
  2652. page.
  2653. * doc/aria2c.1.txt
  2654. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Added bt-stop-timeout option to -i list.
  2656. * doc/aria2c.1.txt
  2657. * src/download_helper.cc
  2658. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Fixed typo
  2660. * doc/aria2c.1.txt
  2661. * src/usage_text.h
  2662. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Removed peer-id-prefix option from -i list.
  2664. * doc/aria2c.1.txt
  2665. * src/download_helper.cc
  2666. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Fixed typo
  2668. * doc/aria2c.1.txt
  2669. * src/usage_text.h
  2670. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Documented --bt-stop-timeout option in man page.
  2672. * doc/aria2c.1.txt
  2673. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. Updated README regarding multi-file torrent web-seeding.
  2675. * doc/README.txt
  2676. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Updated man page regarding multi-file torrent web-seeding.
  2678. * doc/aria2c.1.txt
  2679. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Updated doc
  2681. * src/version_usage.cc
  2682. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Winsock select() doesn't work if no socket is in FD_SET. To
  2684. overcome this problem, a dummy socket is added to FD_SET and it is
  2685. given to select().
  2686. * src/SelectEventPoll.cc
  2687. * src/SelectEventPoll.h
  2688. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Disabled --use-head option by default because --use-head=true
  2690. causes problems on some web sites.
  2691. * src/OptionHandlerFactory.cc
  2692. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Print URL List in -S option for torrent.
  2694. * src/bittorrent_helper.cc
  2695. * src/bittorrent_helper.h
  2696. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Allocate buffer in ctor of DownloadCommand.
  2698. * src/DownloadCommand.cc
  2699. * src/DownloadCommand.h
  2700. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Removed DiskAdaptor::onDownloadComplete()
  2702. * src/DirectDiskAdaptor.cc
  2703. * src/DirectDiskAdaptor.h
  2704. * src/DiskAdaptor.h
  2705. * src/MultiDiskAdaptor.cc
  2706. * src/MultiDiskAdaptor.h
  2707. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Committed missing BtStopDownloadCommand.{cc,h}
  2709. * src/BtStopDownloadCommand.cc
  2710. * src/BtStopDownloadCommand.h
  2711. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2713. download if the download speed is 0 and the number of seeder is 0
  2714. in consecutive SEC seconds. By default, this function is disabled.
  2715. * src/BtSetup.cc
  2716. * src/Makefile.am
  2717. * src/OptionHandlerFactory.cc
  2718. * src/prefs.cc
  2719. * src/prefs.h
  2720. * src/usage_text.h
  2721. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Removed the call to DiskAdaptor::onDownloadComplete() from
  2723. BtCheckIntegrityEntry and DefaultPieceStorage.
  2724. * src/BtCheckIntegrityEntry.cc
  2725. * src/DefaultPieceStorage.cc
  2726. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Commented out throw statements when number of piece is 0 to
  2728. download 0 length torrent.
  2729. * src/bittorrent_helper.cc
  2730. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Call RequestGroup::createNextCommandWithAdj() from
  2732. BtFileAllocationEntry if at least one FileEntry has URI. The
  2733. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2734. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2735. * src/BtFileAllocationEntry.cc
  2736. * src/FileEntry.h
  2737. * src/RequestGroup.cc
  2738. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Generate peer ID after SimpleRandomizer is initialized.
  2740. * src/main.cc
  2741. * src/option_processing.cc
  2742. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Removed unused method argument.
  2744. * src/CreateRequestCommand.cc
  2745. * src/RequestGroup.cc
  2746. * src/RequestGroup.h
  2747. * src/RequestGroupMan.cc
  2748. * src/TrackerWatcherCommand.cc
  2749. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Made URI reusing function work.
  2751. * src/CreateRequestCommand.cc
  2752. * src/FileEntry.cc
  2753. * src/FileEntry.h
  2754. * test/FileEntryTest.cc
  2755. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Add formerly fastest PeerStat's sessionDownloadLength to new
  2757. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2758. bytes in a session.
  2759. * src/PeerStat.cc
  2760. * src/SegmentMan.cc
  2761. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. If pipelining is enabled, we can always pool socket.
  2763. * src/HttpDownloadCommand.cc
  2764. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. In a single file download, file size becomes known just after
  2766. downloading, set total length to FileEntry object when download
  2767. completed.
  2768. * src/DownloadCommand.cc
  2769. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Use std::vector::reserve() for fileEntries and pieceHashes in
  2771. bittorrent_helper
  2772. * src/bittorrent_helper.cc
  2773. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2775. Removed hidden option PREF_RESET_URI.
  2776. * src/AbstractCommand.cc
  2777. * src/OptionHandlerFactory.cc
  2778. * src/prefs.cc
  2779. * src/prefs.h
  2780. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Removed unused variable/function.
  2782. * src/PeerStat.h
  2783. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Show first URL in Download Results if file path is not available.
  2785. * src/FileEntry.h
  2786. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Throw exception if file path doesn't exist in FTP URL.
  2788. * src/InitiateConnectionCommandFactory.cc
  2789. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2791. * src/BitfieldMan.cc
  2792. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2794. of PeerStat in SegmentMan. peerStats is used for calculating
  2795. download speed. Therefore all active PeerStats should be in
  2796. there. Another one is _fastestPeerStats and it only contains
  2797. fastest PeerStat for each hostname/protocol pair. They are used
  2798. for updating ServerStat.
  2799. * src/DownloadCommand.cc
  2800. * src/Request.h
  2801. * src/RequestGroupMan.cc
  2802. * src/SegmentMan.cc
  2803. * src/SegmentMan.h
  2804. * test/SegmentManTest.cc
  2805. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Try all available addresses returned by DNS until it gets
  2807. connected in HTTP(S)/FTP download
  2808. * src/AbstractCommand.cc
  2809. * src/AbstractCommand.h
  2810. * src/AbstractProxyRequestCommand.cc
  2811. * src/AbstractProxyRequestCommand.h
  2812. * src/DNSCache.h
  2813. * src/DownloadEngine.cc
  2814. * src/DownloadEngine.h
  2815. * src/FtpInitiateConnectionCommand.cc
  2816. * src/FtpInitiateConnectionCommand.h
  2817. * src/FtpNegotiationCommand.cc
  2818. * src/FtpNegotiationCommand.h
  2819. * src/HttpInitiateConnectionCommand.cc
  2820. * src/HttpInitiateConnectionCommand.h
  2821. * src/HttpRequestCommand.cc
  2822. * src/HttpRequestCommand.h
  2823. * src/InitiateConnectionCommand.cc
  2824. * src/InitiateConnectionCommand.h
  2825. * test/DNSCacheTest.cc
  2826. * test/Makefile.am
  2827. * test/SimpleDNSCacheTest.cc
  2828. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Updated doc
  2830. * src/download_helper.cc
  2831. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Refactored fieldMan ctor.
  2833. * src/BitfieldMan.cc
  2834. * src/BitfieldMan.h
  2835. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Don't print "No files to download." message if -S is given.
  2837. * src/main.cc
  2838. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Set referer and method to newly created Request object.
  2840. * src/CreateRequestCommand.cc
  2841. * src/FileEntry.cc
  2842. * src/FileEntry.h
  2843. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2845. * src/AbstractCommand.cc
  2846. * src/AbstractCommand.h
  2847. * src/CreateRequestCommand.cc
  2848. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Get proxy download working
  2850. * src/AbstractProxyRequestCommand.cc
  2851. * src/AbstractProxyRequestCommand.h
  2852. * src/AbstractProxyResponseCommand.cc
  2853. * src/AbstractProxyResponseCommand.h
  2854. * src/FtpInitiateConnectionCommand.cc
  2855. * src/FtpTunnelRequestCommand.cc
  2856. * src/FtpTunnelRequestCommand.h
  2857. * src/FtpTunnelResponseCommand.cc
  2858. * src/FtpTunnelResponseCommand.h
  2859. * src/HttpInitiateConnectionCommand.cc
  2860. * src/HttpProxyRequestCommand.cc
  2861. * src/HttpProxyRequestCommand.h
  2862. * src/HttpProxyResponseCommand.cc
  2863. * src/HttpProxyResponseCommand.h
  2864. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Use SegmentMan::getSegment(cuid) for single file download.
  2866. * src/AbstractCommand.cc
  2867. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2868. Fixed bufSize calculation
  2869. * src/DownloadCommand.cc
  2870. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Don't append "/" if base URI ends with "/".
  2872. * src/bittorrent_helper.cc
  2873. * test/url-list-multiFile.torrent
  2874. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. HTTP pipelining is now working. Fixed Segmention fault in
  2876. BitfieldMan's copy ctor.
  2877. * src/AbstractCommand.cc
  2878. * src/BitfieldMan.cc
  2879. * src/BitfieldMan.h
  2880. * src/DownloadCommand.cc
  2881. * src/HttpDownloadCommand.cc
  2882. * src/HttpRequest.cc
  2883. * src/SegmentMan.cc
  2884. * src/SegmentMan.h
  2885. * test/BitfieldManTest.cc
  2886. * test/SegmentManTest.cc
  2887. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Removed ServerHost. Same functionality is implemented using
  2889. FileEntry's in-flight Request objects.
  2890. * src/AbstractCommand.cc
  2891. * src/BtDependency.cc
  2892. * src/CreateRequestCommand.cc
  2893. * src/FileEntry.cc
  2894. * src/FileEntry.h
  2895. * src/FtpNegotiationCommand.cc
  2896. * src/HttpResponseCommand.cc
  2897. * src/Makefile.am
  2898. * src/Metalink2RequestGroup.cc
  2899. * src/RequestGroup.cc
  2900. * src/RequestGroup.h
  2901. * src/ServerHost.cc: Removed
  2902. * src/ServerHost.h: Removed
  2903. * test/BtDependencyTest.cc
  2904. * test/FileEntryTest.cc
  2905. * test/RequestGroupTest.cc
  2906. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Rewritten PeerStat handling. In the previous implementation,
  2908. faster command tries to find slower command. In this new
  2909. implementation, slower command tries to find faster command.
  2910. PeerStat is now created in each HTTP/FTP request to get download
  2911. rate correctly. If the download range is small, the download rate
  2912. tends to small and this will occur at the later stage of download.
  2913. * src/AbstractCommand.cc
  2914. * src/DownloadCommand.cc
  2915. * src/FileEntry.cc
  2916. * src/FileEntry.h
  2917. * src/Request.cc
  2918. * src/Request.h
  2919. * src/RequestGroup.h
  2920. * src/RequestGroupMan.cc
  2921. * src/SegmentMan.cc
  2922. * src/SegmentMan.h
  2923. * test/SegmentManTest.cc
  2924. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Removed _uris from RequestGroup. All functions that refer to _uris
  2926. were moved to FileEntry. Exit status code are now defined in
  2927. DownloadResultCode.h.
  2928. * src/AbstractCommand.cc
  2929. * src/AdaptiveURISelector.cc
  2930. * src/AdaptiveURISelector.h
  2931. * src/AutoSaveCommand.cc
  2932. * src/BtPostDownloadHandler.cc
  2933. * src/CheckIntegrityDispatcherCommand.cc
  2934. * src/CookieStorage.cc
  2935. * src/DHTAutoSaveCommand.cc
  2936. * src/DHTBucketRefreshCommand.cc
  2937. * src/DHTEntryPointNameResolveCommand.cc
  2938. * src/DHTInteractionCommand.cc
  2939. * src/DHTPeerAnnounceCommand.cc
  2940. * src/DHTTokenUpdateCommand.cc
  2941. * src/DlAbortEx.h
  2942. * src/DlRetryEx.h
  2943. * src/DownloadCommand.cc
  2944. * src/DownloadContext.h
  2945. * src/DownloadFailureException.h
  2946. * src/DownloadResult.h
  2947. * src/DownloadResultCode.h
  2948. * src/FeedbackURISelector.cc
  2949. * src/FeedbackURISelector.h
  2950. * src/FileEntry.cc
  2951. * src/FileEntry.h
  2952. * src/FtpNegotiationCommand.cc
  2953. * src/HttpListenCommand.cc
  2954. * src/HttpResponseCommand.cc
  2955. * src/HttpServerResponseCommand.cc
  2956. * src/HttpSkipResponseCommand.cc
  2957. * src/InOrderURISelector.cc
  2958. * src/InOrderURISelector.h
  2959. * src/Makefile.am
  2960. * src/Makefile.in
  2961. * src/Metalink2RequestGroup.cc
  2962. * src/MultiUrlRequestInfo.cc
  2963. * src/MultiUrlRequestInfo.h
  2964. * src/OptionHandlerFactory.cc
  2965. * src/PeerListenCommand.cc
  2966. * src/RecoverableException.h
  2967. * src/RequestGroup.cc
  2968. * src/RequestGroup.h
  2969. * src/RequestGroupMan.cc
  2970. * src/RequestGroupMan.h
  2971. * src/TimedHaltCommand.cc
  2972. * src/TrackerWatcherCommand.cc
  2973. * src/URIResult.cc
  2974. * src/URIResult.h
  2975. * src/URISelector.h
  2976. * src/XmlRpcMethodImpl.cc
  2977. * src/bittorrent_helper.cc
  2978. * src/bittorrent_helper.h
  2979. * src/download_helper.cc
  2980. * src/main.cc
  2981. * src/option_processing.cc
  2982. * test/BtDependencyTest.cc
  2983. * test/BtPostDownloadHandlerTest.cc
  2984. * test/CookieStorageTest.cc
  2985. * test/DefaultBtMessageDispatcherTest.cc
  2986. * test/DownloadHandlerFactoryTest.cc
  2987. * test/DownloadHelperTest.cc
  2988. * test/FeedbackURISelectorTest.cc
  2989. * test/FileEntryTest.cc
  2990. * test/InOrderURISelectorTest.cc
  2991. * test/Metalink2RequestGroupTest.cc
  2992. * test/MetalinkPostDownloadHandlerTest.cc
  2993. * test/RequestGroupManTest.cc
  2994. * test/RequestGroupTest.cc
  2995. * test/XmlRpcMethodTest.cc
  2996. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Removed MockBtContext.h
  2998. * test/Makefile.am
  2999. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Removed _currentRequest from StreamCheckIntegrityEntry and
  3001. StreamFileAllocationEntry.
  3002. * src/AbstractCommand.cc
  3003. * src/HttpResponseCommand.cc
  3004. * src/RequestGroup.cc
  3005. * src/StreamCheckIntegrityEntry.cc
  3006. * src/StreamCheckIntegrityEntry.h
  3007. * src/StreamFileAllocationEntry.cc
  3008. * src/StreamFileAllocationEntry.h
  3009. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Rewritten DownloadContext and removed SingleFileDownloadContext
  3011. and BtContext and its derived classes. BitTorrent specific
  3012. attributes are now set by DownloadContext::setAttribute() with key
  3013. bittorrent::BITTORRENT.
  3014. * src/AbstractBtMessage.cc
  3015. * src/AbstractBtMessage.h
  3016. * src/AbstractCommand.cc
  3017. * src/AbstractCommand.h
  3018. * src/AbstractProxyRequestCommand.cc
  3019. * src/AbstractProxyResponseCommand.cc
  3020. * src/ActivePeerConnectionCommand.cc
  3021. * src/ActivePeerConnectionCommand.h
  3022. * src/AnnounceList.cc
  3023. * src/BtCheckIntegrityEntry.cc
  3024. * src/BtConstants.h
  3025. * src/BtContext.h: Removed
  3026. * src/BtDependency.cc
  3027. * src/BtExtendedMessage.cc
  3028. * src/BtPieceMessage.cc
  3029. * src/BtPieceMessage.h
  3030. * src/BtPostDownloadHandler.cc
  3031. * src/BtRegistry.cc
  3032. * src/BtRegistry.h
  3033. * src/BtSetup.cc
  3034. * src/CheckIntegrityCommand.cc
  3035. * src/CheckIntegrityEntry.cc
  3036. * src/ChecksumCheckIntegrityEntry.cc
  3037. * src/ConsoleStatCalc.cc
  3038. * src/ContentTypeRequestGroupCriteria.cc
  3039. * src/DHTGetPeersCommand.cc
  3040. * src/DHTGetPeersCommand.h
  3041. * src/DHTPeerLookupTask.cc
  3042. * src/DHTPeerLookupTask.h
  3043. * src/DHTTaskFactory.h
  3044. * src/DHTTaskFactoryImpl.cc
  3045. * src/DHTTaskFactoryImpl.h
  3046. * src/DefaultBtAnnounce.cc
  3047. * src/DefaultBtAnnounce.h
  3048. * src/DefaultBtContext.cc: Removed
  3049. * src/DefaultBtContext.h: Removed
  3050. * src/DefaultBtInteractive.cc
  3051. * src/DefaultBtInteractive.h
  3052. * src/DefaultBtMessageDispatcher.cc
  3053. * src/DefaultBtMessageDispatcher.h
  3054. * src/DefaultBtMessageFactory.cc
  3055. * src/DefaultBtMessageFactory.h
  3056. * src/DefaultBtMessageReceiver.cc
  3057. * src/DefaultBtMessageReceiver.h
  3058. * src/DefaultBtProgressInfoFile.cc
  3059. * src/DefaultBtRequestFactory.cc
  3060. * src/DefaultBtRequestFactory.h
  3061. * src/DefaultExtensionMessageFactory.cc
  3062. * src/DefaultExtensionMessageFactory.h
  3063. * src/DefaultPeerStorage.cc
  3064. * src/DefaultPeerStorage.h
  3065. * src/DefaultPieceStorage.cc
  3066. * src/DefaultSegmentManFactory.cc
  3067. * src/DiskAdaptor.cc
  3068. * src/DiskAdaptor.h
  3069. * src/DownloadContext.cc
  3070. * src/DownloadContext.h
  3071. * src/DownloadEngine.cc
  3072. * src/DownloadEngineFactory.cc
  3073. * src/DownloadHandler.cc
  3074. * src/DownloadResult.h
  3075. * src/FileAllocationCommand.cc
  3076. * src/FileAllocationDispatcherCommand.cc
  3077. * src/FileAllocationEntry.cc
  3078. * src/FileEntry.h
  3079. * src/FillRequestGroupCommand.cc
  3080. * src/FtpDownloadCommand.cc
  3081. * src/FtpFinishDownloadCommand.cc
  3082. * src/FtpInitiateConnectionCommand.cc
  3083. * src/FtpNegotiationCommand.cc
  3084. * src/FtpTunnelRequestCommand.cc
  3085. * src/FtpTunnelResponseCommand.cc
  3086. * src/HandshakeExtensionMessage.cc
  3087. * src/HandshakeExtensionMessage.h
  3088. * src/HaveEraseCommand.cc
  3089. * src/HttpDownloadCommand.cc
  3090. * src/HttpInitiateConnectionCommand.cc
  3091. * src/HttpProxyRequestCommand.cc
  3092. * src/HttpProxyResponseCommand.cc
  3093. * src/HttpRequest.cc
  3094. * src/HttpRequest.h
  3095. * src/HttpRequestCommand.cc
  3096. * src/HttpResponseCommand.cc
  3097. * src/HttpServerBodyCommand.cc
  3098. * src/HttpServerCommand.cc
  3099. * src/HttpSkipResponseCommand.cc
  3100. * src/InitiateConnectionCommandFactory.cc
  3101. * src/InitiatorMSEHandshakeCommand.cc
  3102. * src/InitiatorMSEHandshakeCommand.h
  3103. * src/IteratableChecksumValidator.cc
  3104. * src/IteratableChecksumValidator.h
  3105. * src/IteratableChunkChecksumValidator.cc
  3106. * src/MSEHandshake.cc
  3107. * src/MSEHandshake.h
  3108. * src/Makefile.am
  3109. * src/Makefile.in
  3110. * src/Metalink2RequestGroup.cc
  3111. * src/MetalinkPostDownloadHandler.cc
  3112. * src/MultiDiskAdaptor.cc
  3113. * src/MultiDiskAdaptor.h
  3114. * src/MultiFileAllocationIterator.cc
  3115. * src/MultiUrlRequestInfo.cc
  3116. * src/PeerChokeCommand.cc
  3117. * src/PeerChokeCommand.h
  3118. * src/PeerInitiateConnectionCommand.cc
  3119. * src/PeerInitiateConnectionCommand.h
  3120. * src/PeerInteractionCommand.cc
  3121. * src/PeerInteractionCommand.h
  3122. * src/PeerReceiveHandshakeCommand.cc
  3123. * src/PieceHashCheckIntegrityEntry.cc
  3124. * src/RealtimeCommand.cc
  3125. * src/ReceiverMSEHandshakeCommand.cc
  3126. * src/RequestGroup.cc
  3127. * src/RequestGroup.h
  3128. * src/RequestGroupEntry.cc
  3129. * src/RequestGroupMan.cc
  3130. * src/SeedCheckCommand.cc
  3131. * src/SeedCheckCommand.h
  3132. * src/SegmentMan.cc
  3133. * src/ShareRatioSeedCriteria.h
  3134. * src/SingleFileDownloadContext.cc: Removed
  3135. * src/SingleFileDownloadContext.h: Removed
  3136. * src/SleepCommand.cc
  3137. * src/StreamCheckIntegrityEntry.cc
  3138. * src/TrackerWatcherCommand.cc
  3139. * src/TrackerWatcherCommand.h
  3140. * src/UnknownLengthPieceStorage.cc
  3141. * src/Util.cc
  3142. * src/Util.h
  3143. * src/XmlRpcMethodImpl.cc
  3144. * src/bittorrent_helper.cc
  3145. * src/bittorrent_helper.h
  3146. * src/download_helper.cc
  3147. * src/main.cc
  3148. * src/option_processing.cc
  3149. * test/BitfieldManTest.cc
  3150. * test/BittorrentHelperTest.cc
  3151. * test/BtCancelMessageTest.cc
  3152. * test/BtChokeMessageTest.cc
  3153. * test/BtDependencyTest.cc
  3154. * test/BtPieceMessageTest.cc
  3155. * test/BtPostDownloadHandlerTest.cc
  3156. * test/BtRegistryTest.cc
  3157. * test/BtRejectMessageTest.cc
  3158. * test/BtRequestMessageTest.cc
  3159. * test/DHTPeerAnnounceStorageTest.cc
  3160. * test/DefaultBtAnnounceTest.cc
  3161. * test/DefaultBtContextTest.cc: Removed
  3162. * test/DefaultBtMessageDispatcherTest.cc
  3163. * test/DefaultBtMessageFactoryTest.cc
  3164. * test/DefaultBtProgressInfoFileTest.cc
  3165. * test/DefaultBtRequestFactoryTest.cc
  3166. * test/DefaultExtensionMessageFactoryTest.cc
  3167. * test/DefaultPeerStorageTest.cc
  3168. * test/DefaultPieceStorageTest.cc
  3169. * test/DirectDiskAdaptorTest.cc
  3170. * test/DownloadContextTest.cc
  3171. * test/DownloadHandlerFactoryTest.cc
  3172. * test/DownloadHelperTest.cc
  3173. * test/HandshakeExtensionMessageTest.cc
  3174. * test/HttpRequestTest.cc
  3175. * test/HttpResponseTest.cc
  3176. * test/IteratableChecksumValidatorTest.cc
  3177. * test/IteratableChunkChecksumValidatorTest.cc
  3178. * test/MSEHandshakeTest.cc
  3179. * test/Makefile.am
  3180. * test/Makefile.in
  3181. * test/Metalink2RequestGroupTest.cc
  3182. * test/MetalinkPostDownloadHandlerTest.cc
  3183. * test/MockBtContext.h: Removed
  3184. * test/MockDHTTaskFactory.h
  3185. * test/MockDownloadContext.h: Removed
  3186. * test/MockPieceStorage.h
  3187. * test/MultiDiskAdaptorTest.cc
  3188. * test/MultiFileAllocationIteratorTest.cc
  3189. * test/RequestGroupManTest.cc
  3190. * test/RequestGroupTest.cc
  3191. * test/SegmentManTest.cc
  3192. * test/ShareRatioSeedCriteriaTest.cc
  3193. * test/SingleFileDownloadContextTest.cc: Removed
  3194. * test/UtilTest.cc
  3195. * test/XmlRpcMethodTest.cc
  3196. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Added experimental support of WEB-Seeding for multi-file torrent.
  3198. Due to fundamental changes in file handling in HTTP/FTP code, many
  3199. functions are not working: PeerStat, ServerHost, proxy..etc
  3200. * src/AbstractCommand.cc
  3201. * src/AbstractCommand.h
  3202. * src/BitfieldMan.cc
  3203. * src/BitfieldMan.h
  3204. * src/CreateRequestCommand.cc
  3205. * src/CreateRequestCommand.h
  3206. * src/DefaultPieceStorage.cc
  3207. * src/DefaultPieceStorage.h
  3208. * src/DownloadCommand.cc
  3209. * src/DownloadCommand.h
  3210. * src/DownloadContext.cc
  3211. * src/DownloadContext.h
  3212. * src/FileEntry.cc
  3213. * src/FileEntry.h
  3214. * src/FtpDownloadCommand.cc
  3215. * src/FtpDownloadCommand.h
  3216. * src/FtpFinishDownloadCommand.cc
  3217. * src/FtpFinishDownloadCommand.h
  3218. * src/FtpInitiateConnectionCommand.cc
  3219. * src/FtpInitiateConnectionCommand.h
  3220. * src/FtpNegotiationCommand.cc
  3221. * src/FtpNegotiationCommand.h
  3222. * src/FtpTunnelResponseCommand.cc
  3223. * src/HttpDownloadCommand.cc
  3224. * src/HttpDownloadCommand.h
  3225. * src/HttpInitiateConnectionCommand.cc
  3226. * src/HttpInitiateConnectionCommand.h
  3227. * src/HttpProxyResponseCommand.cc
  3228. * src/HttpRequest.cc
  3229. * src/HttpRequest.h
  3230. * src/HttpRequestCommand.cc
  3231. * src/HttpRequestCommand.h
  3232. * src/HttpResponseCommand.cc
  3233. * src/HttpResponseCommand.h
  3234. * src/HttpSkipResponseCommand.cc
  3235. * src/HttpSkipResponseCommand.h
  3236. * src/InitiateConnectionCommand.cc
  3237. * src/InitiateConnectionCommand.h
  3238. * src/InitiateConnectionCommandFactory.cc
  3239. * src/InitiateConnectionCommandFactory.h
  3240. * src/Makefile.am
  3241. * src/PieceStorage.h
  3242. * src/RequestGroup.cc
  3243. * src/RequestGroup.h
  3244. * src/RequestGroupMan.cc
  3245. * src/SegmentMan.cc
  3246. * src/SegmentMan.h
  3247. * src/SingleFileDownloadContext.h
  3248. * src/StreamFileAllocationEntry.cc
  3249. * src/TrackerWatcherCommand.cc
  3250. * src/UnknownLengthPieceStorage.cc
  3251. * src/UnknownLengthPieceStorage.h
  3252. * src/array_fun.h
  3253. * src/bitfield.h
  3254. * src/download_helper.cc
  3255. * test/DownloadContextTest.cc
  3256. * test/Makefile.am
  3257. * test/MockDownloadContext.h
  3258. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Added tellWaiting XML-RPC method.
  3260. * src/SingleFileDownloadContext.cc
  3261. * src/XmlRpcMethodFactory.cc
  3262. * src/XmlRpcMethodImpl.cc
  3263. * src/XmlRpcMethodImpl.h
  3264. * test/XmlRpcMethodTest.cc
  3265. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Updated CookieStorageTest
  3267. * test/CookieStorageTest.cc
  3268. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3270. handle excepion inside these functions.
  3271. * src/LibgnutlsTLSContext.cc
  3272. * src/LibgnutlsTLSContext.h
  3273. * src/LibsslTLSContext.cc
  3274. * src/LibsslTLSContext.h
  3275. * src/MultiUrlRequestInfo.cc
  3276. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Added comment
  3278. * src/RequestGroup.cc
  3279. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. In CookieStorage::load() and saveNsFormat(), handle exception
  3281. inside the functions. When saving Cookies, first write temporary
  3282. file and after successful writes, then renames it to final
  3283. destination.
  3284. * src/CookieStorage.cc
  3285. * src/CookieStorage.h
  3286. * src/MultiUrlRequestInfo.cc
  3287. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. The default value of --dir option is the absolute path to the
  3289. current directory. If getcwd() is failed, then it is ".", which is
  3290. the same value with old implementation. This change is necessary
  3291. because after daemon() call, the current working directory is
  3292. changed to /.
  3293. * src/File.cc
  3294. * src/File.h
  3295. * src/OptionHandlerFactory.cc
  3296. * src/option_processing.cc
  3297. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Call daemon() with arguments(0,0), which means daemon() changes
  3299. current working directory to / and redirects stdin, stdout and
  3300. stderr to /dev/null.
  3301. * src/option_processing.cc
  3302. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Small performance optimizations.
  3304. * src/RequestGroupMan.cc
  3305. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3307. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3308. * src/RequestGroupMan.cc
  3309. * src/RequestGroupMan.h
  3310. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3312. setNoWiat(true) if newly created command calls
  3313. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3314. * src/HttpListenCommand.cc
  3315. * src/HttpServerBodyCommand.cc
  3316. * src/HttpServerCommand.cc
  3317. * src/HttpServerResponseCommand.cc
  3318. * src/InitiateConnectionCommand.cc
  3319. * src/RequestGroup.cc
  3320. * src/StreamFileAllocationEntry.cc
  3321. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Removed include vector
  3323. * src/BtRegistry.h
  3324. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Rewritten BtRegistry
  3326. * src/BtRegistry.cc
  3327. * src/BtRegistry.h
  3328. * src/BtSetup.cc
  3329. * src/ConsoleStatCalc.cc
  3330. * src/PeerInteractionCommand.cc
  3331. * src/PeerReceiveHandshakeCommand.cc
  3332. * src/ReceiverMSEHandshakeCommand.cc
  3333. * src/RequestGroup.cc
  3334. * src/XmlRpcMethodImpl.cc
  3335. * test/BtRegistryTest.cc
  3336. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3338. * src/DefaultBtProgressInfoFile.cc
  3339. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Throw an exception if position is less than 0.
  3341. * src/XmlRpcMethodImpl.cc
  3342. * test/XmlRpcMethodTest.cc
  3343. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. Use writeFilePath() in ConsoleStatCalc.cc
  3345. * src/ConsoleStatCalc.cc
  3346. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Receive the return value as const reference from
  3348. DownloadContext::getFileEntries().
  3349. * src/DefaultPieceStorage.cc
  3350. * src/RequestGroupMan.cc
  3351. * src/XmlRpcMethodImpl.cc
  3352. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. DownloadContext now has _fileEntries so that
  3354. DownloadContext::getFileEntries() can returns its const reference.
  3355. * src/DefaultBtContext.cc
  3356. * src/DefaultBtContext.h
  3357. * src/DownloadContext.cc
  3358. * src/DownloadContext.h
  3359. * src/SingleFileDownloadContext.cc
  3360. * src/SingleFileDownloadContext.h
  3361. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3363. writeFilePath() function template from RequestGroupMan.cc to
  3364. FileEntry.h
  3365. * src/FileEntry.h
  3366. * src/RequestGroupMan.cc
  3367. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Documented 'position' parameter is starting from 0 in man page.
  3369. * doc/aria2c.1.txt
  3370. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Updated doc.
  3372. * src/MSEHandshake.cc
  3373. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Removed _acceptFeatures and its accessor functions from
  3375. RequestGroup since they are not used practically.
  3376. * src/HttpRequestCommand.cc
  3377. * src/RequestGroup.cc
  3378. * src/RequestGroup.h
  3379. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Removed member _maxTries from RequestGroup class to avoid
  3381. duplicate option value. Those classes who refer this variable
  3382. should use option value of PREF_MAX_TRIES directly.
  3383. * src/AbstractCommand.cc
  3384. * src/RequestGroup.cc
  3385. * src/RequestGroup.h
  3386. * src/TrackerWatcherCommand.cc
  3387. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3388. * Release 1.4.1
  3389. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Fixed compiler warnings on netbsd
  3391. * src/DHTConnectionImpl.cc
  3392. * src/PeerListenCommand.cc
  3393. * src/PeerSessionResource.cc
  3394. * src/SegmentMan.cc
  3395. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Updated Ukrainian translation. Thanks to all translators.
  3397. * po/uk.po
  3398. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Bump up version number to 1.4.1.
  3400. * configure.ac
  3401. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Added unit tests for strjoin, strconcat and strappend.
  3403. * test/a2functionalTest.cc
  3404. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Rewritten strconcat and strappend using operator+ instead of
  3406. append().
  3407. * src/a2functional.h
  3408. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3410. is enabled.
  3411. * src/Makefile.am
  3412. * test/Makefile.am
  3413. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Added countSeeder() function which counts seeder in the given
  3415. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3416. * src/ConsoleStatCalc.cc
  3417. * src/Peer.h
  3418. * src/XmlRpcMethodImpl.cc
  3419. * test/PeerTest.cc
  3420. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Documented missing seeder in getPeers xml-rpc method.
  3422. Documented uploadLength and numSeeders.
  3423. * doc/aria2c.1.txt
  3424. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Added uploadLength and numSeeders to the response of tellStatus
  3426. xml-rpc method. Assert that PeerStorage instance is not null
  3427. instead of checking if statement. It should be non-null in this
  3428. context.
  3429. * src/XmlRpcMethodImpl.cc
  3430. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3432. * src/XmlRpcResponse.cc
  3433. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Avoid intermediate object during string concatenation.
  3435. * src/HttpRequest.cc
  3436. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Added strjoin function template. Use it in pathJoin()
  3438. * src/Util.h
  3439. * src/a2functional.h
  3440. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Avoid intermediate object during string concatenation. Replaced
  3442. post-increment unary operator with pre-increment one in for loop.
  3443. * src/AdaptiveURISelector.cc
  3444. * src/AnnounceList.cc
  3445. * src/AuthConfig.h
  3446. * src/BtBitfieldMessage.cc
  3447. * src/BtExtendedMessage.cc
  3448. * src/BtHandshakeMessage.cc
  3449. * src/BtPieceMessage.cc
  3450. * src/BtPortMessage.cc
  3451. * src/Cookie.cc
  3452. * src/DHTAnnouncePeerMessage.cc
  3453. * src/DHTAutoSaveCommand.cc
  3454. * src/DHTGetPeersReplyMessage.cc
  3455. * src/DHTNode.cc
  3456. * src/DHTQueryMessage.cc
  3457. * src/DHTResponseMessage.cc
  3458. * src/DHTUnknownMessage.cc
  3459. * src/DefaultBtAnnounce.cc
  3460. * src/DefaultBtContext.cc
  3461. * src/DefaultBtInteractive.cc
  3462. * src/DefaultBtProgressInfoFile.cc
  3463. * src/DefaultPeerStorage.cc
  3464. * src/DownloadEngine.cc
  3465. * src/FeatureConfig.cc
  3466. * src/File.cc
  3467. * src/FtpConnection.cc
  3468. * src/FtpNegotiationCommand.cc
  3469. * src/HandshakeExtensionMessage.cc
  3470. * src/HttpConnection.cc
  3471. * src/HttpRequest.cc
  3472. * src/HttpResponseCommand.cc
  3473. * src/HttpServer.cc
  3474. * src/IndexBtMessage.cc
  3475. * src/Metalink2RequestGroup.cc
  3476. * src/OptionHandlerImpl.h
  3477. * src/PStringBuildVisitor.cc
  3478. * src/Peer.cc
  3479. * src/PeerListenCommand.cc
  3480. * src/Piece.cc
  3481. * src/RangeBtMessage.cc
  3482. * src/Request.cc
  3483. * src/Request.h
  3484. * src/RequestGroup.cc
  3485. * src/RequestGroupMan.cc
  3486. * src/ServerStat.cc
  3487. * src/ServerStatMan.cc
  3488. * src/UTPexExtensionMessage.cc
  3489. * src/Util.cc
  3490. * src/a2functional.h
  3491. * src/download_helper.cc
  3492. * src/messageDigest.cc
  3493. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Unchoke a peer randomly at first and second choke round in seed
  3495. state.
  3496. * src/BtSeederStateChoke.cc
  3497. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3498. Added (sock_t) to quiet compiler warnings in MinGW
  3499. * src/SocketCore.cc
  3500. * src/SocketCore.h
  3501. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3503. * src/EpollEventPoll.h
  3504. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3505. Added fork() emulation using CreateProcess() in MinGW
  3506. * src/RequestGroupMan.cc
  3507. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. * Release 1.4.0
  3509. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Added utf8.torrent to EXTRA_DIST
  3511. * test/Makefile.am
  3512. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Fixed docs of aria2.addMetalink xml-rpc method.
  3514. * doc/aria2c.1.txt
  3515. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Added Slovak translation. Updated Ukrainian and Brazilian
  3517. Portuguese translation. Thanks to all translators.
  3518. * po/sk.po
  3519. * po/uk.po
  3520. * po/pt_BR.po
  3521. * po/LINGUAS
  3522. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Added test case for XmlRpcProcessor to fail to parse malformed
  3524. document.
  3525. * test/XmlRpcRequestProcessorTest.cc
  3526. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Removed *.gmo files in po because they are generated on 'make
  3528. dist'
  3529. * po/*.gmo
  3530. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Documented max-concurrent-downloads of changeGlobalOption method
  3532. in man page.
  3533. * doc/aria2c.1.txt
  3534. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Added max-concurrent-downloads option to changeGlobalOption
  3536. xml-rpc method. Rewritten loop conditional in
  3537. RequestGroupMan::fillRequestGroupFromReserver().
  3538. * src/RequestGroupMan.cc
  3539. * src/RequestGroupMan.h
  3540. * src/XmlRpcMethod.cc
  3541. * src/XmlRpcMethodImpl.cc
  3542. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Documented position parameter in man page.
  3544. * doc/aria2c.1.txt
  3545. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Added 'position' parameter to addUri, addTorrent and addMetalink
  3547. xml-rpc method.
  3548. * src/RequestGroupMan.cc
  3549. * src/RequestGroupMan.h
  3550. * src/XmlRpcMethodImpl.cc
  3551. * test/XmlRpcMethodTest.cc
  3552. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Removed Peer.cc from compile source list when --disable-bittorrent
  3554. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3555. takes Peer.
  3556. * src/DefaultPieceStorage.cc
  3557. * src/DefaultPieceStorage.h
  3558. * src/Makefile.am
  3559. * src/PieceStorage.h
  3560. * src/UnknownLengthPieceStorage.cc
  3561. * src/UnknownLengthPieceStorage.h
  3562. * test/MockPieceStorage.h
  3563. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3564. Implemented getter methods in header files to give them more
  3565. chance of optimization.
  3566. Return const reference for SharadHandle if possible.
  3567. * src/AbstractAuthResolver.cc
  3568. * src/AbstractAuthResolver.h
  3569. * src/AbstractBtMessage.cc
  3570. * src/AbstractBtMessage.h
  3571. * src/AbstractSingleDiskAdaptor.cc
  3572. * src/AbstractSingleDiskAdaptor.h
  3573. * src/AsyncNameResolver.cc
  3574. * src/AsyncNameResolver.h
  3575. * src/BNode.cc
  3576. * src/BNode.h
  3577. * src/BitfieldMan.cc
  3578. * src/BitfieldMan.h
  3579. * src/BtAbortOutstandingRequestEvent.h
  3580. * src/BtExtendedMessage.cc
  3581. * src/BtExtendedMessage.h
  3582. * src/BtSeederStateChoke.cc
  3583. * src/BtSeederStateChoke.h
  3584. * src/Cookie.cc
  3585. * src/Cookie.h
  3586. * src/DHTBucket.cc
  3587. * src/DHTBucket.h
  3588. * src/DHTConnectionImpl.cc
  3589. * src/DHTConnectionImpl.h
  3590. * src/DHTFindNodeReplyMessage.cc
  3591. * src/DHTFindNodeReplyMessage.h
  3592. * src/DHTGetPeersReplyMessage.cc
  3593. * src/DHTGetPeersReplyMessage.h
  3594. * src/DHTInteractionCommand.cc
  3595. * src/DHTMessage.cc
  3596. * src/DHTMessage.h
  3597. * src/DHTMessageDispatcherImpl.cc
  3598. * src/DHTMessageEntry.cc
  3599. * src/DHTMessageReceiver.cc
  3600. * src/DHTMessageReceiver.h
  3601. * src/DHTMessageTrackerEntry.cc
  3602. * src/DHTMessageTrackerEntry.h
  3603. * src/DHTPeerAnnounceEntry.cc
  3604. * src/DHTPeerAnnounceEntry.h
  3605. * src/DHTPeerLookupTask.cc
  3606. * src/DHTPeerLookupTask.h
  3607. * src/DHTRoutingTableDeserializer.cc
  3608. * src/DHTRoutingTableDeserializer.h
  3609. * src/DefaultBtAnnounce.cc
  3610. * src/DefaultBtAnnounce.h
  3611. * src/DefaultBtMessageDispatcher.cc
  3612. * src/DefaultBtMessageDispatcher.h
  3613. * src/DefaultBtRequestFactory.cc
  3614. * src/DefaultBtRequestFactory.h
  3615. * src/DiskAdaptor.cc
  3616. * src/DiskAdaptor.h
  3617. * src/DownloadContext.cc
  3618. * src/DownloadContext.h
  3619. * src/DownloadEngine.cc
  3620. * src/DownloadEngine.h
  3621. * src/EpollEventPoll.cc
  3622. * src/EpollEventPoll.h
  3623. * src/FtpConnection.cc
  3624. * src/FtpConnection.h
  3625. * src/HttpConnection.cc
  3626. * src/HttpConnection.h
  3627. * src/HttpHeader.cc
  3628. * src/HttpHeader.h
  3629. * src/HttpRequest.cc
  3630. * src/HttpRequest.h
  3631. * src/HttpResponse.cc
  3632. * src/HttpResponse.h
  3633. * src/LibsslTLSContext.cc
  3634. * src/LibsslTLSContext.h
  3635. * src/MSEHandshake.cc
  3636. * src/MSEHandshake.h
  3637. * src/MetalinkEntry.cc
  3638. * src/MetalinkEntry.h
  3639. * src/MetalinkParserController.cc
  3640. * src/MetalinkParserController.h
  3641. * src/MetalinkParserStateMachine.cc
  3642. * src/MetalinkParserStateMachine.h
  3643. * src/MultiDiskAdaptor.cc
  3644. * src/MultiDiskAdaptor.h
  3645. * src/NetrcAuthResolver.cc
  3646. * src/NetrcAuthResolver.h
  3647. * src/Peer.cc
  3648. * src/Peer.h
  3649. * src/PeerSessionResource.cc
  3650. * src/PeerSessionResource.h
  3651. * src/Piece.cc
  3652. * src/Piece.h
  3653. * src/PieceStatMan.cc
  3654. * src/PieceStatMan.h
  3655. * src/Request.cc
  3656. * src/Request.h
  3657. * src/RequestGroup.cc
  3658. * src/RequestGroup.h
  3659. * src/RequestGroupMan.cc
  3660. * src/RequestGroupMan.h
  3661. * src/RequestSlot.cc
  3662. * src/RequestSlot.h
  3663. * src/SegmentMan.cc
  3664. * src/SegmentMan.h
  3665. * src/SelectEventPoll.cc
  3666. * src/SelectEventPoll.h
  3667. * src/ServerStat.cc
  3668. * src/ServerStat.h
  3669. * src/Signature.cc
  3670. * src/Signature.h
  3671. * src/URIResult.cc
  3672. * src/URIResult.h
  3673. * src/UTPexExtensionMessage.cc
  3674. * src/UTPexExtensionMessage.h
  3675. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Fixed compile error without BitTorrent and Metalink support.
  3677. * src/XmlRpcMethod.cc
  3678. * src/XmlRpcMethodFactory.cc
  3679. * src/XmlRpcMethodImpl.cc
  3680. * src/XmlRpcMethodImpl.h
  3681. * test/XmlRpcMethodTest.cc
  3682. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Rewritten the help message for --allow-overwrite option.
  3684. * doc/aria2c.1.txt
  3685. * src/usage_text.h
  3686. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Fixed typo
  3688. * doc/aria2c.1.txt
  3689. * src/usage_text.h
  3690. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Updated README for 1.4.0 release. Use new table syntax of
  3692. asciidoc.
  3693. * README
  3694. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Documented --xml-rpc-max-request-size option in man page.
  3696. * doc/aria2c.1.txt
  3697. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Moved C_* constants from BtContext to DefaultBtContext.
  3699. * src/BtContext.cc: Removed.
  3700. * src/BtContext.h
  3701. * src/DefaultBtContext.cc
  3702. * src/DefaultBtContext.h
  3703. * src/Makefile.am
  3704. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3706. path key respectively when persing .torrent file.
  3707. * src/BtContext.cc
  3708. * src/BtContext.h
  3709. * src/DefaultBtContext.cc
  3710. * test/DefaultBtContextTest.cc
  3711. * test/utf8.torrent
  3712. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Added --xml-rpc-max-request-size option to limit the size of
  3714. XML-RPC request.
  3715. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. Documented XML-RPC API in man page.
  3717. * doc/aria2c.1.txt
  3718. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3720. will break strict-aliasing rules
  3721. * src/PeerConnection.cc
  3722. * test/DHTRoutingTableSerializerTest.cc
  3723. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3725. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3726. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3727. PKG_CHECK_MODULES macro uses latter name.
  3728. * m4/sqlite3.m4
  3729. * src/Makefile.am
  3730. * test/Makefile.am
  3731. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Fixed typo
  3733. * configure.ac
  3734. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3736. presence of libgnutls using pkg-config first. If it fails, fall
  3737. back to old macro libgnutls.m4.
  3738. * configure.ac
  3739. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Use s itself instead of !s.bad()
  3741. * src/CookieStorage.cc
  3742. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Documented --on-download-* option and --save-cookies option in man
  3744. page.
  3745. * doc/aria2c.1.txt
  3746. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Set possible values for --load-cookie option to "/path/to/file".
  3748. * src/OptionHandlerFactory.cc
  3749. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Added --save-cookies option.
  3751. * src/Cookie.cc
  3752. * src/Cookie.h
  3753. * src/CookieStorage.cc
  3754. * src/CookieStorage.h
  3755. * src/MultiUrlRequestInfo.cc
  3756. * src/OptionHandlerFactory.cc
  3757. * src/prefs.cc
  3758. * src/prefs.h
  3759. * src/usage_text.h
  3760. * test/CookieStorageTest.cc
  3761. * test/CookieTest.cc
  3762. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Removed tellAll XML-RPC command because its reponse tends to be
  3764. big if stopped/waiting downloads pile up.
  3765. * src/XmlRpcMethodFactory.cc
  3766. * src/XmlRpcMethodImpl.cc
  3767. * src/XmlRpcMethodImpl.h
  3768. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Added the ability to execute command when download starts and
  3770. stops. You can also specify command for particular cases such as
  3771. complete/error download. Added --on-download-start,
  3772. --on-download-stop, --on-download-complete and --on-download-error
  3773. option.
  3774. * src/OptionHandlerFactory.cc
  3775. * src/RequestGroupMan.cc
  3776. * src/prefs.cc
  3777. * src/prefs.h
  3778. * src/usage_text.h
  3779. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Fixed test error
  3781. * test/BencodeTest.cc
  3782. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Added unit tests.
  3784. * test/XmlRpcMethodTest.cc
  3785. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Made exception message more verbose.
  3787. * src/bencode.cc
  3788. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3790. space in console readout. Also they are now shown in MiB/s if
  3791. speed > 1024KiB/s.
  3792. * src/ConsoleStatCalc.cc
  3793. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Added SEED to console output, which represents the number of
  3795. seeders currently the client is connecting to.
  3796. * src/ConsoleStatCalc.cc
  3797. * src/ConsoleStatCalc.h
  3798. * src/DownloadEngine.cc
  3799. * src/NullStatCalc.h
  3800. * src/StatCalc.h
  3801. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added source filename(__FILE__) and line number(__LINE__) to
  3803. exception message.
  3804. * src/AbstractCommand.cc
  3805. * src/AbstractDiskWriter.cc
  3806. * src/AbstractProxyResponseCommand.cc
  3807. * src/BDE.h
  3808. * src/BtAllowedFastMessage.cc
  3809. * src/BtHandshakeMessageValidator.h
  3810. * src/BtHaveAllMessage.cc
  3811. * src/BtHaveNoneMessage.cc
  3812. * src/BtPieceMessage.cc
  3813. * src/BtRejectMessage.cc
  3814. * src/ChunkedDecoder.cc
  3815. * src/CookieStorage.cc
  3816. * src/DHTAnnouncePeerMessage.cc
  3817. * src/DHTEntryPointNameResolveCommand.cc
  3818. * src/DHTMessageFactoryImpl.cc
  3819. * src/DHTMessageTracker.cc
  3820. * src/DHTRoutingTableDeserializer.cc
  3821. * src/DHTRoutingTableSerializer.cc
  3822. * src/DHTSetup.cc
  3823. * src/DHTTokenTracker.cc
  3824. * src/DefaultBtAnnounce.cc
  3825. * src/DefaultBtContext.cc
  3826. * src/DefaultBtInteractive.cc
  3827. * src/DefaultBtMessageFactory.cc
  3828. * src/DefaultBtProgressInfoFile.cc
  3829. * src/DefaultExtensionMessageFactory.cc
  3830. * src/DlAbortEx.h
  3831. * src/DlRetryEx.h
  3832. * src/DownloadCommand.cc
  3833. * src/DownloadEngineFactory.cc
  3834. * src/DownloadFailureException.h
  3835. * src/Exception.cc
  3836. * src/Exception.h
  3837. * src/ExpatMetalinkProcessor.cc
  3838. * src/ExpatXmlRpcRequestProcessor.cc
  3839. * src/FallocFileAllocationIterator.cc
  3840. * src/FatalException.h
  3841. * src/FtpConnection.cc
  3842. * src/FtpFinishDownloadCommand.cc
  3843. * src/FtpInitiateConnectionCommand.cc
  3844. * src/FtpNegotiationCommand.cc
  3845. * src/GZipDecoder.cc
  3846. * src/HandshakeExtensionMessage.cc
  3847. * src/HttpConnection.cc
  3848. * src/HttpHeaderProcessor.cc
  3849. * src/HttpInitiateConnectionCommand.cc
  3850. * src/HttpResponse.cc
  3851. * src/HttpResponseCommand.cc
  3852. * src/HttpServer.cc
  3853. * src/HttpSkipResponseCommand.cc
  3854. * src/InitiateConnectionCommandFactory.cc
  3855. * src/IteratableChunkChecksumValidator.cc
  3856. * src/LibgcryptARC4Context.h
  3857. * src/LibgcryptARC4Decryptor.h
  3858. * src/LibgcryptARC4Encryptor.h
  3859. * src/LibgcryptDHKeyExchange.h
  3860. * src/LibgnutlsTLSContext.cc
  3861. * src/LibsslARC4Context.h
  3862. * src/LibsslARC4Decryptor.h
  3863. * src/LibsslARC4Encryptor.h
  3864. * src/LibsslDHKeyExchange.h
  3865. * src/LibsslTLSContext.cc
  3866. * src/MSEHandshake.cc
  3867. * src/MessageDigestHelper.cc
  3868. * src/MetalinkHelper.cc
  3869. * src/MultiDiskAdaptor.cc
  3870. * src/NameMatchOptionHandler.h
  3871. * src/NameResolver.cc
  3872. * src/Netrc.cc
  3873. * src/NsCookieParser.cc
  3874. * src/OptionHandlerException.cc
  3875. * src/OptionHandlerException.h
  3876. * src/OptionHandlerImpl.h
  3877. * src/OptionParser.cc
  3878. * src/ParameterizedStringParser.cc
  3879. * src/PeerAbstractCommand.cc
  3880. * src/PeerConnection.cc
  3881. * src/PeerMessageUtil.cc
  3882. * src/PeerReceiveHandshakeCommand.cc
  3883. * src/Platform.cc
  3884. * src/ReceiverMSEHandshakeCommand.cc
  3885. * src/RecoverableException.h
  3886. * src/RequestGroup.cc
  3887. * src/SimpleLogger.cc
  3888. * src/SocketCore.cc
  3889. * src/Sqlite3MozCookieParser.cc
  3890. * src/UTPexExtensionMessage.cc
  3891. * src/Util.cc
  3892. * src/XML2SAXMetalinkProcessor.cc
  3893. * src/Xml2XmlRpcRequestProcessor.cc
  3894. * src/XmlRpcMethodImpl.cc
  3895. * src/bencode.cc
  3896. * src/download_helper.cc
  3897. * src/messageDigest.h
  3898. * test/ExceptionTest.cc
  3899. * test/TestUtil.cc
  3900. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Bump up version number to 1.4.0
  3902. * configure.ac
  3903. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Added 2files.metalink to EXTRA_DIST
  3905. * test/Makefile.am
  3906. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Added missing 2files.metalink
  3908. * test/2files.metalink
  3909. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Show "[MEMORY]" prefix before filename in download summary if it
  3911. is downloaded into memory.
  3912. * src/DownloadResult.h
  3913. * src/RequestGroup.cc
  3914. * src/RequestGroupMan.cc
  3915. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3917. * src/ExpatXmlRpcRequestProcessor.cc
  3918. * src/Xml2XmlRpcRequestProcessor.cc
  3919. * src/message.h
  3920. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Defined const BDEs to avoid duplicate instantiation.
  3922. Defined MSG_GID_NOT_PROVIDED.
  3923. * src/XmlRpcMethodImpl.cc
  3924. * src/message.h
  3925. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Code cleanup
  3927. * src/Xml2XmlRpcRequestProcessor.cc
  3928. * src/Xml2XmlRpcRequestProcessor.h
  3929. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Defined ENABLE_XML_RPC
  3931. * configure.ac
  3932. * configure
  3933. * config.h.in
  3934. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Added ExpatXmlRpcRequestProcessor
  3936. * src/ExpatXmlRpcRequestProcessor.cc
  3937. * src/ExpatXmlRpcRequestProcessor.h
  3938. * src/Makefile.am
  3939. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Added tests for addTorrent and addMetalink command.
  3941. * test/TestUtil.cc
  3942. * test/TestUtil.h
  3943. * test/XmlRpcMethodTest.cc
  3944. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Corrected the description of --file-allocation option.
  3946. * doc/aria2c.1.txt
  3947. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Added tellAll command.
  3949. * src/XmlRpcMethodFactory.cc
  3950. * src/XmlRpcMethodImpl.cc
  3951. * src/XmlRpcMethodImpl.h
  3952. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3954. * src/XmlRpcMethodImpl.cc
  3955. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Added changeGlobalOption command. Currently,
  3957. max-overall-download-limit and max-overall-upload-limit option are
  3958. available.
  3959. * src/RequestGroupMan.h
  3960. * src/XmlRpcMethod.cc
  3961. * src/XmlRpcMethod.h
  3962. * src/XmlRpcMethodFactory.cc
  3963. * src/XmlRpcMethodImpl.cc
  3964. * src/XmlRpcMethodImpl.h
  3965. * test/XmlRpcMethodTest.cc
  3966. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Added changeOption command. Currently, max-download-limit,
  3968. max-upload-limit option are available in this command.
  3969. * src/RequestGroup.h
  3970. * src/XmlRpcMethod.cc
  3971. * src/XmlRpcMethod.h
  3972. * src/XmlRpcMethodFactory.cc
  3973. * src/XmlRpcMethodImpl.cc
  3974. * src/XmlRpcMethodImpl.h
  3975. * test/XmlRpcMethodTest.cc
  3976. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Added purgeDownloadResult command.
  3978. * src/RequestGroupMan.cc
  3979. * src/RequestGroupMan.h
  3980. * src/XmlRpcMethodFactory.cc
  3981. * src/XmlRpcMethodImpl.cc
  3982. * src/XmlRpcMethodImpl.h
  3983. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Refactored.
  3985. * src/XmlRpcMethod.cc
  3986. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3988. XmlRpcResponse.
  3989. * src/HttpServerBodyCommand.cc
  3990. * src/Makefile.am
  3991. * src/XmlRpcMethod.cc
  3992. * src/XmlRpcMethod.h
  3993. * src/XmlRpcMethodImpl.cc
  3994. * src/XmlRpcResponse.cc
  3995. * src/XmlRpcResponse.h
  3996. * test/XmlRpcMethodTest.cc
  3997. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. In XML-RPC option struct, header and index-out option can take
  3999. array as value.
  4000. * src/XmlRpcMethod.cc
  4001. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. Removed unused option member from PeerConnection.
  4003. * src/InitiatorMSEHandshakeCommand.cc
  4004. * src/PeerConnection.cc
  4005. * src/PeerConnection.h
  4006. * src/PeerInteractionCommand.cc
  4007. * src/PeerReceiveHandshakeCommand.cc
  4008. * src/ReceiverMSEHandshakeCommand.cc
  4009. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Added "seeder" key to getPeers response.
  4011. * src/XmlRpcMethodImpl.cc
  4012. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Added addMetalink XML-RPC command.
  4014. * src/XmlRpcMethodFactory.cc
  4015. * src/XmlRpcMethodImpl.cc
  4016. * src/XmlRpcMethodImpl.h
  4017. * src/download_helper.cc
  4018. * src/download_helper.h
  4019. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4020. Fixed the bug that POU peers are never choked in seeding.
  4021. * src/BtSeederStateChoke.cc
  4022. * src/BtSeederStateChoke.h
  4023. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Added web-seeding URI handling in addTorrent command.
  4025. * src/XmlRpcMethodImpl.cc
  4026. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Added "length" key to getFiles response.
  4028. * src/XmlRpcMethodImpl.cc
  4029. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Moved --no-netrc option from ftp option section to http/ftp option
  4031. section.
  4032. * doc/aria2c.1.txt
  4033. * src/OptionHandlerFactory.cc
  4034. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Removed garbage "\" character before '
  4036. * doc/aria2c.1.txt
  4037. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Removed garbage "\" character before http.
  4039. * doc/aria2c.1.txt
  4040. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Documented additional options that can be specified in -i list.
  4042. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4043. and --xml-rpc-passwd. Removed --enable-http-server and
  4044. --http-server-listen-port.
  4045. * doc/aria2c.1.txt
  4046. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4048. * src/DefaultPeerStorage.cc
  4049. * src/DefaultPeerStorage.h
  4050. * src/PeerStorage.h
  4051. * src/XmlRpcMethodImpl.cc
  4052. * test/MockPeerStorage.h
  4053. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Put a call to Socket::isReadable() in try block.
  4055. * src/HttpServerBodyCommand.cc
  4056. * src/HttpServerCommand.cc
  4057. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4059. exception , so it is now in try block.
  4060. * src/HttpServerResponseCommand.cc
  4061. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Added "amChoking" and "peerChoking" key in getPeers response.
  4063. * src/XmlRpcMethodImpl.cc
  4064. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Added test case for zero-length filter.
  4066. * test/BitfieldManTest.cc
  4067. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. getFiles command now returns file data for finished/stopped
  4069. downloads.
  4070. * src/XmlRpcMethodImpl.cc
  4071. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. DownloadResult now has the list of FileEntry. The download
  4073. summary displays the path of first selected file and the number of
  4074. remaining files for multi-file torrent.
  4075. * src/DownloadResult.h
  4076. * src/RequestGroup.cc
  4077. * src/RequestGroupMan.cc
  4078. * test/RequestGroupTest.cc
  4079. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Fixed segmentation fault error when no file is selected in
  4081. multi-file torrent.
  4082. * src/BitfieldMan.cc
  4083. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Escaped <,>,& character in XML-RPC response.
  4085. * src/XmlRpcMethod.cc
  4086. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Throw DlAbortEx instead of FatalException during parsing options
  4088. because we don't want for aria2 to quit when bad option is passed
  4089. via XML-RPC.
  4090. * src/OptionHandlerException.cc
  4091. * src/OptionHandlerException.h
  4092. * src/OptionHandlerImpl.h
  4093. * src/OptionParser.cc
  4094. * src/OptionParser.h
  4095. * src/PStringSegment.cc
  4096. * src/ParameterizedStringParser.cc
  4097. * src/download_helper.cc
  4098. * test/ParameterizedStringParserTest.cc
  4099. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Selecting files are now done in
  4101. DefaultBtContext::setFileFileter().
  4102. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4103. functions are removed because they are no longer used. Creating
  4104. filter in BitfieldMan is done in new funtion
  4105. PieceStorage::setupFileFilter()
  4106. * src/BtContext.cc
  4107. * src/BtContext.h
  4108. * src/DefaultBtContext.cc
  4109. * src/DefaultBtContext.h
  4110. * src/DefaultPieceStorage.cc
  4111. * src/DefaultPieceStorage.h
  4112. * src/DiskAdaptor.cc
  4113. * src/DiskAdaptor.h
  4114. * src/PieceStorage.h
  4115. * src/RequestGroup.cc
  4116. * src/UnknownLengthPieceStorage.h
  4117. * src/XmlRpcMethodImpl.cc
  4118. * test/DefaultBtContextTest.cc
  4119. * test/MockBtContext.h
  4120. * test/MockPieceStorage.h
  4121. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Fixed compile error on Mac OS X
  4123. * src/HttpServer.cc
  4124. * src/XmlRpcMethod.h
  4125. * src/XmlRpcMethodImpl.cc
  4126. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Use std::binary_search instead of std::find
  4128. * src/DefaultPieceStorage.cc
  4129. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Removed unnecessary BDE() call; leave them to implicit conversion.
  4131. * src/XmlRpcMethodImpl.cc
  4132. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Return connections and gid in string
  4134. * src/XmlRpcMethodImpl.cc
  4135. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Renamed addURI as addUri
  4137. * src/XmlRpcMethodFactory.cc
  4138. * src/XmlRpcMethodImpl.cc
  4139. * src/XmlRpcMethodImpl.h
  4140. * test/XmlRpcMethodTest.cc
  4141. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Renamed addTorrentFile as addTorrent
  4143. * src/XmlRpcMethodFactory.cc
  4144. * src/XmlRpcMethodImpl.cc
  4145. * src/XmlRpcMethodImpl.h
  4146. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. The information for files, URIs, peers are removed from the
  4148. reponse of TellaActive, TellStatus command because they tend to be
  4149. large. Instead they can be retrieved by the dedicated commands:
  4150. getFiles, getUris and getPeers respectively.
  4151. * src/XmlRpcMethodFactory.cc
  4152. * src/XmlRpcMethodImpl.cc
  4153. * src/XmlRpcMethodImpl.h
  4154. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Removed --max-overall-upload-limit and
  4156. --max-overall-download-limit option from listRequestOptions.
  4157. * src/download_helper.cc
  4158. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Log incoming host in HttpListenCommand.
  4160. * src/HttpListenCommand.cc
  4161. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4163. --xml-rpc-passwd option.
  4164. * src/HttpServer.cc
  4165. * src/HttpServer.h
  4166. * src/HttpServerCommand.cc
  4167. * src/OptionHandlerFactory.cc
  4168. * src/prefs.cc
  4169. * src/prefs.h
  4170. * src/usage_text.h
  4171. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4172. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4173. processing 0 length request.
  4174. * src/HttpServerBodyCommand.cc
  4175. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Removed --enable-http-server and --http-server-listen-port
  4177. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4178. instead. The original feature for --enable-http-server that
  4179. reports download progress in HTML was officially removed. Persist
  4180. XML-RPC connection if client supports keep-alive.
  4181. * src/DownloadEngineFactory.cc
  4182. * src/HttpServerCommand.cc
  4183. * src/HttpServerResponseCommand.cc
  4184. * src/Makefile.am
  4185. * src/Makefile.in
  4186. * src/OptionHandlerFactory.cc
  4187. * src/RequestGroupMan.cc
  4188. * src/main.cc
  4189. * src/option_processing.cc
  4190. * src/prefs.cc
  4191. * src/prefs.h
  4192. * src/usage_text.h
  4193. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Added "uris" key to the response of tellStatus command. Added
  4195. "connections" key to the response of tellStatus and tellActive
  4196. command.
  4197. * src/XmlRpcMethodImpl.cc
  4198. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4200. Added TellStatusXmlRpcMethod. Remove command can now remove
  4201. waiting RequestGroup.
  4202. * src/RequestGroupMan.cc
  4203. * src/RequestGroupMan.h
  4204. * src/XmlRpcMethodFactory.cc
  4205. * src/XmlRpcMethodImpl.cc
  4206. * src/XmlRpcMethodImpl.h
  4207. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Initialized _peerId
  4209. * src/Peer.cc
  4210. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Return fault structure for error. FailXmlRpcMethod is renamed as
  4212. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4213. in non-torrent download. Return single param value.
  4214. * src/XmlRpcMethod.cc
  4215. * src/XmlRpcMethodFactory.cc
  4216. * src/XmlRpcMethodImpl.cc
  4217. * src/XmlRpcMethodImpl.h
  4218. * test/XmlRpcMethodTest.cc
  4219. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4221. command.
  4222. * src/RequestGroup.cc
  4223. * src/RequestGroup.h
  4224. * src/RequestGroupMan.cc
  4225. * src/XmlRpcMethodImpl.cc
  4226. * test/RequestGroupTest.cc
  4227. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Added more options that can be specified in -i list and xml-rpc
  4229. add* command.
  4230. * src/download_helper.h
  4231. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. The available options in -i list should be listed in
  4233. listRequestOptions().
  4234. * src/download_helper.cc
  4235. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4237. command.
  4238. * src/XmlRpcMethodImpl.cc
  4239. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Now RequestGroup has its own copy of Option object. This will help
  4241. to give custom option for each RequestGroup.
  4242. addTorrentFile command now takes options.
  4243. * src/AbstractCommand.cc
  4244. * src/AbstractCommand.h
  4245. * src/AbstractProxyRequestCommand.cc
  4246. * src/ActivePeerConnectionCommand.cc
  4247. * src/ActivePeerConnectionCommand.h
  4248. * src/AdaptiveURISelector.cc
  4249. * src/BtCheckIntegrityEntry.cc
  4250. * src/BtDependency.cc
  4251. * src/BtDependency.h
  4252. * src/BtFileAllocationEntry.cc
  4253. * src/BtPostDownloadHandler.cc
  4254. * src/CheckIntegrityEntry.cc
  4255. * src/DownloadCommand.cc
  4256. * src/FtpDownloadCommand.cc
  4257. * src/FtpFinishDownloadCommand.cc
  4258. * src/FtpInitiateConnectionCommand.cc
  4259. * src/FtpNegotiationCommand.cc
  4260. * src/HttpInitiateConnectionCommand.cc
  4261. * src/HttpRequestCommand.cc
  4262. * src/HttpResponseCommand.cc
  4263. * src/HttpSkipResponseCommand.cc
  4264. * src/InitiateConnectionCommand.cc
  4265. * src/InitiateConnectionCommandFactory.cc
  4266. * src/InitiatorMSEHandshakeCommand.cc
  4267. * src/InitiatorMSEHandshakeCommand.h
  4268. * src/Metalink2RequestGroup.cc
  4269. * src/Metalink2RequestGroup.h
  4270. * src/MetalinkPostDownloadHandler.cc
  4271. * src/MultiUrlRequestInfo.cc
  4272. * src/MultiUrlRequestInfo.h
  4273. * src/PeerAbstractCommand.cc
  4274. * src/PeerInteractionCommand.cc
  4275. * src/PeerInteractionCommand.h
  4276. * src/PeerReceiveHandshakeCommand.cc
  4277. * src/PeerReceiveHandshakeCommand.h
  4278. * src/RequestGroup.cc
  4279. * src/RequestGroup.h
  4280. * src/TrackerWatcherCommand.cc
  4281. * src/TrackerWatcherCommand.h
  4282. * src/XmlRpcMethod.cc
  4283. * src/XmlRpcMethod.h
  4284. * src/XmlRpcMethodImpl.cc
  4285. * src/download_helper.cc
  4286. * src/download_helper.h
  4287. * src/main.cc
  4288. * test/BtDependencyTest.cc
  4289. * test/BtPostDownloadHandlerTest.cc
  4290. * test/DefaultBtMessageDispatcherTest.cc
  4291. * test/DownloadHandlerFactoryTest.cc
  4292. * test/DownloadHelperTest.cc
  4293. * test/Metalink2RequestGroupTest.cc
  4294. * test/MetalinkPostDownloadHandlerTest.cc
  4295. * test/RequestGroupManTest.cc
  4296. * test/RequestGroupTest.cc
  4297. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4298. Added tellActiveStatus xml-rpc command which reports download
  4299. status of active downloads.
  4300. * src/XmlRpcMethodFactory.cc
  4301. * src/XmlRpcMethodImpl.cc
  4302. * src/XmlRpcMethodImpl.h
  4303. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Added addTorrentFile xml-rpc command which receives uploaded
  4305. torrent file and add download for it.
  4306. * src/RequestGroupMan.cc
  4307. * src/XmlRpcMethodFactory.cc
  4308. * src/XmlRpcMethodImpl.cc
  4309. * src/XmlRpcMethodImpl.h
  4310. * src/download_helper.cc
  4311. * src/download_helper.h
  4312. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Added remove xml-rpc command which removes specified download.
  4314. There is a known issue: the removed unfinished downloads are
  4315. reported ERR when aria2 exits. They should be reported as INPR.
  4316. * src/RequestGroupMan.cc
  4317. * src/RequestGroupMan.h
  4318. * src/XmlRpcMethodFactory.cc
  4319. * src/XmlRpcMethodImpl.cc
  4320. * src/XmlRpcMethodImpl.h
  4321. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. If --enable-http-server is enabled, don't stop aria2 when all
  4323. download finished and don't quit when no files to download at
  4324. start up.
  4325. * src/RequestGroupMan.cc
  4326. * src/main.cc
  4327. * src/option_processing.cc
  4328. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Added missing AM_CONDITIONAL
  4330. * configure.ac
  4331. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Added xml-rpc functionality. Currently only addURI commad is
  4333. supported. To enable xml-rpc, run aria2 with
  4334. --enable-http-server. This option name is temporal and will be
  4335. changed. The feature that reports download progress in html format
  4336. is temporarily disabled.
  4337. * src/HttpServer.cc
  4338. * src/HttpServer.h
  4339. * src/HttpServerBodyCommand.cc
  4340. * src/HttpServerBodyCommand.h
  4341. * src/HttpServerCommand.cc
  4342. * src/HttpServerResponseCommand.cc
  4343. * src/Makefile.am
  4344. * src/OptionParser.cc
  4345. * src/OptionParser.h
  4346. * src/RequestGroupMan.cc
  4347. * src/RequestGroupMan.h
  4348. * src/XmlRpcMethod.cc
  4349. * src/XmlRpcMethod.h
  4350. * src/XmlRpcMethodFactory.cc
  4351. * src/XmlRpcMethodFactory.h
  4352. * src/XmlRpcMethodImpl.cc
  4353. * src/XmlRpcMethodImpl.h
  4354. * src/download_helper.cc
  4355. * src/download_helper.h
  4356. * test/Makefile.am
  4357. * test/XmlRpcMethodTest.cc
  4358. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Added xml-rpc request parser. The supported value types are:
  4360. i4/int, string, double, struct, array, base64. Currently only
  4361. libxml2 version is provided.
  4362. * src/Xml2XmlRpcRequestProcessor.cc
  4363. * src/Xml2XmlRpcRequestProcessor.h
  4364. * src/XmlRpcElements.cc
  4365. * src/XmlRpcElements.h
  4366. * src/XmlRpcRequest.h
  4367. * src/XmlRpcRequestParserController.cc
  4368. * src/XmlRpcRequestParserController.h
  4369. * src/XmlRpcRequestParserState.h
  4370. * src/XmlRpcRequestParserStateImpl.cc
  4371. * src/XmlRpcRequestParserStateImpl.h
  4372. * src/XmlRpcRequestParserStateMachine.cc
  4373. * src/XmlRpcRequestParserStateMachine.h
  4374. * src/XmlRpcRequestProcessor.h
  4375. * test/XmlRpcRequestParserControllerTest.cc
  4376. * test/XmlRpcRequestProcessorTest.cc
  4377. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4378. * Release 1.3.3
  4379. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Fixed compile error since r1202.
  4381. * src/ExpatMetalinkProcessor.cc
  4382. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Updated Ukrainian, Russian and Simplified Chinese
  4384. translations. Thanks to all translators.
  4385. * po/ru.po
  4386. * po/uk.po
  4387. * po/zh_CN.po
  4388. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4389. Pass reference of Option object instead of pointer.
  4390. * src/download_helper.cc
  4391. * src/download_helper.h
  4392. * src/main.cc
  4393. * test/DownloadHelperTest.cc
  4394. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4396. from option directly. Instead, get them from RequestGroup.
  4397. * src/ActivePeerConnectionCommand.cc
  4398. * src/ActivePeerConnectionCommand.h
  4399. * src/PeerReceiveHandshakeCommand.cc
  4400. * src/RequestGroup.h
  4401. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. Removed unused uploadLimitCheck and uploadLimit from
  4403. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4404. PeerInteractionCommand.
  4405. * src/PeerAbstractCommand.cc
  4406. * src/PeerAbstractCommand.h
  4407. * src/PeerInteractionCommand.cc
  4408. * src/PeerInteractionCommand.h
  4409. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Fixed broken file renaming feature since r1202.
  4411. * src/FtpNegotiationCommand.cc
  4412. * src/FtpNegotiationCommand.h
  4413. * src/HttpResponseCommand.cc
  4414. * src/RequestGroup.cc
  4415. * src/RequestGroup.h
  4416. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Removed unused debug log
  4418. * src/SocketCore.cc
  4419. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Generated configure and Makefile.in using autoconf 2.63 and
  4421. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4422. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4423. * configure.ac
  4424. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Moved piece statistics stuff to new PieceStatMan class.
  4426. Refactored PieceSelector interface.
  4427. * src/DefaultPieceStorage.cc
  4428. * src/DefaultPieceStorage.h
  4429. * src/LongestSequencePieceSelector.cc
  4430. * src/LongestSequencePieceSelector.h
  4431. * src/Makefile.am
  4432. * src/PieceSelector.h
  4433. * src/PieceStatMan.cc
  4434. * src/PieceStatMan.h
  4435. * src/RarestPieceSelector.cc
  4436. * src/RarestPieceSelector.h
  4437. * src/RequestGroup.cc
  4438. * test/DefaultPieceStorageTest.cc
  4439. * test/InOrderPieceSelector.h
  4440. * test/Makefile.am
  4441. * test/PieceStatManTest.cc
  4442. * test/RarestPieceSelectorTest.cc
  4443. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Added static member _protocolFamily to SocketCore. By default,
  4445. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4446. address. Sometime SocketCore::bind() and
  4447. SocketCore::establishConnection() use difference protocl family
  4448. and latter cannot connect to former. To avoid this situation, we
  4449. limit protocol family to AF_INET for unit tests.
  4450. * src/SocketCore.cc
  4451. * src/SocketCore.h
  4452. * test/AllTest.cc
  4453. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4454. Avoid std::bad_alloc for negative bencode string length.
  4455. * src/bencode.cc
  4456. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Supported segmented downloading with chunked transfer encoding and
  4458. content-length.
  4459. * src/DownloadCommand.cc
  4460. * src/HttpResponseCommand.cc
  4461. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4462. Bump up version number to 1.3.3
  4463. * configure.ac
  4464. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4465. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4466. from 4096 to 65536 (for insanely large ftp login banners)
  4467. * src/FtpConnection.h
  4468. * test/FtpConnectionTest.cc
  4469. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. In DefaultBtContext::getActualBasePath(), return first
  4471. FileEntry::getPath() for single file torrent.
  4472. * src/DefaultBtContext.cc
  4473. * test/DefaultBtContextTest.cc
  4474. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4476. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4477. Removed _directIOAllowed member from DiskWriter.
  4478. * src/AbstractDiskWriter.cc
  4479. * src/AbstractDiskWriter.h
  4480. * src/AbstractSingleDiskAdaptor.cc
  4481. * src/AbstractSingleDiskAdaptor.h
  4482. * src/BinaryStream.h
  4483. * src/ByteArrayDiskWriter.h
  4484. * src/DefaultPieceStorage.cc
  4485. * src/DiskWriter.h
  4486. * src/MultiDiskAdaptor.cc
  4487. * src/MultiDiskAdaptor.h
  4488. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Now the constructor of AbstractDiskWriter takes filename as an
  4490. argument and filename argument is removed from openFile(),
  4491. initAndOpenFile(), openExistingFile() interface. storeDir member
  4492. and its accessor functions are removed from DiskAdaptor because it
  4493. is not used anymore. size() member function of DefaultDiskWriter,
  4494. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4495. opening file.
  4496. * src/AbstractDiskWriter.cc
  4497. * src/AbstractDiskWriter.h
  4498. * src/AbstractSingleDiskAdaptor.cc
  4499. * src/AbstractSingleDiskAdaptor.h
  4500. * src/ByteArrayDiskWriter.cc
  4501. * src/ByteArrayDiskWriter.h
  4502. * src/ByteArrayDiskWriterFactory.cc
  4503. * src/ByteArrayDiskWriterFactory.h
  4504. * src/DefaultDiskWriter.cc
  4505. * src/DefaultDiskWriter.h
  4506. * src/DefaultDiskWriterFactory.cc
  4507. * src/DefaultDiskWriterFactory.h
  4508. * src/DefaultPieceStorage.cc
  4509. * src/DirectDiskAdaptor.cc
  4510. * src/DirectDiskAdaptor.h
  4511. * src/DiskAdaptor.h
  4512. * src/DiskWriter.h
  4513. * src/DiskWriterFactory.h
  4514. * src/MessageDigestHelper.cc
  4515. * src/MultiDiskAdaptor.cc
  4516. * src/RequestGroup.cc
  4517. * src/UnknownLengthPieceStorage.cc
  4518. * src/Util.cc
  4519. * test/DefaultDiskWriterTest.cc
  4520. * test/DirectDiskAdaptorTest.cc
  4521. * test/FallocFileAllocationIteratorTest.cc
  4522. * test/MessageDigestHelperTest.cc
  4523. * test/MetalinkProcessorTest.cc
  4524. * test/MultiDiskAdaptorTest.cc
  4525. * test/MultiFileAllocationIteratorTest.cc
  4526. * test/SingleFileAllocationIteratorTest.cc
  4527. * test/UtilTest.cc
  4528. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. Fixed the bug that aria2 aborts when --select-file is used. This
  4530. bug was introduced in r1199.
  4531. * src/MultiDiskAdaptor.cc
  4532. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Code cleanup
  4534. * test/MockPieceStorage.cc
  4535. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Fixed the bug that read-only file with wrong file size will cause
  4537. error because it cannot be truncated to the correct size. Now if
  4538. file size is different than the expected one, re-open file in
  4539. writable mode.
  4540. * src/AbstractSingleDiskAdaptor.cc
  4541. * src/AbstractSingleDiskAdaptor.h
  4542. * src/BtCheckIntegrityEntry.cc
  4543. * src/DiskAdaptor.h
  4544. * src/MultiDiskAdaptor.h
  4545. * src/RequestGroup.cc
  4546. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4547. Fixed the bug that with --check-integrity option aria2 reports
  4548. downloaded file size is 0 even if some parts of file is correctly
  4549. downloaded. This bug is reproducible for the download that a file
  4550. includes last piece is missing. This bug doesn't reveal for
  4551. single-torrent with file allocation on.
  4552. * src/IteratableChecksumValidator.cc
  4553. * test/IteratableChecksumValidatorTest.cc
  4554. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4556. * src/RequestGroupMan.cc
  4557. * src/AdaptiveURISelector.cc
  4558. * src/AdaptiveURISelector.h
  4559. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. * Release 1.3.2
  4561. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Updated README
  4563. * README
  4564. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Updated Ukrainian translations. Thanks to Alexander10.
  4566. * po/uk.po
  4567. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Code cleanup
  4569. * src/MetalinkParserStateMachine.cc
  4570. * src/MetalinkParserStateMachine.h
  4571. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4573. and expat simultaneously, MetalinkProcessor is now not base class
  4574. and it is directly implemented in XML2SAXMetalinkProcessor and
  4575. ExpatMetalinkProcessor.
  4576. * src/ExpatMetalinkProcessor.cc
  4577. * src/ExpatMetalinkProcessor.h
  4578. * src/Makefile.am
  4579. * src/MetalinkHelper.cc
  4580. * src/MetalinkProcessor.h
  4581. * src/MetalinkProcessorFactory.cc: Removed.
  4582. * src/MetalinkProcessorFactory.h: Removed
  4583. * src/XML2SAXMetalinkProcessor.cc
  4584. * src/XML2SAXMetalinkProcessor.h
  4585. * test/MetalinkProcessorTest.cc
  4586. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Bump up version number to 1.3.2
  4588. * configure.ac
  4589. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Added missing file.
  4591. * test/Makefile.am
  4592. * test/url-list-singleFileEndsWithSlash.torrent
  4593. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4595. request.
  4596. * src/AnnounceList.cc
  4597. * src/AnnounceList.h
  4598. * src/BDE.cc: Added
  4599. * src/BDE.h: Added
  4600. * src/DHTAbstractMessage.cc
  4601. * src/DHTAbstractMessage.h
  4602. * src/DHTAnnouncePeerMessage.cc
  4603. * src/DHTAnnouncePeerMessage.h
  4604. * src/DHTAnnouncePeerReplyMessage.cc
  4605. * src/DHTAnnouncePeerReplyMessage.h
  4606. * src/DHTFindNodeMessage.cc
  4607. * src/DHTFindNodeMessage.h
  4608. * src/DHTFindNodeReplyMessage.cc
  4609. * src/DHTFindNodeReplyMessage.h
  4610. * src/DHTGetPeersMessage.cc
  4611. * src/DHTGetPeersMessage.h
  4612. * src/DHTGetPeersReplyMessage.cc
  4613. * src/DHTGetPeersReplyMessage.h
  4614. * src/DHTMessageFactory.h
  4615. * src/DHTMessageFactoryImpl.cc
  4616. * src/DHTMessageFactoryImpl.h
  4617. * src/DHTMessageReceiver.cc
  4618. * src/DHTMessageTracker.cc
  4619. * src/DHTMessageTracker.h
  4620. * src/DHTPingMessage.cc
  4621. * src/DHTPingMessage.h
  4622. * src/DHTPingReplyMessage.cc
  4623. * src/DHTPingReplyMessage.h
  4624. * src/DHTQueryMessage.cc
  4625. * src/DHTQueryMessage.h
  4626. * src/DHTResponseMessage.cc
  4627. * src/DHTResponseMessage.h
  4628. * src/DefaultBtAnnounce.cc
  4629. * src/DefaultBtContext.cc
  4630. * src/DefaultBtContext.h
  4631. * src/HandshakeExtensionMessage.cc
  4632. * src/Makefile.am
  4633. * src/PeerListProcessor.h
  4634. * src/UTPexExtensionMessage.cc
  4635. * src/bencode.cc
  4636. * src/bencode.h
  4637. * test/AnnounceListTest.cc
  4638. * test/BDETest.cc: Added
  4639. * test/BencodeTest.cc
  4640. * test/DHTAnnouncePeerMessageTest.cc
  4641. * test/DHTAnnouncePeerReplyMessageTest.cc
  4642. * test/DHTFindNodeMessageTest.cc
  4643. * test/DHTFindNodeReplyMessageTest.cc
  4644. * test/DHTGetPeersMessageTest.cc
  4645. * test/DHTGetPeersReplyMessageTest.cc
  4646. * test/DHTMessageFactoryImplTest.cc
  4647. * test/DHTMessageTrackerTest.cc
  4648. * test/DHTPingMessageTest.cc
  4649. * test/DHTPingReplyMessageTest.cc
  4650. * test/Makefile.am
  4651. * test/MockDHTMessageFactory.h
  4652. * test/PeerListProcessorTest.cc
  4653. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Use url-list (web-seeding) only for single-file torrent. This is
  4655. basically the same behavior with Metalink file with torrent and
  4656. URIs.
  4657. * src/RequestGroup.cc
  4658. * src/DefaultBtContext.cc
  4659. * test/DefaultBtContextTest.cc
  4660. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Rewritten expr
  4662. * src/array_fun.h
  4663. * test/array_funTest.cc
  4664. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4665. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4666. * src/DefaultBtMessageDispatcher.cc
  4667. * src/a2algo.h
  4668. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Removed ExtendedMessagingAware. Instead of using inheritance,
  4670. added ExtensionMessageRegistry and it is passed to
  4671. DefaultExtensionMessageFactory.
  4672. * src/DefaultBtInteractive.cc
  4673. * src/DefaultBtInteractive.h
  4674. * src/DefaultExtensionMessageFactory.cc
  4675. * src/DefaultExtensionMessageFactory.h
  4676. * src/ExtendedMessagingAware.h: Removed.
  4677. * src/ExtensionMessageFactory.h
  4678. * src/ExtensionMessageRegistry.h: Added.
  4679. * src/Makefile.am
  4680. * src/PeerInteractionCommand.cc
  4681. * test/DefaultExtensionMessageFactoryTest.cc
  4682. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Fixed typo in log messages
  4684. * src/MSEHandshake.cc
  4685. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Fixed the bug that prevents torrent download from finishing. The
  4687. bug doesn't reveal for all torrents. The torrents affected this
  4688. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4689. of pieces.
  4690. * src/bitfield.h
  4691. * test/bitfieldTest.cc
  4692. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Code cleanup
  4694. * src/PeerListProcessor.h
  4695. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Removed RequestGroupAware
  4697. * src/AbstractCommand.cc
  4698. * src/AbstractCommand.h
  4699. * src/ActivePeerConnectionCommand.cc
  4700. * src/ActivePeerConnectionCommand.h
  4701. * src/DHTGetPeersCommand.cc
  4702. * src/DHTGetPeersCommand.h
  4703. * src/InitiatorMSEHandshakeCommand.cc
  4704. * src/InitiatorMSEHandshakeCommand.h
  4705. * src/Makefile.am
  4706. * src/PeerInitiateConnectionCommand.cc
  4707. * src/PeerInitiateConnectionCommand.h
  4708. * src/PeerInteractionCommand.cc
  4709. * src/PeerInteractionCommand.h
  4710. * src/RealtimeCommand.cc
  4711. * src/RealtimeCommand.h
  4712. * src/RequestGroupAware.cc: Removed
  4713. * src/RequestGroupAware.h: Removed
  4714. * src/SeedCheckCommand.cc
  4715. * src/SeedCheckCommand.h
  4716. * src/SleepCommand.cc
  4717. * src/TrackerWatcherCommand.cc
  4718. * src/TrackerWatcherCommand.h
  4719. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Rewritten PeerListProcessor
  4721. * src/PeerListProcessor.h
  4722. * src/CompactPeerListProcessor.h: Removed
  4723. * src/CompactPeerListProcessor.cc: Removed
  4724. * src/DelegatingPeerListProcessor.cc: Removed.
  4725. * src/DefaultBtAnnounce.cc
  4726. * src/Makefile.am
  4727. * src/UTPexExtensionMessage.cc
  4728. * src/DefaultPeerListProcessor.h: Removed.
  4729. * src/DefaultPeerListProcessor.cc: Removed.
  4730. * src/DelegatingPeerListProcessor.h: Removed.
  4731. * test/Makefile.am
  4732. * test/PeerListProcessorTest.cc
  4733. * test/DefaultPeerListProcessorTest.cc: Removed.
  4734. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4735. Rewritten RequestGroupMan::calculateStat()
  4736. * src/RequestGroupMan.cc
  4737. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Removed unnecessary virtual destructor for Request class.
  4739. * src/Request.cc
  4740. * src/Request.h
  4741. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Avoid dynamic_pointer_cast.
  4743. * src/DHTGetPeersCommand.cc
  4744. * src/DHTGetPeersCommand.h
  4745. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4747. BtEvent.
  4748. * src/AbstractBtEventListener.h: Removed.
  4749. * src/AbstractBtMessage.cc
  4750. * src/AbstractBtMessage.h
  4751. * src/BtAbortOutstandingRequestEvent.h
  4752. * src/BtCancelSendingPieceEvent.h
  4753. * src/BtChokedEvent.h: Removed.
  4754. * src/BtChokingEvent.h
  4755. * src/BtEvent.h: Removed
  4756. * src/BtEventListener.h: Removed.
  4757. * src/BtMessage.h
  4758. * src/BtPieceMessage.cc
  4759. * src/BtPieceMessage.h
  4760. * src/BtRequestMessage.cc
  4761. * src/BtRequestMessage.h
  4762. * src/DefaultBtMessageDispatcher.cc
  4763. * src/Makefile.am
  4764. * src/a2functional.h
  4765. * test/BtPieceMessageTest.cc
  4766. * test/BtRequestMessageTest.cc
  4767. * test/DefaultBtMessageDispatcherTest.cc
  4768. * test/MockBtMessage.h
  4769. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Code cleanup
  4771. * src/RequestGroupMan.cc
  4772. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. Code cleanup
  4774. * src/DownloadCommand.cc
  4775. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4777. byte.
  4778. * src/DownloadCommand.cc
  4779. * src/bitfield.h
  4780. * test/bitfieldTest.cc
  4781. Fixed the bug that causes infinite loop if broken web server
  4782. returns chunked response without last "0" chunk-size marker and
  4783. closes connection.
  4784. * src/DownloadCommand.cc
  4785. Instantiate properly configured HttpDownloadCommand for
  4786. non-resumable downlaods.
  4787. * src/HttpResponseCommand.cc
  4788. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Rewritten array operation functions.
  4790. * src/BitfieldMan.cc
  4791. * src/array_fun.h
  4792. * test/array_funTest.cc
  4793. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4794. Removed unused variable 'query'
  4795. * src/Request.cc
  4796. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4798. accidentally set to false in r1162.
  4799. * configure.ac
  4800. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Code cleanup
  4802. * src/BNode.cc
  4803. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Increase prefixLength for the bucket which doesn't own local node
  4805. ID when splitting bucket.
  4806. * src/DHTBucket.cc
  4807. * test/DHTBucketTest.cc
  4808. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. * Release 1.3.1
  4810. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4811. Bump up version number to 1.3.1
  4812. * configure.ac
  4813. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Removed unused variable checkPoint. Also removed include directive
  4815. for TimeA2.h.
  4816. * src/SeedCheckCommand.h
  4817. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4818. Fixed the bug that upload limit exceeds the value specified in
  4819. --seed-ratio option depending on the timing of the execution of
  4820. SeedCheckCommand.
  4821. * src/SeedCheckCommand.cc
  4822. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Fixed the bug that removed peer's session upload/download length
  4824. are counted twice in _cachedTransferStat before it is
  4825. re-calculated. This affected the calculation of shara ratio,
  4826. resulting aria2 wrongly determines that specified share ratio is
  4827. reached. Also fixed the typo in calculateStatFor function name.
  4828. * src/BtSetup.cc
  4829. * src/DefaultPeerStorage.cc
  4830. * src/ShareRatioSeedCriteria.h
  4831. * test/ShareRatioSeedCriteriaTest.cc
  4832. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. * Release 1.3.0
  4834. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4836. Nynorsk translations. Thanks to all translators.
  4837. * po/es.po
  4838. * po/ja.po
  4839. * po/nn.po
  4840. * po/ru.po
  4841. * po/uk.po
  4842. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Rewritten isInRange()
  4844. * src/DHTBucket.cc
  4845. * test/DHTBucketTest.cc
  4846. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Fixed typo
  4848. * doc/aria2c.1.txt
  4849. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4851. malloc/realloc is not used.
  4852. * src/configure.ac
  4853. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4855. char* bitfield instead of stl container for efficiency.
  4856. PieceSelector::select now takes this
  4857. bitfield. RarestPieceSelector::select now also performs
  4858. efficiently for this change. bitfield namespace is introduced and
  4859. it has several helper functions to handle basic bitfield
  4860. operations such as test, count set bits, etc.
  4861. * src/BitfieldMan.cc
  4862. * src/BitfieldMan.h
  4863. * src/DefaultBtRequestFactory.cc
  4864. * src/DefaultPieceStorage.cc
  4865. * src/DefaultPieceStorage.h
  4866. * src/LongestSequencePieceSelector.cc
  4867. * src/LongestSequencePieceSelector.h
  4868. * src/Makefile.am
  4869. * src/Piece.cc
  4870. * src/Piece.h
  4871. * src/PieceSelector.h
  4872. * src/RarestPieceSelector.cc
  4873. * src/RarestPieceSelector.h
  4874. * src/Util.cc
  4875. * src/Util.h
  4876. * src/bitfield.h
  4877. * test/BitfieldManTest.cc
  4878. * test/LongestSequencePieceSelectorTest.cc
  4879. * test/Makefile.am
  4880. * test/RarestPieceSelectorTest.cc
  4881. * test/UtilTest.cc
  4882. * test/bitfieldTest.cc
  4883. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Made accepted socket non-block.
  4885. * src/FtpNegotiationCommand.cc
  4886. * src/HttpListenCommand.cc
  4887. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4889. * src/AbstractSingleDiskAdaptor.cc
  4890. * src/DefaultPieceStorage.cc
  4891. * src/DiskAdaptor.h
  4892. * src/DiskAdaptor.h
  4893. * src/MultiFileAllocationIterator.cc
  4894. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Run
  4896. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4897. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4898. it doesn't need to be called every time when
  4899. DefaultBtInteractive::doInteractionProcessing() is called.
  4900. * src/DefaultBtInteractive.cc
  4901. * src/DefaultBtInteractive.h
  4902. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Documented 'falloc' in man page.
  4904. * doc/aria2c.1.txt
  4905. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. Updated doc
  4907. * src/usage_text.h
  4908. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4909. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4910. allocation mode uses posix_fallocate() system call to allocate
  4911. file on disk. If you are using newer file systems such as ext4
  4912. (with extents support), btrfs or xfs, 'falloc' is your best
  4913. choice. It allocates large(few GiB) files almost instantly. Don't
  4914. use 'falloc' with legacy file systems such as ext3 because it
  4915. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4916. until allocation finishes. 'falloc' may not be available if your
  4917. system doesn't have posix_fallocate() system call.
  4918. * configure.ac
  4919. * src/AbstractDiskWriter.cc
  4920. * src/AbstractDiskWriter.h
  4921. * src/AbstractSingleDiskAdaptor.cc
  4922. * src/BinaryStream.h
  4923. * src/BtCheckIntegrityEntry.cc
  4924. * src/ByteArrayDiskWriter.h
  4925. * src/CheckIntegrityEntry.cc
  4926. * src/CheckIntegrityEntry.h
  4927. * src/DefaultPieceStorage.cc
  4928. * src/DiskAdaptor.cc
  4929. * src/DiskAdaptor.h
  4930. * src/DiskWriter.h
  4931. * src/FallocFileAllocationIterator.cc
  4932. * src/FallocFileAllocationIterator.h
  4933. * src/FileAllocationEntry.cc
  4934. * src/FileAllocationEntry.h
  4935. * src/Makefile.am
  4936. * src/MultiFileAllocationIterator.cc
  4937. * src/MultiFileAllocationIterator.h
  4938. * src/OptionHandlerFactory.cc
  4939. * src/RequestGroup.cc
  4940. * src/StreamCheckIntegrityEntry.cc
  4941. * src/prefs.cc
  4942. * src/prefs.h
  4943. * src/usage_text.h
  4944. * test/FallocFileAllocationIteratorTest.cc
  4945. * test/Makefile.am
  4946. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Removed duplicate enableDirectIO() call.
  4948. * src/MultiFileAllocationIterator.cc
  4949. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4951. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4952. cost of std::rotate().
  4953. * src/RarestPieceSelector.cc
  4954. * src/RarestPieceSelector.h
  4955. * test/RarestPieceSelectorTest.cc
  4956. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Updated usage doc for --bt-tracker-interval option.
  4958. * src/usage_text.h
  4959. * doc/aria2c.1.txt
  4960. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Documented --bt-tracker-interval option in man page.
  4962. * doc/aria2c.1.txt
  4963. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Added an option to specify the interval between tracker requests.
  4965. If non-zero value is specified, aria2 uses it and ignores the
  4966. interval value in the response of tracker. If zero is specified,
  4967. aria2 determines the inteval value based on the tarcker response
  4968. and download progress.
  4969. * src/DefaultBtAnnounce.cc
  4970. * src/DefaultBtAnnounce.h
  4971. * src/OptionHandlerFactory.cc
  4972. * src/RequestGroup.cc
  4973. * src/prefs.cc
  4974. * src/prefs.h
  4975. * src/usage_text.h
  4976. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. Added operator+=, operator-=, operator-
  4978. * src/TransferStat.cc
  4979. * src/TransferStat.h
  4980. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Refactored RarestPieceSelector to reduce CPU load, especially for
  4982. addPieceStats.
  4983. * src/RarestPieceSelector.cc
  4984. * src/RarestPieceSelector.h
  4985. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4987. getAllMissingBlockIndexes to reduce a call to
  4988. array_function_base::operator[].
  4989. * src/BitfieldMan.cc
  4990. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4991. Cached TransferStat/download speed to avoid to sum them up in each
  4992. call.
  4993. * src/DefaultPeerStorage.cc
  4994. * src/DefaultPeerStorage.h
  4995. * src/SegmentMan.cc
  4996. * src/SegmentMan.h
  4997. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Typedefed cuid_t as int32_t in Command.h
  4999. * src/CUIDCounter.h
  5000. * src/Command.cc
  5001. * src/Command.h
  5002. * src/DownloadEngine.cc
  5003. * src/DownloadEngine.h
  5004. * src/PeerStat.h
  5005. * src/SegmentMan.cc
  5006. * src/SegmentMan.h
  5007. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Reduced the number of calls to PeerStorage::calculateStat() and
  5009. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5010. transfer rate.
  5011. * src/DefaultBtInteractive.cc
  5012. * src/DefaultBtMessageDispatcher.cc
  5013. * src/DefaultPeerStorage.cc
  5014. * src/DefaultPeerStorage.h
  5015. * src/DownloadCommand.cc
  5016. * src/DownloadEngine.cc
  5017. * src/PeerStorage.h
  5018. * src/SegmentMan.cc
  5019. * src/SegmentMan.h
  5020. * test/MockPeerStorage.h
  5021. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Prepended _dir+"/" after joining path elements in torrent file.
  5023. * src/DefaultBtContext.cc
  5024. * test/DefaultBtContextTest.cc
  5025. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5026. Added missing IndexBtMessageValidator.h
  5027. * src/Makefile.am
  5028. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5030. Chinese translations. Thank you for contributing our project.
  5031. * po/id.po
  5032. * po/it.po
  5033. * po/ru.po
  5034. * po/uk.po
  5035. * po/zh_CN.po
  5036. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Updated README
  5038. * README
  5039. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5040. Bump up version number to 1.3.0
  5041. * configure.ac
  5042. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Updated doc
  5044. * src/DefaultBtContext.h
  5045. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Slice/joinPath for name of single torrent.
  5047. * src/DefaultBtContext.cc
  5048. * test/DefaultBtContextTest.cc
  5049. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Updated man page: Documented --dry-run and --index-out
  5051. options. Changed the default value of --uri-selector and
  5052. --http-auth-challenge options. Removed --direct-file-mapping
  5053. option. Added example for --index-out
  5054. * doc/aria2c.1.txt
  5055. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Updated TEXT_DRY_RUN
  5057. * src/usage_text.h
  5058. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Changed the default value of --uri-selector option from 'inorder'
  5060. to 'feedback'
  5061. * src/OptionHandlerFactory.cc
  5062. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Included current URI in exception message.
  5064. * src/AbstractCommand.cc
  5065. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Renamed ServerStatURISelector as FeedbackURISelector.
  5067. * src/FeedbackURISelector.cc
  5068. * src/FeedbackURISelector.h
  5069. * src/Makefile.am
  5070. * src/RequestGroupMan.cc
  5071. * src/ServerStatURISelector.cc
  5072. * src/ServerStatURISelector.h
  5073. * test/FeedbackURISelectorTest.cc
  5074. * test/Makefile.am
  5075. * test/ServerStatURISelectorTest.cc
  5076. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5078. all URIs are tested and their timeout is not reached.
  5079. * src/AdaptiveURISelector.cc
  5080. * src/AdaptiveURISelector.h
  5081. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Changed the default value of --http-auth-challenge option to false.
  5083. * src/OptionHandlerFactory.cc
  5084. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Reuse URIs when all unused URIs run out.
  5086. * src/OptionHandlerFactory.cc
  5087. * src/RequestGroup.cc
  5088. * src/prefs.cc
  5089. * src/prefs.h
  5090. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5092. and BtRejectMessage are derived from RangeBtMessage class.
  5093. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5094. derived from IndexBtMessage class. BtChokeMessage,
  5095. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5096. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5097. ZeroBtMessage class.
  5098. * src/AbstractBtMessage.cc
  5099. * src/AbstractBtMessage.h
  5100. * src/BtAllowedFastMessage.cc
  5101. * src/BtAllowedFastMessage.h
  5102. * src/BtAllowedFastMessageValidator.h: Removed
  5103. * src/BtBitfieldMessage.cc
  5104. * src/BtBitfieldMessage.h
  5105. * src/BtCancelMessage.cc
  5106. * src/BtCancelMessage.h
  5107. * src/BtCancelMessageValidator.h: Removed
  5108. * src/BtChokeMessage.cc
  5109. * src/BtChokeMessage.h
  5110. * src/BtExtendedMessage.cc
  5111. * src/BtExtendedMessage.h
  5112. * src/BtHandshakeMessage.cc
  5113. * src/BtHandshakeMessage.h
  5114. * src/BtHaveAllMessage.cc
  5115. * src/BtHaveAllMessage.h
  5116. * src/BtHaveMessage.cc
  5117. * src/BtHaveMessage.h
  5118. * src/BtHaveMessageValidator.h: Removed
  5119. * src/BtHaveNoneMessage.cc
  5120. * src/BtHaveNoneMessage.h
  5121. * src/BtInterestedMessage.cc
  5122. * src/BtInterestedMessage.h
  5123. * src/BtKeepAliveMessage.cc
  5124. * src/BtKeepAliveMessage.h
  5125. * src/BtNotInterestedMessage.cc
  5126. * src/BtNotInterestedMessage.h
  5127. * src/BtPieceMessage.cc
  5128. * src/BtPieceMessage.h
  5129. * src/BtPortMessage.cc
  5130. * src/BtPortMessage.h
  5131. * src/BtRejectMessage.cc
  5132. * src/BtRejectMessage.h
  5133. * src/BtRejectMessageValidator.h: Removed
  5134. * src/BtRequestMessage.cc
  5135. * src/BtRequestMessage.h
  5136. * src/BtRequestMessageValidator.h: Removed
  5137. * src/BtSuggestPieceMessage.cc
  5138. * src/BtSuggestPieceMessage.h
  5139. * src/BtSuggestPieceMessageValidator.h: Removed
  5140. * src/BtUnchokeMessage.cc
  5141. * src/BtUnchokeMessage.h
  5142. * src/DefaultBtMessageFactory.cc
  5143. * src/IndexBtMessage.cc
  5144. * src/IndexBtMessage.h
  5145. * src/IndexBtMessageValidator.h
  5146. * src/Makefile.am
  5147. * src/PeerMessageUtil.cc
  5148. * src/PeerMessageUtil.h
  5149. * src/RangeBtMessage.cc
  5150. * src/RangeBtMessage.h
  5151. * src/RangeBtMessageValidator.h
  5152. * src/SimpleBtMessage.cc
  5153. * src/SimpleBtMessage.h
  5154. * src/ZeroBtMessage.cc
  5155. * src/ZeroBtMessage.h
  5156. * test/BtRequestMessageTest.cc
  5157. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Reverted usage_text.h to r1093 to avoid to lose translated
  5159. messages.
  5160. * src/usage_text.h
  5161. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5163. declared as non-const previously is now const and defined in class
  5164. definition.
  5165. * src/AbstractBtMessage.cc
  5166. * src/AbstractBtMessage.h
  5167. * src/BtAllowedFastMessage.cc
  5168. * src/BtAllowedFastMessage.h
  5169. * src/BtBitfieldMessage.h
  5170. * src/BtCancelMessage.cc
  5171. * src/BtCancelMessage.h
  5172. * src/BtChokeMessage.cc
  5173. * src/BtChokeMessage.h
  5174. * src/BtExtendedMessage.cc
  5175. * src/BtExtendedMessage.h
  5176. * src/BtHandshakeMessage.cc
  5177. * src/BtHandshakeMessage.h
  5178. * src/BtHaveAllMessage.cc
  5179. * src/BtHaveAllMessage.h
  5180. * src/BtHaveMessage.cc
  5181. * src/BtHaveMessage.h
  5182. * src/BtHaveNoneMessage.cc
  5183. * src/BtHaveNoneMessage.h
  5184. * src/BtInterestedMessage.cc
  5185. * src/BtInterestedMessage.h
  5186. * src/BtKeepAliveMessage.cc
  5187. * src/BtKeepAliveMessage.h
  5188. * src/BtMessage.h
  5189. * src/BtNotInterestedMessage.cc
  5190. * src/BtNotInterestedMessage.h
  5191. * src/BtPieceMessage.h
  5192. * src/BtPortMessage.cc
  5193. * src/BtPortMessage.h
  5194. * src/BtRejectMessage.cc
  5195. * src/BtRejectMessage.h
  5196. * src/BtRequestMessage.cc
  5197. * src/BtRequestMessage.h
  5198. * src/BtSuggestPieceMessage.cc
  5199. * src/BtSuggestPieceMessage.h
  5200. * src/BtUnchokeMessage.cc
  5201. * src/BtUnchokeMessage.h
  5202. * src/SimpleBtMessage.cc
  5203. * src/SimpleBtMessage.h
  5204. * test/MockBtMessage.h
  5205. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Use FileEntry::exists()
  5207. * src/MultiDiskAdaptor.cc
  5208. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Added exists()
  5210. * src/FileEntry.cc
  5211. * src/FileEntry.h
  5212. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Added missing prefix dir.
  5214. * src/download_helper.cc
  5215. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5217. * src/CopyDiskAdaptor.cc: Removed
  5218. * src/CopyDiskAdaptor.h: Removed
  5219. * src/DefaultPieceStorage.cc
  5220. * src/Makefile.am
  5221. * src/OptionHandlerFactory.cc
  5222. * src/prefs.cc
  5223. * src/prefs.h
  5224. * src/usage_text.h
  5225. * test/CopyDiskAdaptorTest.cc: Removed
  5226. * test/Makefile.am
  5227. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Rewritten isSameFileBeingDownloaded()
  5229. * src/RequestGroupMan.cc
  5230. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Removed getName() from DownloadContext. getName() is declared in
  5232. BtContext.
  5233. * src/BtContext.h
  5234. * src/DownloadContext.h
  5235. * src/SingleFileDownloadContext.cc
  5236. * src/SingleFileDownloadContext.h
  5237. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5238. in AbstractSingleDiskAdaptor.
  5239. * src/AbstractSingleDiskAdaptor.h
  5240. * src/DiskAdaptor.h
  5241. * src/MultiDiskAdaptor.h
  5242. * src/RequestGroup.cc
  5243. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5244. MultiDiskAdaptor.
  5245. * src/DefaultPieceStorage.cc
  5246. * src/MultiDiskAdaptor.cc
  5247. * src/MultiDiskAdaptor.h
  5248. * test/MultiDiskAdaptorTest.cc
  5249. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. FileEntry::getPath() contains store(top level) directory to
  5251. simplify path handling operation. In the previous implementation,
  5252. store directory is concatenated to FileEntry::getPath() in
  5253. DownloadContext.
  5254. * src/BtDependency.cc
  5255. * src/BtPostDownloadHandler.cc
  5256. * src/CopyDiskAdaptor.cc
  5257. * src/DefaultBtContext.cc
  5258. * src/DirectDiskAdaptor.cc
  5259. * src/FileEntry.cc
  5260. * src/FileEntry.h
  5261. * src/FtpNegotiationCommand.cc
  5262. * src/HttpResponse.cc
  5263. * src/HttpResponseCommand.cc
  5264. * src/Metalink2RequestGroup.cc
  5265. * src/MultiDiskAdaptor.cc
  5266. * src/MultiDiskAdaptor.h
  5267. * src/MultiFileAllocationIterator.cc
  5268. * src/RequestGroup.cc
  5269. * src/SingleFileDownloadContext.cc
  5270. * src/SingleFileDownloadContext.h
  5271. * src/download_helper.cc
  5272. * test/BtDependencyTest.cc
  5273. * test/CopyDiskAdaptorTest.cc
  5274. * test/DefaultBtContextTest.cc
  5275. * test/DefaultBtProgressInfoFileTest.cc
  5276. * test/DirectDiskAdaptorTest.cc
  5277. * test/DownloadHelperTest.cc
  5278. * test/FileEntryTest.cc
  5279. * test/MultiDiskAdaptorTest.cc
  5280. * test/MultiFileAllocationIteratorTest.cc
  5281. * test/RequestGroupTest.cc
  5282. * test/SingleFileDownloadContextTest.cc
  5283. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Fixed compiler warning
  5285. * src/download_helper.cc
  5286. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Throw exception if same infohash torrent is now downloading.
  5288. * src/RequestGroup.cc
  5289. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Added --dry-run option. In this mode, aria2 just checks whether
  5291. the remote file is available and doesn't download data. This
  5292. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5293. are canceled in this mode.
  5294. * src/FtpNegotiationCommand.cc
  5295. * src/HttpResponseCommand.cc
  5296. * src/HttpResponseCommand.h
  5297. * src/OptionHandlerFactory.cc
  5298. * src/RequestGroup.cc
  5299. * src/RequestGroupMan.cc
  5300. * src/prefs.cc
  5301. * src/prefs.h
  5302. * src/usage_text.h
  5303. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Fixed compiler waring
  5305. * test/UriListParserTest.cc
  5306. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Parse options in -i list using OptionParser.
  5308. * src/UriListParser.cc
  5309. * src/UriListParser.h
  5310. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Don't reset URI in retry to avoid additional round trips because
  5312. of redirects.
  5313. * src/AbstractCommand.cc
  5314. * src/OptionHandlerFactory.cc
  5315. * src/prefs.cc
  5316. * src/prefs.h
  5317. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5318. Declared hide() in OptionHandler.
  5319. * src/NameMatchOptionHandler.h
  5320. * src/OptionHandler.h
  5321. * src/OptionHandlerImpl.h
  5322. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Updated doc
  5324. * src/Peer.h
  5325. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Added log message in setStatusInternal()
  5327. * src/ServerStat.cc
  5328. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5330. effectively exclude failed server.
  5331. * src/AbstractCommand.cc
  5332. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5333. Added --index-out option to specify each file path for torrent.
  5334. Here index shown in --show-files option is used to specify which
  5335. file path should be altered. For example, to change the file path
  5336. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5337. option multiple times: --index-out=1=aria2.tar.bz2
  5338. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5339. available. This option can be specified in -i list.
  5340. * src/DefaultBtContext.cc
  5341. * src/DefaultBtContext.h
  5342. * src/MultiDiskAdaptor.cc
  5343. * src/MultiDiskAdaptor.h
  5344. * src/MultiFileAllocationIterator.cc
  5345. * src/OptionHandlerFactory.cc
  5346. * src/OptionHandlerImpl.h
  5347. * src/Util.cc
  5348. * src/Util.h
  5349. * src/download_helper.cc
  5350. * src/prefs.cc
  5351. * src/prefs.h
  5352. * src/usage_text.h
  5353. * test/DefaultBtContextTest.cc
  5354. * test/MultiDiskAdaptorTest.cc
  5355. * test/MultiFileAllocationIteratorTest.cc
  5356. * test/UtilTest.cc
  5357. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Use Util::pathJoin()
  5359. * src/MetalinkParserController.cc
  5360. * test/test.xml
  5361. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Use Util::pathJoin()
  5363. * src/DefaultBtContext.cc
  5364. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5365. Added Util::pathJoin()
  5366. * src/Util.h
  5367. * test/UtilTest.cc
  5368. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Applied basename function to remove directory element in
  5370. content-disposition value.
  5371. Return empty string if content-disposition value is ".." or ".".
  5372. * src/Util.cc
  5373. * test/UtilTest.cc
  5374. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Added --max-overall-download-limit in man page.
  5376. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5377. * doc/aria2c.1.txt
  5378. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Added --max-overall-download-limit option. Now --max-upload-limit
  5380. option is not ignored when --max-overall-upload-limit option has
  5381. non-zero value. aria2 checks download(upload) speed in the order:
  5382. first checks overall speed limit and if it is not exceeded, then
  5383. checks speed limit per download. Thus you can specify both
  5384. value. For example, set --max-overall-download-limit=1M and
  5385. --max-download-limit=500K to prevent from one download from eating
  5386. all overall speed limit.
  5387. * src/DefaultBtInteractive.cc
  5388. * src/DefaultBtInteractive.h
  5389. * src/DefaultBtMessageDispatcher.cc
  5390. * src/DefaultBtMessageDispatcher.h
  5391. * src/DownloadCommand.cc
  5392. * src/DownloadCommand.h
  5393. * src/FtpNegotiationCommand.cc
  5394. * src/HttpResponseCommand.cc
  5395. * src/OptionHandlerFactory.cc
  5396. * src/PeerInteractionCommand.cc
  5397. * src/RequestGroup.cc
  5398. * src/RequestGroup.h
  5399. * src/RequestGroupMan.cc
  5400. * src/RequestGroupMan.h
  5401. * src/prefs.cc
  5402. * src/prefs.h
  5403. * src/usage_text.h
  5404. * test/DefaultBtMessageDispatcherTest.cc
  5405. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Documented select-file option in Input File section.
  5407. Documented --http-auth-challenge option.
  5408. * doc/aria2c.1.txt
  5409. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Now select-file can be specified in the uri list(-i list).
  5411. * src/BtContext.cc
  5412. * src/BtContext.h
  5413. * src/RequestGroup.cc
  5414. * src/Sequence.h
  5415. * src/download_helper.cc
  5416. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Made the upper value of --max-concurrent-downloads options unlimited.
  5418. * src/OptionHandlerFactory.cc
  5419. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. Fixed the bug that disk writer is not created even if it shares
  5421. same piece with the preceding file if the length of previous file
  5422. is 0.
  5423. * src/MultiDiskAdaptor.cc
  5424. * test/MultiDiskAdaptorTest.cc
  5425. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. In BitTorrent, Open files in read-only mode for hash check. After
  5427. that, re-open file in read/write mode only when the download is
  5428. not finished.
  5429. * src/AbstractDiskWriter.cc
  5430. * src/AbstractDiskWriter.h
  5431. * src/AbstractSingleDiskAdaptor.cc
  5432. * src/AbstractSingleDiskAdaptor.h
  5433. * src/BtCheckIntegrityEntry.cc
  5434. * src/DiskAdaptor.h
  5435. * src/DiskWriter.h
  5436. * src/MultiDiskAdaptor.cc
  5437. * src/MultiDiskAdaptor.h
  5438. * src/RequestGroup.cc
  5439. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Added --http-auth-challenge option. If it is set to true(by
  5441. default), aria2 sends HTTP authorization header only when it is
  5442. requested by the server. If false is set, then authorization
  5443. header is always sent to the server. This is useful for servers
  5444. that don't respond 401 code when authentication is required.
  5445. There is an exception: if username and password are embedded in
  5446. URI, authorization header is always sent to the server regardless
  5447. of this option.
  5448. * src/AuthConfigFactory.cc
  5449. * src/HttpSkipResponseCommand.cc
  5450. * src/OptionHandlerFactory.cc
  5451. * src/prefs.cc
  5452. * src/prefs.h
  5453. * src/usage_text.h
  5454. * test/AuthConfigFactoryTest.cc
  5455. * test/HttpRequestTest.cc
  5456. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. * Release 1.2.0
  5458. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5460. Thanks to all translators.
  5461. * po/es.po
  5462. * po/ja.po
  5463. * po/ru.po
  5464. * po/uk.po
  5465. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Call deleteSocketForReadCheck() before socket is closed.
  5467. * src/HttpListenCommand.cc
  5468. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5469. Defined virtual destructor for BObject.
  5470. * src/bencode.h
  5471. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Rewritten BDE to make it efficient.
  5473. * src/bencode.cc
  5474. * src/bencode.h
  5475. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Removed function throw list.
  5477. * src/bencode.cc
  5478. * src/bencode.h
  5479. * test/BencodeTest.cc
  5480. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Enclosed all URLs in double quotes in command-line examples.
  5482. * doc/aria2c.1.txt
  5483. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Updated reference/see also section.
  5485. * README
  5486. * doc/aria2c.1.txt
  5487. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Reorganized man page based on man man-pages.
  5489. * doc/aria2c.1.txt
  5490. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5492. because same documents are available in man page. Added
  5493. References section.
  5494. * README
  5495. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5497. PERFORMANCE PROFILE section.
  5498. * doc/aria2c.1.txt
  5499. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5500. Rewritten the section for configuration file.
  5501. * README
  5502. * doc/aria2c.1.txt
  5503. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Fixed the segmentation fault during execution of choking algorithm
  5505. in leecher state because of broken compare operator
  5506. implementation.
  5507. * src/BtLeecherStateChoke.cc
  5508. * src/BtLeecherStateChoke.h
  5509. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Open file in binary mode.
  5511. * src/CookieStorage.cc
  5512. * src/DHTSetup.cc
  5513. * src/DHTUtil.cc
  5514. * src/Netrc.cc
  5515. * src/NsCookieParser.cc
  5516. * src/ProtocolDetector.cc
  5517. * src/RequestGroupMan.cc
  5518. * src/Signature.cc
  5519. * src/bencode.cc
  5520. * src/download_helper.cc
  5521. * src/option_processing.cc
  5522. * test/CookieParserTest.cc
  5523. * test/DefaultBtProgressInfoFileTest.cc
  5524. * test/FileTest.cc
  5525. * test/GZipDecoderTest.cc
  5526. * test/RequestGroupManTest.cc
  5527. * test/SignatureTest.cc
  5528. * test/SingleFileAllocationIteratorTest.cc
  5529. * test/UriListParserTest.cc
  5530. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Removed operator[] because it is ambiguous with built-in []
  5532. operator.
  5533. * src/array_fun.h
  5534. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Fixed compile error
  5536. * src/OptionParser.cc
  5537. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Added missing call to arrayWrapperConst
  5539. * test/array_funTest.cc
  5540. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5541. Use array_wrapper instead of array_ptr.
  5542. * src/DHTRoutingTableDeserializer.cc
  5543. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5545. * src/array_fun.h
  5546. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5547. Added array_wrapper template.
  5548. * src/array_fun.h
  5549. * test/array_funTest.cc
  5550. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Use operator T* of array_ptr.
  5552. * src/OptionParser.cc
  5553. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5554. Use localhost instead of 127.0.0.1
  5555. * test/FtpConnectionTest.cc
  5556. * test/MSEHandshakeTest.cc
  5557. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Added operator T*
  5559. * src/array_fun.h
  5560. * test/array_funTest.cc
  5561. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Use dynamically allocated char array to detect memory access
  5563. violation.
  5564. * src/DHTRoutingTableDeserializer.cc
  5565. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5567. defined.
  5568. * src/PeerMessageUtil.cc
  5569. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5570. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5571. * configure.ac
  5572. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Added a check to see struct sockaddr_in has sin_len member.
  5574. * configure.ac
  5575. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Fixed buffer overrun.
  5577. * src/DHTRoutingTableDeserializer.cc
  5578. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Added LL for long long int constant.
  5580. * test/FtpConnectionTest.cc
  5581. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Casted to unsigned int to suppress compiler warning on netbsd.
  5583. * src/BtRuntime.h
  5584. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5586. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5587. type time_t.
  5588. * src/SimpleLogger.cc
  5589. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5590. Added test for FtpConnection::receiveSizeResponse().
  5591. * test/FtpConnectionTest.cc
  5592. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5593. Fix epoll error on the old kernel 2.6.8 or ealier.
  5594. * src/EpollEventPoll.cc
  5595. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Use Util::parseLLInt instead of sscanf for portability. The
  5597. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5598. * src/FtpConnection.cc
  5599. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5601. block. It should not filter anything.
  5602. * src/BitfieldMan.cc
  5603. * src/ConsoleStatCalc.cc
  5604. * test/BitfieldManTest.cc
  5605. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Fixed the bug that the boolean options that don't take arguments
  5607. don't work.
  5608. * src/OptionHandlerImpl.h
  5609. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Fixed broken selected file BitTorrent download.
  5611. * src/MultiDiskAdaptor.cc
  5612. * test/MultiDiskAdaptorTest.cc
  5613. * test/MultiFileAllocationIteratorTest.cc
  5614. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5615. Fixed #define guard for EpollEventPoll
  5616. * src/EpollEventPoll.h
  5617. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Wait 2 seconds. 1 second is sometimes not enough.
  5619. * test/TimeSeedCriteriaTest.cc
  5620. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5621. Use localhost instead of 127.0.0.1.
  5622. * test/DHTConnectionImplTest.cc
  5623. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5624. Suppressed compiler warning.
  5625. * src/AdaptiveURISelector.cc
  5626. * src/DefaultPieceStorage.cc
  5627. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5628. Defined virtual destructor.
  5629. * src/MetalinkParserState.h
  5630. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. Give NULL for second argument of getaddrinfo instead of "0".
  5632. * src/NameResolver.cc
  5633. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5635. included strptime doesn't parse data for this format.
  5636. * src/FtpConnection.cc
  5637. * test/FtpConnectionTest.cc
  5638. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5639. Removed tests giving -1 for unsigned argument.
  5640. * test/SingleFileDownloadContextTest.cc
  5641. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5642. Don't use sha256 in tests because it might not be supported by the
  5643. SSL library.
  5644. * test/MetalinkProcessorTest.cc
  5645. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5646. Removed tests giving -1 for unsigned argument.
  5647. * test/AlphaNumberDecoratorTest
  5648. * test/BitfieldManTest.cc
  5649. * test/DefaultBtContextTest.cc
  5650. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Fixed compile error without libcares when epoll is available.
  5652. * src/EpollEventPoll.cc
  5653. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5654. Included fstream instead of iostream.
  5655. * test/SignatureTest.cc
  5656. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5657. Removed #include <algorithm>
  5658. * test/RequestGroupTest.cc
  5659. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5661. using RequestGroup::extractURIResult().
  5662. * src/AdaptiveURISelector.cc
  5663. * src/RequestGroup.cc
  5664. * src/RequestGroup.h
  5665. * test/RequestGroupTest.cc
  5666. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5667. Added tests for array_ptr.
  5668. * test/array_funTest.cc
  5669. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Don't send ip parameter to a tracker if ip parameter is empty
  5671. string.
  5672. * src/DefaultBtAnnounce.cc
  5673. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5674. Adjusted line feed.
  5675. * src/version_usage.cc
  5676. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Print tags, possible values when OptionHandlerException is caught.
  5678. * src/option_processing.cc
  5679. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Changed the message for FatalException.
  5681. * src/OptionParser.cc
  5682. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Documented --bt-external-ip option in man page. Updated man pages
  5684. for --proxy-method option.
  5685. * doc/aria2c.1.txt
  5686. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5687. Use GET method for FTP via HTTP proxy.
  5688. * src/FtpInitiateConnectionCommand.cc
  5689. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Changed the default value of --proxy-method option from 'tunnel'
  5691. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5692. option.
  5693. * src/AbstractCommand.cc
  5694. * src/AbstractCommand.h
  5695. * src/FtpInitiateConnectionCommand.cc
  5696. * src/HttpDownloadCommand.cc
  5697. * src/HttpInitiateConnectionCommand.cc
  5698. * src/HttpInitiateConnectionCommand.h
  5699. * src/OptionHandlerFactory.cc
  5700. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5701. Initialized _logger
  5702. * src/SelectEventPoll.cc
  5703. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Defined a copy constructor for the same type.
  5705. * src/SharedHandle.h
  5706. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Added OptionParser::parseArg() which internally uses getopt_long
  5708. to parse command-line options. All command-line options are now
  5709. configured by OptionHandler. No manual editing of struct option*
  5710. is required any more.
  5711. * src/NameMatchOptionHandler.h
  5712. * src/OptionHandler.h
  5713. * src/OptionHandlerFactory.cc
  5714. * src/OptionHandlerImpl.h
  5715. * src/OptionParser.cc
  5716. * src/OptionParser.h
  5717. * src/array_fun.h
  5718. * src/main.cc
  5719. * src/option_processing.cc
  5720. * test/OptionHandlerTest.cc
  5721. * test/OptionParserTest.cc
  5722. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5723. Fixed configure error with --disable-epoll
  5724. * configure.ac
  5725. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Fixed compile error when HAVE_EPOLL is not defined.
  5727. Fixed linker error on bigendian systems.
  5728. * src/SocketCore.cc
  5729. * src/SocketCore.h
  5730. * test/DefaultBtProgressInfoFileTest.cc
  5731. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Added --bt-external-ip option. You can specify the external IP
  5733. address to report to a BitTorrent tracker. Although this function
  5734. is named 'external', it can accept any kind of IP addresses.
  5735. * src/DefaultBtAnnounce.cc
  5736. * src/OptionHandlerFactory.cc
  5737. * src/option_processing.cc
  5738. * src/prefs.cc
  5739. * src/prefs.h
  5740. * src/usage_text.h
  5741. * test/DefaultBtAnnounceTest.cc
  5742. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5743. Extracted the algorithm to find the longest incremental sequence
  5744. as max_sequence template.
  5745. * src/LongestSequencePieceSelector.cc
  5746. * src/a2algo.h
  5747. * test/Makefile.am
  5748. * test/a2algoTest.cc
  5749. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5751. * src/usage_text.h
  5752. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Updated doc for --uri-selector, --http-server-listen-port and
  5754. --enable-http-server option. Documented --event-poll option.
  5755. * doc/aria2c.1.txt
  5756. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5757. Updated doc for --enable-http-server.
  5758. * src/usage_text.h
  5759. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5760. Documented --http-server-listen-port and --enable-http-server in
  5761. man page.
  5762. * doc/aria2c.1.txt
  5763. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5764. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5765. translations. Thanks to all translators.
  5766. * po/es.po
  5767. * po/id.po
  5768. * po/it.po
  5769. * po/ru.po
  5770. * po/uk.po
  5771. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5772. Bump up version number to 1.2.0
  5773. * configure.ac
  5774. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5775. BtContext::getAnnounceTiers() now returns const reference.
  5776. * src/BtContext.h
  5777. * src/DefaultBtContext.cc
  5778. * src/DefaultBtContext.h
  5779. * test/MockBtContext.h
  5780. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Change the number of retries for tracker request based on the
  5782. number of available tracker in a torrent file.
  5783. * src/TrackerWatcherCommand.cc
  5784. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Added _maxTries property to RequestGroup and assign the option
  5786. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5787. RequestGroup::getMaxTries() instead of
  5788. Option::getAsInt(PREF_MAX_TRIES).
  5789. * src/AbstractCommand.cc
  5790. * src/RequestGroup.cc
  5791. * src/RequestGroup.h
  5792. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5794. Mandriva. I modified the patch: make RequestGroup have the
  5795. timeout value and AdaptiveURISelector directly modifies that
  5796. value.
  5797. * src/AbstractCommand.cc
  5798. * src/AdaptiveURISelector.cc
  5799. * src/AdaptiveURISelector.h
  5800. * src/FtpNegotiationCommand.cc
  5801. * src/RequestGroup.cc
  5802. * src/RequestGroup.h
  5803. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5804. Fixed compiler warning
  5805. * test/IteratableChecksumValidatorTest.cc
  5806. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5807. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5808. integrated downloads. This PieceSelector subclass finds the
  5809. longest continuous sequence in the available missing pieces and
  5810. selects the last index of such sequence. This makes HTTP/FTP
  5811. connections less interrupted by the pieces obtained by BitTorrent
  5812. peers.
  5813. * src/DefaultPieceStorage.cc
  5814. * src/DefaultPieceStorage.h
  5815. * src/LongestSequencePieceSelector.cc
  5816. * src/LongestSequencePieceSelector.h
  5817. * src/Makefile.am
  5818. * src/PieceSelector.h
  5819. * src/RarestPieceSelector.h
  5820. * src/RequestGroup.cc
  5821. * test/BtDependencyTest.cc
  5822. * test/DefaultPieceStorageTest.cc
  5823. * test/IteratableChecksumValidatorTest.cc
  5824. * test/LongestSequencePieceSelectorTest.cc
  5825. * test/Makefile.am
  5826. * test/SegmentManTest.cc
  5827. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5828. Fixed the bug that the average speed is wrong in
  5829. http/ftp/BitTorrent integrated download. Only the download bytes
  5830. in BitTorrent were considered.
  5831. * src/RequestGroup.cc
  5832. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5833. Choose port for BitTorrent/DHT randomly from the specified range.
  5834. * src/DHTConnectionImpl.cc
  5835. * src/PeerListenCommand.cc
  5836. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5837. Send HTTP Authorization header only if it is requested by the
  5838. server(response 401). There are some exceptions. The authorization
  5839. header for proxy is always sent if it is available without request
  5840. by the server. If username/password is specified in the URI, it
  5841. is immediately sent to the server without request by the server.
  5842. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5843. SharedHandle<AuthConfig>().
  5844. NetrcAuthResolver::resolveAuthConfig() returns
  5845. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5846. * src/AbstractAuthResolver.cc
  5847. * src/AbstractProxyRequestCommand.cc
  5848. * src/AuthConfigFactory.cc
  5849. * src/AuthConfigFactory.h
  5850. * src/HttpConnection.cc
  5851. * src/HttpRequest.cc
  5852. * src/HttpRequest.h
  5853. * src/HttpResponse.cc
  5854. * src/HttpResponseCommand.cc
  5855. * src/HttpSkipResponseCommand.cc
  5856. * test/AuthConfigFactoryTest.cc
  5857. * test/HttpRequestTest.cc
  5858. * test/HttpResponseTest.cc
  5859. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5860. Remove leading "--" from help keyword and a substring after "="
  5861. from help keyword, so that one can query options by '-h--max-' or
  5862. '-hmax-peers=10'.
  5863. * src/option_processing.cc
  5864. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5865. Rewritten PStringVisitor and its implementation.
  5866. * src/PStringBuildVisitor.cc
  5867. * src/PStringBuildVisitor.h
  5868. * src/PStringDatum.h
  5869. * src/PStringNumLoop.h
  5870. * src/PStringSegment.cc
  5871. * src/PStringSegment.h
  5872. * src/PStringSelect.h
  5873. * src/PStringVisitor.h
  5874. * src/download_helper.cc
  5875. * test/PStringBuildVisitorTest.cc
  5876. * test/ParameterizedStringParserTest.cc
  5877. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5878. Persist connection between the built-in HTTP server and a client
  5879. if a client supports keep-alive. Fixed the bug that aria2 exits
  5880. when the HTTP server receives EOF from a client.
  5881. * src/HttpServer.cc
  5882. * src/HttpServer.h
  5883. * src/HttpServerCommand.cc
  5884. * src/HttpServerCommand.h
  5885. * src/HttpServerResponseCommand.cc
  5886. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5887. Added experimental built-in HTTP server. Currently, when a client
  5888. accesses to the server, it responds with the current download
  5889. progress. By default, it is disabled. To enable the server, give
  5890. --enable-http-server option. To change the default port number
  5891. for the server to listen to, use --http-server-listen-port option.
  5892. The response HTML is very simple and refreshes it self each 1
  5893. second. Because of this refresh, you see flicker in normal web
  5894. browser such as Firefox. I recommend to use console-based browser
  5895. such as elinks, w3m. To connect to the server, run 'elinks
  5896. http://localhost:6800/' while running aria2. Please replace port
  5897. number '6800'(which is default) with your preference.
  5898. * src/DownloadEngineFactory.cc
  5899. * src/HttpHeader.cc
  5900. * src/HttpHeader.h
  5901. * src/HttpHeaderProcessor.cc
  5902. * src/HttpHeaderProcessor.h
  5903. * src/HttpListenCommand.cc
  5904. * src/HttpListenCommand.h
  5905. * src/HttpServer.cc
  5906. * src/HttpServer.h
  5907. * src/HttpServerCommand.cc
  5908. * src/HttpServerCommand.h
  5909. * src/HttpServerResponseCommand.cc
  5910. * src/HttpServerResponseCommand.h
  5911. * src/Makefile.am
  5912. * src/OptionHandlerFactory.cc
  5913. * src/Util.cc
  5914. * src/Util.h
  5915. * src/help_tags.h
  5916. * src/option_processing.cc
  5917. * src/prefs.cc
  5918. * src/prefs.h
  5919. * src/usage_text.h
  5920. * test/HttpHeaderProcessorTest.cc
  5921. * test/UtilTest.cc
  5922. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5923. Removed.
  5924. * src/CheckIntegrityMan.cc
  5925. * src/FileAllocationMan.cc
  5926. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5927. Made (piece) hash check sequential for each RequestGroup because
  5928. simultaneous hash check is slower than sequential execution.
  5929. * src/CheckIntegrityCommand.cc
  5930. * src/CheckIntegrityDispatcherCommand.cc
  5931. * src/CheckIntegrityDispatcherCommand.h
  5932. * src/CheckIntegrityMan.h
  5933. * src/ConsoleStatCalc.cc
  5934. * src/DownloadCommand.cc
  5935. * src/DownloadEngine.cc
  5936. * src/DownloadEngine.h
  5937. * src/DownloadEngineFactory.cc
  5938. * src/Makefile.am
  5939. * src/Makefile.in
  5940. * src/RequestGroup.cc
  5941. * src/StatCalc.h
  5942. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5943. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5944. SequentialDispatcherCommand.
  5945. * src/FileAllocationDispatcherCommand.cc
  5946. * src/SequentialDispatcherCommand.h
  5947. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5948. Rewritten FileAllocationDispatcherCommand using brand new
  5949. SequentialDispatcherCommand.
  5950. * src/DownloadEngineFactory.cc
  5951. * src/FileAllocationCommand.cc
  5952. * src/FileAllocationDispatcherCommand.cc
  5953. * src/FileAllocationDispatcherCommand.h
  5954. * src/Makefile.am
  5955. * src/SequentialDispatcherCommand.h
  5956. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Replaced FileAllocationMan with
  5958. SequentialPicker<FileAllocationEntry>.
  5959. * src/BtCheckIntegrityEntry.cc
  5960. * src/ConsoleStatCalc.cc
  5961. * src/DownloadEngine.cc
  5962. * src/DownloadEngine.h
  5963. * src/DownloadEngineFactory.cc
  5964. * src/FileAllocationCommand.cc
  5965. * src/FileAllocationDispatcherCommand.cc
  5966. * src/FileAllocationMan.h
  5967. * src/Makefile.am
  5968. * src/SequentialPicker.h
  5969. * src/StatCalc.h
  5970. * src/StreamCheckIntegrityEntry.cc
  5971. * test/Makefile.am
  5972. * test/SequentialPickerTest.cc
  5973. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Added doc for adaptive URI selector.
  5975. * doc/aria2c.1.txt
  5976. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Added doc for adaptive URI selector.
  5978. * src/usage_text.h
  5979. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Added doc for --bt-max-peers option.
  5981. * doc/aria2c.1.txt
  5982. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Added doc for --bt-hash-check-seed option.
  5984. * doc/aria2c.1.txt
  5985. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Documented exit codes.
  5987. * doc/aria2c.1.txt
  5988. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5989. Added --bt-max-peers option to specify the maximum number of peers
  5990. per torrent. 0 means unlimited number of peers.
  5991. * src/ActivePeerConnectionCommand.cc
  5992. * src/BtRuntime.h
  5993. * src/DefaultPeerStorage.cc
  5994. * src/DefaultPeerStorage.h
  5995. * src/OptionHandlerFactory.cc
  5996. * src/RequestGroup.cc
  5997. * src/option_processing.cc
  5998. * src/prefs.cc
  5999. * src/prefs.h
  6000. * src/usage_text.h
  6001. * test/DefaultPeerStorageTest.cc
  6002. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6003. Added --bt-hash-check-seed option. If true is given to this
  6004. option, after hash check using --check-integrity option and file
  6005. is complete, continue to seed file. If you want to check file and
  6006. download it only when it is damaged or incomplete, set this option
  6007. to false. This option has effect only on BitTorrent download.
  6008. The default value is true(This is the same behavior with the
  6009. previous release).
  6010. * src/BtCheckIntegrityEntry.cc
  6011. * src/OptionHandlerFactory.cc
  6012. * src/option_processing.cc
  6013. * src/prefs.cc
  6014. * src/prefs.h
  6015. * src/usage_text.h
  6016. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Updated copyright year.
  6018. * src/version_usage.cc
  6019. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6021. * doc/aria2c.1.txt
  6022. * src/usage_text.h
  6023. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6024. Made the max value of split option unlimited.
  6025. * doc/aria2c.1.txt
  6026. * src/OptionHandlerFactory.cc
  6027. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Fixed compile warning/error.
  6029. * src/DownloadResult.h
  6030. * src/HttpDownloadCommand.cc
  6031. * src/ServerStat.cc
  6032. * test/RequestGroupTest.cc
  6033. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Added --event-poll option to select the method for polling events.
  6035. The available methods are "select" and "epoll". "epoll" is
  6036. available on Linux only. The earlier release has the compile
  6037. option to choose from these methods.
  6038. * configure.ac
  6039. * src/RequestGroupMan.cc
  6040. * src/OptionHandlerFactory.cc
  6041. * src/EpollEventPoll.h
  6042. * src/StreamFileAllocationEntry.cc
  6043. * src/a2io.h
  6044. * src/SelectEventPoll.h
  6045. * src/option_processing.cc
  6046. * src/prefs.h
  6047. * src/EpollEventPoll.cc
  6048. * src/EventPoll.h
  6049. * src/SocketCore.h
  6050. * src/Makefile.am
  6051. * src/main.cc
  6052. * src/DownloadEngine.h
  6053. * src/SelectEventPoll.cc
  6054. * src/DownloadEngine.cc
  6055. * src/SocketCore.cc
  6056. * src/DownloadEngineFactory.cc
  6057. * src/Makefile.in
  6058. * src/prefs.cc
  6059. * src/usage_text.h
  6060. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Included RecoverableException.h from main.cc
  6062. * src/main.cc
  6063. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6065. now returns last error encountered in the HTTP/FTP downloads as a
  6066. exit status value. If all downloads finished successfully, aria2
  6067. returns 0. The error code is defined in src/DownloadResult.h.
  6068. The error occurred in the download currently in progress is not
  6069. reported as a last error. If no error has encountered but there
  6070. are in progress or waiting downloads, aria2 returns 7.
  6071. * src/AbstractCommand.cc
  6072. * src/DlAbortEx.h
  6073. * src/DlRetryEx.h
  6074. * src/DownloadCommand.cc
  6075. * src/DownloadFailureException.h
  6076. * src/DownloadResult.h
  6077. * src/FtpNegotiationCommand.cc
  6078. * src/HttpSkipResponseCommand.cc
  6079. * src/Makefile.am
  6080. * src/MultiUrlRequestInfo.cc
  6081. * src/MultiUrlRequestInfo.h
  6082. * src/RecoverableException.h
  6083. * src/RequestGroup.cc
  6084. * src/RequestGroup.h
  6085. * src/RequestGroupMan.cc
  6086. * src/RequestGroupMan.h
  6087. * src/URIResult.cc
  6088. * src/URIResult.h
  6089. * src/main.cc
  6090. * src/option_processing.cc
  6091. * test/RequestGroupTest.cc
  6092. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6093. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6094. patch adds AdaptiveURISelector, which selects one of the bests
  6095. mirrors for first and reserved connections. For supplementary
  6096. ones, it returns mirrors which has not been tested yet, and if
  6097. each of them already tested, returns mirrors which has to be
  6098. tested again. Otherwise, it doesn't return anymore mirrors.
  6099. * src/AdaptiveURISelector.cc
  6100. * src/AdaptiveURISelector.h
  6101. * src/FtpNegotiationCommand.cc
  6102. * src/HttpResponseCommand.cc
  6103. * src/Makefile.am
  6104. * src/Makefile.in
  6105. * src/OptionHandlerFactory.cc
  6106. * src/RequestGroup.cc
  6107. * src/RequestGroup.h
  6108. * src/RequestGroupMan.cc
  6109. * src/ServerStat.cc
  6110. * src/ServerStat.h
  6111. * src/ServerStatMan.cc
  6112. * src/SpeedCalc.cc
  6113. * src/URISelector.h
  6114. * src/prefs.cc
  6115. * src/prefs.h
  6116. * test/RequestGroupManTest.cc
  6117. * test/ServerStatManTest.cc
  6118. * test/ServerStatTest.cc
  6119. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Fixed unit test error.
  6121. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6122. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6123. * Release 1.1.2
  6124. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Updated Russian translation. Thanks to the translators.
  6126. * po/ru.po
  6127. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. Added the description of --use-head option to man page.
  6129. * doc/aria2c.1.txt
  6130. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Bump up version number to 1.1.2
  6132. * configure.ac
  6133. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Added --use-head option to toggle whether HEAD method should be
  6135. used in the first HTTP request. By default aria2 uses HEAD method
  6136. as the first request. When the server doesn't recognize HEAD, then
  6137. give aria2 --use-head=false to force aria2 to use GET method
  6138. instead.
  6139. * src/OptionHandlerFactory.cc
  6140. * src/RequestGroupMan.cc
  6141. * src/option_processing.cc
  6142. * src/prefs.cc
  6143. * src/prefs.h
  6144. * src/usage_text.h
  6145. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6147. message is received before CHOKE message. The old implementation
  6148. doen't clear the use-bit of the piece when recieved REJECT
  6149. message.
  6150. * src/DefaultBtMessageDispatcher.cc
  6151. * test/DefaultBtMessageDispatcherTest.cc
  6152. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6153. * Release 1.1.1
  6154. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Bump up version number to 1.1.1.
  6156. * configure.ac
  6157. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6159. is printed repeatedly.
  6160. * src/ConsoleStatCalc.cc
  6161. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6162. * Release 1.1.0
  6163. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Added ifdef clause for conditional compilation.
  6165. * src/main.cc
  6166. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6167. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6168. translations. Thanks to all translators.
  6169. * po/ja.po
  6170. * po/ru.po
  6171. * po/uk.po
  6172. * po/zh_CN.po
  6173. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Added the preceding ">>> " before the message "Printing the
  6175. contents of file..." to make the output more readable.
  6176. * src/main.cc
  6177. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Added try-catch block in the loop in showFiles() to continue the
  6179. operation even if the exception occurred in one file.
  6180. * src/main.cc (showFiles)
  6181. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Made messages in showFiles() translatable.
  6183. * po/aria2.pot
  6184. * src/main.cc
  6185. * src/message.h
  6186. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. Print the contents of Torrent/Metalink files are printed without
  6188. -T/-M options.
  6189. * src/main.cc
  6190. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Escaped '--' with '\--'
  6192. * README
  6193. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Updated "How to build" section in README. Mentioned about
  6195. --with-ca-bundle compile option.
  6196. * README
  6197. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Bump up version number to 1.1.0.
  6199. * configure.ac
  6200. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Added a note for --dht-listen-port option.
  6202. * doc/aria2c.1.txt
  6203. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Update doc for --realtime-chunk-checksum option.
  6205. * doc/aria2c.1.txt
  6206. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6207. Update doc for --realtime-chunk-checksum option.
  6208. * src/usage_text.h
  6209. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6210. Updated French, Japanese, Russian and Ukrainian translations.
  6211. Thanks to all translators.
  6212. * po/fr.po
  6213. * po/ja.po
  6214. * po/ru.po
  6215. * po/uk.po
  6216. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Renamed aria2c.pot to aria2.pot
  6218. * po/aria2.pot
  6219. * po/aria2c.pot: Removed.
  6220. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6221. Removed MetaEntry.h
  6222. * src/Makefile.am
  6223. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Rename file by appending digits if a local file exists and its
  6225. file size is larger than that of remote file with --continue
  6226. option. The old implementation just throws exception in such case.
  6227. * src/RequestGroup.cc
  6228. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6229. Fixed the bug that download progress summary is not printed in the
  6230. interval specified by the option.
  6231. * src/ConsoleStatCalc.cc
  6232. * src/ConsoleStatCalc.h
  6233. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6234. Fixed compiler warning
  6235. * src/Cookie.cc
  6236. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6237. Fixed the cookie implementation based on RFC2965.
  6238. Now if a value in domain field is not started with dot, then
  6239. prepend dot. That means a cookie with domain=sf.net is sent to
  6240. wiki.sf.net.
  6241. * src/Cookie.cc
  6242. * test/CookieParserTest.cc
  6243. * test/CookieStorageTest.cc
  6244. * test/CookieTest.cc
  6245. * test/NsCookieParserTest.cc
  6246. * test/Sqlite3MozCookieParserTest.cc
  6247. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6248. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6249. is enabled and the server doesn't support keep-alive.
  6250. * src/AbstractCommand.cc
  6251. * src/DownloadCommand.cc
  6252. * src/HttpDownloadCommand.cc
  6253. * src/HttpDownloadCommand.h
  6254. * src/HttpResponseCommand.cc
  6255. * src/Request.cc
  6256. * src/Request.h
  6257. * test/RequestTest.cc
  6258. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Removed Dictionary/List/Data and its related classes.
  6260. * src/BencodeVisitor.cc: Removed.
  6261. * src/BencodeVisitor.h: Removed.
  6262. * src/Data.cc: Removed.
  6263. * src/Data.h: Removed.
  6264. * src/Dictionary.cc: Removed.
  6265. * src/Dictionary.h: Removed.
  6266. * src/List.cc: Removed.
  6267. * src/List.h: Removed.
  6268. * src/Makefile.am
  6269. * src/MetaEntry.h: Removed.
  6270. * src/MetaEntryVisitor.h: Removed.
  6271. * src/MetaFileUtil.cc: Removed.
  6272. * src/MetaFileUtil.h: Removed.
  6273. * test/BencodeVisitorTest.cc: Removed.
  6274. * test/DataTest.cc: Removed.
  6275. * test/DictionaryTest.cc: Removed.
  6276. * test/ListTest.cc: Removed.
  6277. * test/Makefile.am
  6278. * test/MetaFileUtilTest.cc: Removed.
  6279. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6280. Removed include of MetaEntry.h
  6281. * test/DHTMessageTrackerEntryTest.cc
  6282. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Use BDE instead of Dictionary/List/Data.
  6284. * src/AnnounceList.cc
  6285. * src/AnnounceList.h
  6286. * test/AnnounceListTest.cc
  6287. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Use BDE instead of Dictionary/List/Data.
  6289. * src/DHTAbstractMessage.cc
  6290. * src/DHTAbstractMessage.h
  6291. * src/DHTAnnouncePeerMessage.cc
  6292. * src/DHTAnnouncePeerMessage.h
  6293. * src/DHTAnnouncePeerReplyMessage.cc
  6294. * src/DHTAnnouncePeerReplyMessage.h
  6295. * src/DHTFindNodeMessage.cc
  6296. * src/DHTFindNodeMessage.h
  6297. * src/DHTFindNodeReplyMessage.cc
  6298. * src/DHTFindNodeReplyMessage.h
  6299. * src/DHTGetPeersMessage.cc
  6300. * src/DHTGetPeersMessage.h
  6301. * src/DHTGetPeersReplyMessage.cc
  6302. * src/DHTGetPeersReplyMessage.h
  6303. * src/DHTMessageFactory.h
  6304. * src/DHTMessageFactoryImpl.cc
  6305. * src/DHTMessageFactoryImpl.h
  6306. * src/DHTMessageReceiver.cc
  6307. * src/DHTMessageTracker.cc
  6308. * src/DHTMessageTracker.h
  6309. * src/DHTPingMessage.cc
  6310. * src/DHTPingMessage.h
  6311. * src/DHTPingReplyMessage.cc
  6312. * src/DHTPingReplyMessage.h
  6313. * src/DHTQueryMessage.cc
  6314. * src/DHTQueryMessage.h
  6315. * src/DHTResponseMessage.cc
  6316. * src/DHTResponseMessage.h
  6317. * test/DHTAnnouncePeerMessageTest.cc
  6318. * test/DHTAnnouncePeerReplyMessageTest.cc
  6319. * test/DHTFindNodeMessageTest.cc
  6320. * test/DHTFindNodeReplyMessageTest.cc
  6321. * test/DHTGetPeersMessageTest.cc
  6322. * test/DHTGetPeersReplyMessageTest.cc
  6323. * test/DHTMessageFactoryImplTest.cc
  6324. * test/DHTMessageTrackerTest.cc
  6325. * test/DHTPingMessageTest.cc
  6326. * test/DHTPingReplyMessageTest.cc
  6327. * test/MockDHTMessageFactory.h
  6328. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6329. Added tests the case where length < 0 is specified.
  6330. * test/BencodeTest.cc
  6331. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6332. Fixed memory leak in decoderawstring()
  6333. * src/bencode.cc
  6334. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6335. Added missing #ifdef guard. Added uc() function for String and
  6336. removeKey() for Dict.
  6337. * src/bencode.cc
  6338. * src/bencode.h
  6339. * test/BencodeTest.cc
  6340. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6341. Use BDE instead of Dictionary/List/Data.
  6342. * src/HandshakeExtensionMessage.cc
  6343. * src/HandshakeExtensionMessage.h
  6344. * test/HandshakeExtensionMessageTest.cc
  6345. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6346. Added --max-overall-upload-limit option. This option limits the
  6347. overall upload speed. Stated in help message that the existing
  6348. --max-upload-limit option limits the upload speed per each
  6349. torrent. Man page is also updated.
  6350. * doc/aria2c.1.txt
  6351. * src/DefaultBtMessageDispatcher.cc
  6352. * src/DefaultBtMessageDispatcher.h
  6353. * src/OptionHandlerFactory.cc
  6354. * src/PeerInteractionCommand.cc
  6355. * src/option_processing.cc
  6356. * src/prefs.cc
  6357. * src/prefs.h
  6358. * src/usage_text.h
  6359. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6360. Use BDE instead of Dictionary/List/Data classes.
  6361. * src/CompactPeerListProcessor.cc
  6362. * src/CompactPeerListProcessor.h
  6363. * src/DefaultBtAnnounce.cc
  6364. * src/DefaultBtContext.cc
  6365. * src/DefaultBtContext.h
  6366. * src/DefaultPeerListProcessor.cc
  6367. * src/DefaultPeerListProcessor.h
  6368. * src/DelegatingPeerListProcessor.cc
  6369. * src/DelegatingPeerListProcessor.h
  6370. * src/PeerListProcessor.h
  6371. * src/UTPexExtensionMessage.cc
  6372. * src/Util.h
  6373. * src/message.h
  6374. * test/DefaultBtContextTest.cc
  6375. * test/DefaultPeerListProcessorTest.cc
  6376. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Added bencode helper functions and BDE class.
  6378. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6379. * src/Makefile.am
  6380. * src/bencode.cc
  6381. * src/bencode.h
  6382. * test/BencodeTest.cc
  6383. * test/Makefile.am
  6384. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6385. Fixed the bug that bad URI is sent to the tracker when the announe
  6386. URI in torrent file includes query.
  6387. * src/DefaultBtAnnounce.cc
  6388. * test/DefaultBtAnnounceTest.cc
  6389. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6390. Added Option::blank().
  6391. Use !Option::blank(name) instead of Option::defined(name) for
  6392. the options that take filename.
  6393. * src/MultiUrlRequestInfo.cc
  6394. * src/Option.cc
  6395. * src/Option.h
  6396. * src/main.cc
  6397. * src/option_processing.cc
  6398. * test/OptionTest.cc
  6399. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Documented the default value of --check-certificate option in man
  6401. page.
  6402. * doc/aria2c.1.txt
  6403. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6404. Enabled --check-certificate by default. Added compile
  6405. time(configure) option --with-ca-bundle to specify CA bundle.
  6406. Warn if --check-certificate=true and --ca-certificate is not
  6407. specified or loading CA certificate is failed.
  6408. * configure.ac
  6409. * src/MultiUrlRequestInfo.cc
  6410. * src/OptionHandlerFactory.cc
  6411. * src/message.h
  6412. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6413. Mentioned https tag in help option.
  6414. * doc/aria2c.1.txt
  6415. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6416. Added `https' tag to help option category. Added https tag to
  6417. --ca-certificate, --certificate, --check-certificate and
  6418. --private-key option.
  6419. * src/OptionHandlerFactory.cc
  6420. * src/help_tags.h
  6421. * src/option_processing.cc
  6422. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6423. Changed the package name from `aria2c' to `aria2' in order to fix
  6424. the packaging issue in Debian and Fedora. The name of the
  6425. executable is not changed.
  6426. * configure.ac
  6427. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6428. Fixed typos
  6429. * src/usage_text.h
  6430. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6431. Fixed typos and updated doc.
  6432. * README
  6433. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6434. Fixed typos
  6435. * doc/aria2c.1.txt
  6436. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Fixed typos
  6438. * src/usage_text.h
  6439. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6440. Print a message when no files to download.
  6441. * src/download_helper.cc
  6442. * src/main.cc
  6443. * src/message.h
  6444. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. RFC3986 complied Percent-Encoding(urlencode).
  6446. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6447. ones.
  6448. * src/Request.cc
  6449. * src/Util.cc
  6450. * src/Util.h
  6451. * test/BtHandshakeMessageTest.cc
  6452. * test/DefaultBtAnnounceTest.cc
  6453. * test/DefaultBtContextTest.cc
  6454. * test/RequestTest.cc
  6455. * test/UtilTest.cc
  6456. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6457. Fixed the bug that prevents aria2 from downloading 0-length files
  6458. via HTTP/FTP.
  6459. * src/DefaultBtContext.cc
  6460. * src/DefaultBtContext.h
  6461. * src/DownloadContext.h
  6462. * src/FtpNegotiationCommand.cc
  6463. * src/HttpResponseCommand.cc
  6464. * src/HttpResponseCommand.h
  6465. * src/RequestGroup.cc
  6466. * src/SingleFileDownloadContext.cc
  6467. * src/SingleFileDownloadContext.h
  6468. * test/BtPostDownloadHandlerTest.cc
  6469. * test/MetalinkPostDownloadHandlerTest.cc
  6470. * test/MockBtContext.h
  6471. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6473. * src/option_processing.cc
  6474. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6475. Applied aria2-1.0.1-mingw.patch.
  6476. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6477. mingw.
  6478. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6479. * src/SocketCore.cc
  6480. * src/a2netcompat.h
  6481. * test/SocketCoreTest.cc
  6482. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. * Release 1.0.1
  6484. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6485. Updated Ukrainian and Norwegian Nynorsk translations.
  6486. Thanks to all translators.
  6487. * po/nn.po
  6488. * po/uk.po
  6489. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Don't show download result when -S option is used.
  6491. * src/main.cc
  6492. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6493. Bump up version number to 1.0.1
  6494. * configure.ac
  6495. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6496. Closed files after the test cases in MultiDiskWriterTest::
  6497. testResetDiskWriterEntries(). This will fix the unit test error
  6498. in mingw32 build.
  6499. * test/MultiDiskWriterTest.cc
  6500. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6501. Use HEAD method to get file size from HTTP server for segmented
  6502. downloading.
  6503. The request to the BitTorrent Tracker always uses GET method because
  6504. the response of the tracker is small and it doesn't need segmented
  6505. download.
  6506. * src/FtpNegotiationCommand.cc
  6507. * src/HttpRequest.cc
  6508. * src/HttpResponseCommand.cc
  6509. * src/HttpSkipResponseCommand.cc
  6510. * src/RequestGroup.cc
  6511. * src/RequestGroup.h
  6512. * src/TrackerWatcherCommand.cc
  6513. * test/HttpRequestTest.cc
  6514. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Fixed the bug that causes floating exception when -T option is used and
  6516. no URIs are given.
  6517. * src/download_helper.cc
  6518. * test/DownloadHelperTest.cc
  6519. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6520. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6521. errors in MinGW:
  6522. Closed file after saving server stats (RequestGroupMan.cc)
  6523. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6524. Ignored case & handled 2-digit years (strptime.c)
  6525. Added missing suseconds_t definition (a2time.h)
  6526. Fixed socket CLOSE() define (SocketCore.cc)
  6527. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6528. Changed utime() test values from x000 to x00000 as MinGW failed on
  6529. values less than timezone offset from Unix epoch
  6530. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6531. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6532. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6533. handle negative dates (CookieParserTest.cc)
  6534. * src/a2time.h
  6535. * src/FtpConnection.cc
  6536. * src/RequestGroupMan.cc
  6537. * src/SocketCore.cc
  6538. * src/strptime.c
  6539. * test/CookieParserTest.cc
  6540. * test/CopyDiskAdaptorTest.cc
  6541. * test/FileTest.cc
  6542. * test/FtpConnectionTest.cc
  6543. * test/MultiDiskAdaptorTest.cc
  6544. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6546. * doc/aria2c.1.txt
  6547. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. * Release 1.0.0
  6549. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6550. Added '~' to reserved characters.
  6551. * src/Util.cc
  6552. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6553. Do not urlencode Request::url in setUrl() because we want unmodified
  6554. URL using Request::getUrl()
  6555. * src/Request.cc
  6556. * src/Request.h
  6557. * test/RequestTest.cc
  6558. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6560. Thanks to all translators.
  6561. * po/bg.po
  6562. * po/fr.po
  6563. * po/ja.po
  6564. * po/ru.po
  6565. * po/uk.po
  6566. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Bump up version number to 1.0.0
  6568. * configure.ac
  6569. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Added nosqlite3 build to build_test.sh.
  6571. Renamed noxml as expat.
  6572. * build_test.sh
  6573. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6574. Updated INPUT FILE section.
  6575. * doc/aria2c.1.txt
  6576. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6578. on big endian systems because test .aria2 files are made for little
  6579. endian systems.
  6580. * test/DefaultBtProgressInfoFileTest.cc
  6581. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Dropped ares support.
  6583. * README
  6584. * configure.ac
  6585. * m4/libares.m4: Removed.
  6586. * src/AsyncNameResolver.cc
  6587. * src/Makefile.am
  6588. * test/Makefile.am
  6589. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6590. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6591. Removed const qualifier from DiskWriter::size().
  6592. * src/AbstractDiskWriter.cc
  6593. * src/AbstractDiskWriter.h
  6594. * src/ByteArrayDiskWriter.cc
  6595. * src/ByteArrayDiskWriter.h
  6596. * src/DiskWriter.h
  6597. * test/ByteArrayDiskWriterTest.cc
  6598. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6599. Fixed the bug that causes segmentation fault/bus error during executing
  6600. choking algorithm while seeding. This is caused by improper
  6601. implementation of compare function which returns inconsistent results
  6602. depending on the timing of last unchoke.
  6603. * src/BtSeederStateChoke.cc
  6604. * src/BtSeederStateChoke.h
  6605. * src/DefaultPeerStorage.cc
  6606. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Removed TODO
  6608. * TODO
  6609. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6610. Added a section that explains how to pass argument to options that
  6611. takes optional arguments with its short form.
  6612. * doc/aria2c.1.txt
  6613. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Added -u for the short form of --max-upload-limit option.
  6615. * doc/aria2c.1.txt
  6616. * src/option_processing.cc
  6617. * src/usage_text.h
  6618. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Added -V for the short form of --check-integrity option.
  6620. Now the argument of --check-integrity option is optional:
  6621. if it is omitted, it is evaluated as true.
  6622. * doc/aria2c.1.txt
  6623. * src/option_processing.cc
  6624. * src/usage_text.h
  6625. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6626. Made the default value of --ftp-pasv option set to true and it can take
  6627. true/false values.
  6628. * src/OptionHandlerFactory.cc
  6629. * src/option_processing.cc
  6630. * src/usage_text.h
  6631. * doc/aria2c.1.txt
  6632. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6633. Given custom random number generator to std::random_shuffle.
  6634. * src/AnnounceList.cc
  6635. * src/BtLeecherStateChoke.cc
  6636. * src/BtSeederStateChoke.cc
  6637. * src/DefaultBtRequestFactory.cc
  6638. * src/MetalinkEntry.cc
  6639. * src/RarestPieceSelector.cc
  6640. * src/SimpleRandomizer.cc
  6641. * src/SimpleRandomizer.h
  6642. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Now the default value of --enable-direct-io is true.
  6644. * src/OptionHandlerFactory.cc
  6645. * doc/aria2c.1.txt
  6646. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Erase peer before executing onReturningPeer and onErasingPeer
  6648. because choking algorithm called from onReturningPeer doesn't
  6649. like erasing peer in the active peer list.
  6650. * src/DefaultPeerStorage.cc
  6651. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Instead of creating special filename in createDownloadResult() if
  6653. inMemoryDownload() is true, now it is done in getFilePath().
  6654. * src/RequestGroup.cc
  6655. * test/RequestGroupTest.cc
  6656. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6657. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6658. processed in memory. This is the fix for previous comment out.
  6659. * src/MemoryBufferPreDownloadHandler.cc
  6660. * src/RequestGroup.cc
  6661. * src/RequestGroup.h
  6662. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Commented out the code which sets virtual directory path "[MEMORY]"
  6664. propagate directory to store to following RequestGroup.
  6665. * src/MemoryBufferPreDownloadHandler.cc
  6666. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Bump up version number to 1.0.0b
  6668. * configure.ac
  6669. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6670. Added input_uris.txt to EXTRA_DIST
  6671. * test/Makefile.am
  6672. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6673. Removed PeerObject.h from Makefile.am
  6674. * src/Makefile.am
  6675. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6676. Avoid slow seeding
  6677. * src/PeerInteractionCommand.cc
  6678. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6679. Updated usage for -i option.
  6680. * src/usage_text.h (TEXT_INPUT_FILE)
  6681. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Added INPUT FILE section to man page.
  6683. Escaped fake URLs.
  6684. * doc/aria2c.1.txt
  6685. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6686. Fixed wrong note position for -o option.
  6687. * doc/aria2c.1.txt
  6688. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6689. Fixed compile error without SSL/XML library.
  6690. * src/DefaultBtProgressInfoFile.cc
  6691. * src/DefaultBtProgressInfoFile.h
  6692. * src/FileMetalinkParserState.cc
  6693. * src/RequestGroup.h
  6694. * src/SocketCore.cc
  6695. * src/SocketCore.h
  6696. * src/VerificationMetalinkParserState.cc
  6697. * src/download_helper.h
  6698. * src/main.cc
  6699. * test/DefaultBtProgressInfoFileTest.cc
  6700. * test/DownloadHelperTest.cc
  6701. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6702. Rewritten URI handling functions. They are now provided as a testable
  6703. functions.
  6704. * src/Makefile.am
  6705. * src/RequestGroup.cc
  6706. * src/RequestGroup.h
  6707. * src/download_helper.cc
  6708. * src/download_helper.h
  6709. * src/main.cc
  6710. * test/DownloadHelperTest.cc
  6711. * test/Makefile.am
  6712. * test/input_uris.txt
  6713. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6714. Quickly terminate commands when ctrl-c is pressed.
  6715. * src/DownloadEngine.cc
  6716. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Quickly terminate idle commands when download finished.
  6718. * src/AbstractCommand.cc
  6719. * src/DownloadCommand.cc
  6720. * src/DownloadEngine.cc
  6721. * src/DownloadEngine.h
  6722. * src/SleepCommand.cc
  6723. * src/SleepCommand.h
  6724. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6725. Added the ability to specify output filename and directory in input
  6726. file.
  6727. Additional parameters are added in the following line of URIs
  6728. with proceeding white space(s), 1 parameter in 1 line.
  6729. The parameter names are the same with the command-line option name
  6730. without proceeding "--". Not all the options are available here:
  6731. at the moment, 'dir' and 'out' options are avialable.
  6732. Please note that out option has no effect against Metalink or BitTorrent
  6733. downloads.
  6734. Example input file:
  6735. http://host/foo-1.1.tar.bz2
  6736. out=foo.tar.bz2
  6737. dir=/tmp/downloads
  6738. http://host/thundermonkey-2.0.tar.bz2
  6739. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6740. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6741. thundermonkey-2.0.tar.bz2 is saved as
  6742. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6743. * src/BtPostDownloadHandler.cc
  6744. * src/Metalink2RequestGroup.cc
  6745. * src/Metalink2RequestGroup.h
  6746. * src/MetalinkPostDownloadHandler.cc
  6747. * src/UriListParser.cc
  6748. * src/UriListParser.h
  6749. * src/main.cc
  6750. * test/Metalink2RequestGroupTest.cc
  6751. * test/UriListParserTest.cc
  6752. * test/filelist1.txt
  6753. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Fixed error when SSL library is not found.
  6755. * configure.ac
  6756. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Cross referenced among -s, -C and -j options.
  6758. Updated usage of -C and -s options.
  6759. * src/usage_text.h
  6760. * doc/aria2c.1.txt
  6761. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6762. Fixed bad cast in 32bit platforms.
  6763. * test/DefaultPieceStorageTest.cc
  6764. (DefaultPieceStorageTest::testGetCompletedLength)
  6765. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6766. Fixed unit test fails on 32bit platforms.
  6767. * test/CookieParserTest.cc
  6768. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Show an average download speed in Download results.
  6770. * src/BtFileAllocationEntry.cc
  6771. * src/DefaultPieceStorage.cc
  6772. * src/DownloadContext.cc
  6773. * src/DownloadContext.h
  6774. * src/DownloadResult.h
  6775. * src/RequestGroup.cc
  6776. * src/RequestGroupMan.cc
  6777. * src/StreamFileAllocationEntry.cc
  6778. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Fixed the bug that metalink file is not processed if Content-Type
  6780. field has a paramter.
  6781. * src/HttpResponse.cc
  6782. * src/HttpResponse.h
  6783. * test/HttpResponseTest.cc
  6784. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6785. Removed unused code.
  6786. * src/DefaultBtAnnounce.cc
  6787. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6789. the value larger than DefaultPieceStorage::getTotalLength() when
  6790. in flight pieces are involved.
  6791. * src/DefaultPieceStorage.cc
  6792. * test/DefaultPieceStorageTest.cc
  6793. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Bump up version number to 1.0.0a.
  6795. * configure.ac
  6796. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6797. Updated configure.ac
  6798. * configure.ac
  6799. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Added usege for proxy.
  6801. * doc/aria2c.1.txt
  6802. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Added usage for --ca-certificate, --certificate, --private-key and
  6804. --check-certificate options.
  6805. * doc/aria2c.1.txt
  6806. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Updated man page
  6808. * doc/aria2c.1.txt
  6809. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6810. Added --no-proxy option. It receives comman separated hostname or
  6811. domains to which proxy should not be used.
  6812. aria2 honors the environment variable no_proxy to override no-proxy
  6813. value in configuration file. The user can override the environment
  6814. variable no_proxy with --no-proxy command-line option.
  6815. * src/AbstractCommand.cc
  6816. * src/OptionHandlerFactory.cc
  6817. * src/option_processing.cc
  6818. * src/prefs.cc
  6819. * src/prefs.h
  6820. * src/usage_text.h
  6821. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6823. The CA certificates are specified in --ca-certificate option.
  6824. By default, the verification is disabled. Use --check-certificate
  6825. option to enable it.
  6826. * src/HttpRequestCommand.cc
  6827. * src/LibgnutlsTLSContext.cc
  6828. * src/LibgnutlsTLSContext.h
  6829. * src/LibsslTLSContext.cc
  6830. * src/LibsslTLSContext.h
  6831. * src/MultiUrlRequestInfo.cc
  6832. * src/OptionHandlerFactory.cc
  6833. * src/SocketCore.cc
  6834. * src/SocketCore.h
  6835. * src/a2functional.h
  6836. * src/message.h
  6837. * src/option_processing.cc
  6838. * src/prefs.cc
  6839. * src/prefs.h
  6840. * src/usage_text.h
  6841. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Added client certificate authentication for SSL/TLS.
  6843. Currently a private key must be decrypted for use with aria2.
  6844. If a user accidentally gives encrypted file to aria2 then following
  6845. thing happens:
  6846. If encrypted private key is given to aria2, it behaves differently
  6847. depending on the ssl library it uses. If aria2 built with openssl then
  6848. openssl prompts the user for password. If aria2 build with gnutls then
  6849. aria2 exists with error at start up.
  6850. * src/DownloadEngineFactory.cc
  6851. * src/MultiUrlRequestInfo.cc
  6852. * src/OptionHandlerFactory.cc
  6853. * src/option_processing.cc
  6854. * src/prefs.cc
  6855. * src/prefs.h
  6856. * src/usage_text.h
  6857. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Introduced TLSContext that holds TLS related data that can be shared
  6859. with multiple SSL connections.
  6860. * src/DownloadEngineFactory.cc
  6861. * src/LibgnutlsTLSContext.cc
  6862. * src/LibgnutlsTLSContext.h
  6863. * src/LibsslTLSContext.cc
  6864. * src/LibsslTLSContext.h
  6865. * src/Makefile.am
  6866. * src/SocketCore.cc
  6867. * src/SocketCore.h
  6868. * src/TLSContext.h
  6869. * src/message.h
  6870. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Fixed the bug that the DiskWriter of the first FileEntry whose
  6872. `needsFileAllocation' property is false is not created
  6873. even if it shares a piece with next FileEntry which `requested' property
  6874. is true.
  6875. Fixed the bug that zero-length file is not created if pre file
  6876. allocation is not done.
  6877. * src/MultiDiskAdaptor.cc
  6878. * src/MultiDiskAdaptor.h
  6879. * test/MultiDiskAdaptorTest.cc
  6880. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Added the ability to pool proxy connection.
  6882. The conneciton in FTP with proxy-method=GET is not pooled.
  6883. Proxy-Connection header will not be sent when sending CONNECT method.
  6884. * src/DownloadEngine.cc
  6885. * src/DownloadEngine.h
  6886. * src/FtpFinishDownloadCommand.cc
  6887. * src/FtpInitiateConnectionCommand.cc
  6888. * src/FtpNegotiationCommand.cc
  6889. * src/HttpDownloadCommand.cc
  6890. * src/HttpInitiateConnectionCommand.cc
  6891. * src/HttpRequest.cc
  6892. * src/HttpRequest.h
  6893. * src/HttpResponse.cc
  6894. * src/HttpSkipResponseCommand.cc
  6895. * test/HttpRequestTest.cc
  6896. * test/HttpResponseTest.cc
  6897. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Handle date before epoch.
  6899. To create *bad* Time object, call Time::null().
  6900. * src/CookieParser.cc
  6901. * src/FtpConnection.cc
  6902. * src/FtpConnection.h
  6903. * src/FtpNegotiationCommand.cc
  6904. * src/RequestGroup.cc
  6905. * src/TimeA2.cc
  6906. * src/TimeA2.h
  6907. * test/CookieParserTest.cc
  6908. * test/FtpConnectionTest.cc
  6909. * test/TimeTest.cc
  6910. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Added support for following envrionment variables: http_proxy,
  6912. https_proxy, ftp_proxy and all_proxy.
  6913. Each variable is equivalent to the aria2 option whose name is the
  6914. variable name with '_' replaced with '-'.
  6915. They overrides options specified in aria2.conf file.
  6916. The envrionment variables can be overrode using command-line option.
  6917. * src/option_processing.cc
  6918. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Renamed --http-proxy-method as --proxy-method.
  6920. * src/AbstractCommand.cc
  6921. * src/FtpInitiateConnectionCommand.cc
  6922. * src/HttpInitiateConnectionCommand.cc
  6923. * src/OptionHandlerFactory.cc
  6924. * src/option_processing.cc
  6925. * src/prefs.cc
  6926. * src/prefs.h
  6927. * src/usage_text.h
  6928. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6930. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6931. Above 3 options and --http-proxy option can handle proxy in URL format
  6932. like: http://user:passwd@host:port.
  6933. If a proxy requires user/password, they must be specified in a URL.
  6934. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6935. instead.
  6936. * src/AbstractCommand.cc
  6937. * src/AbstractCommand.h
  6938. * src/AbstractProxyRequestCommand.cc
  6939. * src/AbstractProxyRequestCommand.h
  6940. * src/AuthConfigFactory.cc
  6941. * src/AuthConfigFactory.h
  6942. * src/FtpFinishDownloadCommand.cc
  6943. * src/FtpInitiateConnectionCommand.cc
  6944. * src/FtpInitiateConnectionCommand.h
  6945. * src/FtpNegotiationCommand.cc
  6946. * src/FtpTunnelRequestCommand.cc
  6947. * src/FtpTunnelRequestCommand.h
  6948. * src/HttpDownloadCommand.cc
  6949. * src/HttpInitiateConnectionCommand.cc
  6950. * src/HttpInitiateConnectionCommand.h
  6951. * src/HttpProxyRequestCommand.cc
  6952. * src/HttpProxyRequestCommand.h
  6953. * src/HttpRequest.cc
  6954. * src/HttpRequest.h
  6955. * src/HttpRequestCommand.cc
  6956. * src/HttpRequestCommand.h
  6957. * src/HttpSkipResponseCommand.cc
  6958. * src/InitiateConnectionCommand.cc
  6959. * src/InitiateConnectionCommand.h
  6960. * src/OptionHandlerFactory.cc
  6961. * src/OptionHandlerImpl.h
  6962. * src/Request.cc
  6963. * src/option_processing.cc
  6964. * src/prefs.cc
  6965. * src/prefs.h
  6966. * src/usage_text.h
  6967. * test/AuthConfigFactoryTest.cc
  6968. * test/HttpRequestTest.cc
  6969. * test/OptionHandlerTest.cc
  6970. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Execute choking algorithm when unchoked and interested peer is
  6972. disconected.
  6973. * src/DefaultPeerStorage.cc
  6974. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Added testcase for BtNotInterestedMessage from unchoked peer.
  6976. * test/BtNotInterestedMessageTest.cc
  6977. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Execute choking algorithm when BtInterestedMessage arrives from
  6979. unchoked peer.
  6980. * src/BtInterestedMessage.cc
  6981. * src/BtInterestedMessage.h
  6982. * src/DefaultBtMessageFactory.cc
  6983. * test/BtInterestedMessageTest.cc
  6984. * test/MockPeerStorage.h
  6985. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. AuthConfigFactory is now part of DownloadEngine.
  6987. * src/AbstractProxyRequestCommand.cc
  6988. * src/AuthConfigFactory.h
  6989. * src/DownloadEngine.cc
  6990. * src/DownloadEngine.h
  6991. * src/FtpConnection.cc
  6992. * src/FtpConnection.h
  6993. * src/FtpNegotiationCommand.cc
  6994. * src/HttpConnection.cc
  6995. * src/HttpRequest.cc
  6996. * src/HttpRequest.h
  6997. * src/HttpRequestCommand.cc
  6998. * src/HttpResponse.cc
  6999. * src/HttpResponseCommand.cc
  7000. * src/HttpSkipResponseCommand.cc
  7001. * src/MultiUrlRequestInfo.cc
  7002. * src/main.cc
  7003. * test/FtpConnectionTest.cc
  7004. * test/HttpRequestTest.cc
  7005. * test/HttpResponseTest.cc
  7006. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Corrected catched exception type.
  7008. * src/ServerStatMan.cc
  7009. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. DNSCache is now part of DownloadEngine.
  7011. * src/DNSCache.h
  7012. * src/DownloadEngine.cc
  7013. * src/DownloadEngine.h
  7014. * src/InitiateConnectionCommand.cc
  7015. * src/MultiUrlRequestInfo.cc
  7016. * test/Makefile.am
  7017. * test/Makefile.in
  7018. * test/SimpleDNSCacheTest.cc
  7019. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7021. DownloadEngine.
  7022. * src/ActivePeerConnectionCommand.cc
  7023. * src/BtSetup.cc
  7024. * src/CUIDCounter.h
  7025. * src/DHTSetup.cc
  7026. * src/DownloadCommand.cc
  7027. * src/DownloadEngine.cc
  7028. * src/DownloadEngine.h
  7029. * src/DownloadEngineFactory.cc
  7030. * src/FileAllocationDispatcherCommand.cc
  7031. * src/InitiatorMSEHandshakeCommand.cc
  7032. * src/PeerInitiateConnectionCommand.cc
  7033. * src/PeerInteractionCommand.cc
  7034. * src/PeerListenCommand.cc
  7035. * src/RequestGroup.cc
  7036. * src/StreamFileAllocationEntry.cc
  7037. * src/TrackerWatcherCommand.cc
  7038. * src/main.cc
  7039. * test/RequestGroupManTest.cc
  7040. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Implemented commented code in BtSeederStateChoke
  7042. * src/BtSeederStateChoke.cc
  7043. * src/Peer.cc
  7044. * src/Peer.h
  7045. * src/PeerInteractionCommand.cc
  7046. * src/PeerSessionResource.cc
  7047. * src/PeerSessionResource.h
  7048. * test/MockBtMessageDispatcher.h
  7049. * test/PeerSessionResourceTest.cc
  7050. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7052. its object.
  7053. * src/AbstractBtMessage.cc
  7054. * src/ActivePeerConnectionCommand.cc
  7055. * src/ActivePeerConnectionCommand.h
  7056. * src/BtContextAwareCommand.cc
  7057. * src/BtContextAwareCommand.h
  7058. * src/BtExtendedMessage.cc
  7059. * src/BtExtendedMessage.h
  7060. * src/BtInterestedMessage.cc
  7061. * src/BtInterestedMessage.h
  7062. * src/BtNotInterestedMessage.cc
  7063. * src/BtNotInterestedMessage.h
  7064. * src/BtRegistry.cc
  7065. * src/BtRegistry.h
  7066. * src/BtSeederStateChoke.cc
  7067. * src/BtSetup.cc
  7068. * src/DHTGetPeersCommand.cc
  7069. * src/DHTGetPeersCommand.h
  7070. * src/DHTPeerAnnounceEntry.cc
  7071. * src/DHTPeerAnnounceEntry.h
  7072. * src/DHTPeerAnnounceStorage.cc
  7073. * src/DHTPeerAnnounceStorage.h
  7074. * src/DHTPeerLookupTask.cc
  7075. * src/DHTPeerLookupTask.h
  7076. * src/DHTSetup.cc
  7077. * src/DHTSetup.h
  7078. * src/DHTTaskFactory.h
  7079. * src/DHTTaskFactoryImpl.cc
  7080. * src/DHTTaskFactoryImpl.h
  7081. * src/DefaultBtAnnounce.cc
  7082. * src/DefaultBtInteractive.cc
  7083. * src/DefaultBtInteractive.h
  7084. * src/DefaultBtMessageDispatcher.cc
  7085. * src/DefaultBtMessageDispatcher.h
  7086. * src/DefaultBtMessageFactory.cc
  7087. * src/DefaultBtMessageFactory.h
  7088. * src/DefaultBtMessageReceiver.cc
  7089. * src/DefaultBtProgressInfoFile.cc
  7090. * src/DefaultBtProgressInfoFile.h
  7091. * src/DefaultBtRequestFactory.cc
  7092. * src/DefaultBtRequestFactory.h
  7093. * src/DefaultExtensionMessageFactory.cc
  7094. * src/DefaultExtensionMessageFactory.h
  7095. * src/DefaultPeerStorage.cc
  7096. * src/DefaultPeerStorage.h
  7097. * src/DownloadEngine.cc
  7098. * src/DownloadEngine.h
  7099. * src/InitiatorMSEHandshakeCommand.cc
  7100. * src/InitiatorMSEHandshakeCommand.h
  7101. * src/MSEHandshake.cc
  7102. * src/MSEHandshake.h
  7103. * src/Makefile.am
  7104. * src/Makefile.in
  7105. * src/PeerChokeCommand.cc
  7106. * src/PeerChokeCommand.h
  7107. * src/PeerInitiateConnectionCommand.cc
  7108. * src/PeerInitiateConnectionCommand.h
  7109. * src/PeerInteractionCommand.cc
  7110. * src/PeerInteractionCommand.h
  7111. * src/PeerObject.h
  7112. * src/PeerReceiveHandshakeCommand.cc
  7113. * src/PeerReceiveHandshakeCommand.h
  7114. * src/ReceiverMSEHandshakeCommand.cc
  7115. * src/RequestGroup.cc
  7116. * src/RequestGroup.h
  7117. * src/RequestGroupMan.cc
  7118. * src/RequestGroupMan.h
  7119. * src/SeedCheckCommand.cc
  7120. * src/SeedCheckCommand.h
  7121. * src/ShareRatioSeedCriteria.h
  7122. * src/SimpleBtMessage.cc
  7123. * src/TrackerWatcherCommand.cc
  7124. * src/TrackerWatcherCommand.h
  7125. * src/UTPexExtensionMessage.cc
  7126. * src/UTPexExtensionMessage.h
  7127. * test/BtCancelMessageTest.cc
  7128. * test/BtChokeMessageTest.cc
  7129. * test/BtExtendedMessageTest.cc
  7130. * test/BtInterestedMessageTest.cc
  7131. * test/BtNotInterestedMessageTest.cc
  7132. * test/BtPieceMessageTest.cc
  7133. * test/BtPortMessageTest.cc
  7134. * test/BtRegistryTest.cc
  7135. * test/BtRejectMessageTest.cc
  7136. * test/BtRequestMessageTest.cc
  7137. * test/DHTPeerAnnounceEntryTest.cc
  7138. * test/DHTPeerAnnounceStorageTest.cc
  7139. * test/DefaultBtMessageDispatcherTest.cc
  7140. * test/DefaultBtMessageFactoryTest.cc
  7141. * test/DefaultBtProgressInfoFileTest.cc
  7142. * test/DefaultBtRequestFactoryTest.cc
  7143. * test/DefaultExtensionMessageFactoryTest.cc
  7144. * test/MSEHandshakeTest.cc
  7145. * test/MockDHTTaskFactory.h
  7146. * test/ShareRatioSeedCriteriaTest.cc
  7147. * test/UTPexExtensionMessageTest.cc
  7148. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Fixed compiler warning.
  7150. * test/UtilTest.cc
  7151. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Treat Cookie object as session cookie if expiry = 0 is given.
  7153. With this change, you can specify session scoped cookies in an external
  7154. file setting expiry value to 0.
  7155. * src/Cookie.cc
  7156. * src/Cookie.h
  7157. * test/CookieParserTest.cc
  7158. * test/CookieStorageTest.cc
  7159. * test/CookieTest.cc
  7160. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Changed signature of DHTMessageFactory::createResponseMessage().
  7162. Removed unused validateIDMatch.
  7163. * src/DHTMessageFactory.h
  7164. * src/DHTMessageFactoryImpl.cc
  7165. * src/DHTMessageFactoryImpl.h
  7166. * src/DHTMessageTracker.cc
  7167. * test/DHTMessageFactoryImplTest.cc
  7168. * test/MockDHTMessageFactory.h
  7169. Dropped DHT message coming from same ID of localhost.
  7170. * src/DHTMessageReceiver.cc
  7171. Rejected adding node whose ID is the same as localhost's.
  7172. * src/DHTRoutingTable.cc
  7173. * test/BtPortMessageTest.cc
  7174. * test/DHTRoutingTableTest.cc
  7175. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Pool connection when redirection occurs with Content-Length = 0.
  7177. * src/HttpSkipResponseCommand.cc
  7178. * src/HttpSkipResponseCommand.h
  7179. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Fixed the bug that causes time out when redirection occurs with
  7181. content-length 0.
  7182. * src/HttpResponseCommand.cc
  7183. * src/HttpSkipResponseCommand.cc
  7184. * src/HttpSkipResponseCommand.h
  7185. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Now each status legends is shown only when it appears in Download
  7187. Result. If Download Result has no item, then status legend will not
  7188. be printed.
  7189. * src/RequestGroupMan.cc
  7190. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Removed duplicate creation of OptionHandlers.
  7192. * src/option_processing.cc
  7193. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Fixed the bug that causes segmentation fault when accessing files which
  7195. don't exist or are not included in --select-file option while
  7196. validating chunk checksum.
  7197. * src/MultiDiskAdaptor.cc
  7198. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Fixed compiler warning.
  7200. * test/UtilTest.cc
  7201. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7203. * src/IteratableChecksumValidator.cc
  7204. * src/IteratableChunkChecksumValidator.cc
  7205. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. * Release 0.16.2
  7207. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Added Serbian translation. Updated Ukrainian translation.
  7209. Thanks to all translators.
  7210. * po/sr.po
  7211. * po/uk.po
  7212. * po/LINGUAS
  7213. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Bump up version number to 0.16.2
  7215. * configure.ac
  7216. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Added length equality test to operator== to drop a piece message
  7218. whose length does not match to the requested one.
  7219. * src/RequestSlot.cc
  7220. * test/DefaultBtMessageDispatcherTest.cc
  7221. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7223. recieved.
  7224. In this fix, if a request larger than 16KiB length is received, aria2
  7225. disconnects the peer.
  7226. * src/BtConstants.h
  7227. * src/PeerMessageUtil.cc
  7228. * src/PeerMessageUtil.h
  7229. * test/BtRequestMessageTest.cc
  7230. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. * Release 0.16.1
  7232. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7234. * doc/aria2c.1.txt
  7235. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7237. Updated French, Simplified Chinese and Japanese translations.
  7238. Thanks to all translators.
  7239. en@quot and en@boldquot are also added.
  7240. * po/LINGUAS
  7241. * po/fr.po
  7242. * po/ja.po
  7243. * po/uk.po
  7244. * po/vi.po
  7245. * po/zh_CN.po
  7246. * po/zh_TW.po
  7247. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Bump up version number to 0.16.1.
  7249. * configure.ac
  7250. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Updated README.
  7252. * README
  7253. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7255. not to replace '--' with em dash character.
  7256. * doc/aria2c.1.txt
  7257. * doc/makeman
  7258. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7260. every SEC seconds.
  7261. * src/DownloadEngineFactory.cc
  7262. * src/OptionHandlerFactory.cc
  7263. * src/option_processing.cc
  7264. * src/usage_text.h
  7265. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Fixed compile warning on linux-amd64
  7267. * src/FtpConnection.cc
  7268. * src/IteratableChunkChecksumValidator.cc
  7269. * src/MultiDiskAdaptor.cc
  7270. Fixed the bug that unit test fails on linux-amd64
  7271. * test/UtilTest.cc
  7272. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Added --dht-file-path option to change the path to dht.dat, which is a
  7274. serialized DHT routing table.
  7275. * src/OptionHandlerFactory.cc
  7276. * src/option_processing.cc
  7277. * src/usage_text.h
  7278. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Fixed possible underflow.
  7280. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7281. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Fixed the bug that last character in URI is not encoded.
  7283. * src/Request.cc
  7284. * test/RequestTest.cc
  7285. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Fixed the bug that referer header field contains fragment.
  7287. Now Request class removes fragment part of URI and encodes it
  7288. in Request::setUri() and setReferer().
  7289. * src/Request.h
  7290. * src/Request.cc
  7291. * test/RequestTest.cc
  7292. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Added missing m4 macros.
  7294. * m4/cppunit.m4
  7295. * m4/libgcrypt.m4
  7296. * m4/libgnutls-extra.m4
  7297. * m4/libgnutls.m4
  7298. * m4/libxml2.m4
  7299. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Fixed compile error with gcc-4.4(snapshot)
  7301. * src/File.cc
  7302. * src/FtpConnection.cc
  7303. * src/OptionHandlerImpl.h
  7304. * src/Util.cc
  7305. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Removed assert()
  7307. * src/SocketBuffer.cc (SocketBuffer::send)
  7308. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Changed the type of _numNewConnection to unsigned int.
  7310. * src/ActivePeerConnectionCommand.cc
  7311. * src/ActivePeerConnectionCommand.h
  7312. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. * Release 0.16.0
  7314. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Updated doc
  7316. * README
  7317. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7319. translations. Thanks to all translators.
  7320. * po/bg.po
  7321. * po/de.po
  7322. * po/fr.po
  7323. * po/ja.po
  7324. * po/zh_CN.po
  7325. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Bump up version number to 0.16.0.
  7327. * configure.ac
  7328. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7330. int32_t.
  7331. Changed the type of count to int32_t.
  7332. * src/Metalink2RequestGroup.cc
  7333. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Added test for Time::elapsed(time_t).
  7335. * test/TimeTest.cc
  7336. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7338. Util::difftv() should be used instead.
  7339. * src/TimeA2.cc
  7340. * src/TimeA2.h
  7341. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Made socket for dht connections non-blocking
  7343. * src/DHTAbstractMessage.cc
  7344. * src/DHTAbstractMessage.h
  7345. * src/DHTConnection.h
  7346. * src/DHTConnectionImpl.cc
  7347. * src/DHTConnectionImpl.h
  7348. * src/DHTMessage.h
  7349. * src/DHTMessageDispatcherImpl.cc
  7350. * src/DHTMessageDispatcherImpl.h
  7351. * src/DHTUnknownMessage.cc
  7352. * src/DHTUnknownMessage.h
  7353. * src/SocketCore.cc
  7354. * src/SocketCore.h
  7355. * test/MockDHTMessage.h
  7356. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Changed the type of offset to int.
  7358. * src/ParameterizedStringParser.cc
  7359. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Made getAsInt() return int32_t
  7361. * src/Option.h
  7362. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7364. build.
  7365. * configure.ac
  7366. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Use sqlite3_open if sqlite3_open_v2 is not available.
  7368. * src/Sqlite3MozCookieParser.cc
  7369. * src/Sqlite3MozCookieParser.h
  7370. * m4/sqlite3.m4
  7371. * test/Sqlite3MozCookieParserTest.cc
  7372. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7374. * src/BtPieceMessage.cc
  7375. * src/DHTPeerAnnounceStorage.cc
  7376. * src/DefaultPieceStorage.cc
  7377. * src/DownloadCommand.cc
  7378. * src/DownloadEngine.cc
  7379. * src/FtpConnection.cc
  7380. * src/PeerConnection.cc
  7381. * src/PeerMessageUtil.cc
  7382. * src/RequestGroup.cc
  7383. * src/RequestGroupMan.cc
  7384. * src/SimpleBtMessage.cc
  7385. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7387. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7388. * src/AbstractDiskWriter.cc
  7389. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Don't set Request::supportsPersistentConnection() in HttpConnection
  7391. since this code is also used in AbstractProxyResponseCommand.
  7392. Moved those code to HttpResponse.
  7393. * src/HttpResponse.cc
  7394. * src/HttpResponse.h
  7395. * src/HttpConnection.cc
  7396. * src/HttpConnection.h
  7397. * src/HttpResponseCommand.cc
  7398. * test/HttpResponseTest.cc
  7399. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7401. The configuration is minimum: no torrent, no metalink, so there may be
  7402. other compile error on their code.
  7403. * src/a2netcompat.h
  7404. * src/File.cc
  7405. * src/File.h
  7406. * src/SocketCore.cc
  7407. * src/SocketCore.h
  7408. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Made a socket of incoming peer non-blocking.
  7410. * src/PeerListenCommand.cc
  7411. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7413. whole message data is not sent in one send() call.
  7414. * src/BtPieceMessage.cc
  7415. * src/BtPieceMessage.h
  7416. * src/PeerConnection.cc
  7417. * src/PeerConnection.h
  7418. * src/SimpleBtMessage.cc
  7419. * src/SimpleBtMessage.h
  7420. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Fixed the bug that aria2 downloads faster than max-download-limit when
  7422. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7423. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7424. , instead of sum of them.
  7425. * src/ActivePeerConnectionCommand.cc
  7426. * src/DefaultBtInteractive.cc
  7427. * src/DownloadCommand.cc
  7428. * src/PeerInteractionCommand.cc
  7429. * src/PeerReceiveHandshakeCommand.cc
  7430. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Fixed the bug that HTTPS download fails.
  7432. * src/AbstractCommand.cc
  7433. * src/AbstractCommand.h
  7434. * src/DownloadCommand.cc
  7435. * src/FtpConnection.cc
  7436. * src/HttpConnection.cc
  7437. * src/HttpRequestCommand.cc
  7438. * src/HttpResponseCommand.cc
  7439. * src/HttpSkipResponseCommand.cc
  7440. * src/MSEHandshake.cc
  7441. * src/PeerConnection.cc
  7442. * src/SocketCore.cc
  7443. * src/SocketCore.h
  7444. Fixed the bug that aria2 doesn't download whole content body and cannot
  7445. reuse connection if chunked transfer encoding and gzip content encoding
  7446. are set.
  7447. * src/DownloadCommand.cc
  7448. * src/HttpSkipResponseCommand.cc
  7449. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Updated man page.
  7451. * doc/aria2c.1.txt
  7452. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. When error occurred while aria2 was parsing an .aria2.conf file, print
  7454. the usage of the option that caused error.
  7455. * src/option_processing.cc
  7456. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Fixed compile error on OptionHandlerException
  7458. * src/Makefile.am
  7459. * src/OptionHandlerException.cc
  7460. * src/OptionHandlerException.h
  7461. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Moved message of the error to OptionHandlerException.h
  7463. * src/NameMatchOptionHandler.h
  7464. * src/OptionHandlerException.h
  7465. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. When error occurs while aria2 is parsing an command-line option, print
  7467. the usage of the option.
  7468. * src/Makefile.am
  7469. * src/NameMatchOptionHandler.h
  7470. * src/OptionHandlerException.h
  7471. * src/option_processing.cc
  7472. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Reverted previous change.
  7474. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7475. username is not in URI.
  7476. * src/HttpRequest.cc
  7477. * src/Request.cc
  7478. * test/HttpRequestTest.cc
  7479. * test/RequestTest.cc
  7480. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Now colon is required for username and password in FTP URL, like:
  7482. ftp://username:password@host.
  7483. If colon is not there, aria2 don't parse it as a username. For example,
  7484. aria2 don't retrieve username from ftp://username@host.
  7485. This fix was made in order to login FTP server via non-transparent ftp
  7486. proxy.
  7487. * src/Request.cc
  7488. * test/RequestTest.cc
  7489. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Use netrc for HTTP.
  7491. Now FTP user/password is sent in Authorization header when
  7492. --ftp-via-http-proxy=get is given.
  7493. * src/AuthConfigFactory.cc
  7494. * src/HttpRequest.cc
  7495. * src/HttpRequest.h
  7496. * src/NetrcAuthResolver.cc
  7497. * src/NetrcAuthResolver.h
  7498. * src/OptionHandlerFactory.cc
  7499. * src/option_processing.cc
  7500. * src/prefs.cc
  7501. * src/prefs.h
  7502. * test/AuthConfigFactoryTest.cc
  7503. * test/HttpRequestTest.cc
  7504. * test/NetrcAuthResolverTest.cc
  7505. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Issue PWD command first and get working directory and use it as a prefix
  7507. for CWD command.
  7508. * src/DownloadEngine.cc
  7509. * src/DownloadEngine.h
  7510. * src/FtpConnection.cc
  7511. * src/FtpConnection.h
  7512. * src/FtpFinishDownloadCommand.cc
  7513. * src/FtpInitiateConnectionCommand.cc
  7514. * src/FtpNegotiationCommand.cc
  7515. * src/FtpNegotiationCommand.h
  7516. * test/FtpConnectionTest.cc
  7517. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Removed default user/pass for FTP user/pass, since it should not have
  7519. precedence over netrc configuration by default.
  7520. * src/OptionHandlerFactory.cc
  7521. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Added debug log for socket event.
  7523. * src/AbstractCommand.cc
  7524. * src/PeerAbstractCommand.cc
  7525. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Log microseconds.
  7527. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7528. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Replaced HelpItem.cc with OptionHandler.cc.
  7530. * po/POTFILES.in
  7531. Updated po files with 'make update-po'
  7532. * po/aria2c.pot
  7533. * po/*.po
  7534. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Removed possible values from the text.
  7536. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7537. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Removed unused preferences:
  7539. PREF_NO_PREALLOCATION
  7540. PREF_STDOUT_LOG
  7541. PREF_TRACKER_MAX_TRIES
  7542. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7543. PREF_MIN_SEGMENT_SIZE
  7544. * src/option_processing.cc
  7545. * src/prefs.cc
  7546. * src/prefs.h
  7547. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Integrated HelpItem into OptionParser to ease the workload for adding
  7549. new options. Removed default value from usage text.
  7550. * src/HelpItem.cc: Removed.
  7551. * src/HelpItem.h: Removed.
  7552. * src/HelpItemFactory.cc: Removed.
  7553. * src/HelpItemFactory.h: Removed.
  7554. * src/Makefile.am
  7555. * src/Makefile.in
  7556. * src/NameMatchOptionHandler.h
  7557. * src/OptionHandler.cc
  7558. * src/OptionHandler.h
  7559. * src/OptionHandlerFactory.cc
  7560. * src/OptionHandlerImpl.h
  7561. * src/OptionParser.cc
  7562. * src/OptionParser.h
  7563. * src/TagContainer.cc: Removed.
  7564. * src/TagContainer.h: Removed.
  7565. * src/TaggedItem.cc: Removed.
  7566. * src/TaggedItem.h: Removed.
  7567. * src/main.cc
  7568. * src/option_processing.cc
  7569. * src/usage_text.h
  7570. * src/version_usage.cc
  7571. * test/HelpItemTest.cc: Removed.
  7572. * test/Makefile.am
  7573. * test/Makefile.in
  7574. * test/OptionHandlerTest.cc
  7575. * test/OptionParserTest.cc
  7576. * test/TagContainerTest.cc: Removed.
  7577. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Moved `TransferStat stat = ...' to inside the `if' clause.
  7579. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7580. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Fixed the bug that a block in a piece is requested when same block is
  7582. already requested to the same peer in end game mode.
  7583. * src/BtRequestFactory.h
  7584. * src/DefaultBtInteractive.cc
  7585. * src/DefaultBtRequestFactory.cc
  7586. * src/DefaultBtRequestFactory.h
  7587. * src/DefaultPieceStorage.cc
  7588. * src/DefaultPieceStorage.h
  7589. * src/PieceStorage.h
  7590. * src/UnknownLengthPieceStorage.cc
  7591. * src/UnknownLengthPieceStorage.h
  7592. * test/DefaultBtRequestFactoryTest.cc
  7593. * test/DefaultPieceStorageTest.cc
  7594. * test/MockBtRequestFactory.h
  7595. * test/MockPieceStorage.h
  7596. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Removed _uploadLength and _downloadLength from PeerSessionResource
  7598. and use PeerStat::_sessionUploadLength and
  7599. PeerStat::_sessionDownloadLength.
  7600. * src/PeerSessionResource.cc
  7601. * src/PeerSessionResource.h
  7602. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Fixed the bug that prefixLength of split bucket which doesn't include
  7604. local node ID is incremented.
  7605. * src/DHTBucket.cc
  7606. * src/DHTBucket.h
  7607. * test/DHTBucketTest.cc
  7608. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Added cookies.sqlite to EXTRA_DIST
  7610. * test/Makefile.am
  7611. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Added Turkish translation. Updated French, German, Russian and
  7613. Simplified Chinese translations. Thanks to all translators.
  7614. * po/LINGUAS
  7615. * po/de.po
  7616. * po/fr.po
  7617. * po/ru.po
  7618. * po/tr.po
  7619. * po/zh_CN.po
  7620. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Added deliminating text to the beginning of the log so that one can find
  7622. where the log starts easily.
  7623. * src/main.cc
  7624. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7626. to fix compile error when async DNS is not enabled by configuration.
  7627. * src/AbstractCommand.cc
  7628. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. If establishing conneciton to a server is failed, then mark error on
  7630. its ServerStat.
  7631. Added the cause of error to log when error event occurred.
  7632. Moved message string to message.h for translation.
  7633. * src/AbstractCommand.cc
  7634. * src/AbstractCommand.h
  7635. * src/FtpNegotiationCommand.cc
  7636. * src/HttpRequestCommand.cc
  7637. * src/PeerAbstractCommand.cc
  7638. * src/message.h
  7639. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Added the function to get error message from socket.
  7641. * src/SocketCore.cc
  7642. * src/SocketCore.h
  7643. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7645. * src/RequestGroupMan.cc
  7646. * src/RequestGroupMan.h
  7647. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. If error event is received in epoll, then abort download immediately.
  7649. * src/AbstractCommand.cc
  7650. * src/Command.cc
  7651. * src/Command.h
  7652. * src/DownloadEngine.cc
  7653. * src/PeerAbstractCommand.cc
  7654. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Added usage message for --uri-selector, --server-stat-of,
  7656. --server-stat-in, --server-stat-timeout options.
  7657. * src/HelpItemFactory.cc
  7658. * src/usage_text.h
  7659. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Added upper limit of FTP response buffer. The current implementation
  7661. uses 4096bytes as a limit.
  7662. * src/FtpConnection.cc
  7663. * src/FtpConnection.h
  7664. * test/FtpConnectionTest.cc
  7665. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Use non-blocking socket for TCP communication to avoid possible
  7667. blocking due to buffer full.
  7668. * src/AbstractProxyRequestCommand.cc
  7669. * src/FtpConnection.cc
  7670. * src/FtpConnection.h
  7671. * src/FtpNegotiationCommand.cc
  7672. * src/FtpNegotiationCommand.h
  7673. * src/HttpConnection.cc
  7674. * src/HttpConnection.h
  7675. * src/HttpRequestCommand.cc
  7676. * src/InitiatorMSEHandshakeCommand.cc
  7677. * src/InitiatorMSEHandshakeCommand.h
  7678. * src/MSEHandshake.cc
  7679. * src/MSEHandshake.h
  7680. * src/Makefile.am
  7681. * src/PeerConnection.cc
  7682. * src/PeerConnection.h
  7683. * src/PeerInteractionCommand.cc
  7684. * src/PeerListenCommand.cc
  7685. * src/ReceiverMSEHandshakeCommand.cc
  7686. * src/ReceiverMSEHandshakeCommand.h
  7687. * src/SocketBuffer.cc
  7688. * src/SocketBuffer.h
  7689. * src/SocketCore.cc
  7690. * src/SocketCore.h
  7691. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Call setStatusRealtime() in constructor.
  7693. * src/RealtimeCommand.cc
  7694. * src/RealtimeCommand.h
  7695. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Call Download::setNoWait(true) to execute newly created command without
  7697. a pause.
  7698. * src/AbstractCommand.cc
  7699. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7701. found' error from HTTP/FTP server NUM times without getting single
  7702. bytes of data, then force the download to fail.
  7703. Basically aria2 tris all URIs available. So if long list of URIs are
  7704. specified in Metalink, then aria2 will take a long time to fail
  7705. eventually if all URIs are outdated. This option eases this situation
  7706. to limit the number of servers to try.
  7707. * src/FtpNegotiationCommand.cc
  7708. * src/HelpItemFactory.cc
  7709. * src/HttpResponseCommand.cc
  7710. * src/OptionHandlerFactory.cc
  7711. * src/PeerStat.h
  7712. * src/RequestGroup.cc
  7713. * src/RequestGroup.h
  7714. * src/SegmentMan.cc
  7715. * src/SegmentMan.h
  7716. * src/option_processing.cc
  7717. * src/prefs.cc
  7718. * src/prefs.h
  7719. * src/usage_text.h
  7720. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7722. response even if more than one response is in it.
  7723. * src/FtpConnection.cc
  7724. * src/FtpConnection.h
  7725. * test/FtpConnectionTest.cc
  7726. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Merged from stable-0.15
  7728. * m4/libcares.m4
  7729. Use pkg-config
  7730. * m4/sqlite3.m4
  7731. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Removed unnecessary if statement.
  7733. * src/DefaultPieceStorage.cc (initPieceStorage)
  7734. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Added --connect-timeout option to specify connect timeout in seconds.
  7736. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7737. connecting to BitTorrent peer is not controlled by this option.
  7738. * src/AbstractProxyRequestCommand.cc
  7739. * src/FtpNegotiationCommand.cc
  7740. * src/HelpItemFactory.cc
  7741. * src/HttpRequestCommand.cc
  7742. * src/OptionHandlerFactory.cc
  7743. * src/option_processing.cc
  7744. * src/prefs.cc
  7745. * src/prefs.h
  7746. * src/usage_text.h
  7747. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Added help message for -R option.
  7749. * src/HelpItemFactory.cc
  7750. * src/usage_text.h
  7751. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Added the message that the time is in local time zone.
  7753. * src/RequestGroup.cc
  7754. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Implemented the ability to get timestamp from remote FTP server using
  7756. MDTM command described in RFC3659.
  7757. * src/FtpConnection.cc
  7758. * src/FtpConnection.h
  7759. * src/FtpNegotiationCommand.cc
  7760. * src/FtpNegotiationCommand.h
  7761. * test/FtpConnectionTest.cc
  7762. * test/Makefile.am
  7763. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Implemented the ability to get timestamp from remote HTTP server and
  7765. apply it to local file. To enable this feature, --remote-time option
  7766. is added. No usage text has been written yet.
  7767. If several servers returns difference timestamp, then aria2 uses latest
  7768. one.
  7769. * src/CopyDiskAdaptor.cc
  7770. * src/CopyDiskAdaptor.h
  7771. * src/DirectDiskAdaptor.cc
  7772. * src/DirectDiskAdaptor.h
  7773. * src/DiskAdaptor.h
  7774. * src/File.cc
  7775. * src/File.h
  7776. * src/HttpHeader.cc
  7777. * src/HttpHeader.h
  7778. * src/HttpResponse.cc
  7779. * src/HttpResponse.h
  7780. * src/HttpResponseCommand.cc
  7781. * src/HttpResponseCommand.h
  7782. * src/MultiDiskAdaptor.cc
  7783. * src/MultiDiskAdaptor.h
  7784. * src/OptionHandlerFactory.cc
  7785. * src/RequestGroup.cc
  7786. * src/RequestGroup.h
  7787. * src/RequestGroupMan.cc
  7788. * src/option_processing.cc
  7789. * src/prefs.cc
  7790. * src/prefs.h
  7791. * test/CopyDiskAdaptorTest.cc
  7792. * test/FileTest.cc
  7793. * test/Makefile.am
  7794. * test/Makefile.in
  7795. * test/MultiDiskAdaptorTest.cc
  7796. * test/TestUtil.cc
  7797. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Fixed the bug that DiskWriterEntry is not created when its
  7799. FileEntry.isRequested() is false and it doesn't share a piece with
  7800. other FileEntries that are requested. This bug causes segmentation fault
  7801. in the end.
  7802. * src/MultiDiskAdaptor.cc
  7803. * src/MultiDiskAdaptor.h
  7804. * src/MultiFileAllocationIterator.cc
  7805. * test/MultiDiskAdaptorTest.cc
  7806. * test/MultiFileAllocationIteratorTest.cc
  7807. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7809. called if the number of file entries are greater than max open files.
  7810. * src/AbstractSingleDiskAdaptor.cc
  7811. * src/AbstractSingleDiskAdaptor.h
  7812. * src/DiskAdaptor.h
  7813. * src/MultiDiskAdaptor.cc
  7814. * src/MultiDiskAdaptor.h
  7815. * test/MultiDiskAdaptorTest.cc
  7816. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Added a constuctor that receives struct timeval.
  7818. Added operator<.
  7819. * src/TimeA2.cc
  7820. * src/TimeA2.h
  7821. * test/TimeTest.cc
  7822. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7824. * src/CookieParser.cc
  7825. * test/CookieParserTest.cc
  7826. * test/HttpResponseTest.cc
  7827. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Implmented the functions to parse date.
  7829. * src/TimeA2.cc
  7830. * src/TimeA2.h
  7831. * test/TimeTest.cc
  7832. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Added "Firefox3 Cookie" feature to FeatureConfig
  7834. * src/FeatureConfig.cc
  7835. * src/FeatureConfig.h
  7836. * test/FeatureConfigTest.cc
  7837. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Bump up version number to 0.16.0b
  7839. * configure.ac
  7840. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Use pkg-config if is is available.
  7842. * m4/openssl.m4
  7843. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7845. * src/BtAnnounce.h
  7846. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. If an error occurred with a URI, remove identical URI from remaining
  7848. URI list because it is likely that same error occurred in the end and it
  7849. is waste of time.
  7850. * src/AbstractCommand.cc
  7851. * src/RequestGroup.cc
  7852. * src/RequestGroup.h
  7853. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Removed wrong comment.
  7855. * src/DefaultPeerStorage.cc
  7856. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7858. Added return value of getpid() to argument of srand() to achieve more
  7859. randomized value.
  7860. * src/SimpleRandomizer.cc
  7861. * src/SimpleRandomizer.h
  7862. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Contact tracker frequently when the number of connections are 0 and
  7864. download is not finished yet.
  7865. * src/ActivePeerConnectionCommand.cc
  7866. * src/BtAnnounce.h
  7867. * src/DefaultBtAnnounce.cc
  7868. * src/DefaultBtAnnounce.h
  7869. * test/MockBtAnnounce.h
  7870. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Moved threshold values to UTPexExtensionMessage.
  7872. * src/DefaultBtInteractive.cc
  7873. * src/Peer.cc
  7874. * src/Peer.h
  7875. * src/UTPexExtensionMessage.cc
  7876. * src/UTPexExtensionMessage.h
  7877. * test/UTPexExtensionMessageTest.cc
  7878. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Added _incoming member to Peer class and made it true if the peer
  7880. initiated connection. Don't add those peer to UTPex message.
  7881. If extended handshake is received, assign _incoming to false.
  7882. * src/DefaultBtInteractive.cc
  7883. * src/HandshakeExtensionMessage.cc
  7884. * src/Peer.cc
  7885. * src/Peer.h
  7886. * src/PeerListenCommand.cc
  7887. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7889. Encoding Decoder. Removed size threshold for turning off on the fly
  7890. inflation because resulting file may or may not be inflated depending
  7891. on the file size and I think it is not expected by users.
  7892. This change fixes segmentation fault when Metalink file contains gzipped
  7893. file and its filesize is provided.
  7894. * src/HttpResponseCommand.cc
  7895. * src/HttpResponseCommand.h
  7896. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. Made Cookie immutable.
  7898. * src/Cookie.cc
  7899. * src/Cookie.h
  7900. * src/CookieParser.cc
  7901. * src/CookieParser.h
  7902. * src/CookieStorage.cc
  7903. * test/CookieParserTest.cc
  7904. * test/CookieStorageTest.cc
  7905. * test/NsCookieParserTest.cc
  7906. * test/Sqlite3MozCookieParserTest.cc
  7907. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Removed CookieBox, CookieBoxFactory.
  7909. * src/CookieBox.cc
  7910. * src/CookieBox.h
  7911. * src/CookieBoxFactory.cc
  7912. * src/CookieBoxFactory.h
  7913. * src/Makefile.am
  7914. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Use CookieStorage class instead of CookieBox class.
  7916. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7917. * src/AbstractProxyRequestCommand.cc
  7918. * src/CookieStorage.cc
  7919. * src/DownloadEngine.cc
  7920. * src/DownloadEngine.h
  7921. * src/HttpConnection.cc
  7922. * src/HttpConnection.h
  7923. * src/HttpRequest.cc
  7924. * src/HttpRequest.h
  7925. * src/HttpRequestCommand.cc
  7926. * src/HttpResponse.cc
  7927. * src/HttpResponseCommand.cc
  7928. * src/HttpSkipResponseCommand.cc
  7929. * src/Makefile.am
  7930. * src/MultiUrlRequestInfo.cc
  7931. * src/Request.cc
  7932. * src/Request.h
  7933. * src/main.cc
  7934. * test/AllTest.cc
  7935. * test/CookieStorageTest.cc
  7936. * test/CookieTest.cc
  7937. * test/HttpRequestTest.cc
  7938. * test/HttpResponseTest.cc
  7939. * test/Makefile.am
  7940. * test/NsCookieParserTest.cc
  7941. * test/Sqlite3MozCookieParserTest.cc
  7942. * test/nscookietest.txt
  7943. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Updated
  7945. * test/Cookies.sqlite
  7946. * test/nscookietest.txt
  7947. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Added tests for CookieStorage::load()
  7949. * test/CookieStorageTest.cc
  7950. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Added CookieStorage class which is based on RFC2109 and manages cookies
  7952. more strictly than CookieBox and CookieBoxFactory class.
  7953. * src/CookieStorage.cc
  7954. * src/CookieStorage.h
  7955. * src/Cookie.cc
  7956. * src/Cookie.h
  7957. * test/CookieStorageTest.cc
  7958. * test/CookieTest.cc
  7959. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Fixed the bug that commands are created more than the number of pieces.
  7961. * src/RequestGroup.cc
  7962. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Fixed infinite loop bug in FTP when SIZE command failed.
  7964. * src/FtpNegotiationCommand.cc
  7965. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Removed DirectDiskAdaptorTest.h
  7967. * test/Makefile.am
  7968. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Fixed chunk checksum validation cannot detect trailing garbage data.
  7970. BUG#2074141
  7971. * src/AbstractSingleDiskAdaptor.cc
  7972. * src/AbstractSingleDiskAdaptor.h
  7973. * src/CheckIntegrityEntry.cc
  7974. * src/CheckIntegrityEntry.h
  7975. * src/DiskAdaptor.h
  7976. * src/MultiDiskAdaptor.cc
  7977. * src/MultiDiskAdaptor.h
  7978. * src/RequestGroup.cc
  7979. * test/DirectDiskAdaptorTest.cc
  7980. * test/MultiDiskAdaptorTest.cc
  7981. * test/TestUtil.cc
  7982. * test/TestUtil.h
  7983. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Bump up version number of dht.dat file to 3. In version 3 format, time
  7985. is stored in 64bit, network byte order.
  7986. New build can load old format(version 2) but it saves the file in new
  7987. format. It means once you used new build, your dht.dat becomes
  7988. incompatible with older build.
  7989. * src/DHTRoutingTableDeserializer.cc
  7990. * src/DHTRoutingTableSerializer.cc
  7991. * test/DHTRoutingTableSerializerTest.cc
  7992. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7994. * test/Makefile.am
  7995. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Bump up version number of .aria2 control file to 0001.
  7997. New aria2 can still load version 0000 file but it saves the file in
  7998. version 0001 format. It means that new aria2 can resume download
  7999. started by old aria2 but the opposite is not true.
  8000. * src/DefaultBtProgressInfoFile.cc
  8001. * src/DefaultBtProgressInfoFile.h
  8002. * test/DefaultBtProgressInfoFileTest.cc
  8003. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Added ntoh64 and hton64 as inline functions.
  8005. * src/Util.cc
  8006. * test/UtilTest.cc
  8007. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Added sqlite3 depenency and Firefox3 cookie support.
  8009. * README
  8010. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. State that firefox3 cookie is supported explicitly in the usage.
  8012. * src/usage_text.h
  8013. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Externalized message.
  8015. * src/RequestGroupMan.cc
  8016. * src/message.h
  8017. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Save temporary file first and rename to the destination on success.
  8019. Added test cases.
  8020. * src/RequestGroupMan.cc
  8021. * test/RequestGroupManTest.cc
  8022. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Fixed the bug that the number of connected peer is exceeding the limit
  8024. (55 by default) in seeding mode.
  8025. Multiplied 0.8 to _maxUploadSpeedLimit.
  8026. * src/ActivePeerConnectionCommand.cc
  8027. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Clear table item.
  8029. * src/Dictionary.cc
  8030. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Fixed error handling of lseek.
  8032. * src/AbstractDiskWriter.cc
  8033. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8035. style cookie file.
  8036. * src/usage_text.h
  8037. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8039. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8040. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8041. * src/Util.cc
  8042. * src/Util.h
  8043. * src/CookieParser.cc
  8044. * test/UtilTest.cc
  8045. * test/CookieParserTest.cc
  8046. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Separate the implementation to load old mozilla format of cookie to
  8048. NsCookieParser class.
  8049. * src/CookieBoxFactory.cc
  8050. * src/CookieBoxFactory.h
  8051. * src/NsCookieParser.cc
  8052. * src/NsCookieParser.h
  8053. * test/NsCookieParserTest.cc
  8054. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Made parse() const
  8056. * src/Sqlite3MozCookieParser.cc
  8057. * src/Sqlite3MozCookieParser.h
  8058. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Added firefox3 cookie support based on the patch submitted by
  8060. tizianomueller.
  8061. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8062. this functionality.
  8063. * configure.ac
  8064. * m4/sqlite3.m4
  8065. * src/CookieBoxFactory.cc
  8066. * src/CookieBoxFactory.h
  8067. * src/Makefile.am
  8068. * src/Makefile.in
  8069. * src/Sqlite3MozCookieParser.cc
  8070. * src/Sqlite3MozCookieParser.h
  8071. * src/main.cc
  8072. * test/CookieBoxFactoryTest.cc
  8073. * test/Makefile.am
  8074. * test/Makefile.in
  8075. * test/Sqlite3MozCookieParserTest.cc
  8076. * test/badcookies.sqlite
  8077. * test/cookies.sqlite
  8078. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Added Danish and Greek translations.
  8080. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8081. Great thanks to all translators.
  8082. * po/LINGUAS
  8083. * po/el.po
  8084. * po/da.po
  8085. * po/es.po
  8086. * po/ca.po
  8087. * po/nn.po
  8088. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Fixed man page: --follow-bittorrent should be --follow-torrent
  8090. * doc/aria2c.1.txt
  8091. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Fixed: numCommand is less than the value specified in -C option.
  8093. * src/RequestGroup.cc
  8094. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Fixed occasional assertion failure in PieceSegment.
  8096. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8097. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8098. creation of duplicate segments and one of the segment was finished then
  8099. assertion failure was caused.
  8100. * src/SegmentMan.cc
  8101. * test/SegmentManTest.cc
  8102. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Added options to load/save the server's performance/status to a file
  8104. and the timeout to drop their data.
  8105. --server-stat-of=FILE specifies the file to which performance data
  8106. is saved.
  8107. --server-stat-if=FILE specifies the file to read previously saved
  8108. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8109. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8110. TIMEOUT is specified in seconds and the default value is 24hours.
  8111. * src/MultiUrlRequestInfo.cc
  8112. * src/OptionHandlerFactory.cc
  8113. * src/RequestGroupMan.cc
  8114. * src/RequestGroupMan.h
  8115. * src/ServerStatMan.cc
  8116. * src/ServerStatMan.h
  8117. * src/option_processing.cc
  8118. * src/prefs.cc
  8119. * src/prefs.h
  8120. * test/ServerStatManTest.cc
  8121. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8123. * src/ServerStatMan.cc
  8124. * src/ServerStatMan.h
  8125. * test/ServerStatManTest.cc
  8126. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Implemented ServerStatMan::load(...) function and its test case.
  8128. * src/ServerStat.cc
  8129. * src/ServerStat.h
  8130. * src/ServerStatMan.cc
  8131. * test/ServerStatManTest.cc
  8132. * test/ServerStatTest.cc
  8133. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Use time_t instead of int32_t. Use int64_t where milli second is
  8135. expected.
  8136. * src/TimeA2.cc
  8137. * src/TimeA2.h
  8138. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Implemented ServerStatMan::save(...) function and its test case.
  8140. * src/ServerStat.cc
  8141. * src/ServerStat.h
  8142. * src/ServerStatMan.cc
  8143. * src/ServerStatMan.h
  8144. * test/ServerStatManTest.cc
  8145. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Now aria2 uses name attribute in Metalink as local filename in
  8147. BitTorrent downloads. BUG#2033999
  8148. * src/BtContext.h
  8149. * src/BtDependency.cc
  8150. * src/DefaultBtContext.cc
  8151. * src/DefaultBtContext.h
  8152. * src/SingleFileDownloadContext.cc
  8153. * src/SingleFileDownloadContext.h
  8154. * test/BtDependencyTest.cc
  8155. * test/DefaultBtContextTest.cc
  8156. * test/MockBtContext.h
  8157. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Added AC_C_BIGENDIAN
  8159. * src/configure.ac
  8160. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Limited numCommand less than or equal to the number of piece.
  8162. * src/RequestGroup.cc
  8163. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8165. directive.
  8166. * test/DefaultPieceStorageTest.cc
  8167. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Fixed memory leak in test code
  8169. * test/AnnounceListTest.cc
  8170. * test/DefaultPeerListProcessorTest.cc
  8171. * test/DefaultPeerStorageTest.cc
  8172. * test/MetaFileUtilTest.cc
  8173. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8175. * src/DefaultPieceStorage.cc
  8176. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Initialized _directIOAllowed
  8178. * src/MultiDiskAdaptor.cc
  8179. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Fixed memory leak
  8181. * src/GZipDecoder.cc
  8182. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Fixed memory leak
  8184. * src/MetalinkParserStateMachine.cc
  8185. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Fixed memory leak
  8187. * src/Dictionary.cc
  8188. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Fixed memory leak
  8190. * src/IteratableChunkChecksumValidator.h
  8191. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Fixed unmatched malloc/free.
  8193. * src/IteratableChunkChecksumValidator.cc
  8194. * src/IteratableChecksumValidator.cc
  8195. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Removed max chunk size check. This change fixes BUG#2040169
  8197. * src/ChunkedDecoder.cc
  8198. * src/ChunkedDecoder.h
  8199. * test/ChunkedDecoderTest.cc
  8200. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Implemented download speed based URI selection algorithm.
  8202. Introduced new option --uri-selector.
  8203. If --uri-selector=feedback is given, aria2 uses download speed observed
  8204. in the previous downloads and chooses fastest server in the URI list.
  8205. Currently at most 10 URIs are considered to introduce randomeness for
  8206. finding better servers. The speed is average download speed in the
  8207. downloads.
  8208. On the other hand, if --uri-selector=inorder is given, which is default,
  8209. URI is tried in order in URI list.
  8210. The usage text for the new option has not been written yet.
  8211. * src/AbstractCommand.cc
  8212. * src/DownloadCommand.cc
  8213. * src/DownloadEngine.cc
  8214. * src/DownloadEngineFactory.cc
  8215. * src/InOrderURISelector.cc
  8216. * src/InOrderURISelector.h
  8217. * src/OptionHandlerFactory.cc
  8218. * src/PeerStat.h
  8219. * src/RequestGroup.cc
  8220. * src/RequestGroup.h
  8221. * src/RequestGroupMan.cc
  8222. * src/RequestGroupMan.h
  8223. * src/SegmentMan.cc
  8224. * src/SegmentMan.h
  8225. * src/ServerStat.cc
  8226. * src/ServerStat.h
  8227. * src/ServerStatMan.cc
  8228. * src/ServerStatMan.h
  8229. * src/ServerStatURISelector.cc
  8230. * src/ServerStatURISelector.h
  8231. * src/URISelector.h
  8232. * src/option_processing.cc
  8233. * src/prefs.cc
  8234. * src/prefs.h
  8235. * test/InOrderURISelectorTest.cc
  8236. * test/RequestGroupManTest.cc
  8237. * test/ServerStatManTest.cc
  8238. * test/ServerStatURISelectorTest.cc
  8239. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. * Release 0.15.1+2
  8241. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Bump up version number to 0.15.1+2
  8243. * configure.ac
  8244. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8246. * m4/aria2_arg.m4
  8247. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. * Release 0.15.1+1
  8249. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Bump up version number to 0.15.1+1
  8251. * configure.ac
  8252. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Fixed the bug that causes segmentaion fault when resuming download
  8254. using metalink without size tag. Reproducible only using HTTP URI.
  8255. * src/HttpResponseCommand.cc
  8256. * src/FtpNegotiationCommand.cc
  8257. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. * Release 0.15.1
  8259. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Updated Bulgarian and French translations, thanks to all translators.
  8261. * po/bg.po
  8262. * po/fr.po
  8263. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Bump up version number to 0.15.1
  8265. * configure.ac
  8266. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Avoid repeated call of gettimeofday() when calculating speed.
  8268. * src/SpeedCalc.cc
  8269. * src/SpeedCalc.h
  8270. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Removed writable check when socket's send buffer is full in BitTorrent
  8272. downloads to lower CPU usage.
  8273. * src/PeerInteractionCommand.cc
  8274. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Fixed broken gzip inflation.
  8276. Turn off segmented downloading if gzip content is smaller than or equal
  8277. to 1MiB and inflate the data on the fly, because HTTP response header
  8278. doesn't contain the length of inflated file we can't determin where
  8279. the chunk of data should be written.
  8280. On the other hand, if gzip content is larger than 1MB, then turn off
  8281. on the fly inflation, because some servers returns "content-type: gzip"
  8282. for *.tgz, *.gz files.
  8283. * src/DownloadCommand.cc
  8284. * src/HttpResponseCommand.cc
  8285. * src/HttpResponseCommand.h
  8286. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Applied tizianomueller's patch to fix compile error.
  8288. * test/BitfieldManTest.cc
  8289. * test/BtRequestMessageTest.cc
  8290. * test/DefaultBtContextTest.cc
  8291. * test/DefaultDiskWriterTest.cc
  8292. * test/DefaultPieceStorageTest.cc
  8293. * test/HttpHeaderProcessorTest.cc
  8294. * test/HttpResponseTest.cc
  8295. * test/Metalink2RequestGroupTest.cc
  8296. * test/MetalinkParserControllerTest.cc
  8297. * test/MetalinkProcessorTest.cc
  8298. * test/PeerSessionResourceTest.cc
  8299. * test/UtilTest.cc
  8300. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. * Release 0.15.0
  8302. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Reordered src files in POTFILES.in so that usage text appears first.
  8304. * po/POTFILES.in
  8305. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Bump up version number to 0.15.0
  8307. * configure.ac
  8308. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Added Bulgarian translation.
  8310. Updated Catalan, Spanish, French and Japanese translations.
  8311. Thanks to all translators.
  8312. * po/LINGUAS
  8313. * po/bg.po
  8314. * po/ca.po
  8315. * po/es.po
  8316. * po/fr.po
  8317. * po/ja.po
  8318. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Updated feature list. Added libz for dependency section.
  8320. Added a description about unit testing using CppUnit.
  8321. * README
  8322. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Added a test for libz. Quoted where it is necessary.
  8324. * build_test.sh
  8325. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Added GZip to `Enabled Features' list.
  8327. * src/FeatureConfig.cc
  8328. * src/FeatureConfig.h
  8329. * test/FeatureConfigTest.cc
  8330. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8332. the transfer has not yet started.
  8333. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8334. * src/SegmentMan.cc
  8335. * src/SegmentMan.h
  8336. * test/SegmentManTest.cc
  8337. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Cache last calculated average download/upload speed.
  8339. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8340. cached value.
  8341. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8342. * src/PeerStat.h
  8343. * src/SpeedCalc.cc
  8344. * src/SpeedCalc.h
  8345. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Call parseUrl directly.
  8347. * src/Request.cc (resetUrl)
  8348. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Supported absolute/relative path in Location header field.
  8350. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8351. * src/HttpHeader.cc
  8352. * src/HttpHeader.h
  8353. * src/HttpResponse.cc
  8354. * src/HttpSkipResponseCommand.cc
  8355. * src/Request.cc
  8356. * test/HttpHeaderTest.cc
  8357. * test/HttpResponseTest.cc
  8358. * test/RequestTest.cc
  8359. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Changed help text for --load-cookie option.
  8361. * doc/aria2c.1.txt
  8362. * src/usage_text.h
  8363. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Regenerated test/Makefile.in to remove stale ChangeLog.
  8365. * test/Makefile.in
  8366. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Updated po files.
  8368. * po/aria2c.pot
  8369. * po/*.po
  8370. * po/*.gmo
  8371. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Bump up version number to 0.15.0b
  8373. * configure.ac
  8374. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Externalize messages.
  8376. * src/RequestGroupMan.cc
  8377. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8378. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Use File::exists() instead of File::isFile() to allow non-regular file
  8380. such as block special files.
  8381. * src/AbstractDiskWriter.cc
  8382. * src/MultiDiskWriter.cc
  8383. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8385. * src/gai_strerror.h
  8386. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Fixed compile error. Thanks gknauf for the patch.
  8388. * src/asctime_r.c
  8389. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Included asctime_r.h from a2time.h.
  8391. * src/a2time.h
  8392. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Added a message "aria2 doesn't verify signature" to log message when
  8394. signature file is saved.
  8395. * src/RequestGroupMan.cc
  8396. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Added the ability to save signature when download is completed if
  8398. signature is available. The filename of signature file is the path to
  8399. download file followed by ".sig". If it already exists, then signature
  8400. will not be saved.
  8401. * src/RequestGroupMan.cc
  8402. * src/Signature.cc
  8403. * test/SignatureTest.cc
  8404. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Updated the descriptions for --bt-seed-unverified.
  8406. * doc/aria2c.1
  8407. * doc/aria2c.1.html
  8408. * doc/aria2c.1.txt
  8409. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8411. that this is not going to verify files using piece hashes.
  8412. * src/HelpItemFactory.cc
  8413. * src/OptionHandlerFactory.cc
  8414. * src/RequestGroup.cc
  8415. * src/option_processing.cc
  8416. * src/prefs.cc
  8417. * src/prefs.h
  8418. * src/usage_text.h
  8419. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Added the ability to retrieve signature from Metalink file.
  8421. A retrieved signature is stored in Signature class and it is held by
  8422. DownloadContext class. Note that aria2 doesn't verify signature.
  8423. * src/DownloadContext.cc
  8424. * src/DownloadContext.h
  8425. * src/Makefile.am
  8426. * src/Makefile.in
  8427. * src/Metalink2RequestGroup.cc
  8428. * src/MetalinkEntry.cc
  8429. * src/MetalinkEntry.h
  8430. * src/MetalinkParserController.cc
  8431. * src/MetalinkParserController.h
  8432. * src/MetalinkParserStateMachine.cc
  8433. * src/MetalinkParserStateMachine.h
  8434. * src/Signature.cc
  8435. * src/Signature.h
  8436. * src/SignatureMetalinkParserState.cc
  8437. * src/SignatureMetalinkParserState.h
  8438. * src/VerificationMetalinkParserState.cc
  8439. * src/VerificationMetalinkParserState.h
  8440. * test/Metalink2RequestGroupTest.cc
  8441. * test/MetalinkParserControllerTest.cc
  8442. * test/MetalinkProcessorTest.cc
  8443. * test/test.xml
  8444. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Close DiskAdaptor after renaming file.
  8446. * src/RequestGroup.cc
  8447. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Corrected indentation
  8449. * src/DefaultBtProgressInfoFile.cc
  8450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Moved the calls of std::ios::exceptions() inside of try-catch block
  8452. because if an error occurred in constructor of std::fstream, then
  8453. exception is thrown immediately when std::ios::exceptions() is called
  8454. which results unhandled exception and aria2c aborts.
  8455. * src/DefaultBtProgressInfoFile.cc
  8456. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Added the test for the previous change in DefaultBtContext.cc
  8458. * test/DefaultBtContextTest.cc
  8459. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Fixed the bug that causes infinite loop when the number of pieces are
  8461. fewer than allowed fast set size which is 10 by default.
  8462. * src/DefaultBtContext.cc
  8463. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Updated the descriptions for -j, -s. Added --bt-seed.
  8465. * doc/aria2c.1
  8466. * doc/aria2c.1.html
  8467. * doc/aria2c.1.txt
  8468. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8470. aria2 seeds previously downloaded files without validating piece hashs.
  8471. * src/HelpItemFactory.cc
  8472. * src/OptionHandlerFactory.cc
  8473. * src/RequestGroup.cc
  8474. * src/option_processing.cc
  8475. * src/prefs.cc
  8476. * src/prefs.h
  8477. * src/usage_text.h
  8478. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Updated DESCRIPTION of man page.
  8480. * doc/aria2c.1
  8481. * doc/aria2c.1.html
  8482. * doc/aria2c.1.txt
  8483. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8485. Don't define `struct addrinfo' when __sun is defined.
  8486. * src/getaddrinfo.h
  8487. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8489. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8490. second argument is of type `struct _stati64'. Otherwise it is defined as
  8491. `struct stat'.
  8492. * src/AbstractDiskWriter.cc
  8493. * src/File.cc
  8494. * src/File.h
  8495. * src/a2io.h
  8496. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Fixed the compile error in hurd-i386
  8498. See the original bug report:
  8499. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8500. * src/a2io.h
  8501. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Code cleanup.
  8503. * src/PeerAbstractCommand.cc
  8504. * src/PeerAbstractCommand.h
  8505. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Removed TransferEncoding.
  8507. * src/DownloadCommand.cc
  8508. * src/DownloadCommand.h
  8509. * src/HttpResponseCommand.cc
  8510. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Updated po files.
  8512. * po/aria2c.pot
  8513. * po/*.po
  8514. * po/*.gmo
  8515. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8517. * src/A2STR.cc
  8518. * src/A2STR.h
  8519. * src/ChunkedDecoder.cc
  8520. * src/ChunkedDecoder.h
  8521. * src/ChunkedEncoding.cc: Removed
  8522. * src/ChunkedEncoding.h: Removed
  8523. * src/DownloadCommand.cc
  8524. * src/DownloadCommand.h
  8525. * src/HttpDownloadCommand.cc
  8526. * src/HttpResponse.cc
  8527. * src/HttpResponse.h
  8528. * src/HttpResponseCommand.cc
  8529. * src/HttpSkipResponseCommand.cc
  8530. * src/HttpSkipResponseCommand.h
  8531. * src/Makefile.am
  8532. * src/TransferEncoding.h: Removed
  8533. * test/ChunkedDecoderTest.cc
  8534. * test/ChunkedEncodingTest.cc: Removed
  8535. * test/HttpResponseTest.cc
  8536. * test/Makefile.am
  8537. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Use append instead of insert.
  8539. * src/GZipDecoder.cc
  8540. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Updated doc
  8542. * src/Decoder.h
  8543. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Updated usage text for -s option.
  8545. * src/usage_text.h
  8546. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8548. * src/Request.cc
  8549. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Cleaned up configure.ac.
  8551. * configure.ac
  8552. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8554. AC_ARG_ENABLE.
  8555. * configure.ac
  8556. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8558. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8559. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8560. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8561. fly and writes decoded data to a local disk.
  8562. * README
  8563. * README.html
  8564. * configure.ac
  8565. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8566. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8567. * m4/libz.m4
  8568. * src/Decoder.h
  8569. * src/DownloadCommand.cc
  8570. * src/DownloadCommand.h
  8571. * src/Exception.h
  8572. * src/GZipDecoder.cc
  8573. * src/GZipDecoder.h
  8574. * src/HttpHeader.cc
  8575. * src/HttpHeader.h
  8576. * src/HttpRequest.cc
  8577. * src/HttpRequest.h
  8578. * src/HttpResponse.cc
  8579. * src/HttpResponse.h
  8580. * src/HttpResponseCommand.cc
  8581. * src/Makefile.am
  8582. * test/GZipDecoderTest.cc
  8583. * test/HttpRequestTest.cc
  8584. * test/HttpResponseTest.cc
  8585. * test/Makefile.am
  8586. * test/Makefile.in
  8587. * test/gzip_decode_test.gz
  8588. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Clarified usage of -j option.
  8590. * src/usage_text.h
  8591. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Disabled getting size from the response of RETR.
  8593. If SIZE command failed, then disable resuming and segmented downloading.
  8594. * src/FtpConnection.cc
  8595. * src/FtpConnection.h
  8596. * src/FtpNegotiationCommand.cc
  8597. * src/FtpNegotiationCommand.h
  8598. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Use digits to find first byte of file size, which makes the intention
  8600. of the code clearer.
  8601. * src/FtpConnection.cc
  8602. Don't call validateTotalLength() when size is 0.
  8603. * src/FtpNegotiationCommand.cc
  8604. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Updated po files.
  8606. * po/aria2c.pot
  8607. * po/*.gmo
  8608. * po/*.po
  8609. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Clarified usage text for --split option.
  8611. * src/usage_text.h
  8612. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Bump up version number to 0.15.0dev. "dev" means "development"
  8614. version, which means I started the development of the next release!
  8615. * src/configure.ac
  8616. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. If FTP server returns negative response with REST raw command and
  8618. requested range is not 0, throw exception. If requested range is 0,
  8619. continue download a file from 0 byte.
  8620. * src/FtpNegotiationCommand.cc
  8621. * src/FtpNegotiationCommand.h
  8622. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Supported FTP server which don't recognize SIZE raw command.
  8624. If SIZE raw command is failed, aria2 will try to get file size
  8625. from the response of RETR raw command. If both attempts are failed,
  8626. then resuming and segmented downloading are disabled.
  8627. * src/FtpConnection.cc
  8628. * src/FtpConnection.h
  8629. * src/FtpNegotiationCommand.cc
  8630. * src/FtpNegotiationCommand.h
  8631. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. * Release 0.14.0+1
  8633. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Bump up version number to 0.14.0+1
  8635. * src/configure.ac
  8636. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Fixed the code that refers static member variable from non-static
  8638. context.
  8639. * src/DefaultPeerStorage.cc
  8640. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. * Release 0.14.0
  8642. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Added build test script
  8644. * build_test.sh
  8645. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Updated ja.po
  8647. * src/ja.po
  8648. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Bump up version number to 0.14.0
  8650. * src/configure.ac
  8651. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Updated ja.po and fr.po. Great thanks for french translators and
  8653. Sebastien WILLEMIJNS.
  8654. * po/fr.po
  8655. * po/ja.po
  8656. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Added configure option to enable/disable epoll support.
  8658. * configure.ac
  8659. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Updated man page.
  8661. * doc/aria2c.1.txt
  8662. * doc/aria2c.1
  8663. * doc/aria2c.1.html
  8664. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. Added missing default value '5' to the usage of --split option.
  8666. * src/HelpItemFactory.cc
  8667. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Filled up pieces based on the number of missing blocks, rather than
  8669. simplay the number of piece * block length.
  8670. * src/BtRequestFactory.h
  8671. * src/DefaultBtInteractive.cc
  8672. * src/DefaultBtInteractive.h
  8673. * src/DefaultBtRequestFactory.cc
  8674. * src/DefaultBtRequestFactory.h
  8675. * src/Piece.cc
  8676. * src/Piece.h
  8677. * test/BitfieldManTest.cc
  8678. * test/DefaultBtRequestFactoryTest.cc
  8679. * test/MockBtRequestFactory.h
  8680. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Made _epEvents a member variable.
  8682. * src/DownloadEngine.cc
  8683. * src/DownloadEngine.h
  8684. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Cancel download if http redirect is bounded more than 20 times.
  8686. * src/AbstractCommand.cc
  8687. * src/HttpSkipResponseCommand.cc
  8688. * src/Request.cc
  8689. * src/Request.h
  8690. * test/RequestTest.cc
  8691. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Fixed unhandled exception(removed keyword `new').
  8693. * src/SocketCore.cc (initEPOLL)
  8694. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Removed visit(const MetaEntry*)
  8696. * src/MetaEntryVisitor.h:
  8697. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8698. and made them virtual.
  8699. * src/BencodeVisitor.h
  8700. * src/BencodeVisitor.cc
  8701. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Updated po files.
  8703. * po/aria2c.pot
  8704. * po/*.po
  8705. * po/*.gmo
  8706. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8708. the number of socket to watch out.
  8709. * src/PeerInteractionCommand.cc
  8710. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. When there is not enough space in disk when writing a chunk of data,
  8712. aria2 now prints the message to the console to warn user and aborts
  8713. its download. Not all downloads are canceled because some downloads
  8714. may use another disk or partition. BUG#1640332
  8715. * src/AbstractDiskWriter.cc
  8716. * src/PeerAbstractCommand.cc
  8717. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8718. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8719. setHaltRequested(true) to cancel download.
  8720. * src/PeerInteractionCommand.h
  8721. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8723. socket from int to sock_t as sockets are unsigned in Windows.
  8724. For AsyncNameResolver, DownloadEngine, I did additional modification
  8725. for the portion of the code changed according to epoll support.
  8726. I defined sock_t in a2netcompat.h to use sock_t without including
  8727. SocketCore.h.
  8728. * src/AsyncNameResolver.cc
  8729. * src/AsyncNameResolver.h
  8730. * src/DownloadEngine.cc
  8731. * src/DownloadEngine.h
  8732. * src/SocketCore.cc
  8733. * src/SocketCore.h
  8734. * src/a2netcompat.h
  8735. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8737. changes in the patch were applied.
  8738. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8739. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8740. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8741. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8743. a2io.h and common.h were modified.
  8744. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8745. MinGW.
  8746. * src/common.h: Changed off_t to 64 bit 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 commit,
  8749. only a2netcompat.h is modified.
  8750. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8751. directives.
  8752. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8754. only gai_strerror.h is modified.
  8755. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8756. winsock errors in MinGW.
  8757. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8759. follow sources are applied.
  8760. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8761. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8762. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8763. I included locale.h from Platform.cc.
  8764. * src/main.cc: Moved common setup/teardown code to Platform class.
  8765. * test/AllTest.cc: Use Platform class.
  8766. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8767. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8769. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8770. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8771. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8773. aria2-0.13.2+1-mingw-2.patch.
  8774. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8775. systems which don't have termious.h. I moved the directive inside of
  8776. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8777. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8778. anyway.
  8779. * src/asctime_r.h
  8780. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8781. I added 2nd argument to the prototype declaration.
  8782. * src/StringFormat.cc: Get rid of vasprintf.
  8783. * src/getaddrinfo.h: Fixed constants.
  8784. * configure.ac: Added the check for asctime_r function.
  8785. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8786. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Added writable test for Socket when the sending message is in progress.
  8788. Usually the sending message is piece message. Without wriable check,
  8789. upload latency is dropped to more than 1sec.
  8790. * src/PeerInteractionCommand.cc
  8791. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Create only requested files and files which shares a piece with
  8793. requested file in multi-torrent downloads. Directory structures are
  8794. also created in the same rule.
  8795. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8796. DiskWriterEntry as in the previous implementation.
  8797. * src/MultiDiskWriter.cc
  8798. * src/MultiFileAllocationIterator.cc
  8799. * src/MultiFileAllocationIterator.h
  8800. * test/MultiFileAllocationIteratorTest.cc
  8801. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Commented out -lprofiler
  8803. * src/Makefile.am
  8804. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Bump up version number to 0.14.0b.
  8806. * src/configure.ac
  8807. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Actively establish connection to peers in seeding, when peer cache
  8809. is not full and max upload speed limit is not reached.
  8810. * src/ActivePeerConnectionCommand.cc
  8811. * src/ActivePeerConnectionCommand.h
  8812. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8814. to make room more fleshy, recently found peers.
  8815. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8816. it.
  8817. * src/DefaultPeerStorage.cc
  8818. * test/DefaultPeerStorageTest.cc
  8819. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Returns cached data only when the previous receiveHandshake() is called
  8821. with peek = true.
  8822. * src/PeerConnection.cc (receiveHandshake)
  8823. * src/PeerConnection.h (receiveHandshake)
  8824. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Changed default value of -s option from 1 to 5.
  8826. Also max value of -s option is changed from 5 to 16.
  8827. * src/HelpItemFactory.cc
  8828. * src/OptionHandlerFactory.cc
  8829. * src/option_processing.cc
  8830. * src/usage_text.h
  8831. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Changed -s options behavior. Now it means the number of connections
  8833. made simultaneously in each http/ftp download.
  8834. If 1 URL is specified, the behavior is the same with old implementation.
  8835. If -s N is given and more than N URLs are specified, first N URLs are
  8836. used and remaining URLs are used for backup. If less than N URLs are
  8837. specified, some of URLs are used more than once so that totally N
  8838. connections are made simultaneously.
  8839. * src/main.cc
  8840. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Included missing iosfwd or ostream header.
  8842. * src/RequestGroupMan.cc
  8843. * src/TaggedItem.cc
  8844. * src/TaggedItem.h
  8845. * src/Util.cc
  8846. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8848. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8849. * src/HttpConnection.cc: Included missing sstream.
  8850. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. Added --bt-max-open-files option.
  8852. * src/DefaultPieceStorage.cc
  8853. * src/HelpItemFactory.cc
  8854. * src/MultiDiskAdaptor.cc
  8855. * src/MultiDiskAdaptor.h
  8856. * src/OptionHandlerFactory.cc
  8857. * src/option_processing.cc
  8858. * src/prefs.cc
  8859. * src/prefs.h
  8860. * src/usage_text.h
  8861. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Fixed the bug that aria2 aborts when a path to a directory is given
  8863. in command-line.
  8864. * src/ProtocolDetector.cc
  8865. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Limited the number files opened in each BitTorrent download. The default
  8867. value is 100. The option to change this value will be added.
  8868. * src/MultiDiskAdaptor.cc
  8869. * src/MultiDiskAdaptor.h
  8870. * src/MultiFileAllocationIterator.cc
  8871. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Fixed the bug that HTTP downloads don't start with old libraries.
  8873. * src/HttpHeaderProcessor.cc
  8874. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Use empty() instead of size() > 0.
  8876. * src/HttpConnection.cc
  8877. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Drop connection if the incoming peer ID is the same with localhost's
  8879. one. The previous implementation drops connection when incoming peer's
  8880. IP address is the same with localhost's one.
  8881. * src/PeerListenCommand.cc
  8882. * src/DefaultBtInteractive.cc
  8883. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Returns cached data without checking whether socket is readable
  8885. if the cache is available.
  8886. * src/PeerConnection.cc (receiveHandshake)
  8887. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Included stdint.h
  8889. * src/common.h
  8890. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Removed duplicate HAVE_GETTIMEOFDAY
  8892. * src/Makefile.am
  8893. * src/Makefile.in
  8894. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Use interval as a minInterval when minInterval is not supplied.
  8896. * src/DefaultBtAnnounce.cc
  8897. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8899. attempt is failed, then 2nd attempt get kicked out more quickly.
  8900. And it is now static const member of DefaultBtAnnounce.
  8901. * src/DefaultBtAnnounce.h
  8902. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8904. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8905. * src/ActivePeerConnectionCommand.cc
  8906. * src/BtConstants.h
  8907. * src/BtRuntime.h
  8908. * src/DHTGetPeersCommand.cc
  8909. * src/DefaultBtAnnounce.cc
  8910. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8911. BtRuntime::MAX_PEERS.
  8912. * src/DefaultPeerStorage.h
  8913. * src/InitiatorMSEHandshakeCommand.cc
  8914. * src/PeerInitiateConnectionCommand.cc
  8915. * src/PeerInteractionCommand.cc
  8916. * src/PeerReceiveHandshakeCommand.cc
  8917. * src/TrackerWatcherCommand.cc
  8918. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Always Connect to _numNewConnection
  8920. * src/ActivePeerConnectionCommand.cc
  8921. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Made `begin' unsigned int.
  8923. * src/GrowSegment.h
  8924. * src/Piece.cc
  8925. * src/Piece.h
  8926. * src/PiecedSegment.cc
  8927. * src/PiecedSegment.h
  8928. * src/Segment.h
  8929. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Calculate piece hash when data is arrived if the data is arrived in
  8931. order. This removes additional read operation for hash calculation.
  8932. If the data is arrived in out of order, the hash is calucated when the
  8933. piece is completed. This is the same behavior as the old implementation.
  8934. * src/BtPieceMessage.cc
  8935. * src/DefaultBtProgressInfoFile.cc
  8936. * src/DefaultPieceStorage.cc
  8937. * src/DownloadCommand.cc
  8938. * src/DownloadCommand.h
  8939. * src/DownloadEngine.cc
  8940. * src/GrowSegment.cc
  8941. * src/GrowSegment.h
  8942. * src/Piece.cc
  8943. * src/Piece.h
  8944. * src/PiecedSegment.cc
  8945. * src/PiecedSegment.h
  8946. * src/Segment.h
  8947. * test/PieceTest.cc
  8948. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Try to keep the ordering of outgoing piece message.
  8950. * src/DefaultBtMessageDispatcher.cc
  8951. (DefaultBtMessageDispatcher::sendMessages)
  8952. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Fixed busy loop when error/hup epoll events occur.
  8954. * src/AbstractCommand.cc
  8955. * src/PeerAbstractCommand.cc
  8956. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Added --bt-request-peer-speed-limit option, which was a constant
  8958. SLOW_SPEED_THRESHOLD.
  8959. * src/ActivePeerConnectionCommand.cc
  8960. * src/ActivePeerConnectionCommand.h
  8961. * src/BtConstants.h
  8962. * src/HelpItemFactory.cc
  8963. * src/OptionHandlerFactory.cc
  8964. * src/PeerReceiveHandshakeCommand.cc
  8965. * src/option_processing.cc
  8966. * src/prefs.cc
  8967. * src/prefs.h
  8968. * src/usage_text.h
  8969. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Removed repeated call of getTopDirPath(). Instead, call it once and
  8971. cache the result.
  8972. * src/MultiDiskAdaptor.cc
  8973. * src/MultiDiskAdaptor.h
  8974. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8975. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Fixed compile error on debian etch.
  8977. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8978. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8979. it is undefined.
  8980. * src/Util.cc (ULLONG_MAX)
  8981. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Added epoll support. Use epoll if it is available. If not, use select.
  8983. When async dns is enabled in compile time, epoll support is enabled
  8984. only when aria2 is built with c-ares. This condition statement is
  8985. defined in a2io.h.
  8986. Currently aria2 supports both c-ares and ares, but ares is maintained
  8987. for quite a while and debian already has c-ares package, ares support
  8988. will be dropped in the future version.
  8989. * configure.ac
  8990. * src/AbstractCommand.cc
  8991. * src/AsyncNameResolver.cc
  8992. * src/AsyncNameResolver.h
  8993. * src/Command.cc
  8994. * src/Command.h
  8995. * src/DownloadEngine.cc
  8996. * src/DownloadEngine.h
  8997. * src/PeerAbstractCommand.cc
  8998. * src/SocketCore.cc
  8999. * src/SocketCore.h
  9000. * src/a2io.h
  9001. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9002. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9003. directive.
  9004. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Do not do write operation to /dev/null file.
  9006. * src/LogFactory.cc
  9007. * src/SimpleLogger.cc
  9008. Replaced vasprintf with vsnprintf
  9009. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9010. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. * src/BtRequestMessage.cc
  9012. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9013. for segmentation fault caused by previous commit.
  9014. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Reduced the usage of gettimeofday().
  9016. * src/DefaultBtMessageDispatcher.cc
  9017. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9018. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9019. * src/RequestSlot.cc
  9020. * src/RequestSlot.h
  9021. (RequestSlot::isTimeout)
  9022. Made RequestSlot have a reference to Piece object to avoid find
  9023. Piece repeatedly.
  9024. * src/DefaultBtMessageDispatcher.cc
  9025. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9026. * src/RequestSlot.cc
  9027. * src/RequestSlot.h
  9028. (RequestSlot::getPiece)
  9029. * test/DefaultBtMessageDispatcherTest.cc
  9030. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. * src/TimeA2.cc
  9032. * src/TimeA2.h
  9033. (Time::difference): New function.
  9034. (Time::elapsed): Done optimization.
  9035. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9037. directive.
  9038. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. * src/option_processing.cc: Added missing `defined' keyword to #if
  9040. directive.
  9041. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Bump up version number to 0.13.2+1
  9043. * src/configure.ac
  9044. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Refactored broken outstanding piece handling.
  9046. * src/DefaultPieceStorage.cc
  9047. * src/DefaultPieceStorage.h
  9048. * src/Piece.cc
  9049. * src/Piece.h
  9050. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9052. name collision of static variable and predefined macro.
  9053. * src/BtContext.cc
  9054. * src/BtContext.h
  9055. * src/CookieBoxFactory.cc
  9056. * src/CookieBoxFactory.h
  9057. * src/CookieParser.cc
  9058. * src/CookieParser.h
  9059. * src/DefaultBtContext.cc
  9060. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. * src/RequestGroup.cc
  9062. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9063. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. * Release 0.13.2
  9065. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9067. * po/fr.po
  9068. * po/ja.po
  9069. * po/aria2c.pot
  9070. * po/*.po
  9071. * po/*.gmo
  9072. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Bump up version number to 0.13.2
  9074. * src/configure.ac
  9075. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Refactord.
  9077. * src/RequestGroupMan.cc
  9078. (removeStoppedGroup)
  9079. (fillRequestGroupFromReserver)
  9080. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Fixed compile error on Ubuntu.
  9082. * src/BtPieceMessage.cc
  9083. * src/MessageDigestHelper.cc
  9084. * src/Util.cc
  9085. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed compile error when configured with --disable-bittorrent
  9087. * test/DownloadHandlerFactoryTest.cc
  9088. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Done make update-po
  9090. * po/aria2c.pot
  9091. * po/*.po
  9092. * po/*.gmo
  9093. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Bump up version number to 0.13.2rc.
  9095. * src/configure.ac
  9096. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Made option name bold. Updated SYNOPSIS to make it more readable.
  9098. * doc/aria2c.1.txt
  9099. * doc/aria2c.1
  9100. * doc/aria2c.1.html
  9101. * src/version_usage.cc
  9102. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Refactored. Use std::string instead of size and char*.
  9104. * Data.cc
  9105. * Data.h
  9106. * test/Data.cc
  9107. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Added trimSelf(). Rewritten trim() to use trimSelf().
  9109. * Util.cc
  9110. * Util.h
  9111. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9113. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Fixed compile error when configured with --disable-metalink.
  9115. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9116. * test/FeatureConfigTest.cc
  9117. * test/DownloadHandlerFactoryTest.cc
  9118. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. Fixed compile error when configured with --without-gnutls
  9120. --without-openssl
  9121. * src/main.cc
  9122. * test/DefaultBtProgressInfoFileTest.cc
  9123. * test/SegmentManTest.cc
  9124. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. Fixed compile error with OpenSSL.
  9126. * src/IteratableChunkChecksumValidator.cc
  9127. * src/LibsslDHKeyExchange.h
  9128. * src/MessageDigestHelper.cc
  9129. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Revert the default value of --max-concurrent-downloads to 5.
  9131. Revert the default value of --metalink-servers to 5.
  9132. Man pages was also updated.
  9133. * src/option_processing.cc
  9134. * doc/aria2c.1.txt
  9135. * doc/aria2c.1.html
  9136. * doc/aria2c.1
  9137. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Returns const reference:
  9139. DownloadContext::getPieceHash, DownloadContext::getName,
  9140. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9141. BtContext::getInfoHashAsString,
  9142. * src/BtContext.h
  9143. * src/DefaultBtContext.cc
  9144. * src/DefaultBtContext.h
  9145. * src/DownloadContext.h
  9146. * src/SingleFileDownloadContext.h
  9147. * test/MockBtContext.h
  9148. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. * src/RequestGroup.h (getDir): Removed.
  9150. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Returns const reference. The internal urlencode function was optimized
  9152. a little bit.
  9153. * src/Request.cc
  9154. * src/Request.h
  9155. * src/HttpRequest.cc
  9156. * src/HttpRequest.h
  9157. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Defined option name and possible values as std::string to reduce
  9159. temporary string object creation in runtime.
  9160. * src/HelpItemFactory.cc
  9161. * src/LogFactory.cc
  9162. * src/Option.cc
  9163. * src/OptionHandlerFactory.cc
  9164. * src/option_processing.cc
  9165. * src/prefs.cc
  9166. * src/prefs.h
  9167. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Return const reference.
  9169. * src/DownloadHandlerConstants.cc
  9170. * src/DownloadHandlerConstants.h
  9171. (getMetalinkExtensions)
  9172. (getMetalinkContentTypes)
  9173. (getBtExtensions)
  9174. (getBtContentTypes)
  9175. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. * src/HttpHeader.cc (get): Rewritten.
  9177. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Make HttpHeader::getFirst(...) return const reference.
  9179. * src/HttpHeader.cc
  9180. * src/HttpHeader.h
  9181. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9183. it with V_TRUE.
  9184. * src/DefaultPieceStorage.cc
  9185. * src/DownloadCommand.cc
  9186. * src/FtpNegotiationCommand.cc
  9187. * src/HttpRequest.cc
  9188. * src/InitiateConnectionCommand.cc
  9189. * src/RequestGroup.cc
  9190. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Made Option::get(...) return const reference of std::string.
  9192. * src/Option.cc
  9193. * src/Option.h
  9194. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Replaced std:copy with insert.
  9196. * src/DefaultBtMessageDispatcher.cc
  9197. * src/DefaultPieceStorage.cc
  9198. * src/DownloadEngineFactory.cc
  9199. * src/RequestGroup.cc
  9200. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Included SocketCore.h to fix compiler warning.
  9202. * src/InitiateConnectionCommand.cc
  9203. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. Put piece selection strategy algorithm to RarestPieceSelector class,
  9205. Added a switch to choose whether randomized selection so that unit
  9206. tests emit same results in, possibly, win32.
  9207. * src/DefaultPieceStorage.cc
  9208. * src/DefaultPieceStorage.h
  9209. * src/RarestPieceSelector.cc
  9210. * src/RarestPieceSelector.h
  9211. * test/DefaultPieceStorageTest.cc
  9212. * test/RarestPieceSelectorTest.cc
  9213. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Don't pool connection if HTTP proxy is enabled.
  9215. * src/FtpFinishDownloadCommand.cc
  9216. * src/FtpNegotiationCommand.cc
  9217. * src/HttpSkipResponseCommand.cc
  9218. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9220. * src/AbstractCommand.cc
  9221. * src/AbstractCommand.h
  9222. * src/ActivePeerConnectionCommand.cc
  9223. * src/FtpInitiateConnectionCommand.cc
  9224. * src/HttpInitiateConnectionCommand.cc
  9225. * src/InitiateConnectionCommandFactory.cc
  9226. * src/PeerAbstractCommand.cc
  9227. * src/PeerAbstractCommand.h
  9228. * src/PeerInitiateConnectionCommand.cc
  9229. * src/TrackerWatcherCommand.cc
  9230. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Sort RequestSlot in ascending order and manipulate them using
  9232. lower_bound.
  9233. * src/DefaultBtMessageDispatcher.cc
  9234. * src/DefaultBtMessageDispatcher.h
  9235. (getMessageQueue): Added const qualifier.
  9236. (getRequestSlots): Added const qualifier.
  9237. (sendMessages): Use empty() instead of size().
  9238. (doCancelSendingPieceAction): Use HandleEvent object.
  9239. (doAbortOutstandingRequestAction): Rewritten.
  9240. (doChokedAction): Rewritten.
  9241. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9242. (isOutstandingRequest): Rewritten.
  9243. (getOutstandingRequest): Rewritten.
  9244. (removeOutstandingRequest): Rewritten.
  9245. (addOutstandingRequest): Rewritten.
  9246. * src/RequestSlot.cc
  9247. * src/RequestSlot.h
  9248. (operator=): Rewritten.
  9249. (operator!=): New function.
  9250. (operator<): New function.
  9251. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. * src/DefaultBtRequestFactory.cc
  9253. (doChokedAction): Rewritten.
  9254. (removeCompletedPiece): Rewritten.
  9255. (removeTargetPiece): Rewritten.
  9256. (createRequestMessages): Added the debug log.
  9257. (createRequestMessagesOnEndGame: Added the debug log.
  9258. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Added the debug log message.
  9260. * src/BtPieceMessage.cc (doReceivedAction)
  9261. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9263. used lower_bound to process them rather than linear search.
  9264. * src/DHTPeerAnnounceStorage.cc
  9265. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9267. peer has at least one completed piece.
  9268. * src/Peer.cc
  9269. * src/Peer.h
  9270. * src/PeerInteractionCommand.cc
  9271. * src/PeerSessionResource.cc
  9272. * src/PeerSessionResource.h
  9273. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Removed unnecessary sorting
  9275. * src/DefaultPieceStorage (DefaultPieceStorage)
  9276. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Rewritten the portion of the code that mangaes allowed fast indexes.
  9278. * src/PeerSessionResource.cc
  9279. * src/PeerSessionResource.h
  9280. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Removed the invalid string including '\r' from ru.po and
  9282. did make update-po.
  9283. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Added --log-level and --summary-interval to man page.
  9285. * doc/aria2c.1.txt
  9286. * doc/aria2c.1.html
  9287. * doc/aria2c.1
  9288. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Added --log-level option to specify log level. Log messages under
  9290. the specified level are not output. Default value is `debug'.
  9291. * src/HelpItemFactory.cc
  9292. * src/LogFactory.cc
  9293. * src/LogFactory.h
  9294. * src/Logger.h
  9295. * src/OptionHandlerFactory.cc
  9296. * src/SimpleLogger.cc
  9297. * src/SimpleLogger.h
  9298. * src/main.cc
  9299. * src/option_processing.cc
  9300. * src/prefs.h
  9301. * src/usage_text.h
  9302. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Print download progress summary of all parallel downloads in specified
  9304. interval, default 60 secs. While aria2 could download several files
  9305. in parallel (see -j option), it displayed just first download progress,
  9306. and the other downloads are hidden from the users. This new feature
  9307. prints all downloads currently in-progress to the console so that you
  9308. can check the status of all downloads. The interval can be adjusted
  9309. by --summary-interval option.
  9310. The progress readout is now cut so that all fits in the one line of
  9311. console.
  9312. * src/ConsoleStatCalc.cc
  9313. * src/ConsoleStatCalc.h
  9314. * src/HelpItemFactory.cc
  9315. * src/OptionHandlerFactory.cc
  9316. * src/RequestGroupMan.cc
  9317. * src/RequestGroupMan.h
  9318. * src/main.cc
  9319. * src/option_processing.cc
  9320. * src/prefs.h
  9321. * src/usage_text.h
  9322. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9324. * src/DownloadEngine.cc (DownloadEngine)
  9325. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9327. defined.
  9328. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9329. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Use erase+lower_bound+insert instead of sort.
  9331. * src/DefaultPieceStorage.cc (addPieceStats)
  9332. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9334. * src/A2STR.cc
  9335. * src/A2STR.h
  9336. * src/OptionParser.cc (parse)
  9337. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Defined fake filename `[tracker.announce]' as static const std::string.
  9339. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9340. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Defined default filename `index.html' as static const std::string
  9342. * src/SingleFileDownloadContext.cc
  9343. * src/SingleFileDownloadContext.h
  9344. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Defined "[MEMORY]" as static const std::string.
  9346. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9347. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Defined control file's version number as static const std::string.
  9349. * src/DefaultBtProgressInfoFile.cc
  9350. * src/DefaultBtProgressInfoFile.h
  9351. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Use Request::METHOD_GET
  9353. * src/RequestGroup.cc (createNextCommandWithAdj)
  9354. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Defined "OK", "ERR", "INPR" as static const std::string
  9356. * src/RequestGroupMan.cc (showDownloadResults)
  9357. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Defined default client used in extended handshake as static const
  9359. std::string
  9360. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9363. * src/HttpConnection.cc (eraseConfidentialInfo)
  9364. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Defined default ftp user and password as static const std::string
  9366. * src/AuthConfigFactory.cc
  9367. * src/AuthConfigFactory.h
  9368. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Defined strings used in netrc as static const std::string
  9370. * src/Netrc.cc
  9371. * src/Netrc.h
  9372. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Defined HTTP status as static const std::string
  9374. * src/AbstractProxyResponseCommand.cc
  9375. * src/HttpHeader.cc
  9376. * src/HttpHeader.h
  9377. * src/HttpResponse.cc
  9378. * src/HttpResponseCommand.cc
  9379. * src/HttpSkipResponseCommand.cc
  9380. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Defined "\r\n", "A", "I" as static const std::string
  9382. * src/A2STR.cc
  9383. * src/A2STR.h
  9384. * src/FtpConnection.cc
  9385. * src/FtpConnection.h
  9386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Added COLON_C(".") and used it in Request::parseUrl()
  9388. * src/A2STR.cc
  9389. * src/A2STR.h
  9390. * src/Request.cc (parseUrl)
  9391. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Changed the type of padName from `const std::string&' to `const char*'.
  9393. * src/MSEHandshake.cc (verifyPadLength)
  9394. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Defined "sha1" as static const std::string.
  9396. * src/MetalinkParserController.cc
  9397. * src/MetalinkParserController.h
  9398. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Defined message digest algorithm name as static const std::string
  9400. * src/DHTTokenTracker.cc
  9401. * src/DHTUtil.cc
  9402. * src/DefaultBtContext.cc
  9403. * src/MSEHandshake.cc
  9404. * src/MessageDigestHelper.cc
  9405. * src/Peer.cc
  9406. * src/messageDigest.cc
  9407. * src/messageDigest.h
  9408. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. Made string literals used in SAX parser static const std::string.
  9410. * src/FileMetalinkParserState.cc
  9411. * src/FileMetalinkParserState.h
  9412. * src/FilesMetalinkParserState.cc
  9413. * src/FilesMetalinkParserState.h
  9414. * src/InitialMetalinkParserState.cc
  9415. * src/InitialMetalinkParserState.h
  9416. * src/MetalinkMetalinkParserState.cc
  9417. * src/MetalinkMetalinkParserState.h
  9418. * src/PiecesMetalinkParserState.cc
  9419. * src/PiecesMetalinkParserState.h
  9420. * src/ResourcesMetalinkParserState.cc
  9421. * src/ResourcesMetalinkParserState.h
  9422. * src/VerificationMetalinkParserState.cc
  9423. * src/VerificationMetalinkParserState.h
  9424. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9426. * src/A2STR.cc
  9427. * src/A2STR.h
  9428. * src/File.cc
  9429. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Defined static const std::string IP("ip"), PORT("port") and use them
  9431. instead of string literals.
  9432. * src/DefaultPeerListProcessor.cc
  9433. * src/DefaultPeerListProcessor.h
  9434. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Made string literals for torrent file processing static const
  9436. std::string.
  9437. * src/BtContext.cc
  9438. * src/BtContext.h
  9439. * src/DefaultBtContext.cc
  9440. * src/DefaultBtContext.h
  9441. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Made string literal for tracker response static const std::string
  9443. * src/BtAnnounce.cc
  9444. * src/BtAnnounce.h
  9445. * src/DefaultBtAnnounce.cc
  9446. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Use DHTMessage::T instead of "t".
  9448. * src/DHTMessageTracker.cc (messageArrived)
  9449. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Made keyName static const. Made trimmed charset static const
  9451. std::string.
  9452. * src/Util.cc (getContentDispositionFilename)
  9453. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Made USER_AGENT const. Made "/" static const std::string.
  9455. * src/A2STR.cc
  9456. * src/A2STR.h
  9457. * src/HttpRequest.cc
  9458. * src/HttpRequest.h
  9459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Made string listeral to static const std::string:
  9461. "Content-Range", "Content-Length"
  9462. * src/HttpHeader.cc
  9463. * src/HttpHeader.h
  9464. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Made string listeral to static const std::string.
  9466. * src/HttpConnection.cc
  9467. * src/HttpHeader.cc
  9468. * src/HttpHeader.h
  9469. * src/HttpResponse.cc
  9470. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Made string listeral to static const std::string.
  9472. * src/A2STR.cc
  9473. * src/A2STR.h
  9474. * src/SimpleLogger.cc
  9475. * src/SimpleLogger.h
  9476. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Made string literal to static const std::string.
  9478. Rewritten CookieParser::setField.
  9479. * src/A2STR.cc
  9480. * src/A2STR.h
  9481. * src/CookieBoxFactory.cc
  9482. * src/CookieBoxFactory.h
  9483. * src/CookieParser.cc
  9484. * src/CookieParser.h
  9485. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Made string literal to static const std::string
  9487. * src/DHTAbstractMessage.cc
  9488. * src/DHTAnnouncePeerMessage.cc
  9489. * src/DHTAnnouncePeerMessage.h
  9490. * src/DHTAnnouncePeerReplyMessage.cc
  9491. * src/DHTAnnouncePeerReplyMessage.h
  9492. * src/DHTFindNodeMessage.cc
  9493. * src/DHTFindNodeMessage.h
  9494. * src/DHTFindNodeReplyMessage.cc
  9495. * src/DHTFindNodeReplyMessage.h
  9496. * src/DHTGetPeersMessage.cc
  9497. * src/DHTGetPeersMessage.h
  9498. * src/DHTGetPeersReplyMessage.cc
  9499. * src/DHTGetPeersReplyMessage.h
  9500. * src/DHTMessage.cc
  9501. * src/DHTMessage.h
  9502. * src/DHTMessageFactoryImpl.cc
  9503. * src/DHTMessageReceiver.cc
  9504. * src/DHTPingMessage.cc
  9505. * src/DHTPingMessage.h
  9506. * src/DHTPingReplyMessage.cc
  9507. * src/DHTPingReplyMessage.h
  9508. * src/DHTQueryMessage.cc
  9509. * src/DHTQueryMessage.h
  9510. * src/DHTResponseMessage.cc
  9511. * src/DHTResponseMessage.h
  9512. * src/DHTUnknownMessage.cc
  9513. * src/DHTUnknownMessage.h
  9514. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Made string literal to static const std::string
  9516. * src/BtChokeMessage.cc (toString)
  9517. * src/BtHaveAllMessage.cc (toString)
  9518. * src/BtHaveNoneMessage.cc (toString)
  9519. * src/BtInterestedMessage.cc (toString)
  9520. * src/BtNotInterestedMessage.cc (toString)
  9521. * src/BtUnchokeMessage.cc (toString)
  9522. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Replaced "" with static const variable A2STR::NIL.
  9524. Replaced string comparison against "" with std::string::empty().
  9525. Added PROTO_* to Request class and use them as a protocol string
  9526. constant.
  9527. Made "started", "stopped", "completed" static const variable in
  9528. AnnounceList class.
  9529. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Updated translations. Great thanks to translators.
  9531. * po/ca.po
  9532. * po/de.po
  9533. * po/fr.po
  9534. * po/it.po
  9535. * po/ja.po
  9536. * po/ru.po
  9537. * po/zh_CN.po
  9538. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Updated man page; categorized options and fixed typo.
  9540. * doc/aria2c.1.txt
  9541. * doc/aria2c.1.html
  9542. * doc/aria2c.1
  9543. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Removed const ref
  9545. * src/MetalinkEntry.cc (AddProtocolPreference)
  9546. * src/RequestGroup.cc (FindServerHostByHostname)
  9547. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Rewritten Accept-Features handling.
  9549. * src/HttpRequestCommand.cc (createHttpRequest)
  9550. * src/a2functional.h
  9551. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Changed method signature:
  9553. DHTAbstractNodeLookupTask::toEntries
  9554. * src/DHTAbstractNodeLookupTask.cc
  9555. * src/DHTAbstractNodeLookupTask.h
  9556. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Changed method signature:
  9558. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9559. * src/BtContext.h
  9560. * src/DefaultBtContext.cc
  9561. * src/DefaultBtContext.h
  9562. * src/DefaultBtInteractive.cc
  9563. * test/DefaultBtContextTest.cc
  9564. * test/MockBtContext.h
  9565. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. Changed method signature:
  9567. MultiFileAllocationIterator::makeDiskWriterEntries
  9568. * src/MultiFileAllocationIterator.cc
  9569. * src/MultiFileAllocationIterator.h
  9570. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Changed method sinature:
  9572. MetalinkEntry::toFileEntry,
  9573. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9574. Metalinker::queryEntry
  9575. * src/Metalink2RequestGroup.cc
  9576. * src/MetalinkEntry.cc
  9577. * src/MetalinkEntry.h
  9578. * src/MetalinkHelper.cc
  9579. * src/MetalinkHelper.h
  9580. * src/Metalinker.cc
  9581. * src/Metalinker.h
  9582. * src/main.cc
  9583. * test/MetalinkHelperTest.cc
  9584. * test/MetalinkerTest.cc
  9585. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Changed method sinature:
  9587. RequestGroup::getURIs
  9588. * src/RequestGroup.cc
  9589. * src/RequestGroup.h
  9590. * test/Metalink2RequestGroupTest.cc
  9591. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Changed method signature:
  9593. PeerListProcessor::extractPeer
  9594. * src/CompactPeerListProcessor.cc
  9595. * src/CompactPeerListProcessor.h
  9596. * src/DefaultBtAnnounce.cc
  9597. * src/DefaultPeerListProcessor.cc
  9598. * src/DefaultPeerListProcessor.h
  9599. * src/DelegatingPeerListProcessor.cc
  9600. * src/DelegatingPeerListProcessor.h
  9601. * src/PeerListProcessor.h
  9602. * src/UTPexExtensionMessage.cc
  9603. * test/DefaultPeerListProcessorTest.cc
  9604. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. Changed method signature:
  9606. BtRequestFactory::createRequestMessages,
  9607. BtRequestFactory::createRequestMessagesOnEndGame
  9608. * src/BtRequestFactory.h
  9609. * src/DefaultBtInteractive.cc
  9610. * src/DefaultBtRequestFactory.cc
  9611. * src/DefaultBtRequestFactory.h
  9612. * test/DefaultBtRequestFactoryTest.cc
  9613. * test/MockBtRequestFactory.h
  9614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Changed method signature:
  9616. PieceStorage::getInFlightPieces
  9617. * src/DefaultBtProgressInfoFile.cc
  9618. * src/DefaultPieceStorage.cc
  9619. * src/DefaultPieceStorage.h
  9620. * src/PieceStorage.h
  9621. * src/UnknownLengthPieceStorage.cc
  9622. * src/UnknownLengthPieceStorage.h
  9623. * test/DefaultBtProgressInfoFileTest.cc
  9624. * test/MockPieceStorage.h
  9625. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Changed method signature:
  9627. PostDownloadHandler::getNextRequestGroups
  9628. Metalink2RequestGroup::generate
  9629. RequestGroup::postDownloadProcessing
  9630. * src/BtPostDownloadHandler.cc
  9631. * src/BtPostDownloadHandler.h
  9632. * src/Metalink2RequestGroup.cc
  9633. * src/Metalink2RequestGroup.h
  9634. * src/MetalinkPostDownloadHandler.cc
  9635. * src/MetalinkPostDownloadHandler.h
  9636. * src/PostDownloadHandler.h
  9637. * src/RequestGroup.cc
  9638. * src/RequestGroup.h
  9639. * src/RequestGroupMan.cc
  9640. * src/main.cc
  9641. * test/BtPostDownloadHandlerTest.cc
  9642. * test/Metalink2RequestGroupTest.cc
  9643. * test/MetalinkPostDownloadHandlerTest.cc
  9644. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Rewritten AccRequestGroup
  9646. * src/main.cc
  9647. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Rewritten.
  9649. * src/TaggedItem.cc (toTagString)
  9650. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Rewritten Accept-Features handling.
  9652. * src/HttpRequestCommand.cc (createHttpRequest)
  9653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Rewritten accept types handling.
  9655. * HttpRequest.cc (createRequest)
  9656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Rewritten
  9658. * src/FeatureConfig.cc (featureSummary)
  9659. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Changed method signature:
  9661. PeerStorage::getActivePeers
  9662. * src/DHTPeerAnnounceEntry.cc
  9663. * src/DefaultPeerStorage.cc
  9664. * src/DefaultPeerStorage.h
  9665. * src/PeerStorage.h
  9666. * test/DefaultPeerStorageTest.cc
  9667. * test/MockPeerStorage.h
  9668. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Changed method signature:
  9670. DHTPeerAnnounceStorage::getPeers,
  9671. DHTPeerAnnounceEntry::getPeers
  9672. * src/DHTGetPeersMessage.cc
  9673. * src/DHTPeerAnnounceEntry.cc
  9674. * src/DHTPeerAnnounceEntry.h
  9675. * src/DHTPeerAnnounceStorage.cc
  9676. * src/DHTPeerAnnounceStorage.h
  9677. * test/DHTAnnouncePeerMessageTest.cc
  9678. * test/DHTPeerAnnounceEntryTest.cc
  9679. * test/DHTPeerAnnounceStorageTest.cc
  9680. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Changed method signature:
  9682. NameResolver::resolve
  9683. * src/DHTEntryPointNameResolveCommand.cc
  9684. * src/InitiateConnectionCommand.cc
  9685. * src/NameResolver.cc
  9686. * src/NameResolver.h
  9687. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Changed method signature:
  9689. PieceStorage::getAdvertisedPieceIndexes
  9690. * src/DefaultBtInteractive.cc
  9691. * src/DefaultPieceStorage.cc
  9692. * src/DefaultPieceStorage.h
  9693. * src/PieceStorage.h
  9694. * src/UnknownLengthPieceStorage.h
  9695. * test/MockPieceStorage.h
  9696. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Changed method signature:
  9698. SegmentMan::getInFlightSegment
  9699. * src/AbstractCommand.cc
  9700. * src/SegmentMan.cc
  9701. * src/SegmentMan.h
  9702. * test/SegmentManTest.cc
  9703. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Changed method signature:
  9705. DHTAbstractNodeLookupTask::getNodesFromMessage
  9706. * src/DHTAbstractNodeLookupTask.cc
  9707. * src/DHTAbstractNodeLookupTask.h
  9708. * src/DHTNodeLookupTask.cc
  9709. * src/DHTNodeLookupTask.h
  9710. * src/DHTPeerLookupTask.cc
  9711. * src/DHTPeerLookupTask.h
  9712. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9714. * src/AbstractCommand.cc
  9715. * src/BtCheckIntegrityEntry.cc
  9716. * src/BtCheckIntegrityEntry.h
  9717. * src/BtFileAllocationEntry.cc
  9718. * src/BtFileAllocationEntry.h
  9719. * src/BtSetup.cc
  9720. * src/BtSetup.h
  9721. * src/CheckIntegrityCommand.cc
  9722. * src/CheckIntegrityEntry.h
  9723. * src/ChecksumCheckIntegrityEntry.cc
  9724. * src/ChecksumCheckIntegrityEntry.h
  9725. * src/DHTSetup.cc
  9726. * src/DHTSetup.h
  9727. * src/DownloadEngine.cc
  9728. * src/FileAllocationCommand.cc
  9729. * src/FileAllocationEntry.h
  9730. * src/RequestGroup.cc
  9731. * src/RequestGroup.h
  9732. * src/RequestGroupMan.cc
  9733. * src/RequestGroupMan.h
  9734. * src/StreamCheckIntegrityEntry.cc
  9735. * src/StreamCheckIntegrityEntry.h
  9736. * src/StreamFileAllocationEntry.cc
  9737. * src/StreamFileAllocationEntry.h
  9738. * src/TrackerWatcherCommand.cc
  9739. * src/a2functional.h
  9740. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Changed method signature:
  9742. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9743. DHTBucket::getGoodNodes,
  9744. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9745. * src/BNode.cc
  9746. * src/BNode.h
  9747. * src/DHTAbstractNodeLookupTask.cc
  9748. * src/DHTAutoSaveCommand.cc
  9749. * src/DHTBucket.cc
  9750. * src/DHTBucket.h
  9751. * src/DHTBucketRefreshTask.cc
  9752. * src/DHTFindNodeMessage.cc
  9753. * src/DHTGetPeersMessage.cc
  9754. * src/DHTRoutingTable.cc
  9755. * src/DHTRoutingTable.h
  9756. * test/BNodeTest.cc
  9757. * test/DHTBucketTest.cc
  9758. * test/DHTRoutingTableTest.cc
  9759. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. In piece selection functions, Pass std::deque<...> by reference rather
  9761. than returning it.
  9762. * src/BitfieldMan.cc
  9763. * src/BitfieldMan.h
  9764. * src/DefaultBtRequestFactory.cc
  9765. * src/DefaultPieceStorage.cc
  9766. * src/Piece.cc
  9767. * src/Piece.h
  9768. * test/BitfieldManTest.cc
  9769. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Implemented rarest piece first piece selection strategy.
  9771. * src/AbstractBtMessage.cc
  9772. * src/AbstractBtMessage.h
  9773. * src/BitfieldMan.cc
  9774. * src/BitfieldMan.h
  9775. * src/BtBitfieldMessage.cc
  9776. * src/BtHaveAllMessage.cc
  9777. * src/BtHaveMessage.cc
  9778. * src/DefaultPieceStorage.cc
  9779. * src/DefaultPieceStorage.h
  9780. * src/PeerInteractionCommand.cc
  9781. * src/PieceStorage.h
  9782. * src/UnknownLengthPieceStorage.h
  9783. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Rewritten readData and writeData.
  9785. * src/MultiDiskAdaptor.cc
  9786. * src/MultiDiskAdaptor.h
  9787. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Move \n out of the message "Usage: ...".
  9789. * src/version_usage.cc
  9790. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Bump up version number to 0.13.2b.
  9792. * configure.ac
  9793. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Added const qualifier to argument Exception& e.
  9795. * src/Logger.h
  9796. * src/SimpleLogger.cc
  9797. * src/SimpleLogger.h
  9798. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Pool connection when CWD, SIZE command fails.
  9800. * src/FtpNegotiationCommand.cc
  9801. * src/FtpNegotiationCommand.h
  9802. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9804. * src/HttpResponseCommand.cc
  9805. * src/HttpSkipResponseCommand.cc
  9806. * src/HttpSkipResponseCommand.h
  9807. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Pool connection when a server returns 4xx, 5xx responses.
  9809. * src/HttpNullDownloadCommand.cc
  9810. * src/HttpNullDownloadCommand.h
  9811. * src/HttpResponse.cc
  9812. * src/HttpResponse.h
  9813. * src/HttpResponseCommand.cc
  9814. * src/HttpResponseCommand.h
  9815. * test/HttpResponseTest.cc
  9816. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Print usage when no URL is specifed or bad command-line option is
  9818. specified.
  9819. * src/HelpItemFactory.cc
  9820. * src/help_tags.h
  9821. * src/option_processing.cc
  9822. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Removed duplicate log message.
  9824. * src/AbstractCommand.cc (asyncResolveHostname)
  9825. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9827. Changed -j option's default value from 5 to 1.
  9828. Added new examples using protocol auto detection feature.
  9829. Removed -T, -M usage where it can be omitted.
  9830. * doc/aria2c.1.txt
  9831. * doc/aria2c.1.html
  9832. * doc/aria2c.1.txt
  9833. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Updated command-line usage text, so that it tells users that they
  9835. can specify any number of torrent files and metalink files in
  9836. command-line.
  9837. * src/version_usage.cc
  9838. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Changed the default value of -j option to 1.
  9840. * src/HelpItemFactory.cc
  9841. * src/option_processing.cc
  9842. * src/usage_text.h
  9843. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Added the ability to reuse connection in FTP and it is enabled by
  9845. default. It can be disabled by --ftp-reuse-connection=false option.
  9846. * src/Command.cc
  9847. * src/DownloadCommand.cc
  9848. * src/FtpDownloadCommand.cc
  9849. * src/FtpDownloadCommand.h
  9850. * src/FtpFinishDownloadCommand.cc
  9851. * src/FtpFinishDownloadCommand.h
  9852. * src/FtpInitiateConnectionCommand.cc
  9853. * src/FtpNegotiationCommand.cc
  9854. * src/FtpNegotiationCommand.h
  9855. * src/HelpItemFactory.cc
  9856. * src/Makefile.am
  9857. * src/Makefile.in
  9858. * src/OptionHandlerFactory.cc
  9859. * src/option_processing.cc
  9860. * src/prefs.h
  9861. * src/usage_text.h
  9862. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Call Command::transitStatus() before calling Command::execute(),
  9864. so that the status change made in execute() is not cleared.
  9865. * src/DownloadEngine.cc
  9866. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. Removed forward declaration of SocketCore class.
  9868. * src/HttpDownloadCommand.h
  9869. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9871. in InitiateConnectionCommandFactory. They should be set only when
  9872. the protocol is HTTP or HTTPS.
  9873. * src/InitiateConnectionCommandFactory.cc
  9874. * src/RequestGroup.cc
  9875. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Fixed infinite loop in checksum checking.
  9877. * src/IteratableChecksumValidator.cc
  9878. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9879. Set _supportsPersistentConnection to true by default.
  9880. * src/Request.cc
  9881. * src/RequestGroup.cc
  9882. * test/HttpRequestTest.cc
  9883. * test/RequestTest.cc
  9884. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. Added timeout to socket pool. The default timeout is 15 seconds,
  9886. which is the same value Apache uses.
  9887. * src/DownloadEngine.cc
  9888. * src/DownloadEngine.h
  9889. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Fixed misuse of multimap::find()
  9891. * src/HttpHeader.cc
  9892. * test/HttpHeaderTest.cc
  9893. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9895. option.
  9896. The asynchronous DNS is not capable of IPv6 yet.
  9897. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9898. least for HTTP download.
  9899. * src/AbstractCommand.cc
  9900. * src/AbstractCommand.h
  9901. * src/AsyncNameResolver.cc
  9902. * src/AsyncNameResolver.h
  9903. * src/DHTEntryPointNameResolveCommand.cc
  9904. * src/DHTEntryPointNameResolveCommand.h
  9905. * src/DownloadEngine.cc
  9906. * src/DownloadEngine.h
  9907. * src/FtpInitiateConnectionCommand.cc
  9908. * src/FtpInitiateConnectionCommand.h
  9909. * src/HelpItemFactory.cc
  9910. * src/HttpInitiateConnectionCommand.cc
  9911. * src/HttpInitiateConnectionCommand.h
  9912. * src/InitiateConnectionCommand.cc
  9913. * src/InitiateConnectionCommand.h
  9914. * src/Makefile.am
  9915. * src/Makefile.in
  9916. * src/NameResolver.cc
  9917. * src/NameResolver.h
  9918. * src/OptionHandlerFactory.cc
  9919. * src/SocketCore.cc
  9920. * src/SocketCore.h
  9921. * src/Util.cc
  9922. * src/Util.h
  9923. * src/option_processing.cc
  9924. * src/prefs.h
  9925. * src/usage_text.h
  9926. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Updated man page: --quiet, --header were added.
  9928. --metalink-servers and --enable-http-keep-alive option were updated.
  9929. * doc/aria2c.1
  9930. * doc/aria2c.1.html
  9931. * doc/aria2c.1.txt
  9932. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Enable HTTP keep-alive by default.
  9934. * src/HelpItemFactory.cc
  9935. * src/option_processing.cc
  9936. * src/usage_text.h
  9937. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Disable http keep-alive if the remote server is not HTTP/1.1.
  9939. * src/HttpConnection.cc
  9940. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Receive content body of 302 response so that the connection can be
  9942. reused later when http keep-alive is enabled.
  9943. * src/HttpNullDownloadCommand.cc
  9944. * src/HttpNullDownloadCommand.h
  9945. * src/HttpResponseCommand.cc
  9946. * src/HttpResponseCommand.h
  9947. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. const SharedHandle<Request> -> const SharedHandle<Request>&
  9949. * src/FtpDowndloadCommand.cc
  9950. * src/FtpDowndloadCommand.h
  9951. * src/HttpDownloadCommand.cc
  9952. * src/HttpDownloadCommand.h
  9953. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Fixed the bug that the control file(.aria2 file) is not renamed
  9955. according to tryAutoFileRenaming().
  9956. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9957. its control file exist, use them and continue download.
  9958. The old implementation didn't take into account of control file's
  9959. existence, so basically you couldn't continue download of renamed file.
  9960. * src/BtProgressInfoFile.h
  9961. * src/DefaultBtProgressInfoFile.cc
  9962. * src/DefaultBtProgressInfoFile.h
  9963. * src/NullProgressInfoFile.h
  9964. * src/RequestGroup.cc
  9965. * test/DefaultBtProgressInfoFileTest.cc
  9966. * test/MockBtProgressInfoFile.h
  9967. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Change the default value of --metalink-servers option from `5' to `1'.
  9969. * src/HelpItemFactory.cc
  9970. * src/option_processing.cc
  9971. * src/usage_text.h
  9972. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Reimplemented transparent metalink using Accept request header.
  9974. * src/HttpRequest.cc
  9975. * src/HttpRequest.h
  9976. * src/HttpRequestCommand.cc
  9977. * src/Metalink2RequestGroup.cc
  9978. * src/RequestGroup.cc
  9979. * src/RequestGroup.h
  9980. * test/HttpRequestTest.cc
  9981. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Bump up version number to 0.13.2a
  9983. * configure.ac
  9984. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Updated configure.ac using the result of autoscan.
  9986. * configure.ac
  9987. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Fixed compilation error without gcrypt/openssl.
  9989. * src/DownloadCommand.cc
  9990. * src/DownloadCommand.h
  9991. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Reorganized version information so that it can be displayed in a
  9993. standard terminal screen without scrolling.
  9994. Removed http, ftp from Configuration section, because they are always
  9995. enabled.
  9996. * src/FeatureConfig.cc
  9997. * src/FeatureConfig.h
  9998. * src/main.cc
  9999. * src/messageDigest.cc
  10000. * src/messageDigest.h
  10001. * src/version_usage.cc
  10002. * test/FeatureConfigTest.cc
  10003. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Masked user ID in log.
  10005. * src/FtpConnection.cc (sendUser)
  10006. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10007. Removed query part from filename in HTTP download. The query part means
  10008. the substring after "?" in URL. Firefox seems do the same thing.
  10009. A query part is sometimes very long and not suitable to filename,
  10010. so I think it is better to remove it from filename.
  10011. * src/HttpRequest.cc
  10012. * src/HttpRequest.h
  10013. * src/Request.cc
  10014. * src/Request.h
  10015. * test/HttpRequestTest.cc
  10016. * test/RequestTest.cc
  10017. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Rewritten Exception class. Throw exception object, not its pointer and
  10019. catch by reference, so that remove problematic delete operator for
  10020. catched exception.
  10021. * src/Exception.cc
  10022. * src/Exception.h
  10023. * test/ExceptionTest.cc
  10024. * src/*: All files throwing/catching exception.
  10025. * test/*: All files throwing/catching exception.
  10026. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Now auto protocol detection is enabled without -Z option.
  10028. But there is a important difference between with/without -Z optoin.
  10029. For example, if you type:
  10030. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10031. then, aria2 interprets there are 3 request groups:
  10032. (1) http://host/file, http://mirror/file <-- multi-source download
  10033. (2) file1.torrent
  10034. (3) file2.metalink
  10035. On the other hand, if you invoke above command with -Z option, it is
  10036. interpreted as 4 request groups:
  10037. (1) http://host/file
  10038. (2) file1.torrent
  10039. (3) file2.metalink
  10040. (4) http://mirror/file
  10041. I think usually user don't mix multi-source URLs and torrent files, so
  10042. there is no big problem here.
  10043. * src/main.cc
  10044. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Fixed the bug that causes segmentaion fault when reading XML containing
  10046. unescapsed character like '&'.
  10047. Also a modification was made which avoids adding unnecessary
  10048. characters stack and appending unused string.
  10049. * src/ExpatMetalinkProcessor.cc
  10050. * src/FileMetalinkParserState.h
  10051. * src/FilesMetalinkParserState.h
  10052. * src/FinMetalinkParserState.h
  10053. * src/HashMetalinkParserState.h
  10054. * src/InitialMetalinkParserState.h
  10055. * src/LanguageMetalinkParserState.h
  10056. * src/MetalinkMetalinkParserState.h
  10057. * src/MetalinkParserState.h
  10058. * src/MetalinkParserStateMachine.cc
  10059. * src/MetalinkParserStateMachine.h
  10060. * src/OSMetalinkParserState.h
  10061. * src/PieceHashMetalinkParserState.h
  10062. * src/PiecesMetalinkParserState.h
  10063. * src/ResourcesMetalinkParserState.h
  10064. * src/SizeMetalinkParserState.h
  10065. * src/SkipTagMetalinkParserState.h
  10066. * src/URLMetalinkParserState.h
  10067. * src/VerificationMetalinkParserState.h
  10068. * src/VersionMetalinkParserState.h
  10069. * src/XML2SAXMetalinkProcessor.cc
  10070. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. Added StringFormat class, which internally calls vasprintf.
  10072. operator<< is defined for this class, so it can be used with iostream
  10073. classes nicely. SimpleLogger and following functions are rewritten
  10074. using StringFormat class.
  10075. Besides, now Logger class's methods are non-const, many classes
  10076. that has a const Logger* as a member variable are modified to remove
  10077. const qualifier from the variable declaration.
  10078. * src/HelpItemFactory.cc
  10079. * src/Request.cc
  10080. * src/SimpleLogger.cc
  10081. * src/StringFormat.cc
  10082. * src/StringFormat.h
  10083. * src/Util.cc
  10084. * src/option_processing.cc
  10085. * src/version_usage.cc
  10086. * test/StringFormatTest.cc
  10087. * src/*.h: The classes that has const Logger* as a member variable.
  10088. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10090. failed. Also fixed memory link when exception is thrown there.
  10091. * src/main.cc (AccRequestGroup)
  10092. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Added build-in "Accept-Features" support. For now only "metalink" is
  10094. used in this header field.
  10095. This "metalink" value is removed from the list when connecting URLs
  10096. fed by metalink file to avoid loop in "transparent" metlaink.
  10097. * src/HttpRequest.cc
  10098. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10099. header is also held in this variable. Also renamed setUserHeaders as
  10100. addHeader and it was rewritten to add header not just to clear the old
  10101. value.
  10102. * src/HttpRequestCommand.cc
  10103. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10104. from "Accept-Features" list.
  10105. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10106. default.
  10107. * src/RequestGroup.h
  10108. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10109. * src/a2functional.h: Included <string> because Concat class depends on
  10110. it.
  10111. * test/HttpRequestTest.cc
  10112. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Added comment
  10114. * src/RequestGroup.cc (createNextCommand)
  10115. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Capitalized METHOD_GET and METHOD_HEAD
  10117. * src/Request.cc
  10118. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Added getDownloadResults() method
  10120. * src/RequestGroupMan.cc
  10121. * src/RequestGroupMan.h
  10122. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Fixed the bug that aria2 exits when commands is empty() but
  10124. _routineCommands are not.
  10125. * src/DownloadEngine.cc
  10126. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Use the default value pulled from Option object in HelpItemFactory.
  10128. except options whose defualt value is embedded in a usage text.
  10129. * src/HelpItemFactory.cc
  10130. * src/HelpItemFactory.h
  10131. * src/option_processing.cc
  10132. * src/version_usage.cc
  10133. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Added --quiet option to make aria2 quiet (no console output).
  10135. --quiet option is tagged with ADVANCED.
  10136. * src/HelpItemFactory.cc
  10137. * src/LogFactory.cc
  10138. * src/LogFactory.h
  10139. * src/MultiUrlRequestInfo.cc
  10140. * src/MultiUrlRequestInfo.h
  10141. * src/NullStatCalc.h: New class. This class prints nothing.
  10142. * src/OptionHandlerFactory.cc
  10143. * src/main.cc
  10144. * src/option_processing.cc
  10145. * src/prefs.h
  10146. * src/usage_text.h
  10147. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10149. * src/HelpItemFactory.cc (createHelpItems):
  10150. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Fixed compilation error in ExpatMetalinkProcessor.cc
  10152. * src/ExpatMetalinkProcessor.cc
  10153. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Reuse socket if the origin server supports HTTP keep-alive and
  10155. --enable-http-keep-alive or --enable-http-pipelining is given.
  10156. The current implementation doesn't reuse the connections established
  10157. against proxy server.
  10158. * src/AbstractCommand.cc
  10159. * src/DownloadEngine.cc
  10160. * src/DownloadEngine.h
  10161. * src/HttpDownloadCommand.cc
  10162. * src/HttpInitiateConnectionCommand.cc
  10163. * src/HttpResponseCommand.cc
  10164. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Rewritten HTTP keep-alive and pipelining routine.
  10166. * src/AbstractCommand.cc
  10167. * src/HttpConnection.cc
  10168. * src/HttpDownloadCommand.cc
  10169. * src/HttpRequest.cc
  10170. * src/HttpRequestCommand.cc
  10171. * src/HttpResponseCommand.cc
  10172. * src/Request.cc
  10173. * src/Request.h
  10174. * src/RequestGroup.cc
  10175. * test/HttpRequestTest.cc
  10176. * test/HttpResponseTest.cc
  10177. * test/RequestTest.cc
  10178. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Added missing setUserHeaders call
  10180. * src/HttpRequestCommand.cc
  10181. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10183. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10184. waste of time because it is more likey false.
  10185. * src/FileAllocationDispatcherCommand.cc (execute)
  10186. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Now HTTP status and version are a member variable of HttpHeader.
  10188. HTTP status is processed as a string, not integer.
  10189. * src/AbstractProxyResponseCommand.cc
  10190. * src/HttpConnection.cc
  10191. * src/HttpHeader.cc
  10192. * src/HttpHeader.h
  10193. * src/HttpHeaderProcessor.cc
  10194. * src/HttpHeaderProcessor.h
  10195. * src/HttpResponse.cc
  10196. * src/HttpResponse.h
  10197. * test/HttpHeaderProcessorTest.cc
  10198. * test/HttpResponseTest.cc
  10199. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. Added --header option. You can specify any number of additional HTTP headers
  10201. like:
  10202. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10203. Unlike other commad-line option, you can use --header option multiple times.
  10204. * src/HelpItemFactory.cc
  10205. * src/HttpRequest.{cc, h}
  10206. * src/HttpRequestCommand.cc
  10207. * src/OptionHandlerFactory.cc
  10208. * src/OptionHandlerImpl.h
  10209. * src/option_processing.cc
  10210. * src/prefs.h
  10211. * src/usage_text.h
  10212. * test/HttpRequestTest.cc (testUserHeaders)
  10213. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Eliminates the time lag between sequential downloads and commands in
  10215. the same RequestGroup.
  10216. In old implementation, aria2 occasionally waits 1 seconds before
  10217. executing next command or RequestGroup.
  10218. This is really a waste of time, and new implementation eliminates
  10219. this unnecessary time lag.
  10220. * src/AbstractCommand.cc
  10221. * src/AutoSaveCommand.cc
  10222. * src/CheckIntegrityCommand.cc
  10223. * src/Command.{cc, h}
  10224. * src/DownloadEngine.{cc, h}
  10225. * src/DownloadEngineFactory.cc
  10226. * src/FileAllocationCommand.cc
  10227. * src/FileAllocationDispatcherCommand.cc
  10228. * src/FillRequestGroupCommand.cc
  10229. * src/FtpInitiateConnectionCommand.cc
  10230. * src/HaveEraseCommand.cc
  10231. * src/HttpInitiateConnectionCommand.cc
  10232. * src/HttpResponseCommand.cc
  10233. * src/RealtimeCommand.cc
  10234. * src/RequestGroup.cc
  10235. * src/RequestGroupMan.cc
  10236. * src/StreamFileAllocationEntry.cc
  10237. * src/TimeBasedCommand.{cc, h}
  10238. * src/TimedHaltCommand.cc
  10239. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10241. keyword explicit and SharedHandle's default constructor initializes
  10242. its internal obj to null, old implementation initializes it using
  10243. obj's default constructor.
  10244. To assign null, write SharedHandle<T> x(...); x.reset();
  10245. TODO: test/SharedHandleTest.cc needs more tests.
  10246. * src/SharedHandle.h
  10247. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10248. Fixed type in man page.
  10249. * doc/aria2c.1.txt
  10250. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10252. * src/SimpleLogger.{cc, h}
  10253. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Implemented auto protocol detection.
  10255. Now you can do:
  10256. aria2c -Z http://host/file file1.torrent file2.metalink
  10257. (Note: -Z option is required for auto protcol detection.)
  10258. Then aria2c downloads 3 files simultaneously:
  10259. 1. http://host/file
  10260. 2. file1.torrent <-- read local torrent file
  10261. 3. file2.metalink <-- read local Metalink file.
  10262. Same thing goes with -i option. Assume your uris.txt contans:
  10263. http://host/file
  10264. file1.torrent
  10265. file2.metalink
  10266. Then you can do: aria2c -i uris.txt
  10267. (Note: -Z option is not needed if -i option is given.)
  10268. * src/main.cc
  10269. * src/ProtocolDetector.{cc, h}
  10270. * test/ProtocolDetectorTest.cc
  10271. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10272. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10273. installed
  10274. * src/ARC4Encryptor.h
  10275. * src/ARC4Decryptor.h
  10276. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Renamed argument from 'errno' to 'err', since errno is confused with
  10278. errno defined in errno.h.
  10279. * src/LibgcryptARC4Decryptor.h
  10280. * src/LibgcryptARC4Context.h
  10281. * src/LibgcryptDHKeyExchange.h
  10282. * src/LibgcryptARC4Encryptor.h
  10283. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Rewritten choking algorithm.
  10285. * src/PeerChokeCommand.{cc, h}
  10286. * src/BtInterestedMessage.cc
  10287. * src/PeerSessionResource.{cc, h}
  10288. * src/DefaultPeerStorage.{cc, h}
  10289. * src/BtNotInterestedMessage.cc
  10290. * src/DefaultBtMessageDispatcher.{cc, h}
  10291. * src/BtMessageDispatcher.h
  10292. * src/Peer.{cc, h}
  10293. * src/BtLeecherStateChoke.{cc, h}
  10294. * src/BtSetup.cc
  10295. * src/BtSeederStateChoke.{cc, h}
  10296. * src/PeerStorage.h
  10297. * test/MockPeerStorage.h
  10298. * test/MockBtMessageDispatcher.h
  10299. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed compilation error on x84-64 platform.
  10301. * src/AuthConfig.cc: Included ostream.
  10302. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Rewritten getBasename() and getDirname(), without standard library
  10304. basename(), dirname().
  10305. * src/File.cc
  10306. * test/FileTest.cc
  10307. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Added Simplified Chinese translation. Also updated the following
  10309. translations: Polish, Dutch, German. Great thanks to all translators.
  10310. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Suppress content-range error when 'Content-Range' response header
  10312. doesn't contains bytes-unit specifier 'bytes'
  10313. * src/HttpHeader.cc (getRange)
  10314. * test/HttpHeaderTest.cc
  10315. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10316. Fixed compilation error with g++-4.3
  10317. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10318. Added missing include files for MinGW
  10319. * test/HttpHeaderProcessorTest.cc
  10320. * test/DHTRoutingTableSerializerTest.cc
  10321. * test/DHTRoutingTableDeserializerTest.cc
  10322. * test/UriListParserTest.cc
  10323. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Now download line is printed nicely with no garbage at the end of
  10325. line. I use ioctl to get the columns of terminal.
  10326. If stdout is redirected to another device, instead of carriage return,
  10327. end of line '\n' character is used. This is feature request#1909659
  10328. * src/ConsoleStatCalc.cc (calculateStat)
  10329. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Included a2time.h
  10331. * src/DHTMessageDispatcher.h
  10332. * src/DHTMessageEntry.h
  10333. * src/DHTReplaceNodeTask.h
  10334. * src/DHTMessageTracker.h
  10335. * src/Util.h
  10336. * src/CookieBox.h
  10337. * src/SocketCore.h
  10338. * src/DefaultBtMessageDispatcher.h
  10339. * src/SocketCore.cc
  10340. * src/Util.cc
  10341. * src/DHTPingTask.h
  10342. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Fixed high memory footprint when DHT is enabled.
  10344. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10345. queued than it is processed and the queue is getting longer. As a
  10346. consequence, momory usage is increased.
  10347. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10348. replacement cache in DHTBucket which is described in Kademlia paper.
  10349. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10350. DHTReplaceNodeTask.
  10351. * src/DHTBucket.{h, cc}
  10352. (cacheNode): New function.
  10353. (getCachedNodes): New function.
  10354. (dropNode): Push back cached node to _nodes.
  10355. * test/DHTBucketTest.cc
  10356. (testCacheNode): New test
  10357. (testDropNode): New test
  10358. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10360. the unused 4KB memory when ssl is not used.
  10361. * src/SocketCore.cc
  10362. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Added summary log for peer announce storage.
  10364. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10365. Removed cast
  10366. * src/DefaultPeerStorage.cc (addPeer)
  10367. Log exception message
  10368. * src/DHTMessageTracker.cc (handleTimeout)
  10369. Fixed casting
  10370. * test/HttpRequestTest.cc
  10371. * test/MetalinkProcessorTest.cc
  10372. * test/PieceTest.cc
  10373. * test/MetalinkEntryTest.cc
  10374. * test/SequenceTest.cc
  10375. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. * src/ParameterizedStringParser.cc (createLoop):
  10377. Removed unused variable sstep.
  10378. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10379. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. * src/Util.{h, cc}
  10381. (parseUInt): New function.
  10382. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10383. The actual range is uint32_t.
  10384. * test/UtilTest.cc
  10385. * src/ParameterizedStringParser.cc:
  10386. Use Util::parseUInt() for loop variables.
  10387. * test/ParameterizedStringParserTest.cc
  10388. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10389. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Rewritten the functions for binding port.
  10391. * src/DHTConnectionImpl.{h, cc}
  10392. * src/PeerListenCommand.{h, cc}
  10393. * src/DHTSetup.cc
  10394. * src/BtSetup.cc
  10395. * test/DHTConnectionImplTest.cc
  10396. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. type cleanup for allmost all remaining files.
  10398. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Type clarification
  10400. * src/PeerSessionResource.{h, cc}
  10401. * src/DefaultPieceStorage.{h, cc}
  10402. * src/Peer.{h, cc}
  10403. * test/PeerSessionResourceTest.cc
  10404. Use div function
  10405. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10406. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Type clarification
  10408. * src/DefaultPeerStorage.{h, cc}
  10409. * test/DefaultPeerStorageTest.cc
  10410. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Type clarification: size_t for length or size, uint64_t for file
  10412. length, off_t for file offset.
  10413. * src/DefaultBtProgressInfoFile.cc
  10414. * src/DefaultBtContext.{h, cc}
  10415. * src/DefaultBtInteractive.cc
  10416. * src/DownloadCommand.{h, cc}
  10417. * src/IteratableChunkChecksumValidator.{h, cc}
  10418. * src/SegmentMan.{h, cc}
  10419. * src/SingleFileDownloadContext.{h, cc}
  10420. * src/IteratableChecksumValidator.{h, cc}
  10421. * src/BtContext.h
  10422. * src/IteratableValidator.h
  10423. * src/DownloadContext.h
  10424. * test/SingleFileDownloadContextTest.cc
  10425. * test/DefaultBtContextTest.cc
  10426. * test/MockBtContext.h
  10427. * test/Metalink2RequestGroupTest.cc
  10428. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Type clarification: size_t for length or size, uint64_t for file
  10430. length, off_t for file offset.
  10431. * src/PiecedSegment.cc
  10432. * src/GrowSegment.h
  10433. * src/DefaultBtRequestFactory.h
  10434. * src/DefaultBtProgressInfoFile.cc
  10435. * src/UnknownLengthPieceStorage.h
  10436. * src/DefaultPieceStorage.cc
  10437. * src/UnknownLengthPieceStorage.cc
  10438. * src/DefaultBtInteractive.cc
  10439. * src/GrowSegment.cc
  10440. * src/BitfieldMan.h
  10441. * src/DownloadCommand.cc
  10442. * src/BtRequestFactory.h
  10443. * src/PiecedSegment.h
  10444. * src/DefaultPieceStorage.h
  10445. * src/Piece.cc
  10446. * src/DefaultBtRequestFactory.cc
  10447. * src/PieceStorage.h
  10448. * src/Segment.h
  10449. * src/Piece.h
  10450. * src/BitfieldMan.cc
  10451. * src/Util.cc
  10452. * test/DefaultBtProgressInfoFileTest.cc
  10453. * test/DefaultPieceStorageTest.cc
  10454. * test/MockPieceStorage.h
  10455. * test/BtRequestMessageTest.cc
  10456. * test/DefaultBtMessageDispatcherTest.cc
  10457. * test/BitfieldManTest.cc
  10458. * test/GrowSegmentTest.cc
  10459. * test/PieceTest.cc
  10460. * test/SegmentTest.cc
  10461. * test/SegmentManTest.cc
  10462. * test/DefaultBtRequestFactoryTest.cc
  10463. * test/MockBtRequestFactory.h
  10464. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. Fixed compilation error with --disable-nls
  10466. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10467. in gettext.h causes the problem.
  10468. * src/common.h
  10469. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Removed subPiece related functions.
  10471. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10472. * src/DefaultPieceStorage.{h, cc}
  10473. * test/PieceTest.cc
  10474. * test/DefaultPieceStorageTest.cc
  10475. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Use unsigned char for data store.
  10477. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Bump up version number to 0.13.0+1
  10479. * configure.ac
  10480. * Release 0.13.0+1
  10481. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Changed inactive connection timeout to 120.
  10483. To accept more mulually interested peers, disconnect peer when there
  10484. is no interest between us after certain time passed.
  10485. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10486. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10488. when compiled with async DNS support.
  10489. * src/DownloadEngine.cc
  10490. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10491. value '10' will be a little bit short when some DNS servers are
  10492. offline and several DNS servers are tried. It should be configured
  10493. by command-line option.
  10494. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. Merged Ross's mingw patch.
  10496. * src/DHTRoutingTableDeserializer.cc
  10497. * src/DHTRoutingTableSerializer.cc
  10498. * src/Platform.{h, cc}
  10499. * src/timegm.h
  10500. * src/gettimeofday.h
  10501. * src/getaddrinfo.h
  10502. * src/SocketCore.h
  10503. * src/common.h
  10504. * src/inet_aton.h
  10505. * src/DownloadEngine.h
  10506. * src/gai_strerror.h
  10507. * src/a2netcompat.h
  10508. * configure.ac
  10509. * configure
  10510. * aclocal.m4
  10511. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Included missing iostream.
  10513. * test/AllTest.cc
  10514. * test/BtDependencyTest.cc
  10515. * test/BtExtendedMessageTest.cc
  10516. * test/DHTConnectionImplTest.cc
  10517. * test/DHTMessageFactoryImplTest.cc
  10518. * test/DHTMessageTrackerEntryTest.cc
  10519. * test/DHTNodeTest.cc
  10520. * test/DHTRoutingTableSerializerTest.cc
  10521. * test/DefaultBtAnnounceTest.cc
  10522. * test/DefaultBtContextTest.cc
  10523. * test/DefaultBtMessageFactoryTest.cc
  10524. * test/DefaultExtensionMessageFactoryTest.cc
  10525. * test/HandshakeExtensionMessageTest.cc
  10526. * test/HttpResponseTest.cc
  10527. * test/MetalinkProcessorTest.cc
  10528. * test/MultiFileAllocationIteratorTest.cc
  10529. * test/SocketCoreTest.cc
  10530. * test/UTPexExtensionMessageTest.cc
  10531. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. Reorganized includes.
  10533. * src/NameResolver.cc
  10534. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Fixed compilation error without ares/c-ares
  10536. * src/NameResolver.h:
  10537. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Added a test for large file.
  10539. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10540. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Fixed the bug that file size is ignored if size > INT32_MAX
  10542. * src/SizeMetalinkParserState.cc (endElement):
  10543. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Bump up version number to 0.13.0
  10545. * configure.ac
  10546. * Release 0.13.0
  10547. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Updated Makfefile.am to make 'make dist' work.
  10549. Now packaged filename is aria2c-VERSION.tar.bz2.
  10550. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10551. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10552. Large file support is now configured by configure script.
  10553. * configure.ac
  10554. Removed unsused source files
  10555. * src/
  10556. * test/
  10557. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10558. Peer.h and BtContext.h respectively.
  10559. * src/Peer.h
  10560. * src/BtContext.h
  10561. Updated translations.
  10562. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10563. translations. Great thanks to all translators!;)
  10564. * po/*.{po, gmo}
  10565. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10567. statically declared sha1 MessageDigestContext.
  10568. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10569. initialization of short-lived MessageDigestContext.
  10570. * src/MessageDigestHelper.{h, cc}
  10571. * src/main.cc
  10572. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10573. the initialization of MessageDigestContext every time in validating
  10574. chunk checksum.
  10575. * src/DownloadCommand.{h, cc}
  10576. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Add a file descriptor which connected to fast peer(latency<1500) to
  10578. select(). This change reduced CPU load.
  10579. * src/PeerInteractionCommand.cc
  10580. * src/DefaultBtInteractive.{h, cc}
  10581. * src/BtInteractive.h
  10582. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Fixed the previous insufficient fix for possible busy loop.
  10584. * src/MSEHandshake.cc (identifyHandshakeType)
  10585. Removed unused functions.
  10586. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10587. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Fixed possible busy loop if first 20 bytes are not received for a few
  10589. minutes.
  10590. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10591. * src/ReceiverMSEHandshakeCommand.cc
  10592. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10593. Fixed compilation error
  10594. * src/ExpatMetalinkProcessor.cc
  10595. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10597. * src/DHTBucket.cc
  10598. Removed unnecessary cast.
  10599. * src/HandshakeExtensionMessage.cc
  10600. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10602. is missing.
  10603. * src/OptionHandlerFactory.cc
  10604. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10605. Fixed the bug that HAVE message is not sent for a piece they are
  10606. downloaded fom http/ftp server before any BitTorrent handshake is done
  10607. with peers.
  10608. * src/DefaultBtInteractive.cc
  10609. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10611. * src/Makefile.am
  10612. * src/Makefile.in
  10613. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Updated README. Added html version of README and man page.
  10615. * README
  10616. * README.html
  10617. * readme2html: Shell script to generate README.html from README using
  10618. asciidoc.
  10619. * doc/aria2c.1.html
  10620. * doc/makeman: Added the line to generate aria2c.1.html
  10621. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Fixed offset calculation.
  10623. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10624. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Rewritten itos and uitos using template. llitos and ullitos are
  10626. replaced with itos and uitos respectively.
  10627. * src/Util.{h, cc}
  10628. * test/UtilTest.cc
  10629. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10631. of the number of bytes required for storing public key and shared
  10632. secret.
  10633. * src/LibgcryptDHKeyExchange.h
  10634. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10635. * src/MSEHandshake.cc
  10636. * test/DHKeyExchangeTest.cc
  10637. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Removed since they are not used.
  10639. * src/Xml2MetalinkProcessor.{h, cc}
  10640. * src/Socket.cc
  10641. * src/SegmentSplitter.{h, cc}
  10642. * test/Xml2MetalinkProcessorTest.cc
  10643. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Fixed the bug that prevents aria2 from stopping other than by pressing
  10645. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10646. option. aria2 doesn't stop even after --seed-time is satisfied and
  10647. continues to output blank lines in the console.
  10648. * src/ReceiverMSEHandshakeCommand.cc
  10649. * src/PeerReceiveHandshakeCommand.cc
  10650. * src/PeerListenCommand.cc
  10651. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10652. Bump up version number to 0.13.0rc
  10653. * configure.ac
  10654. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. Updated man page and some usage text.
  10656. * doc/aria2c.1.txt
  10657. * src/usage_text.h
  10658. * po/*.{po, gmo}
  10659. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10660. Updated translations. Added Finnish and Hebrew translations.
  10661. Great thanks to all translators!
  10662. * po/*.{po, gmo}
  10663. * po/LINGUAS
  10664. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. Log more detailed information about each message.
  10666. * src/DHTQueryMessage.{h, cc}
  10667. * src/DHTGetPeersMessage.{h, cc}
  10668. * src/DHTFindNodeReplyMessage.{h, cc}
  10669. * src/DHTGetPeersReplyMessage.{h, cc}
  10670. * src/DHTAnnouncePeerMessage.{h, cc}
  10671. * src/DHTResponseMessage.{h, cc}
  10672. * src/DHTFindNodeMessage.{h, cc}
  10673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Use constants defined in prefs.h
  10675. * src/option_processing.cc
  10676. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10678. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. Make room for future enchancements for IPv6 addresses.
  10680. Bump up version number of dht.dat file format to 2.
  10681. Not compatible with previous version.
  10682. * src/DHTRoutingTableSerializer.cc
  10683. * src/DHTRoutingTableDeserializer.cc
  10684. * test/DHTRoutingTableSerializerTest.cc
  10685. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. Added handling for the return values from
  10687. PeerMessageUtil::createcompact().
  10688. * src/DefaultBtContext.cc (computeFastSet):
  10689. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Fixed abort when peer's ip address is IPv4-mapped address.
  10691. * src/DefaultBtContext.cc (computeFastSet)
  10692. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10693. cannot handle IPv4-mapped addresses.
  10694. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Proper return value handling for OpenSSL functions.
  10697. * src/LibsslDHKeyExchange.h
  10698. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. Random bytes generation using libgcrypt and OpenSSL.
  10700. * src/DHTUtil.{h, cc}
  10701. * test/DHTUtilTest.cc
  10702. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10704. received.
  10705. * src/DHTMessageReceiver.cc (receiveMessage)
  10706. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Fixed the bug that a return code is always 0. BUG#1897704
  10708. If error occurred during the download or there exist unfinished
  10709. downloads, aria2 returns with code 1.
  10710. * src/RequestGroupMan.{h, cc}
  10711. * src/MultiUrlRequestInfo.{h, cc}
  10712. * src/main.cc
  10713. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. IPv6 support for SocketCore class.
  10715. TODO: In SocketCore::establishConnection(), this is insufficient to
  10716. determin the failure of connect() here because the socket is
  10717. non-blocking state. The next addresses should be tried after select().
  10718. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10719. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10720. instead which address family independent.
  10721. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10722. information in a compact peer format which is for IPv4 only.
  10723. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10724. this is a spec of BitTorrent protocol.
  10725. * src/SocketCore.{h, cc}
  10726. * src/PeerMessageUtil.cc
  10727. * test/SocketCoreTest.cc
  10728. * test/PeerMessageUtilTest.cc
  10729. * test/DHTConnectionImplTest.cc
  10730. Handle IPv4-mapped addresses.
  10731. * src/DHTNode.cc: Now identity is determined by node id.
  10732. * src/DHTMessageTrackerEntry.cc
  10733. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10734. should handle it.
  10735. * src/DHTRoutingTableDeserializer.cc
  10736. * src/DHTMessageFactoryImpl.cc
  10737. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Change the unit of --stop option from a minute to a second.
  10739. * src/usage_text.h
  10740. * src/DownloadEngineFactory.cc
  10741. * src/OptionHandlerFactory.cc
  10742. * src/message.h
  10743. * src/TimedHaltCommand.cc
  10744. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Make listening socket non-block mode.
  10746. * src/FtpConnection.cc
  10747. * src/FtpNegotiationCommand.{h, cc}
  10748. * src/PeerListenCommand.cc
  10749. Fixed the bug that cause slow ftp negotiation.
  10750. * src/FtpNegotiationCommand.{h, cc}
  10751. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Added basic tag to --enable-dht, --dht-listen-port option.
  10753. * src/HelpItemFactory.cc (createHelpItems)
  10754. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Updated text.
  10756. * src/usage_text.h
  10757. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10759. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10760. Determin _threadtholdSpeed in each constructor for
  10761. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10762. * src/ActivePeerConnectionCommand.{h, cc}
  10763. * src/PeerReceiveHandshakeCommand.{h, cc}
  10764. * src/BtSetup.cc
  10765. * src/BtConstants.h
  10766. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Added --bt-min-crypto-level and --bt-require-crypto options.
  10768. * src/OptionHandlerFactory.cc
  10769. * src/MSEHandshake.cc
  10770. * src/HelpItemFactory.cc
  10771. * src/option_processing.cc
  10772. * src/ReceiverMSEHandshakeCommand.cc
  10773. * src/prefs.h
  10774. * src/DefaultBtAnnounce.cc
  10775. * src/InitiatorMSEHandshakeCommand.cc
  10776. * src/usage_text.h
  10777. * test/MSEHandshakeTest.cc
  10778. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Bump version number to 0.13.0b
  10780. * configure.ac
  10781. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Updated doc.
  10783. * src/MessageDigestHelper.h:
  10784. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Use raw message digest as a token instead of its hexadecimal
  10786. representation.
  10787. * src/DHTTokenTracker.cc (generateToken)
  10788. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10789. Added Message Stream Encryption(MSE) support.
  10790. Currently, aria2 accepts incoming connections with Obfuscation Header
  10791. and legacy BitTorrent Header and establishes connections with
  10792. Obfuscation Header first and if failed then retry with legacy
  10793. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10794. choose ARC4. The new option to change the default behavior is planned.
  10795. For tracker extension, "supportcrypto=1" is added statically.
  10796. * src/PeerInitiateConnectionCommand.{h, cc}
  10797. * src/PeerConnection.{h, cc}
  10798. * src/HandleRegistry.h
  10799. * src/SocketCore.h
  10800. * src/PeerReceiveHandshakeCommand.{h, cc}
  10801. * src/BtRegistry.{h, cc}
  10802. * src/PeerListenCommand.cc
  10803. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10804. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10805. * src/MSEHandshake.{h, cc}
  10806. * src/ARC4Encryptor.h
  10807. * src/ARC4Decryptor.h
  10808. * src/LibgcryptARC4Encryptor.h
  10809. * src/LibgcryptARC4Decryptor.h
  10810. * src/LibgcryptARC4Context.h
  10811. * src/LibsslARC4Encryptor.h
  10812. * src/LibsslARC4Decryptor.h
  10813. * src/LibsslARC4Context.h
  10814. * src/DHKeyExchange.h
  10815. * src/LibgcryptDHKeyExchange.h
  10816. * src/LibsslDHKeyExchange.h
  10817. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10818. * test/DefaultBtAnnounceTest.cc
  10819. * test/ARC4Test.cc
  10820. * test/DHKeyExchangeTest.cc
  10821. Removed prepareForRetry() because it is not used.
  10822. * src/PeerAbstractCommand.{h, cc}
  10823. * src/PeerInteractionCommand.{h, cc}
  10824. * src/PeerInitiateConnectionCommand.{h, cc}
  10825. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Added the ability to load nodes from torrent file. These nodes are
  10827. added to the routing table when downloading that torrent.
  10828. * src/BtContext.h
  10829. * src/DefaultBtContext.{h, cc}
  10830. * src/DHTSetup.cc
  10831. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10832. hostname and port pair, and resolves all of them.
  10833. * src/NameResolver.{h, cc}: Added reset().
  10834. * src/RequestGroup.cc
  10835. * test/DefaultBtContextTest.cc
  10836. * test/MockBtContext.h
  10837. Removed assert() from DefaultBtContext and throw exception instead.
  10838. * src/DefaultBtContext.cc
  10839. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Fixed segmentation fault bug when exiting if dht is disabled.
  10841. * src/RequestGroup.cc
  10842. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. Fixed typo in log message and define the message in message.h
  10844. * src/TimedHaltCommand.cc
  10845. * src/message.h
  10846. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Included RecoverableException.h to fix compilation error.
  10848. * test/DHTMessageFactoryImplTest.cc
  10849. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10851. * test/DHTPingMessageTest.cc
  10852. * test/DHTGetPeersMessageTest.cc
  10853. * test/DHTFindNodeMessageTest.cc
  10854. * test/DHTAnnouncePeerMessageTest.cc
  10855. * test/MockDHTMessage.h
  10856. * test/MockDHTMessageFactory.h
  10857. * test/MockDHTMessageDispatcher.h: New class.
  10858. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10860. virtual.
  10861. * src/DHTMessageDispatcher.h
  10862. * src/DHTMessageDispatcherImpl.{h, cc}
  10863. * src/DHTSetup.cc
  10864. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Adding handling of DHT error message. Just log error message and
  10866. throw exception.
  10867. * src/DHTMessageFactoryImpl.cc
  10868. * test/DHTMessageFactoryImplTest.cc
  10869. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Added handling of dynamic cast failure.
  10871. * src/DHTNodeLookupTask.cc
  10872. * src/DHTPeerLookupTask.cc
  10873. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. Added the ability to stop aria2 itself when given time has passed
  10875. from start. Use --stop option to specify time in minutes.
  10876. When 0 is given, this feature is disabled.
  10877. * src/OptionHandlerFactory.cc
  10878. * src/TimeBasedCommand.h: Make _interval protected scope.
  10879. * src/HelpItemFactory.cc
  10880. * src/option_processing.cc
  10881. * src/prefs.h
  10882. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10883. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10884. Without this modification, the result list shows "ERR" when aria2 is
  10885. stopped by --stop option. It should be "INPR".
  10886. * src/DownloadEngine.{h, cc}
  10887. * src/DownloadEngineFactory.cc
  10888. * src/usage_text.h
  10889. * src/TimedHaltCommand.{h, cc}: New class.
  10890. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10891. Bootstrap through node added by port message.
  10892. Currently bootstrap is executed if the number of buckets in routing
  10893. table is 1.
  10894. * src/BtPortMessage.{h, cc}
  10895. * src/DefaultBtMessageFactory.{h, cc}
  10896. * src/PeerInteractionCommand.cc
  10897. * test/BtPortMessageTest.cc
  10898. * test/MockDHTTask.h
  10899. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Extract the Peer class's member variables, which are only needed after
  10901. PeerInteractionCommand, into PeerSessionResource class.
  10902. This class is instantiated in PeerInteractionCommand class's ctor and
  10903. released in its dtor.
  10904. This will make Peer class lightweight and uses less memory for peers
  10905. which are not connected and wait in the queue.
  10906. * src/PeerChokeCommand.cc
  10907. * src/PeerSessionResource.{h, cc}
  10908. * src/PeerInteractionCommand.cc
  10909. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10910. * src/DefaultBtInteractive.cc
  10911. * src/BtPieceMessage.cc
  10912. * src/BtInterestedMessage.cc
  10913. * src/BtUnchokeMessage.cc
  10914. * src/DefaultPeerStorage.{h, cc}
  10915. * src/PeerInitiateConnectionCommand.cc
  10916. * src/ActivePeerConnectionCommand.cc
  10917. * src/BtNotInterestedMessage.cc
  10918. * src/DefaultBtMessageDispatcher.cc
  10919. * src/BtChokeMessage.cc
  10920. * src/BtRequestMessage.cc
  10921. * src/Peer.{h, cc}
  10922. * src/BtRegistry.h
  10923. * src/TrackerWatcherCommand.cc
  10924. * src/PeerReceiveHandshakeCommand.cc
  10925. * test/BtExtendedMessageTest.cc
  10926. * test/BtAllowedFastMessageTest.cc
  10927. * test/BtCancelMessageTest.cc
  10928. * test/DefaultPieceStorageTest.cc
  10929. * test/BtBitfieldMessageTest.cc
  10930. * test/BtHaveMessageTest.cc
  10931. * test/BtNotInterestedMessageTest.cc
  10932. * test/BtRequestMessageTest.cc
  10933. * test/PeerSessionResourceTest.cc
  10934. * test/DefaultBtMessageDispatcherTest.cc
  10935. * test/PeerTest.cc
  10936. * test/BtInterestedMessageTest.cc
  10937. * test/BtRejectMessageTest.cc
  10938. * test/BtChokeMessageTest.cc
  10939. * test/DefaultPeerStorageTest.cc
  10940. * test/BtHaveNoneMessageTest.cc
  10941. * test/BtHaveAllMessageTest.cc
  10942. * test/DefaultExtensionMessageFactoryTest.cc
  10943. * test/BtUnchokeMessageTest.cc
  10944. * test/DefaultBtMessageFactoryTest.cc
  10945. * test/HandshakeExtensionMessageTest.cc
  10946. * test/UTPexExtensionMessageTest.cc
  10947. * test/DefaultBtRequestFactoryTest.cc
  10948. * test/BtPieceMessageTest.cc
  10949. Removed typedef PeerStats.
  10950. * src/PeerStat.h
  10951. * src/SegmentMan.cc
  10952. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Added std namespace to copy, remove_copy, back_inserter,
  10954. front_inserter.
  10955. * src/RequestGroupMan.cc
  10956. * src/DefaultPieceStorage.cc
  10957. * src/StreamFileAllocationEntry.cc
  10958. * src/BtFileAllocationEntry.cc
  10959. * src/RequestGroup.cc
  10960. * src/MetalinkEntry.cc
  10961. * src/DelegatingPeerListProcessor.cc
  10962. * src/DefaultBtRequestFactory.cc
  10963. * src/DefaultBtMessageDispatcher.cc
  10964. * src/version_usage.cc: Included <algorithm>
  10965. * src/main.cc
  10966. * src/MetalinkParserController.cc
  10967. * src/DefaultBtContext.cc
  10968. * src/DownloadEngineFactory.cc
  10969. * src/a2algo.h
  10970. Removed.
  10971. * test/StreamUriListParserTest.cc
  10972. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10974. ActivePeerConnectionCommand when it is given and
  10975. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10976. * src/ActivePeerConnectionCommand.{h, cc}
  10977. * src/BtSetup.cc
  10978. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. Only add socket to DownloadEngine's select routine when peer or
  10980. localhost is unchoked and interested. This lowers CPU usage a
  10981. little bit.
  10982. * src/PeerInteractionCommand.cc
  10983. * src/PeerAbstractCommand.{h, cc}
  10984. * src/BtInteractive.h
  10985. * src/DefaultBtInteractive.{h, cc}
  10986. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Revert previous change because get_peers message is needed for
  10988. announce_peer anyway.
  10989. * src/DHTGetPeersCommand.cc
  10990. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Request peers thought DHT only when download hasn't finished.
  10992. * src/DHTGetPeersCommand.cc
  10993. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10995. * src/DHTBucketRefreshTask.{h, cc}
  10996. * src/DHTSetup.cc
  10997. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10999. standard classes.
  11000. Included string.h where mem* function are used.
  11001. Added namespace aria2.
  11002. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Create directory before saving DHT routing table.
  11004. Now ios::failure is now handled properly.
  11005. * src/DHTAutoSaveCommand.cc
  11006. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. Removed unnecessary cerr.
  11008. * src/DownloadEngine.cc
  11009. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Catch exception inside DHTMessageReceiver::receiveMessage().
  11011. Log unknown message.
  11012. * src/DHTMessageReceiver.{h, cc}
  11013. * src/DHTMessageFactory.h
  11014. * src/DHTMessageFactoryImpl.{h, cc}
  11015. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11016. * src/DHTInteractionCommand.cc
  11017. * src/DHTUnknownMessage.{h, cc}
  11018. * test/DHTUnknownMessageTest.cc
  11019. * test/MockDHTMessageFactory.h
  11020. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. Commented out ip address comparison because a host can have multiple
  11022. ip addresses and it is hard to predict the hostname is resolved into
  11023. which one.
  11024. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11025. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11026. * po/Makefile.in: Removed since this is generated by configure.
  11027. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Fixed compiler warning about redefinition of SIZE_MAX.
  11029. Use common.h instead of config.h directly here.
  11030. * src/Platform.{h, cc}
  11031. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11032. here.
  11033. * common.h
  11034. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11035. Updated gettext related files.
  11036. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11037. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11038. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Added DHT functionality, compatible with mainline.
  11040. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11041. You may need to specify entry point to DHT network using
  11042. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11043. Use --dht-listen-port to specify port number. Make sure that your
  11044. firewall configuration can pass through UDP traffic to the port.
  11045. The routing table is saved in $HOME/.aria2/dht.dat.
  11046. * src/DHT*
  11047. * src/BNode.{h, cc}
  11048. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11049. particular torrent.
  11050. * src/Data.cc: Rewritten ctor.
  11051. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11052. --dht-entry-point.
  11053. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11054. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11055. ends, remove BtContext from DHTPeerAnnounceStorage.
  11056. * src/BtPortMessage.{h, cc}: Rewritten.
  11057. * src/message.h
  11058. * src/OptionHandlerImpl.cc
  11059. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11060. --dht-entry-point.
  11061. * src/Dictionary.{h, cc} (remove): New function.
  11062. * src/prefs.h
  11063. * src/DefaultBtMessageFactory.h
  11064. * src/BtHandshakeMessage.cc
  11065. * src/ActivePeerConnectionCommand.cc
  11066. * src/SocketCore.{h, cc}: Added datagram socket support.
  11067. * src/DefaultBtMessageFactory.cc
  11068. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11069. Create DHT commands.
  11070. * src/BtMessageFactory.h
  11071. * src/PeerMessageUtil.{h, cc}
  11072. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Fixed the bug that log file is not written when configuration file doesn't exist.
  11074. This is caused by using Logger class before LogFactory is not configured.
  11075. BUG #1875079
  11076. * src/option_processing.cc
  11077. Warning message "configuration doesn't exist" is only printed when --conf is
  11078. given.
  11079. * src/option_processing.cc
  11080. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11082. ShaVisitor is now deprecated and slated to be removed.
  11083. * src/DefaultBtContext.cc
  11084. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. Externalize message to message.h
  11086. * src/Platform.cc
  11087. * src/message.h
  11088. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Set default domain and default path to cookie.
  11090. * src/HttpResponse.cc
  11091. * src/CookieBox.{h, cc}
  11092. * src/CookieParser.{h, cc}
  11093. * test/CookieParserTest.cc
  11094. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Added --no-conf and --conf-path command-line option.
  11096. --no-conf option disables loading aria2.conf file.
  11097. --conf-path option changes the configuration file path. The default
  11098. file path is $HOME/.aria2/aria2.conf
  11099. Added a warning message when the configuration file is not found.
  11100. * src/HelpItemFactory.cc
  11101. * src/option_processing.cc
  11102. * src/prefs.h
  11103. * src/usage_text.h
  11104. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. Added the message to inform users that other help categories are
  11106. available in -h option.
  11107. * src/version_usage.cc
  11108. * src/TagContainer.{h, cc}
  11109. * test/TagContainerTest.cc
  11110. * src/TaggedItem.{h, cc}
  11111. * test/TaggedItemTest.cc
  11112. * src/HelpItem.h
  11113. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11115. from PiecedSegment's ctor.
  11116. Previously Piece::getAllMissingBlockIndexes() is called from
  11117. PiecedSegment() but it is rather expensive since only first element is
  11118. used.
  11119. * src/PiecedSegment.cc
  11120. * src/Piece.{h, cc}
  11121. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11123. each time these functions are called.
  11124. * src/BitfieldMan.{h, cc}
  11125. * test/BitfieldManTest.cc
  11126. * src/array_fun.h
  11127. * test/array_funTest.cc
  11128. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11129. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11130. filtered. Removed unnecessary cast to int32_t.
  11131. * src/BitfieldMan.{h, cc}
  11132. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11134. payload length(4bytes) are received. This happens because lenbufLength
  11135. is not updated in this particular case and successive call of
  11136. receiveMessage() overwrites payload length with bytes recieved which
  11137. are payload body.
  11138. * src/PeerConnection.{h, cc}
  11139. * src/message.h
  11140. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11142. peer if there are peers that have same ipaddr and port.
  11143. I've experiened segmentation fault and "pure virtual function was
  11144. called" error.
  11145. * src/Peer.h
  11146. * test/PeerTest.cc
  11147. * src/DefaultPeerStorage.cc
  11148. * test/DefaultPeerStorageTest.cc
  11149. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11150. Removed a call to isPowerOf() because it is no longer necessary here
  11151. and a request block is not always power of 2.
  11152. BUG#1866924
  11153. * src/PeerMessageUtil.cc (checkLength)
  11154. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Fixed the bug that always first found Segment is removed from
  11156. usedSegmentEntries. Removed unused functions.
  11157. * src/SegmentMan.{h, cc}
  11158. * test/SegmentManTest.cc
  11159. Fixed the bug that ServerHost is not removed.
  11160. * src/RequestGroup.cc
  11161. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. Fixed the bug that SegmentMan::completeSegment() is not called
  11163. even if Segment is complete when --lowest-speed-limit is enabled.
  11164. BUG#1864525
  11165. * src/DownloadCommand.{h, cc}
  11166. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. Fixed: hash algorithm 'sha1' is always used.
  11168. * src/DownloadCommand.cc (validatePieceHash)
  11169. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Added --enable-peer-exchange command-line option.
  11171. * src/OptionHandlerFactory.cc
  11172. * src/HelpItemFactory.cc
  11173. * src/option_processing.cc
  11174. * src/usage_text.h
  11175. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Move extension from BtRuntime to ExtensionMessageFactory, because
  11177. extension can be specified per peer, not per torrent.
  11178. * src/DefaultBtInteractive.cc
  11179. * src/BtRuntime.h
  11180. * src/ExtendedMessagingAware.h
  11181. * src/ExtensionMessageFactory.h
  11182. * src/DefaultExtensionMessageFactory.cc
  11183. * test/DefaultExtensionMessageFactoryTest.cc
  11184. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11185. Added categorized option help. Specify category using --help option.
  11186. Also added the ability to search options in forward match.
  11187. * src/HelpItem.{h, cc}
  11188. * test/HelpItemTest.cc
  11189. * src/HelpItemFactory.{h, cc}
  11190. * src/TagContainer.{h, cc}
  11191. * test/TagContainerTest.cc
  11192. * src/option_processing.cc
  11193. * src/prefs.h
  11194. * src/TaggedItem.{h, cc}
  11195. * test/TaggedItemTest.cc
  11196. * src/version_usage.cc
  11197. * src/help_tags.h
  11198. * src/usage_text.h
  11199. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Fixed segmentation fault when bad torrent metainfo is parsed.
  11201. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11202. and then throw exception or skip it.
  11203. * src/DefaultBtContext.{h, cc}
  11204. * test/DefaultBtContextTest.cc
  11205. * src/AnnounceList.cc
  11206. * src/CompactPeerListProcessor.cc
  11207. * src/message.h
  11208. * src/DefaultBtAnnounce.{h, cc}
  11209. * test/DefaultBtAnnounceTest.cc
  11210. * src/BencodeVisitor.cc
  11211. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Added missing "B"(=Byte). So now the message looks like this:
  11213. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11214. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11215. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. Show the seed ratio after torrent downloads.
  11217. For example, after torrent download completed and --seed-time and
  11218. --seed-ratio conditions are fulfilled, following message is printed
  11219. right after "Download complete: .....":
  11220. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11221. * src/RequestGroupMan.cc
  11222. * src/RequestGroup.{h, cc}
  11223. * src/message.h
  11224. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Remove a defunct control file. A defunct control file means that while
  11226. it exists, but the corresponding download file is missing.
  11227. After its removal, a download restarts from the beginning.
  11228. * src/RequestGroup.cc
  11229. * src/message.h
  11230. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Allocate bitfield in Peer when it is really used. More specifically,
  11232. bitfield in Peer is allocated after the connection is established and
  11233. deallocated when the connection is dropped.
  11234. Since 2 parameters(piece length and total length) was removed from the
  11235. constructor of Peer class, many test classes were modified accordingly.
  11236. See svn log for more detailed information.
  11237. * src/PeerInteractionCommand.cc
  11238. * src/CompactPeerListProcessor.cc
  11239. * src/Peer.cc
  11240. * src/DefaultPeerListProcessor.cc
  11241. * src/PeerListenCommand.cc
  11242. * src/PeerReceiveHandshakeCommand.cc
  11243. Fixed memory leak
  11244. * src/Piece.cc
  11245. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11247. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11248. command-line options.
  11249. * src/option_processing.cc
  11250. * src/ActivePeerConnectionCommand.cc
  11251. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Send have message to peer if it already has the piece.
  11253. * src/BtHaveMessage.{h, cc}
  11254. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11256. port.
  11257. * src/DefaultPeerStorage.{h, cc}
  11258. * test/DefaultPeerStorageTest.cc
  11259. * src/HandshakeExtensionMessage.cc
  11260. * test/HandshakeExtensionMessageTest.cc
  11261. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11262. * src/PeerStorage.h
  11263. * test/MockPeerStorage.h
  11264. * src/PeerListenCommand.cc
  11265. * src/PeerReceiveHandshakeCommand.cc
  11266. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11267. Added --metalink-enable-unique-protocol option.
  11268. * src/Metalink2RequestGroup.cc
  11269. * src/option_processing.cc
  11270. * src/prefs.h
  11271. * src/version_usage.cc
  11272. * doc/aria2c.1.txt
  11273. * doc/aria2c.1
  11274. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Allow a peer in incomingPeer to be added peers.
  11276. * src/DefaultPeerStorage.cc
  11277. * test/DefaultPeerStorageTest.cc
  11278. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11280. I could reproduce this bug in following procedure:
  11281. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11282. 2. Restart aria2.
  11283. 3. You see the download stopped around 99%.
  11284. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11285. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11286. If timeout is reached, then _nextCommand is unused and it may contains
  11287. segments and they won't be canceled. Actually, timeout is not needed
  11288. here because if the server dropped connection, then retry is made.
  11289. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. Added uTorrent compatible Peer Exchange.
  11291. * src/BencodeVisitor.{h, cc}
  11292. * test/BencodeVisitorTest.cc
  11293. * src/BtConstants.h
  11294. * src/BtContext.h: Added 'private' flag.
  11295. * src/BtExtendedMessage.{h, cc}
  11296. * test/BtExtendedMessageTest.cc
  11297. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11298. reserved field.
  11299. * test/BtHandshakeMessageTest.cc
  11300. * src/BtMessageFactory.h
  11301. * src/BtRegistry.h
  11302. * src/BtRuntime.h: This class holds default extension message IDs for
  11303. aria2. By default, aria2 uses ID 8 for ut_pex.
  11304. * src/DefaultBtContext.cc
  11305. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11306. When it is true, aria2 enables ut_pex. This value is set by
  11307. PeerInteractionCommand.
  11308. * src/DefaultBtMessageFactory.{h, cc}
  11309. * test/DefaultBtMessageFactoryTest.cc
  11310. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11311. handling to DefaultBtInteractive class.
  11312. * src/DefaultExtensionMessageFactory.{h, cc}
  11313. * test/DefaultExtensionMessageFactoryTest.cc
  11314. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11315. the container(peers and incomingPeers. The equality is determined by
  11316. Peer::id).
  11317. * test/DefaultPeerStorageTest.cc
  11318. * src/ExtensionMessage.h
  11319. * test/MockExtensionMessage.h
  11320. * src/ExtensionMessageFactory.h
  11321. * test/MockExtensionMessageFactory.h
  11322. * src/HandshakeExtensionMessage.{h, cc}
  11323. * test/HandshakeExtensionMessageTest.cc
  11324. * src/MetaEntry.h
  11325. * src/Peer.{h, cc}
  11326. * src/PeerInteractionCommand.cc
  11327. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11328. addIncomingPeer.
  11329. * src/PeerMessageUtil.{h, cc}
  11330. * src/PeerObject.h
  11331. * src/UTPexExtensionMessage.{h, cc}
  11332. * test/UTPexExtensionMessageTest.cc
  11333. * src/message.h
  11334. * src/prefs.h
  11335. Fixed the bug that returns incomplete data when it contains null
  11336. character. A convenient constructor was also added.
  11337. * src/Data.{h, cc}
  11338. Rewritten.
  11339. * src/CompactPeerListProcessor.cc
  11340. Fixed typos.
  11341. * src/message.h
  11342. * src/MetaFileUtil.cc
  11343. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Added "Status Legend" label to the explanation text of 'stat' in
  11345. download result and moved it to the last. BUG#1848214
  11346. * src/RequestGroupMan.cc
  11347. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11349. * src/Makefie.am
  11350. * test/Makefile.am
  11351. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Fixed the bug that prevents aria2 from loading cookie file when expire
  11353. value is greater than 2^31-1. BUG#1851066
  11354. * src/CookieBoxFactory.cc
  11355. * test/CookieBoxFactoryTest.cc
  11356. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11357. Fixed possible memory leak when an exception is thrown.
  11358. * src/XML2SAXMetalinkProcessor.cc
  11359. Added Expat support. If both libxml2 and Expat are installed, then
  11360. libxml2 is used by default.
  11361. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11362. ExpatMetalinkProcessor according to the configuration.
  11363. * src/ExpatMetalinkProcessor.{h, cc}
  11364. * src/main.cc: Removed libxml2 specific header and init/free function.
  11365. * src/MetalinkProcessorFactory.{h, cc}
  11366. * src/MetalinkHelper.cc
  11367. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11368. * src/MetalinkProcessor.h
  11369. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11370. MetalinkProcessorTest is used instead.
  11371. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11372. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11373. MetalinkProcessorFactory::newInstance().
  11374. * m4/libexpat.m4
  11375. * configure.ac: Added configuration options for libexpat.
  11376. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Disabled -s option in metalink download.
  11378. * src/Metalink2RequestGroup.cc
  11379. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11380. If several protocols are available for a mirror in metalink file,
  11381. aria2 now use one of them. --metalink-preferred-protocol option was
  11382. added to specify the preference of protocol.
  11383. * src/AbstractCommand.cc
  11384. * src/OptionHandlerFactory.cc
  11385. * src/ServerHost.{h, cc}
  11386. * src/Metalink2RequestGroup.cc
  11387. * src/RequestGroup.{h, cc}
  11388. * test/RequestGroupTest.cc
  11389. * src/option_processing.cc
  11390. * src/prefs.h
  11391. * src/HttpResponseCommand.cc
  11392. * src/MetalinkResource.{h, cc}
  11393. * src/FtpNegotiationCommand.cc
  11394. * src/MetalinkEntry.{h, cc}
  11395. * src/MetalinkEntryTest.cc
  11396. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. Code cleanup and added debug log.
  11398. * src/PeerConnection.cc
  11399. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. Compiler error fix: applied the patch by Tiziano Mueller
  11401. * src/RequestGroup.cc
  11402. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11404. in stopped and completed event.
  11405. * src/AnnounceList.{h, cc}
  11406. * test/AnnounceListTest.cc
  11407. * src/DefaultBtAnnounce.cc
  11408. * test/DefaultBtAnnounceTest.cc
  11409. Sorted URLs.
  11410. * test/Metalink2RequestGroupTest.cc
  11411. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. Removed unnecessary string copy. Updated doc and corrected indentation.
  11413. * src/Base64.cc
  11414. Fixed compilation warnings
  11415. * test/DataTest.cc
  11416. * test/HttpRequestTest.cc
  11417. * test/MetaFileUtilTest.cc
  11418. * test/RequestTest.cc
  11419. * Release 0.12.0
  11420. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Updated translations
  11422. * po/{de,fr,ja,nl,ru}.po
  11423. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11424. translations. Many thanks to translators.
  11425. * po/{ca,es,it,pt_BR,sv}.po
  11426. * po/LINGUAS
  11427. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. Added a notice about URL
  11429. * src/version_usage.cc
  11430. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11431. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11432. aria2 repeatedly sends stopped request when tracker returns error code.
  11433. * src/AnnounceList.cc
  11434. * test/AnnounceListTest.cc
  11435. * src/AnnounceTier.h
  11436. Added a message when ctrl-c is hit.
  11437. Now second ctrl-c is also handled in signal handler.
  11438. * src/RequestGroupMan.{h, cc}
  11439. * src/RequestGroup.{h, cc}
  11440. * src/MultiUrlRequestInfo.cc
  11441. * src/DownloadEngine.cc
  11442. * src/TrackerWatcherCommand.cc
  11443. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. Code cleanup
  11445. * src/Base64.cc (encode)
  11446. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. Changed Direct/IO enable/disable procesure in file allocation routine.
  11448. * src/SingleFileAllocationIterator.cc
  11449. (SingleFileAllocationIterator):
  11450. Disable directIO if offset is not multiple of 512.
  11451. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11452. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11453. Enable created SingleFileAllocationIterator's directIO.
  11454. * src/FileAllocationEntry.cc
  11455. (FileAllocationEntry): Enable directIO here.
  11456. (~FileAllocationEntry): Disable directIO here.
  11457. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11459. * src/Peer.{h, cc}
  11460. * src/DefaultPieceStorage.cc
  11461. * test/DefaultPieceStorageTest.cc
  11462. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Rewritten direct I/O support routine
  11464. * src/SingleFileAllocationIterator.cc
  11465. * src/MultiDiskAdaptor.{h, cc}
  11466. * src/ByteArrayDiskWriter.h
  11467. * src/AbstractSingleDiskAdaptor.h
  11468. * src/AbstractDiskWriter.cc
  11469. * src/DefaultPieceStorage.cc
  11470. * src/DiskWriter.h
  11471. * src/BinaryStream.h
  11472. * src/IteratableChunkChecksumValidator.cc
  11473. * src/IteratableChecksumValidator.cc
  11474. * src/CheckIntegrityEntry.cc
  11475. * src/FileAllocationEntry.cc
  11476. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. Fixed typo
  11478. * src/version_usage.cc
  11479. Updated doc
  11480. * doc/aria2c.1.txt
  11481. * doc/aria2c.1
  11482. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. Fixed compile error without message digest support.
  11484. * src/FileMetalinkParserState.cc
  11485. * src/MetalinkParserController.{h, cc}
  11486. * test/XML2SAXMetalinkProcessorTest.cc
  11487. * test/MetalinkParserControllerTest.cc
  11488. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Enable direct I/O support in checksum checking.
  11490. * src/IteratableChunkChecksumValidator.{h, cc}
  11491. * test/IteratableChunkChecksumValidatorTest.cc
  11492. * src/CheckIntegrityEntry.cc
  11493. * src/PieceHashCheckIntegrityEntry.cc
  11494. * src/IteratableChecksumValidator.{h, cc}
  11495. * src/BtCheckIntegrityEntry.cc: Added doc.
  11496. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Added --allow-piece-length-change option.
  11498. * src/DefaultBtProgressInfoFile.cc
  11499. * test/DefaultBtProgressInfoFileTest.cc
  11500. * src/OptionHandlerFactory.cc
  11501. * src/option_processing.cc
  11502. * src/prefs.h
  11503. * src/version_usage.cc
  11504. * doc/aria2c.1.txt
  11505. * doc/aria2c.1
  11506. Fixed: duplicated result entry appears when exception is thrown in
  11507. RequestGroup::createInitiateConnectionCommand().
  11508. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11509. Add RequestGroup to _requestGroup after RequetGroup::
  11510. createInitiateConnectionCommand() succeeds.
  11511. Externalized message
  11512. * src/XML2SAXMetalinkProcessor.cc
  11513. * src/message.h
  11514. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. Forced download abort when received negative response from http/ftp
  11516. server.
  11517. * src/HttpResponseCommand.cc
  11518. * src/FtpNegotiationCommand.cc
  11519. * src/HttpResponse.cc
  11520. * src/FtpConnection.cc
  11521. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11523. the predecessor, Xml2MetalinkParser class.
  11524. I tested them against 94KB metalink file with 1234 chunk checksums.
  11525. The new one parsed it in 22msec, while it took 6000msec with old one.
  11526. * src/XML2SAXMetalinkProcessor.{h, cc}
  11527. * test/XML2SAXMetalinkProcessorTest.cc
  11528. * src/MetalinkParserController.{h, cc}
  11529. * test/MetalinkParserControllerTest.cc
  11530. * src/MetalinkParserState.h: Also added 16 subclasses.
  11531. * src/main.cc
  11532. * src/Metalink2RequestGroup.cc
  11533. * src/MetalinkHelper.cc
  11534. * src/MetalinkEntry.cc
  11535. * src/ChunkChecksum.h
  11536. Rewritten Base64 class for better performance.
  11537. * src/Base64.{h, cc}
  11538. * test/Base64Test.cc
  11539. * src/HttpRequest.cc
  11540. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. Fixed the bug#1841757: aria2 will connect to server to only get
  11542. file size.
  11543. * src/StreamFileAllocationEntry.cc
  11544. * src/option_processing.cc
  11545. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11546. downloads.
  11547. * src/FtpNegotiationCommand.cc
  11548. Suppressed wrong message when finding PreDownloadHandler
  11549. * src/RequestGroup.cc
  11550. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Updated usage
  11552. * src/version_usage.cc
  11553. Updated man page
  11554. * doc/aria2c.1.txt
  11555. * doc/aria2c.1
  11556. Updated po files
  11557. * po/aria2c.pot
  11558. * po/*.po
  11559. * po/*.gmo
  11560. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. Eliminated g++-4.2 warning
  11562. * src/DownloadHandlerConstants.{h, cc}
  11563. * src/Util.cc
  11564. * test/MetaFileUtilTest.cc
  11565. * test/PStringBuildVisitorTest.cc
  11566. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11567. * src/RequestGroup.cc
  11568. * src/BtCheckIntegrityEntry.cc
  11569. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11570. Fixed a2io.h
  11571. * src/a2io.h
  11572. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11573. Added direct I/O support. The current implementation uses O_DIRECT,
  11574. which is not posix standard and is tested on linux 2.6.21.
  11575. Currently only file allocation uses direct I/O.
  11576. * src/SingleFileAllocationIterator.{h, cc}
  11577. * test/SingleFileAllocationIteratorTest.cc
  11578. * src/MultiFileAllocationIterator.{h, cc}
  11579. * test/MultiFileAllocationIteratorTest.cc
  11580. * src/BinaryStream.h
  11581. * src/DiskWriter.h
  11582. * src/AbstractDiskWriter.{h, cc}
  11583. * src/ByteArrayDiskWriter.h
  11584. * src/DiskAdaptor.h
  11585. * src/AbstractSingleDiskAdaptor.{h, cc}
  11586. * src/MultiDiskAdaptor.{h, cc}
  11587. * src/FileAllocationEntry.cc
  11588. * src/Util.{h, cc}
  11589. * src/OptionHandlerFactory.cc
  11590. * src/prefs.h
  11591. * src/version_usage.cc
  11592. * src/option_processing.cc
  11593. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11594. handleException.
  11595. * src/MultiFileAllocationIterator.cc
  11596. Added EINTR handling
  11597. * src/SocketCore.cc
  11598. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Updated usage
  11600. * src/version_usage.cc
  11601. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. Applied Ross's patch for MinGW port.
  11603. * src/DownloadEngine.h
  11604. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11605. Set Content-Type to SingleFileDownloadContext when http response is
  11606. received.
  11607. * src/HttpResponseCommand.cc
  11608. * src/HttpResponse.{h, cc}
  11609. * test/HttpResponseTest.cc
  11610. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Rewritten to add content-type support.
  11612. * src/DownloadHandler.{h, cc}
  11613. * src/BtPostDownloadHandler.{h, cc}
  11614. * test/BtPostDownloadHandlerTest.cc
  11615. * src/MetalinkPostDownloadHandler.{h, cc}
  11616. * test/MetalinkPostDownloadHandlerTest.cc
  11617. * src/PostDownloadHandler.{h, cc}
  11618. * src/DownloadHandlerConstants.{h, cc}
  11619. * src/RequestGroup.cc
  11620. * src/HttpResponseCommand.cc
  11621. * src/FtpNegotiationCommand.cc
  11622. * src/SingleFileDownloadContext.{h, cc}
  11623. * src/RequestGroup.h
  11624. * src/RequestGroupCriteria.h
  11625. * src/ContentTypeRequestGroupCriteria.h
  11626. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11627. If it is give, metalink/torrent file is not written to the disk, but
  11628. just is kept in memory. Parsing is occurred on memory.
  11629. * src/MetalinkHelper.{h, cc}
  11630. * src/MetalinkProcessor.h
  11631. * src/Xml2MetalinkProcessor.{h, cc}
  11632. * test/Xml2MetalinkProcessorTest.cc
  11633. * src/DownloadHandlerFactory.{h, cc}
  11634. * test/DownloadHandlerFactoryTest.cc
  11635. * src/PreDownloadHandler.{h, cc}
  11636. * src/OptionHandlerFactory.cc
  11637. * src/DefaultBtContext.{h, cc}
  11638. * test/DefaultBtContextTest.cc
  11639. * src/version_usage.cc
  11640. * src/Metalink2RequestGroup.{h, cc}
  11641. * src/RequestGroup.{h, cc}
  11642. * src/a2functional.h
  11643. * test/a2functionalTest.cc
  11644. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11645. * src/OptionHandlerImpl.h
  11646. * src/prefs.h
  11647. * src/Util.{h, cc}
  11648. * test/UtilTest.cc
  11649. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11650. memory usage.
  11651. * src/RequestGroupMan.{h, cc}
  11652. * src/DownloadEngine.cc
  11653. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11654. WeakHandle to SharedHandle because WeakHandle could be null.
  11655. * src/RequestGroup.{h, cc}
  11656. * src/DownloadEngineFactory.cc
  11657. * src/DownloadResult.h
  11658. Set totalLength after download finished
  11659. * src/UnknownLengthPieceStorage.{h, cc}
  11660. Keep torrent file specified in metalink in memory.
  11661. * src/Metalink2RequestGroup.cc
  11662. * src/BtDependency.cc
  11663. * src/TrueRequestGroupCriteria.h
  11664. Fixed the bug: seekg is used where seekp should be used.
  11665. * src/ByteArrayDiskWriter.cc
  11666. * test/ByteArraydiskWriterTest.cc
  11667. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. Fixed syntax error
  11669. * test/SequenceTest.cc
  11670. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11671. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11672. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11673. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11674. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11675. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11676. Added the check to see whether ares_host_callback accepts timeouts
  11677. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11678. * src/NameResolver.{h, cc}
  11679. * m4/libcares.m4
  11680. * configure.ac: Set C++ for language choice.
  11681. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Fixed: compilation fails without c-ares/ares
  11683. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11684. Generate http/ftp commands only when download is incomplete.
  11685. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11686. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. Corrected typo. Examples are removed since they are available in man
  11688. page.
  11689. * src/version_usage.cc
  11690. Updated man page.
  11691. * doc/aria2c.1
  11692. * doc/aria2c.1.txt
  11693. * doc/makeman: Commented out sed command.
  11694. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11695. Throw DlAbortEx when a remote file is not found.
  11696. * src/HttpResponse.cc
  11697. * src/FtpNegotiationCommand.cc
  11698. * src/message.h
  11699. Overwrite an existing file if --allow-overwrite=true is given.
  11700. * src/RequestGroup.cc
  11701. Removed unused functions
  11702. * src/AbstractCommand.h
  11703. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. Removed 'extern' from 'extern typedef ...' in src/*.h
  11705. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11706. Updated usage
  11707. * src/version_usage.cc
  11708. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11709. Trim announce URL
  11710. * src/DefaultBtContext.cc
  11711. * test/ShaVisitorTest.cc
  11712. Trim argument s. Give trimed s to exception constructor.
  11713. * src/Util.cc (parseInt)(parseLLInt)
  11714. * test/UtilTest.cc
  11715. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11716. Set precision back to 1.
  11717. * src/ConsoleStatCalc.cc (calculateStat)
  11718. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. Replaced strtol with Util::parseInt
  11720. * src/ChunkedEncoding.cc
  11721. * src/HttpConnection.cc
  11722. * src/CookieBoxFactory.cc
  11723. * src/ParameterizedStringParser.cc
  11724. * src/Util.cc
  11725. * test/UtilTest.cc
  11726. * test/OptionHandlerTest.cc
  11727. * src/Request.cc
  11728. Throw exception when empty string is given. The message for exception
  11729. changed.
  11730. * src/Util.cc (parseInt)(parseLLInt)
  11731. * src/message.h
  11732. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11734. set to 1.
  11735. * src/ConsoleStatCalc.cc (calculateStat)
  11736. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11737. Preallocate non-requested file which is adjacent forward to requested
  11738. file('requested' files means the files given in --select-file option)
  11739. if they share a same piece.
  11740. This fixes long pause in the file system which doesn't support sparse
  11741. files like FAT32 while downloading.
  11742. * src/MultiFileAllocationIterator.{h, cc}
  11743. * test/MultiFileAllocationIteratorTest.cc
  11744. * src/FileEntry.{h, cc}
  11745. Removed unused _option.
  11746. * src/MultiDiskAdaptor.h
  11747. * test/MultiDiskAdaptorTest.cc
  11748. * src/DefaultPieceStorage.cc
  11749. Set the default value of --seed-ratio to 1.0.
  11750. If 0.0 is given, then seeding continues regardless of share ratio.
  11751. * src/version_usage.cc
  11752. * src/option_processing.cc
  11753. * src/BtSetup.cc
  11754. * doc/aria2c.1.txt
  11755. * doc/aria2c.1
  11756. Fixed: Selective download is not working in BitTorrent
  11757. * src/RequestGroup.cc
  11758. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11759. * src/PieceStorage.h
  11760. * test/MockPieceStorage.h
  11761. * src/UnknownLengthPieceStorage.h
  11762. * src/DefaultPieceStorage.{h, cc}
  11763. * src/Metalink2RequestGroup.cc
  11764. * src/RequestGroup.cc
  11765. * src/Sequence.h
  11766. * test/SequenceTest.cc
  11767. * src/IntSequence.h
  11768. * src/message.h
  11769. * src/Util.{h, cc}
  11770. * test/UtilTest.cc
  11771. Added new function 'parse' to catch exception thrown by subclass's
  11772. parseArg
  11773. * src/OptionHandler.h
  11774. * src/OptionParser.cc
  11775. * src/NameMatchOptionHandler.h
  11776. * src/OptionHandlerImpl.h
  11777. * test/OptionHandlerTest.cc
  11778. Added IntegerRangeOptionHandler. Used for --listen-port and
  11779. --select-file. Now --listen-port accepts range of port.
  11780. * src/OptionHandlerFactory.cc
  11781. * src/version_usage.cc
  11782. * src/OptionHandlerImpl.h
  11783. * src/option_processing.cc
  11784. * src/BtSetup.cc
  11785. * src/PeerListenCommand.{h, cc}
  11786. * doc/aria2c.1.txt
  11787. * doc/aria2c.1
  11788. Implemented operator< for Exception class to provide easy way to print
  11789. exception stack trace.
  11790. * src/Exception.{h, cc}
  11791. * src/main.cc
  11792. * src/option_processing.cc
  11793. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. * src/version_usage.cc
  11795. (showVersion): Reworked.
  11796. (showUsage): Added examples.
  11797. Removed Hint for total length and file name.
  11798. * src/Metalink2RequestGroup.cc
  11799. * src/RequestGroup.{h, cc}
  11800. * src/HttpResponseCommand.cc
  11801. * src/FtpNegotiationCommand.cc
  11802. Now --follow-torrent and --follow-metalink option work properly.
  11803. * src/RequestGroup.cc
  11804. Updated man page
  11805. * doc/aria2c.1.txt
  11806. * doc/aria2c.1
  11807. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Removed.
  11809. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11810. Use Segment::operator==()
  11811. * src/HttpConnection.cc
  11812. * src/Segment.h
  11813. Updated usage
  11814. * src/version_usage.cc
  11815. Added EINTR treatment.
  11816. * src/SocketCore.cc
  11817. * src/AbstractDiskWriter.cc
  11818. Rewritten.
  11819. * src/Util.cc (rangedFileCopy)
  11820. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Fixed typo.
  11822. * src/version_usage.cc
  11823. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Implemented. Now -c option works fine.
  11825. * src/DefaultPieceStorage.cc (markPiecesDone)
  11826. * test/DefaultPieceStorageTest.cc
  11827. Removed.
  11828. * src/SegmentMan.{h, cc}
  11829. (markAllPiecesDone)
  11830. (markPieceDone)
  11831. Synchronized po files with
  11832. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11833. * src/fr.po
  11834. * src/ru.po
  11835. * src/de.po
  11836. * src/ja.po
  11837. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Added ifdef and some modifications to compile without BitTorrent,
  11839. Metalink, MessageDigest
  11840. support.
  11841. * src/PieceHashCheckIntegrityEntry.cc
  11842. * src/MetalinkEntry.h
  11843. * src/version_usage.cc
  11844. * src/main.cc
  11845. * src/DownloadEngine.{h, cc}
  11846. * src/Metalink2RequestGroup.cc
  11847. * src/Peer.cc
  11848. * src/RequestGroup.cc
  11849. * src/MetalinkHelper.cc
  11850. * test/DefaultPieceStorageTest.cc
  11851. * test/MetalinkPostDownloadHandlerTest.cc
  11852. * test/Metalink2RequestGroupTest.cc
  11853. Hide TOTAL SPD when all downloads complete.
  11854. * src/ConsoleStatCalc.cc
  11855. Log target system information.
  11856. * src/main.cc
  11857. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. Now --metalink-location accepts a comma-deliminated list of locations.
  11859. * src/MetalinkEntry.{h, cc}
  11860. * test/MetalinkEntryTest.cc
  11861. * src/version_usage.cc
  11862. * src/Metalink2RequestGroup.cc
  11863. * src/Xml2MetalinkProcessor.cc
  11864. * test/Xml2MetalinkProcessorTest.cc
  11865. * doc/aria2c.1.txt
  11866. * doc/aria2c.1
  11867. * src/Util.cc (toUpper)(toLower): Rewritten.
  11868. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Added the ability to detect duplicate download entry which is about to
  11870. download the same file other RequestGroup is downloading.
  11871. * src/RequestGroup.cc
  11872. * src/HttpResponseCommand.cc
  11873. * src/FtpNegotiationCommand.cc
  11874. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Recalculates download progress when loading a control file,
  11876. if the piece length of DownloadContext is different from the one saved
  11877. in the control file. Currently in-flight pieces are ignored.
  11878. * src/DefaultBtProgressInfoFile.cc
  11879. * test/DefaultBtProgressInfoFileTest.cc
  11880. * src/Util.{h, cc}
  11881. * test/UtilTest.cc
  11882. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. Do not rotate tiers in announce-list.
  11884. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11885. AnnounceList::allTiersFailed() used instead to detect whether all
  11886. tiers are tried and failed.
  11887. * test/DefaultBtAnnounceTest.cc
  11888. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11889. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11890. * test/AnnounceListTest.cc
  11891. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11892. clause. Catch RecoverableException instead of DlRetryEx instead.
  11893. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11894. Implemented checksum validation feature(1 checksum for each file)
  11895. The validation takes place after the download.
  11896. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11897. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11898. * src/CheckIntegrityCommand.cc: Changed log message.
  11899. * src/Metalink2RequestGroup.cc: Set checksum to
  11900. SingleFileDownloadContext.
  11901. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11902. PieceHashCheckIntegrity class.
  11903. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11904. PieceHashCheckIntegrity class.
  11905. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11906. * src/IteratableValidator.h: New class.
  11907. * src/message.h
  11908. * src/CheckIntegrityEntry.{h, cc}
  11909. * src/IteratableChunkChecksumValidator.{h, cc}
  11910. * src/SingleFileDownloadContext.h
  11911. * src/DownloadCommand.cc
  11912. --allow-overwrite=true is no longer needed to check file integrity
  11913. before download in BitTorrent download.
  11914. * src/RequestGroup.cc (getInitialCommand)
  11915. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11916. throws exception.
  11917. * src/RequestGroupMan.cc (getInitialCommands)
  11918. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11919. urlencode the given url inside Request::parseUrl(...)
  11920. * src/Request.{h, cc}
  11921. * src/Util.{h, cc}
  11922. * test/RequestTest.cc
  11923. Removed #!metalink3! notation support because it is deleted from
  11924. the metalink specification.
  11925. * src/Request.{h, cc}
  11926. * test/RequestTest.cc
  11927. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11928. Don't connect server before checking file integrity at startup, if
  11929. filesize and output file path are known.
  11930. * src/AbstractCommand.cc
  11931. * src/StreamFileAllocationEntry.cc
  11932. * src/Metalink2RequestGroup.cc
  11933. * src/RequestGroup.{h, cc}
  11934. * src/HttpResponseCommand.cc
  11935. * src/FtpNegotiationCommand.cc
  11936. Added DownloadFailureException. If it is thrown, RequestGroup should
  11937. halt.
  11938. * src/AbstractCommand.cc
  11939. * src/DownloadFailureException.h
  11940. * src/RequestGroup.cc
  11941. Catch RecoverableException, instead of DlAbortEx.
  11942. * src/RequestGroupMan.cc
  11943. * src/FillRequestGroupCommand.cc
  11944. * src/MetaFileUtil.cc
  11945. * src/IteratableChunkChecksumValidator.cc
  11946. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11947. getGID())
  11948. * src/CheckIntegrityCommand.cc
  11949. * src/message.h
  11950. Print gid instead of idx.
  11951. * src/RequestGroupMan.cc
  11952. Removed exception throwers declaration.
  11953. * src/DirectDiskAdaptor.{h, cc}
  11954. * src/SocketCore.{h, cc}
  11955. * src/MultiDiskAdaptor.{h, cc}
  11956. * src/HttpConnection.{h, cc}
  11957. * src/HttpResponse.{h, cc}
  11958. * src/DiskAdaptor.{h, cc}
  11959. * src/CopyDiskAdaptor.{h, cc}
  11960. * src/MultiDiskAdaptor.{h, cc}
  11961. * src/HttpHeaderProcessor.{h, cc}
  11962. * src/AbstractSingleDiskAdaptor.{h, cc}
  11963. * src/Util.{h, cc}
  11964. * test/UtilTest.cc
  11965. * src/DefaultDiskWriter.{h, cc}
  11966. * src/FtpConnection.{h, cc}
  11967. * src/AbstractDiskWriter.{h, cc}
  11968. Removed duplicate code.
  11969. * src/StreamCheckIntegrityEntry.cc
  11970. Removed unnecessary include.
  11971. * src/DiskWriter.h
  11972. Included Exception.h
  11973. * src/option_processing.cc
  11974. Included 2 files and added doc
  11975. * src/TrackerWatcherCommand.cc
  11976. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11977. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11978. Changed CheckIntegrityEntry interface so that it can define
  11979. the action when all the chunk checksums are valid.
  11980. * src/CheckIntegrityEntry.h
  11981. * src/StreamCheckIntegrityEntry.{h, cc}
  11982. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11983. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11984. to exit rather than doing seeding. So, it would be good to toggle this
  11985. behavior.
  11986. * src/CheckIntegrityCommand.cc
  11987. * src/AbstractCommand.cc
  11988. * src/RequestGroup.cc
  11989. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11990. Reflect the download length of in-flight pieces.
  11991. It makes the download length readout more precise.
  11992. * src/DefaultPieceStorage.{h, cc}
  11993. * test/DefaultPieceStorageTest.cc
  11994. * src/a2functional.h
  11995. * test/a2functionalTest.cc
  11996. Lower CPU load when --max-download-limit is used.
  11997. There is up and down in speed indicator when enabling
  11998. http-pipelining but a download goes well. I think the problem is that
  11999. because http-pipelining is enabled, DownloadCommand is created for
  12000. each segment and in its constructor, PeerStat::downloadStart() is
  12001. called. In PeerStat::downloadStart(), speed calculation object is
  12002. reseted, which makes download speed zero.
  12003. * src/DownloadCommand.cc
  12004. Rewritten using accumulate.
  12005. * src/RequestGroupMan.cc (calculateStat)
  12006. Code clearnup.
  12007. * src/FtpNegotiationCommand.cc
  12008. * src/HttpResponseCommand.cc
  12009. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12010. Fixed: Can not resume: aria2 reports download already finished.
  12011. * src/AbstractCommand.{h, cc}
  12012. * src/HttpResponseCommand.cc
  12013. * src/FtpNegotiateCommand.cc
  12014. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. Now a file is stored in the directory specified in .metalnk file
  12016. (file[@name]).
  12017. * src/Metalink2RequestGroup.cc
  12018. Create the directory structure when opening the file if it doesn't
  12019. exist.
  12020. * src/AbstractDiskWriter.cc
  12021. * src/Util.{h, cc}
  12022. * src/File.h
  12023. * test/UtilTest.cc
  12024. Removed file name comparison
  12025. * src/Metalink2RequestGroup.cc
  12026. * src/HttpResponseCommand.cc
  12027. Rewritten using Util::mkdirs()
  12028. * src/FileEntry.cc (setupDir)
  12029. * test/FileEntryTest.cc
  12030. Updated doc
  12031. * src/SingleFileDownloadContext.h
  12032. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12033. Now SleepCommand dispatches nextCommand when halt is requested.
  12034. It avoids a possible long wait after hitting CTRL-C.
  12035. * src/SleepCommand.{h, cc}
  12036. * src/RequestGroupAware.{h, cc}
  12037. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12039. to open listen port, then remove the port number from the tracker
  12040. request.
  12041. * src/DefaultBtAnnounce.cc
  12042. * test/DefaultBtAnnounceTest.cc
  12043. * test/MockPieceStorage.h
  12044. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12045. them more testable.
  12046. * src/DefaultBtAnnounce.{h, cc}
  12047. * src/DefaultBtContext.{h, cc}
  12048. * src/Util.{h, cc}
  12049. * test/DefaultBtAnnounceTest.cc
  12050. * test/DefaultBtContextTest.cc
  12051. * test/UtilTest.cc
  12052. Added 'B' to upload bytes readout.
  12053. * src/ConsoleStatCalc.cc
  12054. Now the listen port for BitTorrent download is opened when it is
  12055. needed.
  12056. * src/DownloadEngineFactory.cc
  12057. * src/BtSetup.{h, cc}
  12058. * src/PeerListenCommand.{h, cc}
  12059. Now an exception thrown while parsing tracker response is now logged.
  12060. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12061. called, which means no retry is made in this case, assuming a tracker
  12062. has a problem.
  12063. * src/TrackerWatcherCommand.cc
  12064. Fixed: downloading a file whose length is unkown fails.
  12065. * src/DownloadCommand.cc
  12066. Simplified prepareForNextSegment()
  12067. * src/DownloadCommand.cc
  12068. Updated
  12069. * po/POTFILES.in
  12070. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Re-implemented a file listing for Metalink, which was dropped while
  12072. http/ftp/torrent integration was being implemented.
  12073. * src/MetalinkHelper.{h, cc}: New class.
  12074. * test/MetalinkHelperTest.cc
  12075. * src/main.cc
  12076. * src/Metalink2RequestGroup.cc
  12077. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12078. Added the ability to display the detailed torrent file information.
  12079. Now -S option gives not only a file listing, but also total download
  12080. length, info hash, announce URI, piece length, the number of pieces,
  12081. and mode(single or multi-torrent).
  12082. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12083. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12084. KiB)
  12085. * test/UtilTest.cc
  12086. * src/main.cc
  12087. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. Added ftp://USER:PASSWD@Servername automatic parsing.
  12089. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12090. _password. Recognize username and password in URI.
  12091. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12092. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12093. * src/RequestFactory.{h, cc}: Removed.
  12094. * src/AuthConfigFactory.{h, cc}: New class.
  12095. * src/FtpConnection.cc: Use AuthConfigFactory.
  12096. * src/HttpRequest.cc: Use AuthConfigFactory.
  12097. * test/HttpRequestTest.cc: Updated.
  12098. * test/RequestTest.cc: Updated.
  12099. * test/AuthConfigFactoryTest.cc: New class.
  12100. * test/RequestFactoryTest.cc: Removed.
  12101. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12102. Use RequestGroup::allDownloadFinished() to decide whether the control
  12103. file should be removed or saved.
  12104. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12105. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12106. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12107. Use File::renameTo()
  12108. * src/DefaultBtProgressInfoFile.cc
  12109. Added --no-file-allocation-limit command-line option.
  12110. * src/version_usage.cc
  12111. * src/option_processing.cc
  12112. * src/OptionHandlerFactory.cc
  12113. * src/RequestGroup.{h, cc}
  12114. * src/BtCheckIntegrityEntry.cc
  12115. * src/StreamCheckIntegrityEntry.cc
  12116. * src/prefs.h
  12117. * doc/aria2c.1.txt
  12118. * doc/aria2c.1
  12119. Now prealloc is the default value for --file-allocation option.
  12120. * src/version_usage.cc
  12121. * src/option_processing.cc
  12122. * doc/aria2c.1.txt
  12123. * doc/aria2c.1
  12124. Don't URL-encode user-agent.
  12125. * src/HttpRequest.cc
  12126. Updated translations
  12127. * po/LINGUAS: Added nl for Dutch translation.
  12128. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12129. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12130. * po/POTFILES.in: Updated.
  12131. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Added the ability to recognize url-list in a torrent file.
  12133. The retrieved URLs are attached to the corresponding FileEntry.
  12134. * src/DefaultBtContext.{h, cc}
  12135. * src/FileEntry.{h, cc}
  12136. * test/DefaultBtContextTest.cc
  12137. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12139. after the download finishes.
  12140. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12142. the data smaller than block length.
  12143. A block length can be specified by constructor's argument.
  12144. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12145. Get a missing piece in the range of given FileEntry. This function is
  12146. not used in the program yet.
  12147. * src/Util.h: Added some macros.
  12148. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. Added HTTP/1.1 keep alive and pipelining support.
  12150. See --enable-http-keep-alive and --enable-http-pipelining option.
  12151. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12152. Segment.
  12153. * src/HttpDownloadCommand.{h, cc}
  12154. * src/OptionHandlerFactory.cc
  12155. * src/HttpConnection.{h, cc}
  12156. * src/version_usage.cc
  12157. * src/HttpInitiateConnectionCommand.cc
  12158. * src/FtpInitiateConnectionCommand.cc
  12159. * src/Segment.h
  12160. * src/HttpRequestCommand.{h, cc}
  12161. * src/option_processing.cc
  12162. * src/prefs.h
  12163. * src/HttpResponseCommand.cc
  12164. * src/SegmentMan.{h, cc}
  12165. * src/FtpNegotiateCommand.cc
  12166. * src/HttpProxyResponseCommand.cc
  12167. * src/Request.cc
  12168. * src/HttpRequest.cc
  12169. * src/DownloadCommand.cc
  12170. * test/HttpRequestTest.cc
  12171. * test/RequestTest.cc
  12172. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12174. finished.
  12175. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12176. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12177. catching it inside the method.
  12178. When no file entry is found in a metalink without querying user
  12179. preferences, throw the exception with the error message that suggests
  12180. metalink file is probably broken.
  12181. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12182. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12183. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12184. processed.
  12185. * src/RequestGroupMan.cc (removeStoppedGroup)
  12186. Added debug message.
  12187. * src/BtPostDownloadHandler.cc
  12188. * src/MetalinkPostDownloadHandler.cc
  12189. * src/PostDownloadHandler.{h, cc}
  12190. * src/RequestGroup.cc
  12191. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12192. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12193. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12194. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12195. stops and there are any unfinished or in-progress downloads.
  12196. Added the legend of "stat".
  12197. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. Throw exception when chunck checksum verification fails.
  12199. * src/DownloadCommand.cc (validatePieceHash): New function.
  12200. * src/PiecedSegment.{h, cc} (clear): New function.
  12201. * src/GrowSegment.{h, cc} (clear): New function.
  12202. * src/Segment.h (clear): New function.
  12203. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12204. * test/SegmentTest.cc
  12205. * test/GrowSegmentTest.cc
  12206. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Do not send referer when redirected.
  12208. * src/Request.cc (redirectUrl)
  12209. * test/RequestTest.cc
  12210. * test/HttpRequestTest.cc
  12211. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12212. Implemented BitTorrent/http/ftp integrated download.
  12213. I've rewritten lots of files and now some headers have forward
  12214. class declarations to reduce compile time.
  12215. The implementation is extremely alpha stage, I recommend to use this
  12216. for testing purpose only.
  12217. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Fixed the compilation error on 64bit platform.
  12219. * test/HttpHeaderProcessorTest.cc
  12220. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12221. Merged Ross's patch that fixes compilation problem in MinGW
  12222. * test/DefaultBtProgressInfoFileTest.cc
  12223. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12224. Updated fr.po by sebone
  12225. * po/fr.po
  12226. Updated man page.
  12227. * doc/aria2c.1.txt
  12228. * Release 0.11.3
  12229. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12231. failure in Metalink.
  12232. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12233. Automatically save *.aria2 control file of http/ftp download in every
  12234. 60 seconds.
  12235. * src/AutoSaveCommand.{h, cc}: New class.
  12236. * src/TimeBasedCommand.{h, cc}: New class.
  12237. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12238. Disable parameterized URI support by default. Added -P option to
  12239. enable the feature.
  12240. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12241. * src/OptionHandlerFactory.cc
  12242. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12243. Updated Japanese translation.
  12244. * po/ja.po
  12245. Updated man page.
  12246. * doc/aria2c.1.txt
  12247. * Release 0.11.3-rc
  12248. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12249. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12250. it is successful, then renamed to *.aria2.
  12251. This prevents *.aria2 file from being truncated or corrupted when
  12252. file system becomes out of space.
  12253. * src/DefaultBtProgressInfoFile.cc (save)
  12254. * src/SegmentMan.cc (save)
  12255. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12256. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12257. Reduced the fragmentation of bitfield in http/ftp download.
  12258. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12259. * test/BitfieldManTest.cc
  12260. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12261. Added the ability to disable segmented download in .metalink.
  12262. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12263. 'url' tag.
  12264. * src/MetalinkEntry.{h, cc}
  12265. * src/RequestResource.{h, cc}
  12266. * src/MetalinkRequestInfo.cc
  12267. * src/Xml2MetalinkProcessor.cc
  12268. * test/Xml2MetalinkProcessorTest.cc
  12269. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12270. Added parameterized URI support.
  12271. * src/main.cc: -Z option added.
  12272. * src/OptionHandlerFactory.cc
  12273. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12274. * src/PStringDatum.h: New class.
  12275. * src/PStringSegment.{h,cc}: New class.
  12276. * src/PStringNumLoop.h: New class.
  12277. * src/PStringSelect.h: New class.
  12278. * src/NumberDecorator.h: New class.
  12279. * src/FixedWidthNumberDecorator.h: New class.
  12280. * src/AlphaNumberDecorator.h: New class.
  12281. * src/PStringVisitor.h: New class.
  12282. * src/PStringBuildVisitor.{h,cc}: New class.
  12283. * src/ParameterizedStringParser.{h,cc}: New class.
  12284. * src/Util.{h,cc}
  12285. (isNumber): New function.
  12286. (isLowercase): New function.
  12287. (isUppercase): New function.
  12288. (alphaToNum): New function.
  12289. * test/ParameterizedStringParserTest.cc: New class.
  12290. * test/AlphaNumberDecoratorTest.cc: New class.
  12291. * test/PStringBuildVisitorTest.cc: New class.
  12292. * test/UtilTest.cc
  12293. (testIsNumber): New function.
  12294. (testIsLowercase): New function.
  12295. (testIsUppercase): New function.
  12296. (testAlphaToNum): New function.
  12297. Added '\n' after the error message
  12298. * src/RequestInfo.h (printDownloadAbortMessage)
  12299. Added auto file renaming feature in http(s)/ftp download.
  12300. * src/main.cc: Added --auto-file-renaming command-line option.
  12301. * src/OptionHandlerFactory.cc
  12302. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12303. * src/RequestGroup.{h, cc}
  12304. (shouldCancelDownloadForSafety): Rewritten
  12305. (tryAutoFileRenaming): New function.
  12306. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12307. * src/HttpResponseCommand.cc
  12308. (executeInternal): Removed the call to RequestGroupMan::
  12309. isSameFileBeingDownloaded()
  12310. * src/FtpNegotiateCommand.cc
  12311. (recvSize): Removed the call to RequestGroupMan::
  12312. isSameFileBeingDownloaded()
  12313. * test/RequestGroupTest.cc: New class.
  12314. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12316. IO.
  12317. * src/DefaultBtProgressInfoFile.cc
  12318. * src/MetaFileUtil.cc
  12319. * src/SimpleLogger.cc
  12320. * src/SegmentMan.cc
  12321. * src/Util.cc
  12322. * src/Platform.cc
  12323. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12324. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12325. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12326. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12327. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12328. Fixed the bug that prevents file allocation is not done when
  12329. dowloading multi-torrent file.
  12330. * src/AbstractDiskWriter.cc (openFile)
  12331. Increase the maximum number of -j option from 15 to 45.
  12332. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12333. Added fr.po, thanks to Charles Landemaine.
  12334. * po/fr.po
  12335. * po/LINGUAS
  12336. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12337. gcc 3.4.4 support:
  12338. * src/DefaultBtContext.cc: int32_t -> int
  12339. * src/main.cc: int -> int32_t, int32_t -> int
  12340. * src/messageDigest.h: uint32_t -> unsigned int
  12341. * src/NameResolver.h: int32_t -> int
  12342. * src/PeerConnection.cc: int -> int32_t
  12343. * src/SpeedCalc.cc: int32_t -> int
  12344. * src/TrackerUpdateCommand.h: int -> int32_t
  12345. * src/Util.cc: int32_t -> int
  12346. * src/Util.h: int32_t -> int
  12347. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12348. * test/AnnounceListTest.cc: int -> int32_t
  12349. * test/ChunkedEncodingTest.cc: int -> int32_t
  12350. * test/DataTest.cc: int -> int32_t
  12351. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12352. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12353. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12354. * test/FeatureConfigTest.cc: int -> int32_t
  12355. * test/MetalinkEntryTest.cc: int -> int32_t
  12356. * test/MockBtRequestFactory.h: int -> int32_t
  12357. * test/MockPieceStorage.h: int -> int32_t
  12358. * test/OptionTest.cc: int -> int32_t
  12359. * test/RequestTest.cc: int -> int32_t
  12360. * test/SegmentManTest.cc: int -> int32_t
  12361. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12362. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12363. Move sleep functions to Util class:
  12364. * src/Util.cc
  12365. (sleep): New function.
  12366. (usleep): New function.
  12367. * src/DownloadCommand.cc: sleep -> Util::sleep
  12368. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12369. MinGW build enhancements. The following files are added:
  12370. * src/timegm.{c,h}
  12371. Changes to support the above new files:
  12372. * configure.ac
  12373. * src/Makefile.am
  12374. * src/a2time.h
  12375. * src/Util.cc:
  12376. * src/strptime.c: Added support for %Z option.
  12377. Fixed MinGW non-blocking bug.
  12378. * src/SocketCore.cc
  12379. * src/HttpRequestCommand.cc
  12380. Miscellenous build fixes/enhancements.
  12381. * configure.ac: Added summary report.
  12382. * src/Platform.h: Tweaked #include's.
  12383. * src/a2netcompat.h: Tweaked #include's.
  12384. * src/strptime.h: Tweaked #include's.
  12385. * src/gai_strerror.c: Tweaked #include's.
  12386. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12387. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12388. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12389. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12390. Increased the initial connection size in BitTorrent download to 40.
  12391. * src/BtRuntime.h
  12392. Added the usage message of --peer-id-prefix option.
  12393. * src/main.cc
  12394. * Release 0.11.2
  12395. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. MessageDigestHelper is introduced in order to simplify the use
  12397. of message digest. Removed repeated code.
  12398. The message digest algorithm is now specified by string, like "sha1",
  12399. "md5".
  12400. * src/messageDigest.{h, cc}
  12401. * src/MessageDigestHelper.{h, cc}: New class.
  12402. * src/DefaultPieceStorage.cc
  12403. * src/DefaultBtContext.{h, cc}
  12404. (computeFastSet): New function.
  12405. (setInfoHash): Added for unit testing.
  12406. (setNumPieces): Added for unit testing.
  12407. * src/DefaultBtInteractive.cc
  12408. * src/BtPieceMessage.cc
  12409. * src/Peer.cc
  12410. * src/Checksum.h
  12411. * src/message.h
  12412. * src/IteratableChecksumValidator.h
  12413. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12414. inside it.
  12415. * src/SegmentMan.{h, cc}
  12416. (checkIntegrity): Removed.
  12417. * src/IteratableChunkChecksumValidator.{h, cc}
  12418. * src/Util.h
  12419. (sha1Sum): Removed.
  12420. (simpleMessageDigest): Removed.
  12421. (fileChecksum): Removed.
  12422. (computeFastSet): Removed.
  12423. * src/ShaVisitor.cc
  12424. * src/ChunkChecksum.h
  12425. * src/DownloadCommand.cc
  12426. Removed messageDigest virtual functions.
  12427. * src/MultiDiskAdaptor.{h, cc}
  12428. * src/DiskAdaptor.h
  12429. * src/ByteArrayDiskWriter.h
  12430. * src/DiskWriter.h
  12431. * src/DiskAdaptorWriter.h
  12432. * src/AbstractSingleDiskAdaptor.{h, cc}
  12433. * src/AbstractDiskWriter.{h, cc}
  12434. Fixed comilation error when message digest is disabled.
  12435. * src/MetalinkEntry.{h, cc}
  12436. * src/MetalinkRequestInfo.cc
  12437. Removed srandom and random.
  12438. * src/SimpleRandomizer.h
  12439. Added size() virtual function to DiskAdaptor
  12440. * src/MultiDiskAdaptor.h
  12441. Fixed the bug that causes that files are not opened correctly in
  12442. multi-file torrent.
  12443. * src/TorrentRequestInfo.cc
  12444. * src/MultiDiskAdaptor.cc
  12445. Added SHA256 support
  12446. * src/messageDigest.cc
  12447. * src/Xml2MetalinkProcessor.cc
  12448. Show supported message digest algorithms
  12449. * src/main.cc
  12450. Updated contact info.
  12451. * src/main.cc
  12452. Applied Ross's patch
  12453. * src/a2netcompat.h
  12454. * src/main.cc
  12455. Fixed the bug that prevents a remote metalink from not being processed
  12456. even if '-o foo.metalink' is specified.
  12457. * src/MetalinkRequestInfo.cc
  12458. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. Merged Dan's patch:
  12460. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12461. Use va_copy to avoid core dump on amd64:
  12462. * src/SimpleLogger.cc
  12463. Updated contact info.
  12464. * src/main.cc
  12465. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12466. digest is not available.
  12467. * src/MetalinkEntry.h
  12468. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12469. Make a2netcompat.h include a2io.h to fix compilation error:
  12470. * src/a2netcompat.h
  12471. * src/SocketCore.cc: Removed include of a2io.h
  12472. * src/Util.cc: Removed include of a2io.h
  12473. Gather time related functions to a2time.h:
  12474. * src/a2time.h: New file.
  12475. * src/DefaultPeerStorage.cc
  12476. * src/SimpleLogger.cc
  12477. * src/Util.{h, cc}
  12478. * src/SimpleRandomizer.h
  12479. * src/TimeA2.{h,cc}
  12480. * src/DownloadCommand.cc
  12481. * src/main.cc
  12482. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12483. a2netcompat.h:
  12484. * src/NameResolver.cc
  12485. Fixed compilation error without openssl:
  12486. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12487. Added default block to suppress compiler warnings:
  12488. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12489. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12490. MinGW build enhancements. The following files are added:
  12491. * src/gai_strerror.{c,h}
  12492. * src/gettimeofday.{c,h}
  12493. Changes to support the above new files:
  12494. * configure.ac
  12495. * src/Makefile.am
  12496. * src/a2netcompat.h
  12497. * src/TimeA2.cc
  12498. * src/DefaultPeerStorage.cc
  12499. * src/NameResolver.cc: removed mingw_strerror() function.
  12500. * src/SocketCore.cc: removed mingw_strerror() function.
  12501. Miscellaneous MinGW build fixes.
  12502. * src/a2io.h: Use _lseeki64() instead of lseek()
  12503. * src/common.h
  12504. * src/DefaultFileAllocator.cc
  12505. * src/GlowFileAllocator.cc
  12506. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12507. * src/NameResolver.cc
  12508. (callback): Changed int32_t to int.
  12509. (resolve): Changed int32_t to int.
  12510. * src/Platform.cc
  12511. * src/Platform.h
  12512. * test/MultiDiskWriterTest.cc
  12513. * test/PeerMessageUtilTest.cc
  12514. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12515. Other enhancements and fixes.
  12516. * src/HttpRequestCommand.cc
  12517. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12518. * src/SocketCore.cc:
  12519. (error): New function to abstract errno/WSAGetLastError().
  12520. (errorMsg): New function to abstract errno/WSAGetLastError().
  12521. (initiateSecureConnection): Added more detailed error reporting.
  12522. * src/SocketCore.h: Added private variable blocking, to allow
  12523. proper handling of OpenSSL psuedo-errors.
  12524. * src/message.h
  12525. (EX_SSL_INIT_FAILURE)
  12526. (EX_SSL_IO_ERROR)
  12527. (EX_SSL_PROTOCOL_ERROR)
  12528. (EX_SSL_UNKNOWN_ERROR)
  12529. (EX_SSL_CONNECT_ERROR)
  12530. (EX_SOCKET_BLOCKING)
  12531. (EX_SOCKET_NONBLOCKING)
  12532. (EX_SOCKET_UNKNOWN_ERROR)
  12533. * src/Util.cc
  12534. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12535. reserved name.
  12536. (httpGMT): Fixed typo.
  12537. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. Merged Ross's win32 patch(manually)
  12539. In the course of merging, following files are added.
  12540. * src/strptime.{h,c}
  12541. * src/libgen.{h,c}
  12542. * src/inet_aton.{h,c}
  12543. * src/Platform.{h,cc}
  12544. * src/localtime_r.{h,c}
  12545. * src/getaddrinfo.{h,c}
  12546. I've gethered network related things, and put them to following file:
  12547. * src/a2netcompat.h
  12548. Also io related things are put to following file:
  12549. * src/a2io.h
  12550. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12551. * src/message.h
  12552. (MSG_ALLOCATION_COMPLETED)
  12553. (EX_TOO_LARGE_FILE)
  12554. (EX_SIZE_MISMATCH)
  12555. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12556. (EX_INVALID_CHUNK_CHECKSUM)
  12557. (EX_INVALID_RANGE_HEADER)
  12558. * src/FileAllocationCommand.cc
  12559. * src/HttpResponse.cc
  12560. * src/RequestGroup.cc
  12561. * src/MultiDiskAdaptor.cc
  12562. * src/OptionHandlerImpl.h
  12563. * src/HttpResponseCommand.cc
  12564. * src/FtpNegotiateCommand.cc
  12565. * src/IteratableChecksumValidator.cc
  12566. * src/SegmentMan.cc
  12567. * src/ChunkChecksumValidator.cc
  12568. Added Randomizer::getRandomNumber(long int)
  12569. * src/Randomizer.h (getRandomNumber)
  12570. * src/SimpleRandomizer.h (getRandomNumber)
  12571. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12572. * src/Util.cc (randomAlpha): Use this new function.
  12573. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12574. Converted int's to in32_t. long long int's are also converted to
  12575. int64_t
  12576. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. Fixed the bug that prevents cookies from being sent to the server
  12578. if the domain of cookie is FQDN and starts with ".".
  12579. * src/Cookie.cc (match)
  12580. To add the ability to change peer id.
  12581. * src/DefaultBtContext.h
  12582. (_peerIdPrefix): New variable
  12583. (setPeerIdPrefix): New function.
  12584. * src/torrentRequestInfo.cc
  12585. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12586. DefaultBtContext.
  12587. * src/main.cc (main): Added peer-id-prefix command-line option.
  12588. The usage message is not added yet.
  12589. * src/DefaultBtContext.cc
  12590. (generatePeerId): Use _peerIdPrefix.
  12591. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12592. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Fixed the bug that prevents filename in content-disposition from
  12594. being retrieved when filename is not quoted.
  12595. * src/Util.cc (getContentDispositionFilename)
  12596. Fixed the bug that causes infinate loop and memory leak when file open
  12597. operation failed.
  12598. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12599. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12600. Fixed the bug that causes segfault when all URIs specified are
  12601. unsupported.
  12602. * src/RequestGroupMan.cc (getInitialCommands)
  12603. Check if RequestGroup::createNextCommand() returns empty list of
  12604. commands.
  12605. * src/RequestGroup.cc (createNextCommand)
  12606. Change log level from info to error so that users can notice that
  12607. an error occurred.
  12608. Fixed the bug that causes segfault when a zero-sized file is
  12609. downloaded.
  12610. * src/BitfieldMan.cc (isAllBitSet)
  12611. Return true if bitfieldLength is 0.
  12612. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. * src/main.cc
  12614. (showUsage): Added 3 usage examples for metalink download.
  12615. Replace MetalinkChunkChecksum with ChunkChecksum.
  12616. * src/MetalinkChunkChecksum.h: Removed.
  12617. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12618. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12619. * src/Xml2MetalinkProcessor.cc
  12620. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12621. * src/MetalinkRequestInfo.cc (execute)
  12622. * Release 0.11.1
  12623. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12624. Reads URIs from stdin when "-i -" is specified.
  12625. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12626. * src/UriListParser.h, src/UriListParser.cc: New class.
  12627. * src/StreamUriListParser.h: New class.
  12628. * src/FileUriListParser.h: New class.
  12629. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12630. instead of UriFileListParser.
  12631. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. Made console readout more readable.
  12633. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12634. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12635. Fix the bug that causes -s option not to work.
  12636. * src/main.cc (main)
  12637. * src/a2algo.h: New file.
  12638. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. Create directory structure specified in metalink file.
  12640. * src/RequestGroup.h, src/RequestGroup.cc
  12641. (initAndOpenFile): Create a directory to store files if it does not
  12642. exist.
  12643. (getDir): New function.
  12644. Added ETA and download speed for an individual file to readout.
  12645. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12646. * src/RequestGroup.h
  12647. (calculateDownloadSpeed): New function.
  12648. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12649. Made -S option work with metalink file and provided selective download
  12650. to metalink.
  12651. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12652. (filename): Removed.
  12653. (file): New variable.
  12654. (size): Removed.
  12655. (operator=): Updated.
  12656. (getPath): New function.
  12657. (getLength): New function.
  12658. (toFileEntry): New function.
  12659. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12660. (execute): Use toStream.
  12661. (showFileEntry): Removed.
  12662. * src/MetalinkRequestInfo.h
  12663. (targetFiles): New variable.
  12664. (setTargetFiles): New variable.
  12665. * src/MetalinkRequestInfo.cc
  12666. (execute): Added the ability to print file information included in
  12667. a metalink file.
  12668. Added selective download mode to metalink.
  12669. * src/main.cc
  12670. (showUsage): Updated to denote that -S and --select-file options are
  12671. applicable to metalink.
  12672. * src/FileEntry.h
  12673. (operator=): New function.
  12674. (getBasename): New function.
  12675. (getDirname): New function.
  12676. * src/Util.h, src/Util.cc
  12677. (toStream): New function.
  12678. * src/Xml2MetalinkProcessor.cc: Updated.
  12679. Made aria2 work with metalink with directory structure.
  12680. * src/File.h, src/File.cc
  12681. (getBasename): New function.
  12682. (getDirname): New function.
  12683. * src/RequestGroup.h, src/RequestGroup.cc
  12684. (_topDir): New variable.
  12685. (setTopDir): New function.
  12686. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12687. Rewrote HTTP header parsing with stringstream.
  12688. * src/HttpConnection.h, src/HttpConnection.cc
  12689. (HttpRequestEntry): New class.
  12690. (headerBuf): Removed.
  12691. (headerBufLength): Removed.
  12692. (outstandingHttpRequests): Now its element type is
  12693. HttpRequestEntryHandle.
  12694. (findEndOfHeader): Removed.
  12695. (receiveResponse): Rewritten.
  12696. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12697. Updated doc for -j option to notice that it should be used with -i
  12698. option.
  12699. * src/main.cc (showUsage)
  12700. Removed unused classes.
  12701. * src/RequestInfo.h
  12702. (FileInfo): Removed.
  12703. (checksum): Removed.
  12704. (fileInfo): Removed.
  12705. (setChecksum): Removed.
  12706. (getChecksum): Removed.
  12707. (getFileInfo): Removed.
  12708. Use ISO units.
  12709. * src/ConsoleDownloadEngine.cc
  12710. * src/TorrentConsoleDownloadEngine.cc
  12711. * src/Util.cc (abbrevSize)
  12712. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. Added the default listening ports to the help message.
  12714. * src/main.cc (showUsage)
  12715. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Reduce the number of calls to gettimeofday to lower CPU load.
  12717. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12718. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12719. * src/Peer.h (calculateUploadSpeed): New function.
  12720. (calculateDownloadSpeed): New function.
  12721. * src/DefaultPeerStorage.cc
  12722. (CalculateStat): Added _now variable.
  12723. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12724. and Peer::calculateUploadSpeed(const struct timeval&)
  12725. Drop connection if no request or piece message is exchanged in
  12726. a certain interval.
  12727. * src/DefaultBtInteractive.h
  12728. (btRuntime): New variable.
  12729. (inactiveCheckPoint): New variable.
  12730. (checkActiveInteraction): New function.
  12731. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12732. request or piece message is received.
  12733. (checkActiveInteraction): New function.
  12734. (doInteractionProcessing): Call checkActiveInteraction.
  12735. Fixed the bug that causes remote Metalink and Torrent files are not
  12736. processed.
  12737. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12738. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12739. Changed format of log file.
  12740. * src/SimpleLogger.cc
  12741. * Release 0.11.0
  12742. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12743. * src/AbstractCommand.cc
  12744. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12745. MSG_MAX_TRY from error to info.
  12746. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12747. * src/message.h
  12748. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12749. (MSG_DOWNLOAD_ABORTED): Added %s.
  12750. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12751. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12752. * src/PeerAbstractCommand.cc
  12753. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12754. * src/Request.h
  12755. (cookieBox): Made ShardHandle.
  12756. * src/RequestGroup.h, src/RequestGroup.cc
  12757. (createNextCommandWithAdj): New function.
  12758. * src/FileAllocationCommand.cc
  12759. (executeInternal): Use createNextCommandWithAdj().
  12760. * src/CheckIntegrityCommand.cc
  12761. (executeInternal): Use createNextCommandWithAdj().
  12762. Added --load-cookies command-option.
  12763. * src/OptionHandlerFactory.cc
  12764. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12765. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12766. Now aria2 can handle cookie's expiration date.
  12767. * src/Cookie.h (expires): Changed its type to time_t.
  12768. * src/main.cc: Added --load-cookies command-line option.
  12769. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12770. * src/Util.h, src/Util.cc (httpGMT): New function.
  12771. * src/Request.cc (Request): Initialize cookieBox using
  12772. CookieBoxFactory.
  12773. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12774. * src/CookieParser.h, src/CookieParser.cc: New class.
  12775. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12776. * src/HttpResponseCommand.cc
  12777. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12778. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12779. download.
  12780. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12781. Added -j command-line option.
  12782. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12783. * src/main.cc
  12784. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12785. Rewritten using stringstream.
  12786. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12787. Rewritten using stringstream.
  12788. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12789. Make download size shown in MB, KB.
  12790. * src/ConsoleDownloadEngine.h (sendStatistics)
  12791. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12792. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12793. Accept incoming connections if download rate is low.
  12794. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12795. (_lowestSpeedLimit): New variable.
  12796. (setLowestSpeedLimit): New function.
  12797. (execute): Accept incoming connections if download rate is low.
  12798. MAX_PEERS is ignored in this case.
  12799. Disable PREF_OUT in multiple concurrent download:
  12800. * src/RequestGroup.h, src/RequestGroup.cc
  12801. (setUserDefinedFilename): New function.
  12802. * src/DownloadEngineFactory.cc
  12803. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12804. concurrent download.
  12805. * src/DefaultSegmentManFactory.cc
  12806. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12807. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12808. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12809. Added its overloaded method.
  12810. * src/RequestGroup.h
  12811. (_numConcurrentCommand): New variable.
  12812. (setNumConcurrentCommand): New function.
  12813. * src/RequestGroup.cc
  12814. Abort download if same file is being downloaded concurrently.
  12815. * src/RequestGroup.h, src/RequestGroupMan.cc
  12816. (isSameFileBeingDownloaded): New function.
  12817. * src/HttpResponseCommand.cc (executeInternal)
  12818. * src/FtpNegotiateCommand.cc (recvSize)
  12819. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12820. * main.cc: Added help message for -i option.
  12821. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12822. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12823. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12824. * src/MetalinkEntry.h
  12825. (checksum): Changed to ChecksumHandle
  12826. * src/MetalinkRequestInfo.cc
  12827. (checksum): Changed to ChecksumHandle
  12828. * src/File.cc
  12829. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12830. * src/common.h
  12831. (DIR_OPEN_MODE): New definition
  12832. * src/RequestGroup.cc
  12833. (prepareForNextAction): Added an argument.
  12834. * src/message.h
  12835. (MSG_GOOD_CHECKSUM): New definition
  12836. (MSG_BAD_CHECKSUM): New definition
  12837. * src/HttpResponseCommand.cc
  12838. (handleDefaultEncoding): Continue download sequence in new
  12839. non-segmented download.
  12840. * src/FileAllocationEntry.h
  12841. (_nextDownloadCommand): New variable.
  12842. * src/DownloadCommand.cc
  12843. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12844. available.
  12845. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12846. * src/IteratableChecksumValidator.h,
  12847. src/IteratableChecksumValidator.cc: New class.
  12848. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12849. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12850. Change file mode to 666:
  12851. * src/common.h (OPEN_MODE): New definition.
  12852. * src/File.cc
  12853. * src/Util.cc
  12854. * src/Directry.cc
  12855. * src/AbstractDiskWriter.cc
  12856. Change the level of log message "download aborted" to debug:
  12857. * src/PeerAbstractCommand.cc (execute)
  12858. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12859. * src/TrackerWatcherCommand.cc
  12860. (createCommand): Sleep some seconds after request failed.
  12861. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12862. then abort tracker request.
  12863. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12864. * Added the simultaneous download feature.
  12865. * src/main.cc: Print "Exception caught: " when exception is caught.
  12866. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12867. * src/ActivePeerConnectionCommand.cc
  12868. * src/PeerInteractionCommand.cc
  12869. * src/BtRuntime.h
  12870. (cuidCounter): Removed.
  12871. (getNewCuid): Removed.
  12872. * src/DownloadEngineFactory.cc
  12873. * src/PeerListenCommand.cc
  12874. * src/TrackerUpdateCommand.cc
  12875. * src/PeerInitiateConnectionCommand.cc
  12876. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12877. * src/PeerAbstractCommand.cc
  12878. (onAbort): Call PeerStorage::returnPeer()
  12879. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12880. (incomingPeers): New variable.
  12881. (addIncomingPeer): New function.
  12882. (returnPeer): New function.
  12883. (onErasingPeer): New function.
  12884. (addPeer): push_back -> push_front
  12885. (getActivePeers): Rewritten.
  12886. (calculateStat): Rewritten.
  12887. * src/PeerStorage.h
  12888. (TransferStat::copy): New function.
  12889. (TransferStat::TransferStat): New function.
  12890. (TransferStat::operator=): New function.
  12891. (addIncomingPeer): New function.
  12892. (returnPeer): New function.
  12893. * src/PeerListenCommand.cc
  12894. (execute): Use PeerStorage::addIncomingPeer() instead of
  12895. Peer::addPeer().
  12896. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12897. Connect to a peer actively when download speed is lower than specified
  12898. speed in torrent download:
  12899. * src/ActivePeerConnectionCommand.h: New class.
  12900. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12901. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12902. * src/main.cc: Fixed the bug that prevents download if .netrc
  12903. doesn't exist.
  12904. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12905. To cache resolved hostname:
  12906. * src/AbstractCommand.h, src/AbstractCommand.cc
  12907. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12908. Added dns cache.
  12909. * src/FtpInitiateConnectionCommand.cc
  12910. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12911. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12912. NameResolver working without ares.
  12913. * src/TorrentRequestInfo.cc
  12914. (execute): Don't cache dns in torrent download.
  12915. * src/HttpInitiateConnectionCommand.cc
  12916. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12917. * src/DNSCache.h: New class.
  12918. * src/UrlRequestInfo.cc
  12919. (execute): Use dns cache.
  12920. In http request, suppress port number in http request header if port
  12921. is 80 or 443:
  12922. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12923. request header if port is 80 or 443.
  12924. (createProxyRequest): Allways send port number.
  12925. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12926. To add the command-line option which disables netrc support:
  12927. * src/OptionHandlerFactory.cc
  12928. (createOptionHandlers): Added PREF_NO_NETRC.
  12929. * src/main.cc: Added -n option.
  12930. * src/prefs.h (PREF_NO_NETRC): New definition.
  12931. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12932. V_TRUE.
  12933. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12934. is V_FALSE. This may get configurable in the future release.
  12935. To clear peer's error status by time basis:
  12936. * src/PeerAbstractCommand.cc
  12937. (onAbort): Call Peer::startBadCondition().
  12938. * src/Peer.h, src/Peer.cc
  12939. (error): Removed.
  12940. (_badConditionStartTime): New variable.
  12941. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12942. (startBadCondition): New function.
  12943. (isGood): New function.
  12944. * src/DefaultPeerStorage.cc
  12945. (addPeer): Use Peer::isGood().
  12946. (FindFinePeer): Use Peer::isGood().
  12947. Always include port number in http request header:
  12948. * src/HttpRequest.cc (getHostText): Always include port number in
  12949. http request header.
  12950. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12951. To the ability to read options from a config file:
  12952. * src/main.cc: Command-line parameter validation is delegated to
  12953. OptionHandler class.
  12954. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12955. * src/Option.h, src/Option.cc (clear): New function.
  12956. * src/OptionParser.h, src/OptionParser.cc: New class.
  12957. * src/OptionHandler.h: New class.
  12958. * src/NameMatchOptionHandler.h: New class.
  12959. * src/OptionHandlerImpl.h: New classes.
  12960. * src/prefs.h: '_' -> '-'
  12961. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12962. (FTP_PASV): New definition.
  12963. * src/Util.h, src/Util.cc (getRealSize): New function.
  12964. To disable netrc support if .netrc file does not have correct
  12965. permissions:
  12966. * src/File.h, src/File.cc (mode): New function.
  12967. To prevent confidential information to be logged:
  12968. * src/HttpConnection.h, src/HttpConnection.cc
  12969. (eraseConfidentialInfo): New function.
  12970. (sendRequest): Call eraseConfidentialInfo().
  12971. (sendProxyRequest): Call eraseConfidentialInfo().
  12972. * src/main.cc: Validate permissions of .netrc file.
  12973. To add --user-agent command-line option:
  12974. * src/main.cc: Added new command line option: --user-agent
  12975. * src/prefs.h (PREF_USER_AGENT): New definition.
  12976. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12977. parameter to HttpRequest object.
  12978. * src/AbstractProxyRequestCommand.cc
  12979. (executeInternal): Set user-agent option parameter to HttpRequest
  12980. object.
  12981. Marged the patches from Dan Fandrich.
  12982. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12983. Use filename and size from Metalink file instead of sending HEAD
  12984. request:
  12985. * src/UrlRequestInfo.h
  12986. (_filename): New variable.
  12987. (_totalLength): New variable.
  12988. (setTotalLength): New variable.
  12989. (setFilename): New variable.
  12990. * src/MetalinkRequestInfo.cc
  12991. (execute): Set filename and size to UrlRequestInfo
  12992. * src/UrlRequestInfo.cc
  12993. (execute): Use filename and size from Metalink instead of seding
  12994. HEAD request to servers.
  12995. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12996. To add the ability to resume downloading a partially downloaded file
  12997. which is downloaded from the beginning:
  12998. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12999. takes this role.
  13000. * src/main.cc: Added -c option.
  13001. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13002. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13003. * src/prefs.h (PREF_CONTINUE): New definition.
  13004. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13005. * src/DefaultDiskWriter.cc
  13006. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13007. * src/AbstractDiskWriter.h
  13008. (glowFileAllocator): New variable.
  13009. * src/AbstractDiskWriter.cc
  13010. (openExistingFile): Now preallocate file space from the end of the
  13011. existing file if totalLength argument is specified and grater than 0.
  13012. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13013. to download exists in local, continue the download of the file.
  13014. --allow-overwrite=true is assumed in this context.
  13015. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13016. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13017. Throw exception if --check-integrity=true is specified but chunk
  13018. checksums are not provided:
  13019. * src/UrlRequestInfo.cc
  13020. Do not print URLs to stdout:
  13021. * src/UrlRequestInfo.cc
  13022. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13023. * src/Request.h: Use AuthResolver to get authentication information.
  13024. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13025. set to RequestFactory object.
  13026. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13027. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13028. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13029. create Request object.
  13030. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13031. To integrate Netrc into exsiting classes:
  13032. * src/Request.h
  13033. (_userDefinedAuthConfig): New variable.
  13034. (findNetrcAuthenticator): New function.
  13035. (segment): Removed.
  13036. (setUserDefinedAuthConfig): New function.
  13037. (resolveHttpAuthConfigItem): New function.
  13038. (resolveFtpAuthConfigItem): New function.
  13039. (resolveHttpProxyAuthConfigItem): New function.
  13040. * src/HttpRequest.h
  13041. (authConfig): Removed.
  13042. (proxyAuthConfig): Removed.
  13043. (setAuthConfig): Removed.
  13044. (setProxyAuthConfig): Removed.
  13045. * src/UrlRequest.h
  13046. (getHeadResult): Added a parameter: authConfigHandle
  13047. * src/common.h
  13048. (SingletonHolder.h): New include.
  13049. * src/main.cc
  13050. (Netrc.h): New include.
  13051. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13052. Added initial value of PREF_NETRC_PATH.
  13053. Added the initialization of netrc.
  13054. * src/AuthConfig.h: New class.
  13055. * src/prefs.h
  13056. (PREF_NETRC_PATH): New definition.
  13057. * src/HttpAuthConfig.h: Removed.
  13058. * src/Netrc.cc
  13059. (getRequiredNextToken): New function.
  13060. (skipMacdef): New function.
  13061. (parse): Rewritten.
  13062. * src/Netrc.h
  13063. (getRequiredNextToken): New function.
  13064. (skipMacdef): New function.
  13065. * src/Util.h, src/Util.cc
  13066. (getHomeDir): New function.
  13067. * src/TrackerWatcherComand.cc
  13068. (createRequestCommand): Use AuthConfig.
  13069. * src/FtpConnection.cc
  13070. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13071. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13072. * src/Request.cc
  13073. (findNetrcAuthenticator): New function.
  13074. (resolveHttpAuthConfigItem): New function.
  13075. (resolveFtpAuthConfigItem): New function.
  13076. (resolveHttpProxyAuthConfigItem): New function.
  13077. * src/UrlRequestInfo.cc: Use AuthConfig.
  13078. * src/HttpRequest.cc
  13079. (createRequest): Use authConfig.
  13080. (getProxyAuthString): Use authConfig.
  13081. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13082. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13083. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. To reduce overhead to find commands whose socket is either
  13085. readable or writable in the download engine loop:
  13086. * src/Command.h, src/Command.cc
  13087. (STATUS): New enum.
  13088. (status): New variable.
  13089. (statusMatch): New function.
  13090. (setStatusActive): New function.
  13091. (setStatusInactive): New function.
  13092. * src/DownloadEngine.h, src/DownloadEngine.cc
  13093. (executeCommand): New function.
  13094. (run): Simplified.
  13095. (waitData): Call Command::setStatusActive() when command's socket is
  13096. readable or writable.
  13097. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13098. To handle Segment as SegmentHandle:
  13099. * src/AbstractCommand.cc (execute): Rewritten.
  13100. * src/SegmentMan.h: Segment -> SegmentHandle
  13101. Introducded HttpResponse class, HttpRequest class to improve code
  13102. extensiveness and make it clear:
  13103. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13104. HttpResponse class.
  13105. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13106. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13107. * src/HttpConnection.cc: Contruction of http request were moved to
  13108. HttpRequest class.
  13109. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13110. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13111. * src/HttpAuthConfig.h: New class.
  13112. * src/Range.h: New class.
  13113. To make FtpTunnel{Request, Response}Command and
  13114. HttpProxy{Request, Response}Command derived from
  13115. AbstractProxy{Request, Response}Command:
  13116. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13117. Derived from AbstractProxyRequestCommand class.
  13118. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13119. Derived from AbstractProxyResponseCommand class.
  13120. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13121. Derived from AbstractProxyRequestCommand class.
  13122. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13123. Derived from AbstractProxyResponseCommand class.
  13124. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13125. : New class.
  13126. * src/AbstractProxyResponseCommand.h,
  13127. src/AbstractProxyResponseCommand.cc: New class.
  13128. To add netrc support:
  13129. * src/Netrc.h, src/Netrc.cc: New class.
  13130. * src/Util.h, src/Util.cc (split): New function.
  13131. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13132. "Content-Range" header instead of "Range" header.
  13133. * src/HttpHeader.h
  13134. (getStatus): Removed.
  13135. (setStatus): Removed.
  13136. * src/Segment.h
  13137. (getPositionToWrite): New function.
  13138. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13139. * src/HttpHeader.h
  13140. (Range.h): New include.
  13141. (status): New variable.
  13142. (HttpHeader): Initialized status with 0.
  13143. (getStatus): New function.
  13144. (setStatus): New function.
  13145. (getRange): New function.
  13146. (HttpHeaderHandle): New function.
  13147. * src/HttpHeader.cc
  13148. (getRange): New function.
  13149. * src/Request.h
  13150. (RequestWeakHandle): New definition.
  13151. * src/HttpConnection.h
  13152. (HttpConnectionHandle): New type definition.
  13153. * src/HttpConnection.cc
  13154. (receiveResponse): Set HTTP status to headers.
  13155. * src/main.cc
  13156. (showUsage): Fixed typo.
  13157. * src/Segment.h
  13158. (SegmentHandle): New type definition.
  13159. * src/BitfieldMan.h
  13160. (getMissingUnusedLength): New function.
  13161. * src/BitfieldMan.cc
  13162. (getMissingUnusedLength): New function.
  13163. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13164. To fix static initialization order problem:
  13165. * src/BitfieldManFactory.h
  13166. (defaultRandomizer): Removed.
  13167. (factory): New variable.
  13168. (getNewFactory): Removed.
  13169. (getFactoryInstance): New function.
  13170. (setDefaultRandomizer): Rewritten.
  13171. (getDefaultRandomizer): Rewritten.
  13172. * src/BitfieldManFactory.cc
  13173. (defaultRandomizer): Removed.
  13174. (factory): Initialized to 0.
  13175. (BitfieldManFactory): Initialized randomizer to 0.
  13176. * src/DefaultPieceStorage.cc
  13177. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13178. * src/Peer.cc
  13179. (Peer): getNewFactory() -> getFactoryInstance()
  13180. * src/SegmentMan.cc
  13181. (initBitfield): getNewFactory() -> getFactoryInstance()
  13182. * src/Piece.cc
  13183. (Piece): getNewFactory() -> getFactoryInstance()
  13184. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13185. To fix the bug that causes crash on Max OS X:
  13186. * src/SimpleRandomizer.h
  13187. (getInstance): Create new instance if the static variable is null.
  13188. * src/SimpleRandomizer.cc
  13189. (randomizer): Initialized to 0.
  13190. * src/BitfieldManFactory.h
  13191. (getNewFactory): Removed the call to setRandomizer().
  13192. To fix the miscalculation of the range of checksum:
  13193. * src/BitfieldMan.h
  13194. (isBitSetOffsetRange): New function.
  13195. * src/BitfieldMan.cc
  13196. (isBitSetOffsetRange): New function.
  13197. * src/SegmentMan.cc
  13198. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13199. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13200. * Release 0.10.1
  13201. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13202. To lower CPU usage in BitTorrent download when --max-upload-limit
  13203. command-line option specified:
  13204. * src/DefaultBtMessageDispatcher.cc
  13205. (sendMessages): Calculate uploading speed only when current message
  13206. is uploading data and is not sent yet.
  13207. * src/DefaultPeerStorage.h
  13208. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13209. * src/HttpResponseCommand.cc
  13210. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13211. This fixes compile error in Soralis 10.
  13212. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13213. To fix segfault in Metalink download:
  13214. * src/UrlRequestInfo.h
  13215. (filename): Removed.
  13216. (totalLength): Removed.
  13217. (setTotalLength): Removed.
  13218. (setFilename): Removed.
  13219. * src/MetalinkRequestInfo.cc
  13220. (execute): Do not set filename and totalLength to reqInfo.
  13221. Set chunk checksum to reqInfo if it is not null.
  13222. * src/HttpResponseCommand.cc
  13223. (executeInternal): Fixed filename in log.
  13224. (handleDefaultEncoding): Removed the call to initBitfield() and
  13225. markAllPiecesDone().
  13226. (handleOtherEncoding): Added HEAD method handling.
  13227. * src/FtpNegotiateCommand.cc
  13228. (executeInternal): Added SEQ_HEAD_OK handling.
  13229. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13230. return false.
  13231. * src/FtpNegotiateCommand.h
  13232. (SEQ_HEAD_OK): New definition.
  13233. * src/SegmentMan.cc
  13234. (initBitfield): Delete bitfield.
  13235. (isChunkChecksumValidationReady): Fixed the condition.
  13236. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13237. works fine.
  13238. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13239. * src/Xml2MetalinkProcessor.h
  13240. (xpathExists): New function.
  13241. * src/Xml2MetalinkProcessor.cc
  13242. (xpathExists): New function.
  13243. Not to send HEAD request if filename and size are available in Metalink
  13244. file:
  13245. * src/UrlRequestInfo.h
  13246. (filename): New variable.
  13247. (totalLength): New variable.
  13248. (setTotalLength): New function.
  13249. (setFilename): New function.
  13250. * src/MetalinkRequestInfo.cc
  13251. (execute): Set filename and size to UrlRequestInfo.
  13252. * src/MetalinkEntry.cc
  13253. (MetalinkEntry): Initialize size with 0.
  13254. * src/UrlRequestInfo.cc
  13255. (execute): Set filename and size to SegmentMan.
  13256. Not to download rest of the files after selected files are downloaded
  13257. in BitTorrent:
  13258. * src/PieceStorage.h
  13259. (allDownloadFinished): New function.
  13260. * src/DefaultBtAnnounce.cc
  13261. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13262. downloadFinished.
  13263. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13264. * src/DefaultPieceStorage.cc
  13265. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13266. Commented out the call to finishSelectiveDownloadingMode().
  13267. (downloadFinished): Call isFilteredAllBitSet() instead of
  13268. isAllBitSet().
  13269. (allDownloadFinished): New function.
  13270. * src/DefaultBtInteractive.cc
  13271. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13272. downloadFinished().
  13273. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13274. * src/TorrentDownloadEngine.cc
  13275. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13276. * src/BitfieldMan.h
  13277. (isFilteredAllBitSet): New function.
  13278. * src/ShareRatioSeedCriteria.h
  13279. (PieceStorage.h): New include.
  13280. (pieceStorage): New variable.
  13281. (evaluate):
  13282. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13283. * src/BitfieldMan.cc
  13284. (isFilteredAllBitSet): New function.
  13285. (isAllBitSet): Filter is not took into account.
  13286. Rename --force-truncate as --allow-overwrite:
  13287. * src/TorrentRequestInfo.cc
  13288. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13289. * src/main.cc
  13290. (showUsage): --force-truncate -> --allow-overwrite
  13291. * src/message.h
  13292. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13293. * src/prefs.h
  13294. (PREF_FORCE_TRUNCATE): Removed.
  13295. (PREF_ALLOW_OVERWRITE): New definition.
  13296. * src/SegmentMan.cc
  13297. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13298. * src/MetalinkRequestInfo.cc
  13299. (execute): Queueing message are now logged in info level.
  13300. * src/common.h
  13301. (LONG_LONG_MAX): Removed.
  13302. (LONG_LONG_MIN): Removed.
  13303. * src/HttpResponseCommand.cc
  13304. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13305. * src/FtpNegotiateCommand.cc
  13306. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13307. * src/main.cc
  13308. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13309. command-line option.
  13310. (main): Added --check-integriy and --realtime-chunk-checksum
  13311. command-line option.
  13312. --force-truncate -> --allow-overwrite
  13313. Set initial value of --check-integrity option to false.
  13314. Don't show usage when error occurs while persing command-line options.
  13315. Removed deprecated --upload-limit option.
  13316. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13317. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13318. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13319. * src/BtAllowedFastMessage.cc:
  13320. * src/BtBitfieldMessage.cc
  13321. * src/BtCancelMessage.cc
  13322. * src/BtChokeMessage.cc
  13323. * src/BtHaveAllMessage.cc
  13324. * src/BtHaveMessage.cc
  13325. * src/BtHaveNoneMessage.cc
  13326. * src/BtInterestedMessage.cc
  13327. * src/BtNotInterestedMessage.cc
  13328. * src/BtPieceMessage.cc
  13329. * src/BtPortMessage.cc
  13330. * src/BtRejectMessage.cc
  13331. * src/BtRequestMessage.cc
  13332. * src/BtSuggestPieceMessage.cc
  13333. * src/BtUnchokeMessage.cc
  13334. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13335. files are affected.
  13336. * src/ChunkChecksumValidator.cc
  13337. * src/SegmentMan.cc
  13338. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13339. To add chunk checksum validation:
  13340. * src/MetalinkEntry.h
  13341. (MetalinkChunkChecksum.h): New include.
  13342. (chunkChecksum): New variable.
  13343. * src/Request.h
  13344. (method): New variable.
  13345. (setMethod): New function.
  13346. (getMethod): New function.
  13347. (METHOD_GET): New static constant.
  13348. (METHOD_HEAD): New static constant.
  13349. * src/Xml2MetalinkProcessor.h
  13350. (getPieceHash): New function.
  13351. * src/PieceStorage.h
  13352. (markAllPiecesDone): New function.
  13353. (checkIntegrity): New function.
  13354. * src/FileAllocator.h
  13355. (NullFileAllocationMonitor.h): New include.
  13356. (FileAllocator): Initialize fileAllocationMonitor with new
  13357. NullFileAllocationMonitor().
  13358. * src/MultiDiskAdaptor.h
  13359. (messageDigest.h): Remove include.
  13360. (ctx): Removed.
  13361. (hashUpdate): Added ctx.
  13362. (MultiDiskAdaptor): Removed ctx.
  13363. (sha1Sum): Renamed as messageDigest.
  13364. (messageDigest): New function.
  13365. * src/UrlRequestInfo.h
  13366. (HeadResult): New class.
  13367. (digestAlgo): New variable.
  13368. (chunkChecksumLength): New variable.
  13369. (chunkChecksums): New variable.
  13370. (getHeadResult): New function.
  13371. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13372. (setDigestAlgo): New function.
  13373. (setChunkChecksumLength): New function.
  13374. (setChunkChecksums): New function.
  13375. * src/DefaultPieceStorage.cc
  13376. (DiskAdaptorWriter.h): New include.
  13377. (ChunkChecksumValidator.h): New include.
  13378. (markAllPiecesDone): New function.
  13379. (checkIntegrity): New function.
  13380. * src/DefaultBtContext.h
  13381. (getPieceHashes): New function.
  13382. * src/TorrentRequestInfo.cc
  13383. (execute): Try to validate chunk checksum if file already exists and
  13384. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13385. * src/messageDigest.h
  13386. (~MessageDigestContext): Added digestFree().
  13387. * src/MetalinkRequestInfo.cc
  13388. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13389. * src/DiskAdaptor.h
  13390. (messageDigest.h): New include.
  13391. (sha1Sum): Renamed as messageDigest.
  13392. (messageDigest): New function.
  13393. * src/DownloadCommand.h
  13394. (PeerStat.h): New include.
  13395. (maxDownloadSpeedLimit): New variable.
  13396. (startupIdleTime): New variable.
  13397. (lowestDownloadSpeedLimit): New variable.
  13398. (peerStat): New variable.
  13399. (setMaxDownloadSpeedLimit): New function.
  13400. (setStartupIdleTime): New function.
  13401. (setLowestDownloadSPeedLimit): New function.
  13402. * src/BtContext.h
  13403. (getPieceHashes): New function.
  13404. * src/main.cc
  13405. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13406. option to true for testing purpose.
  13407. * src/BtPieceMessage.cc
  13408. (checkPieceHash): Use messageDigest
  13409. * src/DownloadEngine.cc
  13410. (SetDescriptor): Removed.
  13411. (AccumulateActiveCommand): Removed.
  13412. (waitData): Rewritten.
  13413. (updateFdSet): Rewritten.
  13414. * src/MultiDiskAdaptor.cc
  13415. (hashUpdate): Added ctx.
  13416. (sha1Sum): Renamed as messageDigest.
  13417. (messageDigest): New function.
  13418. * src/BitfieldMan.h
  13419. (isBitRangeSet): New function.
  13420. (unsetBitRange): New function.
  13421. * src/ByteArrayDiskWriter.h
  13422. (sha1Sum): Renamed as messageDigest.
  13423. (messageDigest): New function.
  13424. * src/ConsoleDownloadEngine.cc
  13425. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13426. * src/DiskWriter.h
  13427. (messageDigest.h): New include.
  13428. (sha1Sum): Renamed as messageDigest.
  13429. (messageDigest): New function.
  13430. * src/ChunkChecksumValidator.h: New class.
  13431. * src/DiskAdaptorWriter.h: New class.
  13432. * src/prefs.h
  13433. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13434. (PREF_CHECK_INTEGRITY): New definition.
  13435. * src/HttpResponseCommand.cc
  13436. (handleDefaultEncoding): Added method "HEAD" handling.
  13437. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13438. (handleOtherEncoding):
  13439. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13440. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13441. startupIdleTime, lowestDownloadSpeedLimit to command.
  13442. * src/SegmentMan.h
  13443. (getSegmentEntryByIndex): New function.
  13444. (getSegmentEntryByCuid): New function.
  13445. (getSegmentEntryIteratorByCuid): New function.
  13446. (diskWriter): DiskWriter -> DiskWriterHandle
  13447. (pieceHashes): New variable.
  13448. (chunkHashLength): New variable.
  13449. (digestAlgo): New variable.
  13450. (FindPeerStat): Removed.
  13451. (getPeerStat): Rewritten.
  13452. (markAllPiecesDone): New function.
  13453. (checkIntegrity): New function.
  13454. (tryChunkChecksumValidation): New function.
  13455. (isChunkChecksumValidationReady): New function.
  13456. * src/BitfieldMan.cc
  13457. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13458. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13459. blocks to 0.
  13460. (isBitRangeSet): New function.
  13461. (unsetBitRange): New function.
  13462. * src/FtpNegotiateCommand.cc
  13463. (executeInternal): Set maxDownloadSpeedLimit,
  13464. startupIdleTime, lowestDownloadSpeedLimit to command.
  13465. (recvSize): Added method "HEAD" handling.
  13466. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13467. * src/AbstractSingleDiskAdaptor.cc
  13468. (sha1Sum): Renamed as messageDigest.
  13469. (messageDigest): New function.
  13470. * src/AbstractSingleDiskAdaptor.h
  13471. (sha1Sum): Renamed as messageDigest.
  13472. (messageDigest): New function.
  13473. * src/Util.h
  13474. (indexRange): New function.
  13475. * src/MetalinkEntry.cc
  13476. (MetalinkEntry): Initialized chunkChecksum to 0.
  13477. * src/ShaVisitor.cc
  13478. (~ShaVisitor): Removed the call to ctx.digestFree().
  13479. * src/SegmentMan.cc
  13480. (ChunkChecksumValidator.h): New include.
  13481. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13482. to DIGEST_ALGO_SHA1.
  13483. (~SegmentMan): Removed diskWriter.
  13484. (FindSegmentEntryByIndex): Removed.
  13485. (FindSegmentEntryByCuid): Removed.
  13486. (checkoutSegment): Rewritten.
  13487. (findSlowerSegmentEntry): Rewritten.
  13488. (getSegment): Rewritten.
  13489. (updateSegment): Rewritten.
  13490. (completeSegment): Rewritten.
  13491. (markAllPiecesDone): New function.
  13492. (checkIntegrity): New function.
  13493. (isChunkChecksumValidationReady): New function.
  13494. (tryChunkChecksumValidation): New function.
  13495. * src/Xml2MetalinkProcessor.cc
  13496. (getEntry): Get size and set it to entry.
  13497. Get chunk checksum and set it to entry.
  13498. (getPieceHash): New function.
  13499. * src/Util.cc
  13500. (sha1Sum): Removed ctx.digestFree()
  13501. (fileChecksum): Removed ctx.digestFree()
  13502. (indexRange): New function.
  13503. * src/Request.cc
  13504. (METHOD_GET): New variable.
  13505. (METHOD_HEAD): New variable.
  13506. (Request): Added method.
  13507. * src/UrlRequestInfo.cc
  13508. (FatalException.h): New include.
  13509. (message.h): New include.
  13510. (operator<<): Added operator<< for class HeadResult.
  13511. (getHeadResult): New function.
  13512. (execute): Get filename and size in separate download engine.
  13513. * src/ChunkChecksumValidator.cc: New class.
  13514. * src/DownloadCommand.cc:
  13515. (DownloadCommand): Added peerStat.
  13516. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13517. the value from Option.
  13518. The buffer size is now 16KB.
  13519. Use peerStat member instead of getting it from SegmentMan.
  13520. Use startupIdleTime member instead of gettingit from Option.
  13521. Added chunk checksum validation.
  13522. * src/AbstractDiskWriter.cc
  13523. (AbstractDiskWriter): Removed ctx.
  13524. (~AbstractDiskWriter): Removed ctx.digestFree()
  13525. (writeDataInternal): Returns the return value of write.
  13526. (readDataInternal): Returns the return value of read.
  13527. (sha1Sum): Renamed as messageDigest
  13528. (messageDigest): New function.
  13529. * src/AbstractDiwkWriter.h
  13530. (messageDigest.h): Removed include.
  13531. (ctx): Removed.
  13532. (sha1Sum): Renamed as messageDigest
  13533. (messageDigest): New function.
  13534. * src/DefaultPieceStorage.h
  13535. (markAllPiecesDone): New function.
  13536. (checkIntegrity): New function.
  13537. * src/NullFileAllocationMonitor.h: New class.
  13538. * src/MetalinkChunkChecksum.h: New class.
  13539. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13540. To decrease CPU usage in bittorrent download, calculation results in
  13541. BitfieldMan were cached and realtime fetching PeerObject was removed
  13542. with WeakHandle introduced. Option values are set to the objects
  13543. by setter before download begins.
  13544. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13545. * src/DefaultBtRequestFactory.h
  13546. (dispatcher): BtMessageDispatcherHandle ->
  13547. BtMessageDispatcherWeakHandle.
  13548. (messageFactory): New variable.
  13549. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13550. BtMessageDispatcherWeakHandle.
  13551. (setBtMessageFactory): New function.
  13552. * src/DefaultBtMessageDispatcher.cc:
  13553. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13554. from Option.
  13555. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13556. feating the value from Option.
  13557. Use messageFactory member.
  13558. * src/PeerInteractionCommand.cc
  13559. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13560. Add reverse dependencies to factory object.
  13561. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13562. dispatcher.
  13563. Set messageFactory to receiver.
  13564. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13565. btInteractive.
  13566. Set receiver to peerObject.
  13567. Set maxDownloadSpeedLimit to this.
  13568. (executeInternal): Use maxDownloadSpeedLimit member.
  13569. * src/BtChokeMessage.cc
  13570. (doReceivedAction): Use dispatcher, requestFactory member.
  13571. (onSendComplete): Use dispatcher member.
  13572. * src/PeerInteractionCommand.h
  13573. (maxDownloadSpeedLimit): New variable.
  13574. * src/DefaultBtMessageReceiver.h
  13575. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13576. (dispatcher):
  13577. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13578. (messageFactory): New variable.
  13579. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13580. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13581. (setDispatcher):
  13582. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13583. (setBtMessageFactory): New function.
  13584. * src/DefaultBtInteractive.cc
  13585. (initiateHandshake): Use messageFactory member.
  13586. (addBitfieldMessageToQueue): Use messageFactory member.
  13587. (addAllowedFastMessageToQueue): Use messageFactory member.
  13588. (decideChoking): Use messageFactory member.
  13589. (checkHave): Use messageFactory member.
  13590. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13591. (receiveMessages): Use maxDownloadSpeedLimit member.
  13592. (decideInterest): Use messageFactory member.
  13593. * src/BtRequestMessage.cc
  13594. (doReceivedAction): Use messageFactory, dispatcher member.
  13595. (onQueued): Use dispatcher member.
  13596. * src/BtPieceMessage.cc
  13597. (doReceivedAction): Use dispatcher member.
  13598. (send): Use peerConnection member.
  13599. (onWrongPiece): Use requestFactory member.
  13600. (handleChokingEvent): Use messageFactory, dispatcher member.
  13601. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13602. * src/BtMessageDispatcher.h
  13603. (BtMessageDispatcherWeakHandle): New type definition.
  13604. * src/SimpleBtMessage.cc
  13605. (send): Use peerConnection member.
  13606. * src/BtRejectMessage.cc
  13607. (doReceivedAction): Use dispatcher member.
  13608. * src/DefaultBtMessageDispatcher.h
  13609. (Option.h): Removed include.
  13610. (messageFactory): New variable.
  13611. (option): Removed.
  13612. (maxUploadSpeedLimit): New variable.
  13613. (requestTimeout): New variable.
  13614. (DefaultBtMessageDispatcher): Removed option.
  13615. Added maxUploadSpeedLimit, requestTimeout.
  13616. (setOption): Removed.
  13617. (getOption): Removed.
  13618. (setMaxUploadSpeedLimit): New function.
  13619. (setRequestTimeout): New function.
  13620. (setBtMessageFactory): New function.
  13621. * src/DefaultBtInteractive.h
  13622. (btMessageReceiver):
  13623. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13624. (dispatcher):
  13625. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13626. (btRequestFactory):
  13627. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13628. (peerConnection):
  13629. PeerConnectionHandle -> PeerConnectionWeakHandle
  13630. (messageFactory): New variable.
  13631. (option): Removed.
  13632. (keepAliveInterval): New variable.
  13633. (maxDownloadSpeedLimit): New variable.
  13634. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13635. (setBtMessageReceiver):
  13636. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13637. (setDispatcher):
  13638. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13639. (setBtRequestFactory):
  13640. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13641. (setPeerConnection):
  13642. PeerConnectionHandle -> PeerConnectionWeakHandle
  13643. (setOption): Removed.
  13644. (setKeepAliveInterval): New function.
  13645. (setMaxDownloadSpeedLimit): New function.
  13646. (setBtMessageFactory): New function.
  13647. * src/BitfieldMan.h
  13648. (cachedNumMissingBlock): New variable.
  13649. (cachedNumFilteredBlock): New variable.
  13650. (cachedCompletedLength): New variable.
  13651. (cachedFilteredComletedLength): New variable.
  13652. (cachedFilteredTotalLength): New variable.
  13653. (countMissingBlockNow): New function.
  13654. (countFilteredBlockNow): New function.
  13655. (getFilteredTotalLengthNow): New function.
  13656. (getCompletedLengthNow): New function.
  13657. (getFilteredCompletedLengthNow): New function.
  13658. (updateCache): New function.
  13659. * src/AbstractBtMessage.h
  13660. (BtMessageDispatcher.h): New include.
  13661. (PeerConnection.h): New include.
  13662. (BtRequestFactory.h): New include
  13663. (BtMessageFactory.h): New include.
  13664. (dispatcher): New variable.
  13665. (messageFactory): New variable.
  13666. (peerConnection: New variable.
  13667. (setBtMessageDispatcher): New function.
  13668. (setPeerConnection): New function.
  13669. (setBtMessageFactory): New function.
  13670. (setBtRequestFactory): New function.
  13671. * src/DefaultBtMessageFactory.cc
  13672. (setCommonProperty): Set dispatcher, requestFactory, this,
  13673. peerConnection to msg.
  13674. * src/BtRegistry.h
  13675. (BT_MESSAGE_RECEIVER): New macro.
  13676. * src/PeerConnection.h
  13677. (PeerConnectionWeakHandle): New type definition.
  13678. * src/BtMessageFactory.h
  13679. (BtMessageFactoryWeakHandle): New type definition.
  13680. * src/BitfieldMan.cc
  13681. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13682. cachedCompletedLength, cachedFilteredComletedLength,
  13683. cachedFilteredTotalLength.
  13684. Call updateCache().
  13685. (countMissingBlock): Return cachedNumMissingBlock.
  13686. (countMissingBlockNow): New function.
  13687. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13688. (countFilteredBlockNow): New function.
  13689. (setBit): Call updateCache().
  13690. (unsetBit): Call updateCache().
  13691. (setBitfield): Call updateCache().
  13692. (clearAllBit): Call updateCache().
  13693. (setAllBit): Use setBitInternal instead of setBit.
  13694. Call updateCache().
  13695. (addFilter): Call updateCache().
  13696. (enableFilter): Call updateCache().
  13697. (disableFilter): Call updateCache().
  13698. (clearFilter): Call updateCache().
  13699. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13700. (getFilteredTotalLengthNow): New function.
  13701. (getCompletedLength): Return cachedCompletedLength.
  13702. (getCompletedLengthNow): New function.
  13703. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13704. (getFilteredCompletedLengthNow): New function.
  13705. (updateCache): New function.
  13706. * src/BtMessageReceiver.h
  13707. (BtMessageReceiverWeakHandle): New type definition.
  13708. * src/DefaultBtMessageReceiver.cc
  13709. (receiveHandshake): Use messageFactory member.
  13710. (sendHandshake): Use messageFactory member.
  13711. (receiveMessage): Use messageFactory member.
  13712. * src/DefaultBtMessageFactory.h
  13713. (dispatcher): New variable.
  13714. (requestFactory): New variable.
  13715. (peerConnection): New variablle.
  13716. (setBtMessageDispatcher): New function.
  13717. (setBtRequestFactory): New function.
  13718. (setPeerConnection): New function.
  13719. * src/SharedHandle.h
  13720. (RefCount): New class.
  13721. (WeakHandle): New class.
  13722. * src/PeerObject.h
  13723. (BtMessageReceiver.h): New include.
  13724. (PeerObject): Added btMessageReceiver.
  13725. (btMessageReceiver): New variable.
  13726. * src/Util.cc
  13727. (countBit): Simplified.
  13728. * src/BtCancelMessage.cc
  13729. (doReceivedAction): Use dispatcher member.
  13730. * src/BtRequestFactory.h
  13731. (BtRequestFactoryWeakHandle): New type definition.
  13732. * src/PeerStorage.h
  13733. (downloadSpeed): int -> uint32_t
  13734. (uploadSpeed): int -> uint32_t
  13735. (sessionDownloadLength): long long int -> uint64_t
  13736. (sessionUploadLength): long long int -> uint64_t
  13737. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13738. To add RecoverableException, FatalException:
  13739. * src/AbstractCommand.cc
  13740. (onAbort): Exception -> RecoverableException
  13741. * src/PeerAbstractCommand.h
  13742. (RecoverableException.h): New include.
  13743. (onAbort): Exception -> RecoverableException.
  13744. * src/PeerInteractionCommand.cc
  13745. (onAbort): Exception -> RecoverableException.
  13746. * src/PeerAbstractCommand.cc
  13747. (execute): Exception -> RecoverableException.
  13748. (onAbort): Exception -> RecoverableException.
  13749. * src/TorrentRequestInfo.cc
  13750. (execute): Exception -> RecoverableException.
  13751. * src/MetalinkRequestInfo.cc
  13752. (execute): Exception -> RecoverableException.
  13753. * src/MetaFileUtil.cc: RecoverableException.
  13754. * src/AbstractCommand.h
  13755. (onAbort): Exception -> RecoverableException.
  13756. * src/DlRetryEx.h: Exception -> RecoverableException.
  13757. * src/DlAbortEx.h: Exception -> RecoverableException.
  13758. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13759. * src/Util.cc: Exception -> RecoverableException.
  13760. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13761. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13762. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13763. To make ID static const int
  13764. * src/BtInterestedMessage.h
  13765. (ID_t): Removed.
  13766. (ID): New variable.
  13767. (getId): Made non-const.
  13768. * src/BtPieceMessage.h
  13769. (ID_t): Removed.
  13770. (ID): New variable.
  13771. (getId): Made non-const.
  13772. * src/BtChokeMessage.h
  13773. (ID_t): Removed.
  13774. (ID): New variable.
  13775. (getId): Made non-const.
  13776. * src/BtHaveAllMessage.h
  13777. (ID_t): Removed.
  13778. (ID): New variable.
  13779. (getId): Made non-const.
  13780. * src/BtKeepAliveMessage.h
  13781. (ID_t): Removed.
  13782. (ID): New variable.
  13783. (getId): Made non-const.
  13784. * src/BtHandshakeMessage.h
  13785. (ID): New variable.
  13786. (getId): Made non-const.
  13787. * src/BtSuggestPieceMessage.h
  13788. (ID_t): Removed.
  13789. (ID): New variable.
  13790. (getId): Made non-const.
  13791. * src/BtPortMessage.h
  13792. (ID_t): Removed.
  13793. (ID): New variable.
  13794. (getId): Made non-const.
  13795. * src/AbstractBtMessage.h
  13796. (id): Removed.
  13797. (AbstractBtMessage): Removed id.
  13798. (getId): Removed.
  13799. * src/BtHaveMessage.h
  13800. (ID_t): Removed.
  13801. (ID): New variable.
  13802. (getId): Made non-const.
  13803. * src/BtAllowedFastMessage.h
  13804. (ID_t): Removed.
  13805. (ID): New variable.
  13806. (getId): Made non-const.
  13807. * src/BtCancelMessage.h
  13808. (ID_t): Removed.
  13809. (ID): New variable.
  13810. (getId): Made non-const.
  13811. * src/BtNotInterestedMessage.h
  13812. (ID_t): Removed.
  13813. (ID): New variable.
  13814. (getId): Made non-const.
  13815. * src/BtChokeMessage.h
  13816. (ID_t): Removed.
  13817. (ID): New variable.
  13818. (getId): Made non-const.
  13819. * src/BtRejectMessage.h
  13820. (ID_t): Removed.
  13821. (ID): New variable.
  13822. (getId): Made non-const.
  13823. * src/BtBitfieldMessage.h
  13824. (ID_t): Removed.
  13825. (ID): New variable.
  13826. (getId): Made non-const.
  13827. * src/BtUnchokeMessage.h
  13828. (ID_t): Removed.
  13829. (ID): New variable.
  13830. (getId): Made non-const.
  13831. * src/BtRequestMessage.h
  13832. (ID_t): Removed.
  13833. (ID): New variable.
  13834. (getId): Made non-const.
  13835. * src/BtHaveMessage.h
  13836. (ID_t): Removed.
  13837. (ID): New variable.
  13838. (getId): Made non-const.
  13839. To add --force-truncate command-line option and a check whether
  13840. the file already exists:
  13841. * src/DirectDiskAdaptor.h
  13842. (getFilePath): Made virtual public.
  13843. * src/MultiDiskAdaptor.h
  13844. (File.h): New include.
  13845. (DiskWriterEntry::fileEntry): Made private.
  13846. (DiskWriterEntry::fileExists): New function.
  13847. (DiskWriterEntry::getFileEntry): New function.
  13848. (fileExists): New function.
  13849. (getFilePath): New function.
  13850. * src/TorrentRequestInfo.cc
  13851. (FatalException.h): New include.
  13852. (message.h): New include.
  13853. (RecoverableException.h): New include.
  13854. (execute): Added a check whether file is already exists or not.
  13855. * src/DiskAdaptor.h
  13856. (fileExists): New function.
  13857. (getFilePath): New function.
  13858. * src/main.cc
  13859. (showUsage): Added an explanation of --force-truncate command-line
  13860. option.
  13861. (main): Added --force-truncate command-line option.
  13862. * src/Exception.h
  13863. (setMsg): buf[256] -> buf[1024]
  13864. * src/CopyDiskWriter.h
  13865. (getFilePath): Made public virtual.
  13866. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13867. (fileExists): New function.
  13868. * src/DownloadEngineFactory.cc
  13869. (newTorrentConsoleEngine): Don't open file here.
  13870. * src/message.h
  13871. (EX_FILE_ALREADY_EXISTS): New definition.
  13872. * src/prefs.h
  13873. (PREF_FOECE_TRUNCATE): New definition.
  13874. * src/HttpResponseCommand.cc
  13875. (handleDefaultEncoding): Added a check whether the file already exists.
  13876. * src/SegmentMan.h
  13877. (fileExists): New function.
  13878. (shouldCancelDownloadForSafety): New function.
  13879. * src/FtpNegotiateCommand.cc
  13880. (recvSize): Added a check whether the file already exists.
  13881. * src/AbstractSingleDiskAdaptor.cc
  13882. (File.h): New include.
  13883. (fileExists): New function.
  13884. * src/AbstractSingleDiskAdaptor.h
  13885. (getFilePath): Removed.
  13886. (fileExists): New function.
  13887. * src/SegmentMan.cc
  13888. (fileExists): New function.
  13889. (shouldCancelDownloadForSafety): New function.
  13890. To fix regression bug in torrent downloading:
  13891. * src/DefaultBtRequestFactory.cc
  13892. (doChokedAction): New function.
  13893. * src/DefaultBtRequestFactory.h
  13894. (doChokedAction): New function.
  13895. * src/DefaultBtMessageDispatcher.cc
  13896. (doChokedAction): Do not delete request if its target is in allowed
  13897. fast set.
  13898. * src/DefaultBtInteractive.cc
  13899. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13900. (sendKeepAlive): Send keep alive message even if the outgoing message
  13901. queue is not empty.
  13902. (decideInterest): Simplified the code.
  13903. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13904. it is already called when BtChokeMessage is received from a peer.
  13905. * src/BtRequestFactory.h
  13906. (doChokedAction): New function.
  13907. To clean up code:
  13908. * src/PeerInteractionCommand.h
  13909. (executeInternal): Added virtual keyword explicitly.
  13910. (prepareForRetry): Added virtual keyword explicitly.
  13911. (prepareForNextPeer): Added virtual keyword explicitly.
  13912. (onAbort): Added virtual keyword explicitly.
  13913. * src/RequestSlot.cc
  13914. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13915. * src/BtPieceMessage.cc
  13916. (doReceivedAction): Added a debug log of piece's bitfield.
  13917. * src/Piece.h
  13918. (getBitfieldLength): New function.
  13919. * src/ByteArrayDiskWriter.cc
  13920. (clear): Added buf = 0 to avoid double free corruption.
  13921. * src/FileAllocator.cc
  13922. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13923. Added cp.reset().
  13924. * src/BitfieldMan.h
  13925. (operator=): Rewritten.
  13926. * src/BitfieldMan.cc
  13927. (BitfieldMan): Initialized bitfield, useBitfield.
  13928. * src/PeerConnection.cc
  13929. (receiveMessage): Added a call to socket->readable() after getting
  13930. message length to avoid possible EOF.
  13931. * src/Util.cc
  13932. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13933. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13934. To add an ability to pre-allocate file space:
  13935. * src/DirectDiskAdaptor.h: Rewritten.
  13936. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13937. * src/MultiDiskAdaptor.h: Rewritten.
  13938. * src/DefaultPieceStorage.cc
  13939. (MultiDiskWriter.h): Removed include.
  13940. (PreAllocationDiskWriter.h): Removed include.
  13941. (FileAllocationMonitor.h): New include.
  13942. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13943. (initStorage): Rewritten.
  13944. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13945. * src/FileAllocator.h: New class.
  13946. * src/FileAllocator.cc: New class.
  13947. * src/FileAllocationMonitor.h: New class.
  13948. * src/FileAllocationMonitor.cc: New class.
  13949. * src/ConsoleFileAllocationMonitor.h: New class.
  13950. * src/ConsoleFileAllocationMonitor.cc: New class.
  13951. * src/AbstractSingleDiskAdaptor.h: New class.
  13952. * src/AbstractSingleDiskAdaptor.cc: New class.
  13953. * src/DiskAdaptor.h
  13954. (Directory.h): Removed include.
  13955. (DiskWriter.h): Removed include.
  13956. (FileEntry.h): Removed include.
  13957. (diskWriter): Removed.
  13958. (DiskAdaptor): Removed diskWriter.
  13959. (openFile): Made pure virtual.
  13960. (closeFile): Made pure virtual.
  13961. (openExistingFile): Made pure virtual.
  13962. (initAndOpenFile): Made pure virtual.
  13963. (writeData): Made pure virtual.
  13964. (readData): Made pure virtual.
  13965. (sha1Sum): Made pure virtual.
  13966. (getStoreDir): Returns const reference of storeDir.
  13967. (DiskAdaptorHandle): New type definition.
  13968. * src/main.cc
  13969. (ConsoleFileAllocationMonitor.h): New include.
  13970. (showUsage): Added default value description of -s option.
  13971. Added the description of --file-allocation option.
  13972. (main): Set default value of --file-allocation option to 'none'.
  13973. Added --file-allocation command-line option.
  13974. Setup FileAllocationMonitorFactory.
  13975. * src/FtpInitiateConnectionCommand.cc
  13976. (executeInternal): Removed diskWriter related processing, which was
  13977. moved to FtpNegotiationCommand.cc.
  13978. * src/DirectDiskAdaptor.cc
  13979. (getFilePath): Made non-const.
  13980. * src/CopyDiskAdaptor.h
  13981. (DiskAdaptor.h): Removed include.
  13982. (DiskWriter.h): Removed include.
  13983. (AbstractSingleDiskAdaptor.h): New include.
  13984. (getFilePath): Made non-const. Added virtual keyword.
  13985. (CopyDiskAdaptor): Removed diskWriter.
  13986. (getTempFile): Returns const reference.
  13987. (CopyDiskAdaptorHandle): New type definition.
  13988. * src/ByteArrayDiskWriter.cc
  13989. (clear): Simplified.
  13990. (initAndOpenFile): Rewritten.
  13991. (openFile): Call initAndOpenFile()
  13992. * src/MultiDiskAdaptor.cc: Rewritten.
  13993. * src/DownloadEngineFactory.cc
  13994. (FileAllocator.h): New include.
  13995. (FileAllocationMonitor.h): New include.
  13996. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13997. create DefaultDiskWriter with file allocator.
  13998. * src/DiskWriter.h
  13999. (initAndOpenFile): Added totalLength argument.
  14000. (openFile): Added totalLength argument.
  14001. * src/prefs.h
  14002. (PREF_FILE_ALLOCATION): New definition.
  14003. (V_PREALLOC): New definition.
  14004. (V_NONE): New definition.
  14005. * src/HttpResponseCommand.cc
  14006. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14007. size.
  14008. * src/FtpNegotiateCommand.cc
  14009. (Util.h): New include.
  14010. (recvSize): Open file here.
  14011. * src/Util.h
  14012. (ullitos): New function.
  14013. * src/CopyDiskWriter.h
  14014. (getFilePath): Made non-const.
  14015. * src/DefaultDiskWriter.h
  14016. (Option.h): New include.
  14017. (totalLength): Removed.
  14018. (DefaultDiskWriter): Removed totalLength.
  14019. (initAndOpenFile): Added totalLength argument.
  14020. (DefaultDiskWriterHandle): New type definition.
  14021. (createNewDiskWriter): New function.
  14022. * src/Util.cc
  14023. (ullitos): New function.
  14024. * src/DefaultDiskWriter.cc
  14025. (message.h): New include.
  14026. (FileAllocator.h): New include.
  14027. (prefs.h): New include.
  14028. (Util.h): New include.
  14029. (DefaultDiskWriter): Removed totalLength.
  14030. (initAndOpenFile): Added file allocation.
  14031. (createNewDiskWriter): New function. Just for temporary solution.
  14032. It will be rewritten later.
  14033. * src/DiskAdaptor.cc
  14034. (DiskAdaptor): Removed diskWriter.
  14035. * src/AbstractDiskWriter.cc
  14036. (LogFactory.h): New include.
  14037. (AbstractDiskWriter): Added fileAllocator, logger.
  14038. (openFile): Added totalLength argument.
  14039. * src/AbstractDiskWriter.h
  14040. (FileAllocator.h): New include.
  14041. (Logger.h): New include.
  14042. (fileAllocator): New variable.
  14043. (logger): New variable.
  14044. (openFile): Added totalLength argument. Added virtual keyword
  14045. explicitly.
  14046. (openExistingFile): Added totalLength argument. Added virtual keyword
  14047. explicitly.
  14048. (closeFile): Added virtual keyword explicitly.
  14049. (sha1Sum): Added virtual keyword explicitly.
  14050. (writeData): Added virtual keyword explicitly.
  14051. (readData): Added virtual keyword explicitly.
  14052. (setFileAllocator): New function.
  14053. * src/DefaultPieceStorage.h
  14054. (FileAllocator.h): New include.
  14055. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14056. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14057. * src/FileProgressMonitor.h: New class.
  14058. To compile aria2 on PC-BSD:
  14059. * src/DefaultBtContext.cc
  14060. (libgen.h): New include.
  14061. To fix memory leak:
  14062. * src/Exception.h
  14063. (~Exception): Delete cause. Fixed memory leak.
  14064. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14065. Rewritten a portion of bittorrent implementation:
  14066. * src/BtMessageValidator.h: New class.
  14067. * src/BtBitfieldMessageValidator.h: New class.
  14068. * src/BtHandshakeMessageValidator.h: New class.
  14069. * src/BtRequestMessageValidator.h: New class.
  14070. * src/BtSuggestPieceMessageValidator.h: New class.
  14071. * src/BtAllowedFastMessageValidator.h: New class.
  14072. * src/BtRejectMessageValidator.h: New class.
  14073. * src/BtCancelMessageValidator.h: New class.
  14074. * src/BtPieceMessageValidator.h: New class.
  14075. * src/BtHaveMessageValidator.h: New class.
  14076. * src/BtEventListener.h: New class.
  14077. * src/AbstractBtEventListener.h: New class.
  14078. * src/BtEvent.h: New class.
  14079. * src/BtChokingEvent.h: New class.
  14080. * src/BtChokedEvent.h: New class.
  14081. * src/BtCancelSendingPieceEvent.h: New class.
  14082. * src/BtAbortOutstandingRequestEvent.h: New class.
  14083. * src/Randomizer.h: New class.
  14084. * src/SimpleRandomizer.h: New class.
  14085. * src/BtMessage.h: New class.
  14086. * src/AbstractBtMessage.h: New class.
  14087. * src/SimpleBtMessage.h: New class.
  14088. * src/BtHaveMessage.h: New class.
  14089. * src/BtInterestedMessage.h: New class.
  14090. * src/BtAllowedFastMessage.h: New class.
  14091. * src/BtUnchokeMessage.h: New class.
  14092. * src/BtCancelMessage.h: New class.
  14093. * src/BtNotInterestedMessage.h: New class.
  14094. * src/BtChokeMessage.h: New class.
  14095. * src/BtHaveNoneMessage.h: New class.
  14096. * src/BtHandshakeMessage.h: New class.
  14097. * src/BtSuggestPieceMessage.h: New class.
  14098. * src/BtHaveMessage.h: New class.
  14099. * src/BtPieceMessage.h: New class.
  14100. * src/BtHaveAllMessage.h: New class.
  14101. * src/BtKeepAliveMessage.h: New class.
  14102. * src/BtPortMessage.h: New class.
  14103. * src/BtRejectMessage.h: New class.
  14104. * src/BtBitfieldMessage.h: New class.
  14105. * src/BtRequestMessage.h: New class.
  14106. * src/DefaultBtRequestFactory.h: New class.
  14107. * src/DefaultBtMessageReceiver.h: New class.
  14108. * src/BtInteractive.h: New class.
  14109. * src/BtMessageDispatcher.h: New class.
  14110. * src/DefaultBtMessageDispatcher.h: New class.
  14111. * src/DefaultBtInteractive.h: New class.
  14112. * src/BitfieldManFactory.h: New class.
  14113. * src/HandleRegistry.h: New class.
  14114. * src/BtMessageFactory.h: New class.
  14115. * src/BtMessageReceiver.h: New class.
  14116. * src/DefaultBtMessageFactory.h: New class.
  14117. * src/PeerObject.h: New class.
  14118. * src/BtRequestFactory.h: New class.
  14119. * src/SuggestPieceMessage.h: Removed.
  14120. * src/PortMessage.h: Removed.
  14121. * src/SuggestPieceMessage.h: Removed.
  14122. * src/KeepAliveMessage.h: Removed.
  14123. * src/HandshakeMessage.h: Removed.
  14124. * src/PeerInteraction.h: Removed.
  14125. * src/UnchokeMessage.h: Removed.
  14126. * src/PieceMessage.h: Removed.
  14127. * src/RequestMessage.h: Removed.
  14128. * src/InterestedMessage.h: Removed.
  14129. * src/HaveMessage.h: Removed.
  14130. * src/CancelMessage.h: Removed.
  14131. * src/RejectMessage.h: Removed.
  14132. * src/AllowedFastMessage.h: Removed.
  14133. * src/HaveNoneMessage.h: Removed.
  14134. * src/SimplePeerMessage.h: Removed.
  14135. * src/HaveAllMessage.h: Removed.
  14136. * src/BitfieldMessage.h: Removed.
  14137. * src/PeerMessageFactory.h: Removed.
  14138. * src/NotInterestedMessage.h: Removed.
  14139. * src/ChokeMessage.h: Removed.
  14140. * src/PeerMessage.h: Removed.
  14141. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14142. To know root cause of exception:
  14143. * src/Exception.h
  14144. (cause): New variable.
  14145. (Exception): Added a parameter.
  14146. (getMsg): Return const reference to msg.
  14147. (getCause): New function.
  14148. * src/DlRetryEx.h
  14149. (DlRetryEx): Added a parameter 'cause'.
  14150. Added an overloaded constructor.
  14151. (DlAbortEx): Added a parameter 'cause'.
  14152. Added an overloaded constructor.
  14153. * src/SimpleLogger.cc
  14154. (writeLog): Log nested exception messages recursively.
  14155. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14156. * src/DefaultBtProgressInfoFile.cc
  14157. (load): Fixed memory leak when the infohash doesn't match.
  14158. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14159. * src/DefaultPeerStorage.cc
  14160. (calculateStat): Simplified the code by combining 2 loops into 1.
  14161. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14162. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14163. for BitTorrent download:
  14164. * src/PeerAbstractCommand.cc
  14165. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14166. * src/main.cc:
  14167. (timeoutSpecified): Removed.
  14168. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14169. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14170. * src/TorrentRequestInfo.cc
  14171. (timeoutSpecified): Removed.
  14172. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14173. timeout value.
  14174. * src/prefs.h
  14175. (PREF_BT_TIMEOUT): New definition.
  14176. Delete unused variables:
  14177. * src/TorrentRequestInfo.cc
  14178. (requestInfo): Removed.
  14179. Move setSignalHander to Util::setGlobalSignalHandler:
  14180. * src/TorrentRequestInfo.cc:
  14181. setSignalHander -> Util::setGlobalSignalHandler
  14182. * src/main.cc
  14183. (setSignalHander): Removed.
  14184. (main): setSignalHander -> Util::setGlobalSignalHandler
  14185. * src/Util.h
  14186. (setGlobalSignalHandler): New function.
  14187. * src/Util.cc
  14188. (setGlobalSignalHandler): New function.
  14189. * src/UrlRequestInfo.cc:
  14190. setSignalHander -> Util::setGlobalSignalHandler
  14191. Reset peer status in order to exit gracefully:
  14192. * src/PeerAbstractCommand.cc
  14193. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14194. To fix the bug that causes the number of bytes uploaded is not saved
  14195. to .aria2 file:
  14196. * src/DefaultPeerStorage.h
  14197. (removedPeerSessionDownloadLength): New variable.
  14198. (removedPeerSessionUploadLength): New variable.
  14199. * src/DefaultPeerStorage.cc
  14200. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14201. removedPeerSessionUploadLength(0).
  14202. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14203. through all peers, and then add removedPeerSessionDownloadLength(
  14204. removedPeerSessionUploadLength) to it.
  14205. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14206. (to) the peer to removedPeerSessionDownloadLength
  14207. (removedPeerSessionUploadLength).
  14208. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14209. To add Metalink location option:
  14210. * src/MetalinkRequestInfo.cc
  14211. (execute): Call MetalinkEntry::setLocationPreference()
  14212. * src/main.cc
  14213. (showUsage): Added the help message for --metalink-location option.
  14214. (main): Added --metalink-location option.
  14215. * src/prefs.h
  14216. (PREF_METALINK_LOCATION): New definition.
  14217. * src/MetalinkEntry.cc
  14218. (AddLocationPreference): New function object.
  14219. (setLocationPreference): New function.
  14220. * src/Xml2MetalinkProcessor.cc
  14221. (getResource): Set location attribute to MetalinkResource
  14222. To show URLs to download
  14223. * src/UrlRequestInfo.h
  14224. (printUrls): New function.
  14225. To add multiple <file> Metalink support:
  14226. * src/MetalinkEntry.h
  14227. (MetalinkResources): Removed.
  14228. (setLocationPreference): New function.
  14229. (MetalinkEntryHandle): New type definition.
  14230. (MetalinkEntries): New type definition.
  14231. * src/Xml2MetalinkProcessor.h
  14232. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14233. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14234. (parseFile): Metalinker* -> MetalinkerHandle
  14235. * src/UrlRequestInfo.h
  14236. (execute): RequestInfo* -> RequestInfos
  14237. * src/MetalinkRequestInfo.cc
  14238. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14239. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14240. (execute): RequestInfo* -> RequestInfos
  14241. Added multiple <file> support. Print filename when it is queued.
  14242. * src/MetalinkRequestInfo.h
  14243. (execute): RequestInfo* -> RequestInfos
  14244. (getDownloadEngine): Removed.
  14245. * src/RequestInfo.h
  14246. (RequestInfoHandle): New type definition.
  14247. (RequestInfos): New type definition.
  14248. (execute): RequestInfo* -> RequestInfos
  14249. (getDownloadEngine): Removed.
  14250. * src/MetalinkResource.h
  14251. (MetalinkResourceHandle): New type definition.
  14252. (MetalinkResources): New type definition.
  14253. * src/MetalinkEntry.cc
  14254. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14255. because the element is now of type MetalinkResourceHandle.
  14256. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14257. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14258. (dropUnsupportedResource): Removed the deletion of the elements of
  14259. resources because the element is now of type MetalinkResourceHandle.
  14260. * src/Xml2MetalinkProcessor.cc
  14261. (parseFile): Metalinker* -> MetalinkerHandle
  14262. MetalinkEntry* -> MetalinkEntryHandle
  14263. Removed try-catch block.
  14264. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14265. MetalinkResource* -> MetalinkResourceHandle
  14266. Removed try-catch block.
  14267. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14268. Free result by using xmlXPathFreeObject()
  14269. * src/Metalinker.cc
  14270. (~Metalinker): Removed the deletion of entries.
  14271. MetalinkEntry* -> MetalinkEntryHandle
  14272. (queryEntry): Add multiple <file> Metalink support.
  14273. * src/Metalinker.h
  14274. (MetalinkEntries): Removed.
  14275. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14276. * src/MetalinkProcessor.h
  14277. (parseFile): Metalinker* -> MetalinkerHandle
  14278. Bug fixes:
  14279. * src/PeerChokeCommand.cc
  14280. (execute): cat01->cat02
  14281. * src/DefaultPieceStorage.cc
  14282. (DefaultPieceStorage): Added diskAdaptor(0)
  14283. * src/TrackerWatcherComand.cc:
  14284. (execute): Use btAnnounce->noMoreAnnounce()
  14285. to determin whether the function returns true or not.
  14286. * src/TrackerUpdateCommand.cc:
  14287. (execute): Use btAnnounce->noMoreAnnounce()
  14288. to determin whether the function returns true or not.
  14289. * src/FtpConnection.cc
  14290. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14291. This is the fix of the busy loop bug.
  14292. * src/DownloadCommand.cc
  14293. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14294. cached PeerStat.
  14295. The value of "name" entry in torrent file is now set by
  14296. *DiskAdaptor::setTopDir(...) methods.
  14297. * src/MultiDiskAdaptor.h
  14298. (topDir): New variable.
  14299. (setTopDir): New function.
  14300. (getTopDir): New function.
  14301. * src/MultiDiskAdaptor.cc
  14302. (getFilePath): Concat storDir, "/" and topDir.
  14303. (mkdir): Use getFilePath() to get the directory path for output.
  14304. * src/DefaultPieceStorage.cc
  14305. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14306. CopyDiskAdaptor.
  14307. * src/CopyDiskAdaptor.h
  14308. (topDir): New variable.
  14309. (setTopDir): New function.
  14310. (getTopDir): New function.
  14311. * src/CopyDiskAdaptor.cc
  14312. (fixFilename): Updated.
  14313. Misc
  14314. * src/UrlRequestInfo.h
  14315. (e): Removed.
  14316. (UrlRequestInfo): Removed e.
  14317. (getDownloadEngine): Removed.
  14318. * src/UrlRequestInfo.cc
  14319. (handler): Rewritten.
  14320. (printUrls): New function.
  14321. (execute): Call printUrls().
  14322. * src/HandshakeMessage.cc
  14323. (check): peerinteraction->getBtContext() -> btContext
  14324. * src/PeerInteraction.h
  14325. (getBtContext): Removed.
  14326. * src/TorrentRequestInfo.h
  14327. (execute): RequestInfo* -> RequestInfos
  14328. (getDownloadEngine): Removed.
  14329. * src/TorrentRequestInfo.cc
  14330. (haltRequested): Removed.
  14331. (btHaltRequested): New variable.
  14332. (torrentHandler): haltRequested -> btHaltRequested
  14333. (execute): RequestInfo* -> RequestInfos
  14334. * src/TorrentConsoleDownloadEngine.cc
  14335. (afterEachIteration): haltRequested -> btHaltRequested.
  14336. * src/ConsoleDownloadEngine.h
  14337. (initStatistics): Added virtual.
  14338. (calculateStatistics): Added virtual.
  14339. (onEndOfRun): Added virtual.
  14340. (afterEachIteration): Added virtual.
  14341. * src/ConsoleDownloadEngine.cc
  14342. (haltRequested): New variable.
  14343. (afterEachIteration): New function.
  14344. * src/main.cc
  14345. (requestInfo): Removed.
  14346. * src/SegmentMan.cc
  14347. (findSlowerSegmentEntry): Refactored.
  14348. * Release 0.9.0
  14349. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14350. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14351. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14352. * src/TorrentMan.h: Removed.
  14353. * src/TorrentMan.cc: Removed.
  14354. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14355. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14356. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14357. * src/PeerAbstractCommand.cc: Use btRuntime.
  14358. * src/BtContextAwareCommand.h: New class.
  14359. * src/FileEntry.h: Added accessor methods for following variables.
  14360. (path): Made private.
  14361. (length): Made private.
  14362. (offset): Made private.
  14363. (extracted): Made private.
  14364. (requested): Made private.
  14365. (FileEntries): New definition.
  14366. (FileEntryHandle): New definition.
  14367. * src/FileEntry.cc: New file.
  14368. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14369. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14370. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14371. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14372. * src/PieceStorage.h: New file.
  14373. * src/PeerInteractionCommand.h: Use btContext.
  14374. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14375. btRuntime.
  14376. * src/DefaultBtProgressInfoFile.h: New file.
  14377. * src/DefaultBtProgressInfoFile.cc: New file.
  14378. * src/File.cc
  14379. (Util.h): New include.
  14380. (mkdirs): New function.
  14381. * src/MultiDiskAdaptor.h
  14382. (mkdir): New function.
  14383. * src/PeerListProcessor.h
  14384. (Peers): Removed.
  14385. * src/PeerInteraction.h
  14386. (torrentMan): Removed.
  14387. (btContext): New variable.
  14388. (peerStorage): New variable.
  14389. (pieceStorage): New variable.
  14390. (btAnnounce): New variable.
  14391. (getTorrentMan): Removed.
  14392. (getBtContext): New function.
  14393. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14394. btAnnounce.
  14395. * src/HandshakeMessage.h
  14396. (TorrentMan.h): Removed.
  14397. * src/HandshakeMessage.cc: Use btContext.
  14398. * src/DefaultBtAnnounce.cc: New file.
  14399. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14400. * src/DefaultPieceStorage.cc: New file.
  14401. * src/DefaultBtContext.h: New file.
  14402. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14403. Use the accessor methods of FileEntry.
  14404. * src/CookieBox.cc: Updated to use Util::slice().
  14405. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14406. * src/common.h (SharedHandle.h): New include.
  14407. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14408. pieceStorage.
  14409. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14410. * src/DiskAdaptor.h
  14411. (topDir): Removed.
  14412. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14413. (setTopDir): Removed.
  14414. (getTopDir): Removed.
  14415. * src/BtContext.h: New file.
  14416. * src/DefaultPeerStorage.h: New file.
  14417. * src/PieceMessage.h (TorrentMan.h): Removed.
  14418. * src/RequestMessage.h (TorrentMan.h): Removed.
  14419. * src/TorrentDownloadEngine.h
  14420. (uploadLength): New variable.
  14421. (btContext): New variable.
  14422. (btRuntime): New variable.
  14423. (pieceStorage): New variable.
  14424. (peerStorage): New variable.
  14425. (btAnnounce): New variable.
  14426. (btProgressInfoFile): New variable.
  14427. (torrentMan): Removed.
  14428. (setBtContext): New function.
  14429. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14430. peerStorage, btAnnounce, btProgressInfoFile.
  14431. * src/Piece.h
  14432. (toString): New function.
  14433. (Pieces): New type definition.
  14434. * src/Peer.h
  14435. (active): New variable.
  14436. (Peer): Added active.
  14437. (activate): Set active to true.
  14438. (deactivate): Set active to false.
  14439. (isActive): New function.
  14440. (Peers): New type definition.
  14441. * src/DirectDiskAdaptor.cc
  14442. (getFilePath): Use the accessor methods of FileEntry.
  14443. * src/TorrentConsoleDownloadEngine.h
  14444. (afterEachIteration): New function.
  14445. * src/TorrentConsoleDownloadEngine.cc
  14446. (haltRequested): New variable.
  14447. (sendStatistics): Use pieceStorage, btRuntime.
  14448. (afterEachIteration): New function.
  14449. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14450. * src/Directry.h
  14451. (Directory): New function.
  14452. (DirectoryHandle): New type definition.
  14453. * src/BtProgressInfoFile.h: New file.
  14454. * src/RequestMessage.cc: Use pieceStorage.
  14455. * src/BtRuntime.h: New file.
  14456. * src/DefaultBtContext.cc: New file.
  14457. * src/BitfieldMan.h
  14458. (getCompletedLength): New function(private).
  14459. (getCompletedLength): New function.
  14460. (getFilteredCompletedLength): New function.
  14461. * src/BitfieldMan.h
  14462. (getCompletedLength): New function(private).
  14463. (getCompletedLength): New function.
  14464. (getFilteredCompletedLength): New function.
  14465. * src/MultiDiskAdaptor.cc
  14466. (mkdir): New function.
  14467. (openFile): Call mkdir().
  14468. (initAndOpenFile): Call mkdir().
  14469. * src/CancelMessage.h
  14470. (TorrentMan.h): Removed.
  14471. * src/RejectMessage.h
  14472. (TorrentMan.h): Removed.
  14473. * src/DownloadEngineFactory.cc
  14474. (DefaultPieceStorage.h): New include.
  14475. (DefaultPeerStorage.h): New include.
  14476. (DefaultBtAnnounce.h): New include.
  14477. (DefaultBtProgressInfoFile.h): New include.
  14478. (newTorrentConsoleEngine): Rewritten.
  14479. * src/ShareRatioSeedCriteria.h
  14480. (torrentMan): Removed.
  14481. (btContext): New variable.
  14482. (peerStorage): New variable.
  14483. (btRuntime): New variable.
  14484. (evaluate): Use btContext, btRuntime, peerStorage.
  14485. * src/AnnounceTier.h: New file.
  14486. * src/BtAnnounce.h: New file.
  14487. * src/BtRegistry.h: New file.
  14488. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14489. * src/PeerConnection.h (TorrentMan.h): Removed.
  14490. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14491. * src/Util.h
  14492. (slice): Added an argument.
  14493. * src/Util.cc
  14494. (slice): Added an argument to control whether trim is made or not.
  14495. * src/PeerStorage.h: New file.
  14496. * src/BtRegistry.cc: New file.
  14497. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14498. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14499. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14500. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14501. * src/TorrentRequestInfo.h
  14502. (e): Removed.
  14503. (showFileEntry): Added an argument.
  14504. (getDownloadEngine): Return 0.
  14505. * src/DefaultBtAnnounce.h: New file.
  14506. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14507. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14508. * src/PeerMessageFactory.h
  14509. (btContext): New variable.
  14510. (pieceStorage): New variable.
  14511. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14512. btAnnounce.
  14513. * src/DiskAdaptor.cc
  14514. (DiskAdaptor): Removed topDir.
  14515. (~DiskAdaptor): Removed topDir.
  14516. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14517. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14518. * src/File.h (mkdirs): New function.
  14519. * src/DefaultPeerStorage): New file.
  14520. * src/DownloadEngineFactory.h
  14521. (newTorrentConsoleEngine): Use btContext.
  14522. * src/BtContextAwareCommand.cc: New file.
  14523. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14524. * src/PeerMessage.h
  14525. (btContext): New variable.
  14526. (peerStorage): New variable.
  14527. (pieceStorage): New variable.
  14528. (setBtContext): New function.
  14529. * src/Directry.cc
  14530. (Directory): New function.
  14531. (createDir): Do nothing if name.size() == 0.
  14532. * src/AnnounceList.h
  14533. (AnnounceTier): Removed.
  14534. (AnnounceTiers): Removed.
  14535. * src/DefaultPieceStorage.h: New file.
  14536. * src/Piece.cc (toString): New function.
  14537. To fix typo:
  14538. * src/main.cc (showVersion): Fixed typo.
  14539. To fix compile warning:
  14540. * src/DelegatingPeerListProcessor.cc
  14541. (canHandle): Added "return false".
  14542. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14543. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14544. make the process of announce request testable.
  14545. * src/TrackerWatcherCommand.h
  14546. (TimeA2.h): Removed.
  14547. (interval): Removed.
  14548. (checkPoint): Removed.
  14549. (createRequestCommand): Added an argument 'url'.
  14550. (TrackerWatherCommand): Removed interval.
  14551. (createCommand): New function.
  14552. * src/DownloadEngineFactory.cc
  14553. (newTorrentConsoleEngine): Updated according to the changes in
  14554. TrackerWatherCommand.
  14555. * src/TorrentMan.cc
  14556. (DelegatingPeerListProcessor.h): New includes.
  14557. (TorrentMan): Added the initialization of announceInterval.
  14558. (isStoppedAnnounceReady): New function.
  14559. (isCompletedAnnounceReady): New function.
  14560. (isDefaultAnnounceReady): New function.
  14561. (isAnnounceReady): New function.
  14562. (getAnnounceUrl): New function.
  14563. (announceStart): New function.
  14564. (announceFailure): New function.
  14565. (announceSuccess): New function.
  14566. (isAllAnnounceFailed): New function.
  14567. (resetAnnounce): New function.
  14568. (processAnnounceResponse): New function.
  14569. (needMorePeerConnection): New function.
  14570. (noMoreAnnounce): New function.
  14571. * src/TrackerUpdateCommand.h
  14572. (getTrackerResponse): int->size_t
  14573. * src/TorrentMan.h
  14574. (isStoppedAnnounceReady): New function.
  14575. (isCompletedAnnounceReady): New function.
  14576. (isDefaultAnnounceReady): New function.
  14577. (announceInterval): New variable.
  14578. (isAnnounceReady): New function.
  14579. (getAnnounceUrl): New function.
  14580. (announceStart): New function.
  14581. (announceFailure): New function.
  14582. (announceSuccess): New function.
  14583. (isAllAnnounceFailed): New function.
  14584. (resetAnnounce): New function.
  14585. (processAnnounceResponse): New function.
  14586. (needMorePeerConnection): New function.
  14587. (noMoreAnnounce): New function.
  14588. * src/TrackerWatcherCommand.cc
  14589. (TrackerWatherCommand): Removed interval and checkPoint.
  14590. (execute): Rewritten.
  14591. (createCommand): New function.
  14592. (createRequestCommand): Rewritten.
  14593. * src/TrackerUpdateCommand.cc
  14594. (MetaFileUtil.h): Removed.
  14595. (DelegatingPeerListProcessor.h): Removed.
  14596. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14597. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14598. Request -> RequestHandle:
  14599. * src/HttpResponseCommand.h: Request->RequestHandle
  14600. * src/AbstractCommand.cc: Request->RequestHandle
  14601. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14602. * src/HttpRequestCommand.cc: Request->RequestHandle
  14603. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14604. * src/AbstractCommand.h: Request->RequestHandle
  14605. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14606. * src/HttpResponseCommand.cc: Request->RequestHandle
  14607. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14608. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14609. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14610. * src/HttpConnection.h: Request->RequestHandle
  14611. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14612. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14613. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14614. * src/DownloadCommand.h: Request->RequestHandle
  14615. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14616. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14617. * src/HttpRequestCommand.h: Request->RequestHandle
  14618. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14619. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14620. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14621. * src/HttpDownloadCommand.h: Request->RequestHandle
  14622. * src/FtpConnection.cc: Request->RequestHandle
  14623. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14624. * src/UrlRequestInfo.cc: Request->RequestHandle
  14625. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14626. * src/HttpConnection.h: Request->RequestHandle
  14627. * src/DownloadCommand.cc: Request->RequestHandle
  14628. * src/FtpConnection.h: Request->RequestHandle
  14629. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14630. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14631. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14632. * src/Request.h
  14633. (SharedHandle.h): New include.
  14634. (RequestHandle): New type definition.
  14635. (Requests): Redefined.
  14636. To add MULTITRACKER support:
  14637. * src/TrackerWatcherCommand.h
  14638. (createRequestCommand): New function.
  14639. * src/DownloadEngineFactory.cc
  14640. (newTorrentConsoleEngine): Removed req.
  14641. * src/prefs.h
  14642. (PREF_TRACKER_MAX_TRIES): New definition.
  14643. * src/TorrentMan.cc
  14644. (TorrentMan): Removed req. Added trackerNumTry.
  14645. (~TorrentMan): Removed req.
  14646. (setupInternal1): Added announceList.
  14647. * src/TorrentRequestInfo.cc
  14648. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14649. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14650. * src/main.cc
  14651. (main): Added PREF_TRACKER_MAX_TRIES.
  14652. * src/TorrentMan.h
  14653. (Request.h): Removed.
  14654. (AnnounceList.h): New include.
  14655. (trackerNumTry): New variable.
  14656. (req): Removed.
  14657. (announceList): New variable.
  14658. * src/TrackerWatcherCommand.cc
  14659. (execute): Rewritten.
  14660. (createRequestCommand): New function.
  14661. * src/TrackerUpdateCommand.cc
  14662. (execute): Updated with the use of AnnounceList.
  14663. * src/AnnounceList.cc: New class.
  14664. * src/AnnounceList.h: New class.
  14665. To fix typo:
  14666. * src/prefs.h
  14667. (PREF_MAX_TRIES): max_try->max_tries
  14668. To not to decode "+" as space in URL decode:
  14669. * src/Util.cc
  14670. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14671. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14672. To add timeout to async name resolution:
  14673. * src/AbstractCommand.h
  14674. (nameResolveFinished): New function. This is not elegant way. It needs
  14675. to be more refined.
  14676. (nameResolverCheck): New variable.
  14677. * src/AbstractCommand.cc
  14678. (AbstractCommand): Added nameResolverCheck.
  14679. (execute): Added the check whether the name resolution has finished.
  14680. (setNameResolverCheck): Set nameResolverCheck to true.
  14681. (disableNameResolverCheck): Set nameResolverCheck to false.
  14682. (nameResolverFinished): New function.
  14683. * src/FtpInitiateConnectionCommand.h
  14684. (nameResolverFinished): New function.
  14685. * src/FtpInitiateConnectionCommand.cc
  14686. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14687. * src/HttpInitiateConnectionCommand.h
  14688. (nameResolverFinished): New function.
  14689. * src/HttpInitiateConnectionCommand.cc
  14690. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14691. * src/prefs.h
  14692. (PREF_DNS_TIMEOUT): New definition.
  14693. * src/main.cc
  14694. (main): Added PREF_DNS_TIMEOUT.
  14695. To add the support for a non-compact response from a tracker:
  14696. * src/PeerListProcessor.h: New class.
  14697. * src/DefaultPeerListProcessor.h: New class.
  14698. * src/DefaultPeerListProcessor.cc: New class.
  14699. * src/CompactPeerListProcessor.h: New class.
  14700. * src/CompactPeerListProcessor.cc: New class.
  14701. * src/DelegatingPeerListProcessor.h: New class.
  14702. * src/DelegatingPeerListProcessor.cc: New class.
  14703. * src/TorrentMan.cc
  14704. (addPeer): New function(overload).
  14705. (addPeer): Delete unused peers only when new peer is added.
  14706. * src/TorrentMan.h
  14707. (PeerListProcessor.h): Included.
  14708. (Peers): Removed.
  14709. (addPeer): New function(overload).
  14710. * src/TrackerUpdateCommand.cc
  14711. (netinet/in.h): Removed.
  14712. (DelegatingPeerListProcessor.h): Included.
  14713. (execute): Updated to use DelegatingPeerListProcessor.
  14714. To fix the memory leak in TorrentMan::peers:
  14715. * src/PeerAbstractCommand.cc
  14716. (onAbort): Added peer->resetStatus().
  14717. * src/Peer.h
  14718. (resetStatus): Made public.
  14719. To improve the precision of the speed calculation:
  14720. * src/SpeedCalc.h
  14721. (nextInterval): New variable.
  14722. * src/SpeedCalc.cc
  14723. (reset): Added nextInterval.
  14724. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14725. (changeSw): Set nextInterval to 15 seconds relative to the current
  14726. instant time.
  14727. * src/main.cc
  14728. (showVersion): Updated.
  14729. (showUsage): Updated.
  14730. * Release 0.8.1
  14731. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14732. * src/main.cc
  14733. (showUsage): Commented out --min-segment-size option.
  14734. (main): Commented out --min-segment-size option.
  14735. * Release 0.8.0
  14736. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14737. * src/*.{h,cc}:
  14738. Added an exception to the license which allows linking with OpenSSL.
  14739. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14740. * src/AbstractCommand.cc
  14741. (execute): Check whether the download has finished before checking
  14742. socket status.
  14743. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14744. Do not exit even if no segment is available.
  14745. * src/prefs.h
  14746. (PREF_STARTUP_IDLE_TIME): New definition.
  14747. * src/PeerInteractionCommand.cc
  14748. (executeInternal): Removed max speed limit. Because it performs bad.
  14749. (receiveMessages): Added max speed limit. This was better than above,
  14750. but still a little bit to be desired. Sometimes the download speed
  14751. became much faster than I specified.
  14752. * src/SpeedCalc.h
  14753. (start): New variable.
  14754. (accumulatedLength): New variable.
  14755. (getAvgSpeed): New function.
  14756. * src/SpeedCalc.cc
  14757. (reset): Added start, accumulatedLength.
  14758. (update): Added calculation of an average speed.
  14759. (getAvgSpeed): New function.
  14760. * src/DownloadCommand.h
  14761. (sw): Removed.
  14762. * src/main.cc
  14763. (main): Added PREF_STARTUP_IDLE_TIME.
  14764. * src/PeerStat.h
  14765. (STATUS): Added REQUEST_IDLE.
  14766. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14767. (getAvgDownloadSpeed): New function
  14768. (requestIdle): New function.
  14769. * src/SegmentMan.h
  14770. (SegmentEntryHandle): New type definition.
  14771. (SegmentEntries): Now holds SegmentEntryHandle.
  14772. (findSlowerSegmentEntry): New funtion.
  14773. * src/SegmentMan.cc
  14774. (save): Updated according to the changes in SegmentEntries.
  14775. (read): Updated according to the changes in SegmentEntries.
  14776. (FindSegmentEntryByIndex): Updated according to the changes in
  14777. SegmentEntries.
  14778. (FindSegmentEntryByCuid): Updated according to the changes in
  14779. SegmentEntries.
  14780. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14781. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14782. Renamed uitr as itr.
  14783. (findSlowerSegmentEntry): New function.
  14784. (getSegment): Updated according to the changes in SegmentEntries.
  14785. Added the feature that cancels the segment with slow server and fast
  14786. one takes it over.
  14787. (cancelSegment): Updated according to the changes in SegmentEntries.
  14788. (getDownloadLength): Updated according to the changes in
  14789. SegmentEntries.
  14790. (init): Assigned 0 to bitfield after deleting it.
  14791. * src/DownloadCommand.cc
  14792. (STARTUP_IDLE_TIME): Removed.
  14793. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14794. * src/PeerChokeCommand.cc
  14795. (optUnchokingPeer): Updated according to the changes in Peer.
  14796. (ResetDelta): Removed.
  14797. (UploadFaster): Updated according to the changes in Peer.
  14798. (DownloadFaster): Updated according to the changes in Peer.
  14799. (execute): I clarify the meaning of "upload" and "download" here.
  14800. "upload" means the transfer from localhost to remote host.
  14801. "download" means the transfer from remote host to localhost.
  14802. Based on this rule, I swapped orderByUploadRate and
  14803. orderByDownloadRate.
  14804. * src/PeerInteractionCommand.cc
  14805. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14806. (executeInternal): Removed the argument of
  14807. peerInteraction->sendMessages().
  14808. (receiveMessages): Rewritten download speed limit.
  14809. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14810. * src/HttpResponseCommand.cc
  14811. (handleDefaultEncoding): If file size is unknown in torrent request,
  14812. do not call segmentMan->initBitfield() here.
  14813. Disabled persistent connection feature in torrent request.
  14814. * src/UrlRequestInfo.h
  14815. (UrlRequestInfo): Removed const qualifier from option.
  14816. * src/TorrentMan.h
  14817. (TransferStat): New class.
  14818. (deltaDownloadLength): Removed.
  14819. (deltaUploadLength): Removed.
  14820. (addDeltaDownloadLength): Removed.
  14821. (getDeltaDownloadLength): Removed.
  14822. (resetDeltaDownloadLength): Removed.
  14823. (addDeltaUploadLength): Removed.
  14824. (getDeltaUploadLength): Removed.
  14825. (resetDeltaUploadLength): Removed.
  14826. (addActivePeer): Added peer->activate().
  14827. (deleteActivePeer): Added peer->deactivate().
  14828. (calculateStat): New function.
  14829. * src/TorrentMan.cc
  14830. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14831. (calculateStat): New function.
  14832. * src/PeerInteraction.h
  14833. (uploadLimit): Removed.
  14834. (option): New variable.
  14835. (setUploadLimit): Removed.
  14836. (getUploadSpeed): Removed.
  14837. (sendMessages): Removed the argument "currentUploadSpeed".
  14838. * src/PeerInteraction.cc
  14839. (prefs.h): Included.
  14840. (PeerInteraction): Removed uploadLimit. Added option.
  14841. (sendMessages): Rewritten upload speed limit.
  14842. (sendHandshake): Removed the argument from sendMessages().
  14843. (sendBitfield): Removed the argument from sendMessages().
  14844. * src/PeerAbstractCommand.cc
  14845. (execute): Commented out the portion of upload limit.
  14846. (onAbort): Removed peer->resetStatus().
  14847. * src/TorrentRequestInfo.cc
  14848. (timeoutSpecified): Declared extern.
  14849. (execute): Set timeout to 180 if timeout is not specified by.
  14850. command-line.
  14851. * src/PieceMessage.cc
  14852. (receivedAction): Added peer->updateDownloadLength().
  14853. Removed peer->addPeerUpload().
  14854. Removed torrentMan->addDeltaDownloadLength().
  14855. (send): Added peer->updateUploadLength().
  14856. Removed peer->addPeerDownload().
  14857. Removed torrentMan->addDeltaUploadLength().
  14858. * src/main.cc
  14859. (timeoutSpecified): New variable.
  14860. (main): Set timeoutSpecified to false.
  14861. If the command-line option "--upload-limit" is specified, then
  14862. timeoutSpecified is set to true. This option will remain in the next
  14863. release, but be deprecated in the future release.
  14864. * src/TorrentRequestInfo.h
  14865. (TorrentRequestInfo): Removed const qualifier from op.
  14866. * src/PeerStat.h
  14867. (uploadSpeed): New variable.
  14868. (PeerStat): Added default value to cuid.
  14869. (calculateUploadSpeed): New function.
  14870. (updateUploadLength): New function.
  14871. (getMaxUploadSpeed): New function.
  14872. (getAvgUploadSpeed): New function.
  14873. (reset): Added uploadSpeed. Set status to IDLE.
  14874. * src/TorrentDownloadEngine.h
  14875. (cp): Declared as Time.
  14876. (sessionDownloadLengthArray): Removed.
  14877. (sessionUploadLengthArray): Removed.
  14878. (currentCp): Removed.
  14879. (lastCalcStat): New variable
  14880. (lastElapsed): Removed.
  14881. (sessionDownloadLength): Removed.
  14882. (calculateStat): New function.
  14883. * src/TorrentDownloadEngine.cc
  14884. (initStatistics): Removed lastElapsed, cp[],
  14885. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14886. currentCp, sessionDownloadLength.
  14887. Added cp.reset() and lastCalcStat.reset().
  14888. (calculateSpeed): Changed the name of the argument.
  14889. (calculateStatistics): Rewritten.
  14890. (calculateStat): New function.
  14891. * src/Peer.h
  14892. (PeerStat.h): Included.
  14893. (peerUpload): Removed.
  14894. (peerDownload): Removed.
  14895. (peerStat): New variable.
  14896. (sessionUploadLength): New variable.
  14897. (sessionDownloadLength): New variable.
  14898. (deltaUpload): Removed.
  14899. (deltaDownload): Removed.
  14900. (resetStatus): Made private.
  14901. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14902. Removed peerUpload, peerDownload.
  14903. (updateUploadLength): New function.
  14904. (addDeltaUpload): Removed.
  14905. (updateDownloadLength): New function.
  14906. (resetDeltaUpload): Removed.
  14907. (getDeltaUpload): Removed.
  14908. (addDeltaDownload): Removed.
  14909. (calculateUploadSpeed): New function.
  14910. (resetDeltaDownload): Removed.
  14911. (getDeltaDownload): Removed.
  14912. (calculateDownloadSpeed): New function.
  14913. (getSessionUploadLength): New function.
  14914. (getSessionDownloadLength): New function.
  14915. (activate): New function.
  14916. (deactivate): New function.
  14917. (addPeerUpload): Removed.
  14918. (setPeerUpload): Removed.
  14919. (getPeerUpload): Removed.
  14920. (addPeerDownload): Removed.
  14921. (setPeerDownload): Removed.
  14922. (getPeerDownload): Removed.
  14923. * src/Peer.cc
  14924. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14925. * src/MetalinkRequestInfo.h
  14926. (MetalinkRequestInfo): Removed const qualifier from op.
  14927. * src/RequestInfo.h
  14928. (op): Removed const qualifier.
  14929. (RequestInfo): Removed const qualifier from op.
  14930. * src/prefs.h
  14931. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14932. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14933. * src/PeerInteractionCommand.cc
  14934. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14935. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14936. * src/PeerInteraction.cc
  14937. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14938. * src/main.cc
  14939. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14940. Added the description of "--max-download-limit" option.
  14941. Removed the description of "--upload-limit" option.
  14942. Added the description of "--max-upload-limit" option.
  14943. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14944. Added "--max-download-limit" option and "--max-upload-limit" option.
  14945. Added the warning message if "--upload-limit" option is used.
  14946. * src/DownloadCommand.cc
  14947. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14948. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14949. To rewrite segment download mechanism for HTTP/FTP download.
  14950. Use BitfieldMan to manage segment download.
  14951. * src/HttpResponseCommand.h
  14952. (executeInternal): Pass the reference of segment.
  14953. * src/AbstractCommand.cc
  14954. (prepareForRetry): Call segmentMan->cancelSegment here.
  14955. (onAbort): Call segmentMan->cancelSegment here.
  14956. * src/HttpDownloadCommand.cc
  14957. (prepareForNextSegment): New function.
  14958. * src/DownloadEngineFactory.cc
  14959. (newConsoleEngine): Removed splitter.
  14960. (newTorrentConsoleEngine): Removed splitter.
  14961. * src/Request.h
  14962. (segment): Renamed from seg.
  14963. * src/FtpInitiateConnectionCommand.h
  14964. (executeInternal): Pass the reference of segment.
  14965. * src/AbstractCommand.h
  14966. (executeInternal): Pass the reference of segment.
  14967. * src/pref.h
  14968. (PREF_SEGMENT_SIZE): New definition.
  14969. * src/HttpProxyRequestCommand.h
  14970. (executeInternal): Pass the reference of segment.
  14971. * src/HttpResponseCommand.cc
  14972. (checkResponse): Allowed status 206 when a request range starts 0.
  14973. (handleDefaultEncoding): Rewritten the code related to Segment.
  14974. (handleOtherEncoding): Rewritten the code related to Segment.
  14975. * src/SegmentMan.h
  14976. (SegmentEntry): New class.
  14977. (SegmentEntries): New type definition.
  14978. (bitfield): New variable.
  14979. (usedSegmentEntries): New variable.
  14980. (onNullBitfield): New function.
  14981. (checkoutSegment): New function.
  14982. (segments): Removed.
  14983. (splitter): Removed.
  14984. (unregisterId): Removed.
  14985. (getSegment): New function(overload)
  14986. (getDownloadedSize): Removed.
  14987. (cancelSegment): New function.
  14988. (completeSegment): New function.
  14989. (initBitfield): New function.
  14990. (hasSegment): New function.
  14991. (getDownloadLength): New function.
  14992. * src/BitfieldMan.h
  14993. (getStartIndex): New function.
  14994. (getEndIndex): New function.
  14995. (getMissingUnusedIndex): New function(overload).
  14996. (getSparseMissingUnusedIndex): New function.
  14997. * src/BitfieldMan.cc
  14998. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14999. (getMissingUnusedIndex): New function(overload).
  15000. (Range): New class.
  15001. (getStartIndex): New function.
  15002. (getEndIndex): New function.
  15003. (getSparseMissingUnusedIndex): New function.
  15004. (isBitSetInternal): Return false if the given index is less than 0.
  15005. * src/HttpInitiateConnectionCommand.h
  15006. (executeInternal): Pass the reference of segment.
  15007. * src/FtpNegotiateCommand.h
  15008. (executeInternal): Pass the reference of segment.
  15009. * src/FtpNegotiateCommand.cc
  15010. (recvSize): Initialize bitfield here.
  15011. * src/FtpTunnelResponseCommand.h
  15012. (executeInternal): Pass the reference of segment.
  15013. * src/HttpConnection.cc
  15014. (createRequest): Rewritten range header processing.
  15015. * src/DownloadCommand.h
  15016. (executeInternal): Pass the reference of segment.
  15017. (prepareForRetry): Removed.
  15018. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15019. function.
  15020. * src/main.cc
  15021. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15022. * src/SegmentMan.cc
  15023. (SegmentMan): Added bitfield. Removed splitter.
  15024. (~SegmentMan): Added bitfield. Removed splitter.
  15025. (unregisterId): Removed.
  15026. (getSegment): Rewritten.
  15027. (updateSegment): Rewritten.
  15028. (save): Rewritten.
  15029. (read): Rewritten.
  15030. (finished): Rewritten.
  15031. (getDownloadedSize): Removed.
  15032. (initBitfield): New function.
  15033. (FindSegmentEntryByIndex): New function object.
  15034. (FindSegmentEntryByCuid): New function object.
  15035. (checkoutSegment): New function.
  15036. (onNullBitfield): New function.
  15037. (getSegment): New function(overload).
  15038. (CancelSegment): New function object.
  15039. (cancelSegment): New function.
  15040. (completeSegment): New function.
  15041. (hasSegment): New function.
  15042. (getDownloadLength): New function.
  15043. * src/FtpInitiateConnectionCommand.cc
  15044. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15045. * src/Segment.h: Rewritten.
  15046. * src/Segment.cc (operator<<): New function.
  15047. * src/HttpDownloadCommand.h
  15048. (prepareForNextSegment): New function.
  15049. * src/Request.cc
  15050. (resetUrl): Made segment null.
  15051. * src/DownloadEngine.cc
  15052. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15053. * src/HttpProxyRequestCommand.h
  15054. (executeInternal): Pass the reference of segment.
  15055. * src/DownloadCommand.cc
  15056. (executeInternal): Rewritten the code related to Segment.
  15057. (prepareForRetry): Removed.
  15058. (prepareForNextSegment): Rewritten.
  15059. * src/FtpTunnelResponseCommand.h
  15060. (executeInternal): Pass the reference of segment.
  15061. To add HTTP 1.1 persistent connection support(experimental)
  15062. * src/HttpRequestCommand.cc
  15063. (executeInternal): Disable keep alive if it is disabled by
  15064. configuration.
  15065. * src/Request.h
  15066. (keepAlive): New variable.
  15067. (isKeepAlive): New function.
  15068. (setKeepAlive): New function.
  15069. * src/pref.h
  15070. (PREF_HTTP_KEEP_ALIVE): New definition.
  15071. * src/HttpResponseCommand.cc
  15072. (executeInternal): Check the remote server supports keep alive.
  15073. * src/HttpConnection.cc
  15074. (createRequest): Send "Connection: close" only if keep alive is
  15075. disabled.
  15076. * src/main.cc
  15077. (main):
  15078. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15079. To add max download speed limit:
  15080. * src/pref.h
  15081. (PREF_MAX_SPEED_LIMIT): New definition.
  15082. * src/PeerInteractionCommand.cc
  15083. (executeInternal): Added max download speed limit. Not tested yet.
  15084. * src/SegmentMan.h
  15085. (PeerStats): New type definition.
  15086. (peerStats): New variable.
  15087. (registerPeerStat): New function.
  15088. (FindPeerStat): New function object.
  15089. (getPeerStat): New function.
  15090. (calculateDownloadSpeed): New function.
  15091. * src/SpeedCalc.h: New class.
  15092. * src/SpeedCalc.cc: New class.
  15093. * src/main.cc
  15094. (main):
  15095. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15096. download speed is not restricted).
  15097. * src/PeerStat.h: New class.
  15098. * src/SegmentMan.cc
  15099. (registerPeerStat): New function.
  15100. (calculateDownloadSpeed): New function.
  15101. * src/DownloadCommand.cc
  15102. (STARTUP_IDLE_TIME): New definition.
  15103. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15104. downloadStart.
  15105. (~DownloadCommand): Call peerStat->downloadStop.
  15106. (executeInternal): Added download speed limitter. Rewritten lowest
  15107. speed limitter.
  15108. * src/HttpConnection.cc
  15109. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15110. * src/AbstractCommand.cc
  15111. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15112. Added hostname to the error message.
  15113. * src/ConsoleDownloadEngine.cc
  15114. (calculateStatistics): Initialize psize with dlSize.
  15115. * src/PieceMessage.cc
  15116. (receivedAction): Do not call peerInteraction->abortPiece here.
  15117. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15118. * src/BitfieldMan.h
  15119. (clearAllUseBit): New function.
  15120. (setAllUseBit): New function.
  15121. * src/BitfieldMan.cc
  15122. (clearAllBit): Do not clear useBitfield here.
  15123. (clearAllUseBit): New function.
  15124. (setAllUseBit): New function.
  15125. * src/Piece.cc
  15126. (clearAllBlock): Call bitfield->clearAllUseBit().
  15127. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15128. To make filename URL-decoded:
  15129. * src/HttpResponseCommand.h: Updated doc.
  15130. * src/HttpResponseCommand.cc
  15131. (determinFilename): Made filename URL-decoded.
  15132. * src/FtpInitiateConnectionCommand.cc
  15133. (executeInternal): Made filename URL-decoded.
  15134. * src/Util.h (urldecode): New function.
  15135. * src/Util.cc (urldecode): New function.
  15136. To fix a bug that caused assertion failure in ares_strerror:
  15137. * src/NameResolver.cc (callback): Fixed the bug.
  15138. * Release 0.7.3
  15139. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15140. To add --seed-time and --seed-ratio command-line option:
  15141. * src/Option.h (getAsDouble): New function.
  15142. * src/Option.cc (getAsDouble): New function.
  15143. * src/SeedCheckCommand.h: New class.
  15144. * src/SeedCheckCommand.cc: New class.
  15145. * src/DownloadEngineFactory.cc
  15146. (SeedCheckCommand.h): Included.
  15147. (UnionSeedCriteria.h): Included.
  15148. (TimeSeedCriteria.h): Included.
  15149. (ShareRatioSeedCriteria.h): Included.
  15150. (newTorrentConsoleEngine): Added the processing of seed option.
  15151. * src/SeedCriteria.h: New class.
  15152. * src/ShareRatioSeedCriteria.h: New class.
  15153. * src/TimeSeedCriteria.h: New class.
  15154. * src/UnionSeedCriteria.h: New class.
  15155. * src/prefs.h
  15156. (PREF_SEED_TIME): New definition.
  15157. (PREF_SEED_RATIO): New definition.
  15158. * src/main.cc
  15159. (showUsage): Added --seed-time and --seed-ratio option.
  15160. (main): Added --seed-time and --seed-ratio option.
  15161. Made default log file name "/dev/null".
  15162. * src/SharedHandle.h
  15163. (SharedHandle): Copy constructor. Made it assignable from the
  15164. SharedHandle of the subclasses.
  15165. (operator=): Made it assignable from the SharedHandle of the
  15166. subclasses.
  15167. (getRefCount): New function.
  15168. To add notice log level and the switch to write log to stdout. This
  15169. switch is configurable per log level.
  15170. * src/Logger.h
  15171. (notice): New function.
  15172. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15173. constant.
  15174. * src/LogFactory.cc
  15175. (getInstance): The use of NullLogger was removed. A log message with
  15176. notice log level was made written to stdout along with log file.
  15177. * src/NullLogger.h
  15178. (notice): New function.
  15179. * src/SimpleLogger.h
  15180. (writeHeader): Added the 'file' argument.
  15181. (writeLog): Added the 'file' argument.
  15182. (writeFile): New function.
  15183. (stdoutField): New variable.
  15184. (SimpleLogger): Removed the default constructor.
  15185. (SimpleLogger): Made the default value of logfile 0.
  15186. (debug): Added 'virtual' keyword.
  15187. (info): Added 'virtual' keyword.
  15188. (warn): Added 'virtual' keyword.
  15189. (error): Added 'virtual' keyword.
  15190. (notice): New function.
  15191. (setStdout): New function.
  15192. * src/SimpleLogger.cc
  15193. (WRITE_LOG): Replaced writeLog with writeFile.
  15194. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15195. (SimpleLogger): Removed the default constructor.
  15196. (setStdout): New function.
  15197. (writeLog): Added the handling of NOTICE log level.
  15198. (writeFile): New function.
  15199. (notice): New function.
  15200. * src/TorrentMan.h: Updated doc.
  15201. * src/BitfieldMan.h: Updated doc.
  15202. * src/TrackerWatcherCommand.cc
  15203. (execute): Return true if error occurred in the request to the tracker
  15204. and halt is requested.
  15205. * src/TrackerUpdateCommand.cc
  15206. (execute): Return true if error occurred in the request to the tracker
  15207. and halt is requested.
  15208. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15209. DownloadEngine:
  15210. * src/TorrentConsoleDownloadEngine.h
  15211. (onSelectiveDownloadingCompletes): Removed.
  15212. * src/TorrentConsoleDownloadEngine.cc
  15213. (onSelectiveDownloadingCompletes): Removed.
  15214. * src/TorrentDownloadEngine.h
  15215. (onEndOfRun): Added 'virtual' keyword.
  15216. (afterEachIteration): Removed.
  15217. (onSelectiveDownloadingCompletes): Removed.
  15218. * src/TorrentDownloadEngine.cc
  15219. (onEndOfRun): Removed filenameFixed.
  15220. (afterEachIteration): Removed.
  15221. * src/TorrentMan.cc
  15222. (completePiece): Call onDownloadComplete here.
  15223. (onDownloadComplete): Added 2 log messages.
  15224. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15225. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15226. * src/NameResolver.h: Added the prototype declaration of callback().
  15227. To support c-ares library:
  15228. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15229. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15230. * src/FtpInitiateConnectionCommand.h:
  15231. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15232. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15233. * src/HttpInitiateConnectionCommand.h:
  15234. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15235. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15236. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15237. #1542285 by tizianomueller)
  15238. * src/HttpInitiateConnectionCommand.cc:
  15239. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15240. * src/FtpInitiateConnectionCommand.cc:
  15241. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15242. * src/DownloadEngine.h:
  15243. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15244. * src/DownloadEngine.cc:
  15245. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15246. To fix the bug that causes compilation failure with metalink-support
  15247. disabled(bug#1543587):
  15248. * src/main.cc: Fixed with the patch by tizianomueller.
  15249. * Release 0.7.2
  15250. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15251. * src/main.cc
  15252. (main): Added a message to inform users that aria2 is starting to
  15253. verify checksum.
  15254. * src/RequestInfo.cc
  15255. (printDownloadAbortMessage): Added a message to inform users that
  15256. transfer can be resumed.
  15257. * src/FeatureConfig.cc
  15258. (FEATURE_ASYNC_DNS): New definition.
  15259. (FeatureConfig): Added aysnc DNS entry.
  15260. To replace CommandUuid with Command* in SocketEntry and
  15261. NameResolverEntry:
  15262. * src/DownloadEngine.h
  15263. (CommandUuids): Removed.
  15264. (SocketEntry::commandUuid): Removed.
  15265. (SocketEntry::command): New variable.
  15266. (SocketEntry::SocketEntry): Updated.
  15267. (SocketEntry::operator==): Updated.
  15268. (NameResolverEntry::commandUuid): Removed.
  15269. (NameResolverEntry::command): New variable.
  15270. (NameResolverEntry::NameResolverEntry): Updated.
  15271. (NameResolverEntry::operator==): Updated.
  15272. (waitData): Changed the argument type.
  15273. (addSocketForReadCheck): Changed the argument type.
  15274. (deleteSocketForReadCheck): Changed the argument type.
  15275. (addSocketForWriteCheck): Changed the argument type.
  15276. (deleteSocketForWriteCheck): Changed the argument type.
  15277. (addNameResolverCheck): Changed the argument type.
  15278. (deleteNameResolverCheck): Changed the argument type.
  15279. * src/DownloadEngine.cc
  15280. (FindCommand): Removed.
  15281. (run): Removed activeUuid. Added activeCommands instead.
  15282. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15283. (AccumulateActiveCommand): New function object.
  15284. (waitData): Use AccumulateActiveCommand.
  15285. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15286. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15287. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15288. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15289. (addNameResolverCheck): Use Command instead of CommandUuid.
  15290. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15291. * src/AbstractCommand.cc
  15292. (disableReadCheckSocket): Updated according to the changes in
  15293. DownloadEngine.
  15294. (setReadCheckSocket): Updated according to the changes in
  15295. DownloadEngine.
  15296. (disableWriteCheckSocket): Updated according to the changes in
  15297. DownloadEngine.
  15298. (setWriteCheckSocket): Updated according to the changes in
  15299. DownloadEngine.
  15300. (setNameResolverCheck): Updated according to the changes in
  15301. DownloadEngine.
  15302. (disableNameResolverCheck): Updated according to the changes in
  15303. DownloadEngine.
  15304. * src/AbstractCommand.cc
  15305. (disableReadCheckSocket): Updated according to the changes in
  15306. DownloadEngine.
  15307. (setReadCheckSocket): Updated according to the changes in
  15308. DownloadEngine.
  15309. (disableWriteCheckSocket): Updated according to the changes in
  15310. DownloadEngine.
  15311. (setWriteCheckSocket): Updated according to the changes in
  15312. DownloadEngine.
  15313. * release 0.7.1
  15314. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15315. To handle the case where some BitTorrent tracker requires all letters
  15316. except for [A-Za-z0-9] is URL encoded.
  15317. * src/Util.h
  15318. (torrentUrlencode): New function.
  15319. * src/Util.cc
  15320. (ctype.h): Included.
  15321. (torrentUrlencode): New function.
  15322. * src/TrackerWatcherCommand.cc
  15323. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15324. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15325. To add asynchronous DNS support(libares):
  15326. * src/AbstractCommand.h
  15327. (setNameResolverCheck): New function.
  15328. (disableNameResolverCheck): New function
  15329. (resolveHostname): New function.
  15330. * src/AbstractCommand.cc
  15331. (setNameResolverCheck): New function.
  15332. (disableNameResolverCheck): New function
  15333. (resolveHostname): New function.
  15334. * src/FtpInitiateConnectionCommand.h
  15335. (nameResolver): New function.
  15336. * src/FtpInitiateConnectionCommand.cc
  15337. (Util.h): Included.
  15338. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15339. disableWriteCheckSocket.
  15340. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15341. (executeInternal): Added async DNS support.
  15342. * src/HttpInitiateConnectionCommand.h
  15343. (nameResolver): New function.
  15344. * src/HttpInitiateConnectionCommand.cc
  15345. (DlRetryEx.h): Included.
  15346. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15347. disableWriteCheckSocket.
  15348. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15349. (executeInternal): Added async DNS support.
  15350. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15351. by extern "C" declaration.
  15352. * src/NameResolver.cc: New class.
  15353. * src/Util.h:
  15354. (isNumberAndDotsNotation): New function
  15355. * src/Util.cc
  15356. (isNumberAndDotsNotation): New function.
  15357. * src/DownloadEngine.h
  15358. (NameResolver.h): Included.
  15359. (NameResolverEntry): New class.
  15360. (NameResolverEntries): New type definition.
  15361. (addNameResolverCheck): New function.
  15362. (deleteNameResolverCheck): New function.
  15363. * src/DownloadEngine.cc
  15364. (run): Initialize cp with 0.
  15365. (SetDescriptor::operator()): Added for NameResolverEntry.
  15366. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15367. (waitData): Check nameResolver entries.
  15368. (updateFdSet): Update fds in nameResolver entries.
  15369. (addNameResolverCheck): New function.
  15370. (deleteNameResolverCheck): new function.
  15371. * src/PeerInteractionCommand.cc
  15372. (executeInternal): Fixed wrong socket handling.
  15373. * src/main.cc
  15374. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15375. * src/Util.cc
  15376. (fileChecksum): Removed the call to ctx.digestReset().
  15377. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15378. * po/ru.po: Azamat sent me Russian translation.
  15379. * src/FtpNegotiateCommand.cc
  15380. (recvGreeting): Call disableWriteCheckSocket just after
  15381. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15382. (recvRetr): Recognized status code 125 as a acceptable response code.
  15383. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15384. case-insesitive filesystem(BUG#1531057).
  15385. * src/Time.h: Renamed as TimeA2.h.
  15386. * src/Time.cc: Renamed as TimeA2.cc.
  15387. * src/TimeA2.h: New class.
  15388. * src/TimeA2.cc: New class.
  15389. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15390. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15391. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15392. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15393. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15394. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15395. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15396. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15397. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15398. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15399. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15400. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15401. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15402. * release 0.7.0
  15403. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15404. * src/PeerChokeCommand.h
  15405. (PeerChokeCommand): Rearranged the arguments.
  15406. * src/PeerChokeCommand.cc
  15407. (PeerChokeCommand): Rearranged the arguments.
  15408. * src/MetalinkEntry.h
  15409. (Checksum.h): Included.
  15410. (md5): Removed.
  15411. (sha1): Removed.
  15412. (checksum): New variable.
  15413. (operator=): Updated.
  15414. (check): Removed.
  15415. * src/prefs.h
  15416. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15417. (PREF_FOLLOW_TORRENT): New definition.
  15418. (PREF_SELECT_FILE): New definition.
  15419. (PREF_FOLLOW_METALINK): New definition.
  15420. * src/MetalinkResource.h
  15421. (TYPE_HTTPS): Added to enum TYPE.
  15422. * src/TorrentMan.cc
  15423. (~TorrentMan): Rewritten.
  15424. * src/MultiDiskWriter.cc
  15425. (MultiDiskAdaptor): Updated according to the changes in
  15426. MessageDigestContext.
  15427. (~MultiDiskAdaptor): Updated according to the changes in
  15428. MessageDigestContext.
  15429. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15430. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15431. * src/Util.h
  15432. (fileChecksum): Updated according to the changes in
  15433. MessageDigestContext.
  15434. * src/Util.cc
  15435. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15436. (fileChecksum): Updated according to the changes in
  15437. MessageDigestContext.
  15438. * src/messageDigest.h: Rewritten.
  15439. * src/MetalinkEntry.cc
  15440. (check): Removed.
  15441. (Supported): Updated.
  15442. (dropUnsupportedResource): Fixed a memory leak.
  15443. * src/ShaVisitor.cc
  15444. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15445. (~ShaVisitor): Updated according to the changes in
  15446. MessageDigestContext.
  15447. (visit): Updated according to the changes in MessageDigestContext.
  15448. * src/main.cc
  15449. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15450. command-line option added.
  15451. * src/DownloadEngine.h
  15452. (SocketEntry): New class.
  15453. (SocketEntries): New definition.
  15454. (PairFind): Removed.
  15455. (SockCmdMap): Removed.
  15456. * src/DownloadEngine.cc
  15457. (DownloadEngine): Rewritten.
  15458. (~DownloadEngine): Rewritten.
  15459. (run): Renamed activeCommandUuids as activeUuids.
  15460. (SetDescriptor): Rewritten.
  15461. (AccumulateActiveCommandUuid): Removed.
  15462. (AccumulateActiveUuid): New function object.
  15463. (waitData): Rewritten.
  15464. (updateFdSet): Rewritten.
  15465. (addSocket): Rewritten.
  15466. (deleteSocket): Rewritten.
  15467. (addSocketForReadCheck): Rewritten.
  15468. (deleteSocketForReadCheck): Rewritten.
  15469. (addSocketForWriteCheck): Rewritten.
  15470. (deleteSocketForWriteCheck): Rewritten.
  15471. * src/Xml2MetalinkProcessor.cc
  15472. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15473. * src/DownloadCommand.cc
  15474. (executeInternal): Added the check routine for lowest speed limit.
  15475. * src/AbstractDiskWriter.cc
  15476. (AbstractDiskWriter): Updated according to the changes in
  15477. MessageDigestContext.
  15478. (~AbstractDiskWriter): Updated according to the changes in
  15479. MessageDigestContext.
  15480. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15481. * src/RequestInfo.h: New class.
  15482. * src/UrlRequestInfo.h: New class.
  15483. * src/UrlRequestInfo.cc: New class.
  15484. * src/TorrentRequestInfo.h: New class.
  15485. * src/TorrentRequestInfo.cc: New class.
  15486. * src/MetalinkRequestInfo.h: New class.
  15487. * src/MetalinkRequestInfo.cc: New class.
  15488. * src/Checksum.h: New class.
  15489. * src/DownloadEngineFactory.h: New class.
  15490. * src/DownloadEngineFactory.cc: New class.
  15491. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15492. * src/Option.h
  15493. (getAsBool): New function.
  15494. * src/Option.cc
  15495. (prefs.h): Included.
  15496. (defined): 0-length value is now recognized as undefined.
  15497. (getAsInt): Rewritten.
  15498. (getAsLLInt): Rewritten.
  15499. (getAsBool): New function.
  15500. * src/FeatureConfig.h: Rewritten.
  15501. * src/FeatureConfig.cc: Rewritten.
  15502. * src/prefs.h
  15503. (PREF_STDOUT_LOG): New definition.
  15504. (PREF_LOG): New definition.
  15505. (PREF_DIR): New definition.
  15506. (PREF_OUT): New definition.
  15507. (PREF_SPLIT): New definition.
  15508. (PREF_DAEMON): New definition.
  15509. (PREF_REFERER): New definition.
  15510. (PREF_TORRENT_FILE): New definition.
  15511. (PREF_LISTEN_PORT): New definition.
  15512. (PREF_METALINK_FILE): New definition.
  15513. (PREF_METALINK_VERSION): New definition.
  15514. (PREF_METALINK_LANGUAGE): New definition.
  15515. (PREF_METALINK_OS): New definition.
  15516. (PREF_METALINK_SERVERS): New definition.
  15517. * src/main.cc
  15518. (main): Following command-line parameters are now put into Option
  15519. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15520. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15521. metalinkLanguage, metalinkOs, metalinkServers
  15522. To fix the bug that aria2 can not handle http response header properly.
  15523. * src/HttpHeader.cc
  15524. (put): Made name lowercased.
  15525. (defined): Made name lowercased.
  15526. (getFirst): Made name lowercased.
  15527. (get): Made name lowercased.
  15528. (getFirstAsInt): Rewritten.
  15529. (getFirstAsLLInt): Rewritten.
  15530. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15531. * src/TorrentMan.h:
  15532. (advertisePiece): Updated doc.
  15533. (getAdvertisedPieceIndexes): Updated doc.
  15534. (removeAdvertisedPiece); New function.
  15535. * src/TorrentMan.cc
  15536. (FindElapsedHave): New function object.
  15537. (removeAdvertisedPiece): New function.
  15538. * src/HaveEraseCommand.h: New class.
  15539. * src/HaveEraseCommand.cc: New class.
  15540. * src/FeatureConfig.h: New class.
  15541. * src/FeatureConfig.cc: New class.
  15542. * src/Request.h
  15543. (defaultPorts): Removed.
  15544. * src/Request.cc
  15545. (FeatureConfig.h): Included.
  15546. (Request): Removed the statements related to defaultPorts.
  15547. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15548. A default port number is now retrieved from FeatureConfig.
  15549. * src/main.cc
  15550. (HaveEraseCommand.h): Included.
  15551. (showVersion): Added the output of feature list.
  15552. (main): Added HaveEraseCommand to command queue in BitTorrent
  15553. downloading.
  15554. * src/PeerInteractionCommand.h
  15555. (chokeCheckPoint): Commented out.
  15556. (periodicExecPoint): New variable.
  15557. * src/PeerInteractionCommand.cc
  15558. (executeInternal): Following methods are now called in at least every
  15559. 0.5 seconds to reduce CPU usage:
  15560. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15561. checkHave(), sendKeepAlive().
  15562. (checkLongTimePeerChoking): Commented out.
  15563. * src/BitfieldMan.h
  15564. (getNthBitIndex): Changed the method signature.
  15565. (getMissingIndexRandomly): Changed the method signature.
  15566. * src/BitfieldMan.cc
  15567. (getNthBitIndex): Rewritten
  15568. (getMissingIndexRandomly): Rewritten.
  15569. (hasMissingPiece): Rewritten.
  15570. (getMissingIndex): Refactored.
  15571. (getMissingUnusedIndex); Refactored.
  15572. (getMissingIndex): Refactored.
  15573. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15574. * src/PeerMessage.h
  15575. (Piece.h): Included.
  15576. (SharedHandle.h): Included.
  15577. (invalidate): New variable.
  15578. (uploading): New variable.
  15579. (isInvalidate): New function.
  15580. (isUploading): New function.
  15581. (onPush): New function.
  15582. (onChoked): New function.
  15583. (onCanceled): New function.
  15584. (onAbortPiece): New function.
  15585. (PeerMessageHandle): New type definition.
  15586. * src/PeerMessage.cc
  15587. (PeerMessage): Added the initialization for invalidate and uploading.
  15588. * src/CancelMessage.h
  15589. (CancelMessage): Rewritten.
  15590. * src/RejectMessage.h
  15591. (RejectMessage): Rewritten.
  15592. * src/Metalinker.h
  15593. (operator=): Defined.
  15594. * src/MetaEntry.h
  15595. (operator=): Defined.
  15596. * src/MetalinkResource.h
  15597. (operator=): Defined.
  15598. * src/AllowedFastMessage.h
  15599. (AllowedFastMessage): Rewritten.
  15600. * src/HandshakeMessage.h
  15601. (HandshakeMessage): New function(overload).
  15602. * src/HandshakeMessage.cc
  15603. (HandshakeMessage): Rewritten.
  15604. (init): New function.
  15605. * src/HaveMessage.h
  15606. (HaveMessage): Rewritten.
  15607. * src/Time.h
  15608. (operator=): Defined the function body here.
  15609. * src/Time.cc
  15610. (operator=): Removed.
  15611. * src/SocketCore.h
  15612. (operator==): Defined here.
  15613. (operator!=): Defined here.
  15614. (operator<): Defined here.
  15615. * src/SocketCore.cc
  15616. (operator==): Removed.
  15617. (operator<): Removed.
  15618. * src/BitfieldMan.h
  15619. (operator=): Defined the function body here.
  15620. * src/BitfieldMan.cc
  15621. (operator=): Removed.
  15622. * src/TorrentMan.h
  15623. (deleteErrorPeer): Removed.
  15624. (deleteUnusedPeer); New function.
  15625. * src/TorrentMan.cc
  15626. (addPeer): Call deleteUnusedPeer.
  15627. (deleteErrorPeer): Removed.
  15628. (deleteUnusedPeer): New function.
  15629. * src/PeerAbstractCommand.h
  15630. (setNoCheck): New function.
  15631. (noCheck): New variable.
  15632. * src/PeerAbstractCommand.cc
  15633. (PeerAbstractCommand): Added the initialization of noCheck.
  15634. (execute): Added a check for noCheck.
  15635. (setNoCheck): New function.
  15636. * src/Util.h
  15637. (stdio.h): Included.
  15638. * src/Util.cc
  15639. (unistd.h): Included.
  15640. * src/DefaultDiskWriter.cc
  15641. (unistd.h): Included.
  15642. * src/Peer.h
  15643. (operator==): Defined the function body here.
  15644. (operator!=): Defined the function body here.
  15645. * src/Peer.cc
  15646. (operator==): Removed.
  15647. (operator!=): Removed.
  15648. * src/Piece.h
  15649. (Piece): Defined the function body here(copy constructor).
  15650. (operator=): Defined the function body here.
  15651. (operator==): Defined the function body here.
  15652. * src/Piece.cc
  15653. (Piece): Removed(copy constructor).
  15654. (operator=): Removed.
  15655. (operator==): Removed.
  15656. * src/PeerMessageUtil.h
  15657. (ChokeMessage.h): Removed.
  15658. (UnchokeMessage.h): Removed.
  15659. (InterestedMessage.h): Removed.
  15660. (NotInterestedMessage.h): Removed.
  15661. (HaveMessage.h): Removed.
  15662. (BitfieldMessage.h): Removed.
  15663. (RequestMessage.h): Removed.
  15664. (CancelMessage.h): Removed.
  15665. (PieceMessage.h): Removed.
  15666. (HandshakeMessage.h): Removed.
  15667. (KeepAliveMessage.h): Removed.
  15668. (PortMessage.h): Removed.
  15669. (HaveAllMessage.h): Removed.
  15670. (HaveNoneMessage.h): Removed.
  15671. (PeerConnection.h): Removed.
  15672. (HandshakeMessage.h): Included.
  15673. * src/BitfieldMessage.h
  15674. (init): New function.
  15675. (BitfieldMessage): Rewritten.
  15676. (BitfieldMessage): New function(overload).
  15677. * src/RequestSlot.h
  15678. (operator=): Defined the function body here.
  15679. (operator==): Defined the function body here.
  15680. * src/RequestSlot.cc
  15681. (operator=): Removed.
  15682. (operator==): Removed.
  15683. To remove the dependency on the PeerMessage subclass from
  15684. PeerInteraction:
  15685. * src/PeerMessageFactory.h: New class.
  15686. * src/PeerMessageFactory.cc: New class.
  15687. * src/SimplePeerMessage.cc
  15688. (send): If invalidate is true then do nothing.
  15689. * src/PeerInteractionCommand.cc
  15690. (HandshakeMessage.h): Included.
  15691. (KeepAliveMessage.h): Included.
  15692. (ChokeMessage.h): Included.
  15693. (UnchokeMessage.h): Included.
  15694. (HaveMessage.h): Included.
  15695. (executeInternal): Call setNoCheck().
  15696. Removed setWriteCheckSocket(socket).
  15697. * src/PeerInteraction.h
  15698. (ChokeMessage.h): Removed.
  15699. (UnchokeMessage.h): Removed.
  15700. (InterestedMessage.h): Removed.
  15701. (NotInterestedMessage.h): Removed.
  15702. (HaveMessage.h): Removed.
  15703. (BitfieldMessage.h): Removed.
  15704. (RequestMessage.h): Removed.
  15705. (CancelMessage.h): Removed.
  15706. (PieceMessage.h): Removed.
  15707. (HandshakeMessage.h): Removed.
  15708. (KeepAliveMessage.h): Removed.
  15709. (PortMessage.h): Removed.
  15710. (HaveAllMessage.h): Removed.
  15711. (HaveNoneMessage.h): Removed.
  15712. (RejectMessage.h): Removed.
  15713. (AllowedFastMessage.h): Removed.
  15714. (SuggestPieceMessage.h): Removed.
  15715. (PeerMessageFactory.h): Included.
  15716. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15717. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15718. (PeerMessageFactory): New variable.
  15719. (createPeerMessage): Removed.
  15720. (createHandshakeMessage): Removed.
  15721. (setPeerMessageCommonProperty): Removed.
  15722. (addRequestSlot): New function.
  15723. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15724. (getPeerMessageFactory): New function.
  15725. (createRequestMessage): Removed.
  15726. (createCancelMessage): Removed.
  15727. (createPieceMessage): Removed.
  15728. (createHaveMessage): Removed.
  15729. (createChokeMessage): Removed.
  15730. (createUnchokeMessage): Removed.
  15731. (createInterestedMessage): Removed.
  15732. (createNotInterestedMessage): Removed.
  15733. (createBitfieldMessage): Removed.
  15734. (createKeepAliveMessage): Removed.
  15735. (createHaveAllMessage): Removed.
  15736. (createHaveNoneMessage): Removed.
  15737. (createRejectMessage): Removed.
  15738. (createAllowedFastMessage): Removed.
  15739. * src/PeerInteraction.cc
  15740. (PeerInteraction): Allocate PeerMessageFactory here.
  15741. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15742. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15743. PieceMessage::ID.
  15744. (addMessage): Simplified by using PeerMessage::onPush().
  15745. (addRequestSlot): New function.
  15746. (rejectAllPieceMessageInQueue): Simplified by using
  15747. PeerMessage::onChoked().
  15748. (rejectPieceMessageInQueue): Simplified by using
  15749. PeerMessage::onCanceled().
  15750. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15751. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15752. (createHandshakeMessage): Removed.
  15753. (createPeerMessage): Removed.
  15754. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15755. (setPeerMessageCommonProperty): Removed.
  15756. (createRequestMessage): Removed.
  15757. (createCancelMessage): Removed.
  15758. (createPieceMessage): Removed.
  15759. (createHaveMessage): Removed.
  15760. (createChokeMessage): Removed.
  15761. (createUnchokeMessage): Removed.
  15762. (createInterestedMessage): Removed.
  15763. (createNotInterestedMessage): Removed.
  15764. (createBitfieldMessage): Removed.
  15765. (createKeepAliveMessage): Removed.
  15766. (createHaveAllMessage): Removed.
  15767. (createHaveNoneMessage): Removed.
  15768. (createRejectMessage): Removed.
  15769. (createAllowedFastMessage): Removed.
  15770. * src/PieceMessage.h
  15771. (createRejectMessage): New function.
  15772. (PieceMessage): Rewritten.
  15773. (onChoked): New function.
  15774. (onCanceled): New function.
  15775. * src/PieceMessage.cc
  15776. (send): If invalidate is true then do nothing, just return.
  15777. (createRejectMessage): New function.
  15778. (onChoked): New function.
  15779. (onCanceled): New function.
  15780. * src/RequestMessage.h
  15781. (RequestMessage): Rewritten.
  15782. (onPush): New function.
  15783. (onAbortPiece): New function.
  15784. * src/RequestMessage.cc
  15785. (onPush): New function.
  15786. (onAbortPiece): New function.
  15787. Update fd_set when a socket is added or deleted in order to improve
  15788. performance:
  15789. * src/DownloadEngine.h
  15790. (rfdset): New variable.
  15791. (wfdset): New variable.
  15792. (updateFdSet): New function.
  15793. * src/DownloadEngine.cc
  15794. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15795. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15796. (waitData): Copy rfdset and wfdset.
  15797. (updateFdSet): New function.
  15798. (addSocket): Call updateFdSet.
  15799. (deleteSocket): Call updateFdSet.
  15800. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15801. To add the support for Metalink3.0 backward compatible links:
  15802. * src/Request.h
  15803. (SAFE_CHARS): Added '#'.
  15804. (METALINK_MARK): New definition.
  15805. * src/Request.cc
  15806. (parseUrl): Added the support for Metalink3.0 backward compatible
  15807. links.
  15808. etc
  15809. * src/PeerInteraction.cc
  15810. (MsgPushBack): Removed.
  15811. (sendMessages): Use STL copy and back_inserter.
  15812. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15813. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15814. * src/TorrentMan.h
  15815. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15816. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15817. * src/SharedHandle.h: New class.
  15818. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15819. * src/HttpResponseCommand.h
  15820. (HttpResponseCommand): Wrapped Socket.
  15821. * src/SocketCore.h
  15822. (operator==): New function.
  15823. (operator!=): New function.
  15824. (operator<): New function.
  15825. (getSockfd): New function.
  15826. (isOpen): New function.
  15827. (writeData): New function.
  15828. * src/SocketCore.cc
  15829. (operator==): New function.
  15830. (operator!=): New function.
  15831. (operator<): New function.
  15832. * src/AbstractCommand.h
  15833. (socket): Changed its type to SocketHandle.
  15834. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15835. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15836. (disableReadCheckSocket): New function.
  15837. (disableWriteCheckSocket): New function.
  15838. (readCheckTarget): Changed its type to SocketHandle.
  15839. (writeCheckTarget): Changed its type to SocketHandle.
  15840. (AbstractCommand): Replaced Socket with SocketHandle.
  15841. * src/AbstractCommand.cc
  15842. (AbstractCommand): Replaced Socket with SocketHandle.
  15843. (~AbstractCommand): Removed the deallocation for Socket object.
  15844. (disableReadCheckSocket): New function.
  15845. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15846. (disableWriteCheckSocket): New function.
  15847. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15848. * src/HttpDownloadCommand.cc
  15849. (DownloadCommand): Replaced Socket with SocketHandle.
  15850. * src/PeerAbstractCommand.h
  15851. (socket): Changed its type to SocketHandle.
  15852. (peer): Changed its type to PeerHandle.
  15853. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15854. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15855. (disableReadCheckSocket): New function.
  15856. (disableWriteCheckSocket): New function.
  15857. (readCheckTarget): Changed its type to SocketHandle.
  15858. (writeCheckTarget): Changed its type to SocketHandle.
  15859. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15860. Replaced Peer with PeerHandle.
  15861. * src/HttpRequestCommand.cc
  15862. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15863. Use disableReadCheckSocket.
  15864. * src/PeerInitiateConnectionCommand.h
  15865. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15866. * src/PeerChokeCommand.cc
  15867. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15868. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15869. (execute): Use PeerHandle.
  15870. * src/PeerConnection.h
  15871. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15872. (socket): Changed its type to SocketHandle.
  15873. (PeerConnection): Replaced Socket with SocketHandle.
  15874. * src/PeerConnection.cc
  15875. (PeerConnection): Replaced Socket with SocketHandle.
  15876. * src/PeerInteractionCommand.h
  15877. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15878. Replaced Peer with PeerHandle.
  15879. * src/PeerInteractionCommand.cc
  15880. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15881. Replaced Peer with PeerHandle.
  15882. (executeInternal): Use disableWriteCheckSocket.
  15883. Use HandshakeMessageHandle.
  15884. (receiveMessages): Use PeerMessageHandle.
  15885. (prepareForNextPeer): Use PeerHandle.
  15886. * src/HttpProxyRequestCommand.h
  15887. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15888. * src/HttpResponseCommand.cc
  15889. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15890. * src/TorrentMan.cc
  15891. (nullPeer): Added external reference.
  15892. (~TorrentMan): Removed the deallocation of the elements of peers.
  15893. (addPeer): Rewritten.
  15894. (isPeerAvailable): Use nullPeer.
  15895. (deleteOldpeers): Replaced with deleteErrorPeer.
  15896. (deleteErrorPeer): New function.
  15897. (getPeer): Use PeerHandle and nullPeer.
  15898. (hasMissingPiece): Replaced Peer with PeerHandle.
  15899. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15900. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15901. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15902. (getMissingPiece): Replaced Peer with PeerHandle.
  15903. * src/FtpNegotiateCommand.cc
  15904. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15905. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15906. (recvGreeting): Use disableWriteCheckSocket.
  15907. (recvPasv): Removed the allocation of Socket.
  15908. Use disableReadCheckSocket.
  15909. (sendRestPasv): Use disableWriteCheckSocket.
  15910. (recvRetr): Changed assertion.
  15911. * src/PeerInteraction.h
  15912. (SharedHandle.h): Included SharedHandle.h.
  15913. (PeerMessageHandle): New type definition.
  15914. (HandshakeMessageHandle): New type definition.
  15915. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15916. (peer): Changed its type to PeerHandle.
  15917. (createHandshakeMessage): Replaced HandshakeMessage with
  15918. HandshakeMessageHandle.
  15919. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15920. (PeerInteraction): Replaced Peer with PeerHandle.
  15921. Replaced Socket with SocketHandle.
  15922. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15923. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15924. (receiveHandshake): Replaced HandshakeMessage with
  15925. HandshakeMessageHandle.
  15926. * src/PeerInteraction.cc
  15927. (PeerInteraction): Replaced Peer with PeerHandle.
  15928. Replaced Socket with SocketHandle.
  15929. (~PeerInteraction): Removed the deallocation of the elements of
  15930. messageQueue.
  15931. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15932. (isSendingMessageInProgress): Replaced PeerMessage with
  15933. PeerMessageHandle.
  15934. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15935. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15936. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15937. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15938. (abortPiece): Use PeerMessageHandle.
  15939. (receiveHandshake): Replaced HandshakeMessage with
  15940. HandshakeMessageHandle. Removed try-catch block.
  15941. (createHandshakeMessage): Replaced HandshakeMessage with
  15942. HandshakeMessageHandle.
  15943. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15944. Removed try-catch block.
  15945. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15946. * src/HttpProxyResponseCommand.cc
  15947. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15948. * src/FtpTunnelResponseCommand.h
  15949. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15950. * src/HttpConnection.cc
  15951. (HttpConnection): Replaced Socket with SocketHandle.
  15952. * src/PeerAbstractCommand.cc
  15953. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15954. (~PeerAbstractCommand): Removed the deallocation of socket.
  15955. Use disableReadCheckSocket, disableWriteCheckSocket.
  15956. (disableReadCheckSocket): New function.
  15957. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15958. (disableWriteCheckSocket): New function.
  15959. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15960. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15961. * src/FtpTunnelRequestCommand.cc
  15962. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15963. (~FtpTunnelRequestCommand): Corrected indentation.
  15964. * src/DownloadCommand.h
  15965. (DownloadCommand): Replaced Socket with SocketHandle.
  15966. * src/PeerListenCommand.cc
  15967. (PeerListenCommand): Removed the initialization of socket.
  15968. (~PeerListenCommand): Removed the deallocation of socket.
  15969. (bindPort): Use SocketHandle.
  15970. (execute): Use SocketHandle and PeerHandle.
  15971. * src/FtpDowndloadCommand.cc
  15972. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15973. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15974. * src/main.cc
  15975. (main): Corrected indentation.
  15976. * src/HttpInitiateConnectionCommand.cc
  15977. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15978. (executeInternal): Removed the allocation of socket.
  15979. * src/HttpRequestCommand.h
  15980. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15981. * src/FtpNegotiationCommand.h
  15982. (dataSocket): Changed its type to SocketHandle.
  15983. (serverSocket): Changed its type to SocketHandle.
  15984. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15985. * src/TorrentMan.h
  15986. (MAX_PEER_UPDATE): Removed.
  15987. (MAX_PEERS): New definition.
  15988. (Peers): The element is now of type PeerHandle.
  15989. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15990. (getPeer): Replaced Peer with PeerHandle.
  15991. (deleteOldErrorPeers): Removed.
  15992. (deleteErrorPeer): New function.
  15993. (hasMissingPiece): Replaced Peer with PeerHandle.
  15994. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15995. (getMissingPiece): Replaced Peer with PeerHandle.
  15996. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15997. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15998. (addActivePeer): Replaced Peer with PeerHandle.
  15999. (deleteActivePeer): Replaced Peer with PeerHandle.
  16000. Added a check for the return value of find.
  16001. * src/FtpTunnelResponseCommand.cc
  16002. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16003. * src/FtpInitiateConnectionCommand.cc
  16004. (executeInternal): Removed the allocation of socket.
  16005. * src/DownloadEngine.h
  16006. (Sockets): An element is now of type SocketHandle.
  16007. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16008. (CommandUuids): New type definition.
  16009. (rsockets): Changed its type to SockCmdMap.
  16010. (wsockets): Changed its type to SockCmdMap.
  16011. (addSocket): Rewritten.
  16012. (deleteSocket): Rewritten.
  16013. (addSocketForReadCheck): Rewritten.
  16014. (deleteSocketForReadCheck): Rewritten.
  16015. (addSocketForWriteCheck): Rewritten.
  16016. (deleteSocketForWriteCheck): Rewritten.
  16017. (PairFind): New template class.
  16018. * src/HttpDownloadCommand.h
  16019. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16020. * src/FtpConnection.cc
  16021. (FtpConnection): Replaced Socket with SocketHandle.
  16022. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16023. block.
  16024. * src/InitiateConnectionCommandFactory.cc
  16025. (DlAbortEx.h): Included DlAbortEx.h.
  16026. (createInitiateConnectionCommand): Throw exception if the protocol of
  16027. requested URI is not supported.
  16028. * src/Peer.cc
  16029. (nullPeer): Changed its type to PeerHandle.
  16030. (operator==): New function.
  16031. (operator!=): New function.
  16032. * src/Peer.h
  16033. (SharedHandle.h): Included SharedHandle.h.
  16034. (operator==): New function.
  16035. (operator!=): New function.
  16036. (Peer): Added the default constructor.
  16037. Use resetStatus() to initialize member variables.
  16038. (nullPeer): Removed.
  16039. * src/TrackerUpdateCommand.cc
  16040. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16041. with MIN_PEERS.
  16042. * src/PeerListenCommand.h
  16043. (socket): Changed its type to SocketHandle.
  16044. * src/Command.h
  16045. (CommandUuid): New type definition.
  16046. (uuid): New variable.
  16047. (uuidGen): New variable.
  16048. (Command): Added the initialization of uuid.
  16049. (getUuid): New function.
  16050. * src/Socket.h
  16051. (Socket): Removed.
  16052. (SocketHandle): New type definition.
  16053. * src/DownloadEngine.h
  16054. (FindCommand): New function object.
  16055. (run): The portion of socket check was rewritten.
  16056. (SetDescriptor): New function object.
  16057. (AccumulateActiveCommandUuid): New function object.
  16058. (waitData): Rewritten.
  16059. (addSocket): Rewritten.
  16060. (deleteSocket): Rewritten.
  16061. (addSocketForReadCheck): Rewritten.
  16062. (addSocketForWriteCheck): Rewritten.
  16063. (deleteSocketForReadCheck): Rewritten.
  16064. (deleteSocketForWriteCheck): Rewritten.
  16065. * src/HttpProxyResponseCommand.h
  16066. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16067. * src/HttpConnection.h
  16068. (socket): Changed its type to SocketHandle.
  16069. (HttpConnection): Replaced Socket with SocketHandle.
  16070. * src/PeerInitiateConnectionCommand.cc
  16071. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16072. (executeInternal): Removed the allocation of socket.
  16073. (prepareForNextPeer): Use PeerHandle.
  16074. * src/PeerMessage.h
  16075. (peer): Changed its type to PeerHandle.
  16076. (getPeer): Replaced Peer with PeerHandle.
  16077. (setPeer): Replaced Peer with PeerHandle.
  16078. * src/DownloadCommand.cc
  16079. (DownloadCommand): Replaced Socket with SocketHandle.
  16080. * src/FtpConnection.h
  16081. (socket): Changed its type to SocketHandle.
  16082. (FtpConnection): Replaced Socket with SocketHandle.
  16083. (sendPort); Replaced Socket with SocketHandle.
  16084. * src/FtpDowndloadCommand.h
  16085. (ctrlSocket): Changed its type to SocketHandle.
  16086. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16087. * src/HttpProxyRequestCommand.cc
  16088. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16089. * src/FtpTunnelRequestCommand.h
  16090. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16091. etc
  16092. * src/PeerChokeCommand.h
  16093. (setAllPeerChoked): Removed.
  16094. (setAllPeerResetDelta): Removed.
  16095. * src/PeerChokeCommand.cc
  16096. (setAllPeerChoked): Removed.
  16097. (ChokePeer): New function object.
  16098. (setAllPeerResetDelta): Removed.
  16099. (ResetDelta): New function object.
  16100. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16101. (execute): Show download speed when the local node is a seeder.
  16102. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16103. using STL.
  16104. * src/TrackerWatcherCommand.h
  16105. (MIN_PEERS): Removed.
  16106. * src/TorrentMan.cc
  16107. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16108. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16109. To fix the bug that .aria2 file is not saved if downloading is stopped
  16110. by the errors:it results that aria2 can not resume downloading:
  16111. * src/main.cc
  16112. (normalDownload): Added the call to save().
  16113. (main): Added the deletion of the elements in 'reserved'.
  16114. To fix log:
  16115. * src/PeerInteraction.cc
  16116. (receiveHandshake): Fixed log.
  16117. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16118. To improve download performance in BitTorrent:
  16119. * src/TorrentMan.cc
  16120. (getPeer): Check the number of connections. Return nullPeer if
  16121. it is greater than MAX_PEER_UPDATE.
  16122. This code was originally here, but was removed in 0.5.1.
  16123. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16124. To improve the conditional compilation:
  16125. * src/MultiDiskWriter.h:
  16126. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16127. * src/MultiDiskWriter.cc:
  16128. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16129. * src/Util.h:
  16130. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16131. Added ENABLE_BITTORRENT around computeFastSet().
  16132. * src/Util.cc:
  16133. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16134. Added ENABLE_BITTORRENT around computeFastSet().
  16135. * src/messageDigest.h:
  16136. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16137. * src/ShaVisitor.h:
  16138. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16139. * src/ShaVisitor.cc:
  16140. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16141. * src/main.cc:
  16142. Added ENABLE_BITTORRENT around includes and blocks related to
  16143. BitTorrent.
  16144. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16145. digest support is not available.
  16146. * src/AbstractDiskWriter.h:
  16147. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16148. * src/AbstractDiskWriter.cc:
  16149. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16150. * src/MetalinkEntry.cc
  16151. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16152. support is not available.
  16153. To add command-line options for Metalink:
  16154. * src/main.cc:
  16155. Added metalink-version, metalink-language, metalink-os,
  16156. follow-metalink.
  16157. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16158. * src/main.cc: Use these definition.
  16159. * Release 0.6.0
  16160. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16161. To add Metalink support(http/ftp only):
  16162. * src/AbstractCommand.h
  16163. (tryReserved): New function.
  16164. * src/AbstractCommand.cc
  16165. (execute): Call tryReserved().
  16166. (tryReserved): New function.
  16167. * src/Request.h
  16168. (Requests): New type definition.
  16169. * src/SegmentMan.h
  16170. (reserved): New variable.
  16171. * src/Util.h
  16172. (fileChecksum): New function.
  16173. (toUpper): New function.
  16174. (toLower): New function.
  16175. * src/Util.cc
  16176. (messageDigest.h): Included.
  16177. (trim): Trim \r\n\t.
  16178. (fileChecksum): New function.
  16179. (toUpper): New function.
  16180. (toLower): New function.
  16181. * src/main.cc
  16182. (normalDownload): New function.
  16183. (main): Added 2 command-line options: metalink-file,
  16184. metalink-connection. Their usage has not been written yet.
  16185. * src/MetalinkProcessor.h: New class.
  16186. * src/Xml2MetalinkProcessor.h: New class.
  16187. * src/Xml2MetalinkProcessor.cc: New class.
  16188. * src/MetalinkEntry.h: New class.
  16189. * src/MetalinkEntry.cc: New class.
  16190. * src/MetalinkResource.h: New class.
  16191. * src/MetalinkResource.cc: New class.
  16192. To add md5 message digest checking:
  16193. * src/messageDigest.h: Rewritten.
  16194. * src/MultiDiskWriter.cc: Updated according to the changes in
  16195. messageDigest.h.
  16196. * src/ShaVisitor.cc: Updated according to the changes in
  16197. messageDigest.h.
  16198. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16199. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16200. messageDigest.h.
  16201. To fix a bug that causes segfault when the payload length in peer
  16202. message is less than 0:
  16203. * src/PeerConnection.cc:
  16204. (receiveMessage): Fixed the bug.
  16205. * src/PeerMessageUtil.cc
  16206. (checkLength): Throw an exception if length is less than or equals to
  16207. 0.
  16208. To add new interfaces to Base64 encoding/decoding:
  16209. * src/Base64.h
  16210. (part_encode): Changed the method signature.
  16211. (encode): New function(overload).
  16212. (decode): New function(overload).
  16213. * src/Base64.cc
  16214. (part_encode): Rewritten.
  16215. (encode): Rewritten.
  16216. (encode): New function(overload).
  16217. To prevent a peer to download same piece if there is an error in
  16218. checksum:
  16219. * src/PieceMessage.cc
  16220. (receivedAction): Call peerInteraction->abortPiece().
  16221. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16222. To fix the bug that causes same have message is sent many times to
  16223. a single peer.
  16224. * src/Time.cc
  16225. (isNewer): Use Util::difftv().
  16226. * src/Util.cc
  16227. (difftv): Added a cast to (long long int).
  16228. * src/TorrentMan.cc
  16229. (advertisePiece): Use push_front.
  16230. (getAdvertisedPieceIndexes): A performance improvement was made.
  16231. To fix the bug that sends tracker requests without a sleep interval
  16232. when the number of connections is less than 15.
  16233. * src/TrackerWatcherCommand.cc
  16234. (execute): Now the number of connections is not a factor to decide
  16235. whether or not a tracker request should be sent or not.
  16236. * src/Time.h
  16237. (setTimeInSec): New function.
  16238. * src/Time.cc
  16239. (setTimeInSec): New function.
  16240. etc.
  16241. * src/ChokeMessage.cc
  16242. (receivedAction): Removed peer->snubbing = false
  16243. * src/PeerConnection.h
  16244. (receiveHandshake): Updated doc.
  16245. * src/TorrentMan.h
  16246. (getAdvertisedPieceIndexes): Updated the method signature.
  16247. * src/TorrentMan.cc
  16248. (getAdvertisedPieceIndexes): Updated the method signature.
  16249. * src/Time.h
  16250. (getTimeInMicros): Added a cast to (long long int).
  16251. (getTimeInMillis): Added a cast to (long long int).
  16252. * Release 0.5.2
  16253. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16254. To make a listening socket non-block:
  16255. * src/SocketCore.h
  16256. (setNonBlockingMode): New function.
  16257. * src/SocketCore.cc
  16258. (setNonBlockingMode): New function.
  16259. (beginListen): Added a call to setNonBlockingMode().
  16260. (acceptConnection): Call setNonBlockingMode().
  16261. (setBlockingMode): Updated.
  16262. To handle tracker's NAT-checking:
  16263. * src/PeerConnection.cc
  16264. (receiveHandshake): 'msg' param is filled with received data and
  16265. its length is assigned to 'length' param, even if all handshake
  16266. message is not yet received.
  16267. * src/PeerInteractionCommand.cc
  16268. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16269. a new peer connects to localhost.
  16270. A call to peerInteraction->sendHandshake() was removed because
  16271. it is called from peerInteraction->receiveHandshake(true).
  16272. * src/PeerInteraction.h
  16273. (quickReplied): New variable.
  16274. (receiveHandshake): Added an argument.
  16275. * src/PeerInteraction.cc
  16276. (PeerInteraction): Added the initialization of quickReplied.
  16277. (receiveHandshake): Send handshake message as soon as the info hash
  16278. in a handshake message from a peer is correct.
  16279. To change the random part of peer id and key parameter:
  16280. * src/TorrentMan.h
  16281. (key): New variable.
  16282. * src/TorrentMan.cc
  16283. (setupInternal1): Use Util::randomAlpha() to generate random part
  16284. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16285. key is also generated by Util::randomAlpha() and it is now 8 character
  16286. long.
  16287. * src/Util.h
  16288. (randomAlpha): New function.
  16289. * src/Util.cc
  16290. (randomAlpha): New function.
  16291. * src/TrackerWatcherCommand.cc
  16292. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16293. Added no_peer_id=1.
  16294. Set snubbing flag to false when a choke message is received from a
  16295. snubbed peer.
  16296. * src/ChokeMessage.cc
  16297. (receivedAction): Set snubbing flag to false.
  16298. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16299. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16300. * src/SimpleLogger.h (writeHeader): New function.
  16301. * src/SimpleLogger.cc (writeHeader): New function.
  16302. (writeLog): Fixed the bug that causes segfaults if exception message
  16303. contains an unescaped "%" character.
  16304. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16305. when a tracker request fails.
  16306. * src/Request.cc (parseUrl): Query string is now handled properly.
  16307. * Release 0.5.1
  16308. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16309. To add Time class which represents a specific instant in time and
  16310. its precision is microseconds. Time checking procedures were rewritten
  16311. using this object.
  16312. * src/Time.h: New class.
  16313. * src/Time.cc: New class.
  16314. * src/AbstractCommand.h
  16315. (updateCheckPoint): Removed.
  16316. (isTimeoutDetected): Removed.
  16317. (checkPoint): Changed the type to Time.
  16318. (timeout): New variable.
  16319. (setTimeout): New function.
  16320. * src/AbstractCommand.cc
  16321. (AbstractCommand): Removed the initialization of checkPoint.
  16322. Added the initialization of timeout.
  16323. (updateCheckPoint): Removed.
  16324. (isTimeoutDetected): Removed.
  16325. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16326. * src/PeerChokeCommand.h
  16327. (checkPoint): Changed the type to Time.
  16328. * src/PeerChokeCommand.cc
  16329. (PeerChokeCommand): Removed the initialization of checkPoint.
  16330. (execute): Rewritten using Time object.
  16331. * src/TrackerWatcherCommand.h
  16332. (checkPoint): Changed the type to Time.
  16333. * src/TrackerWatcherCommand.cc
  16334. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16335. (execute): Rewritten.
  16336. * src/ConsoleDownloadEngine.h
  16337. (cp): Changed the type to Time.
  16338. (startup): Changed the type to Time.
  16339. * src/ConsoleDownloadEngine.cc
  16340. (initStatistics): Use cp.reset(), startup.reset().
  16341. (calculateStatistics): Rewritten using Time object.
  16342. * src/PeerAbstractCommand.h
  16343. (updateCheckPoint): Removed.
  16344. (isTimeoutDetected): Removed.
  16345. (checkPoint): Changed the type to Time.
  16346. * src/PeerAbstractCommand.cc
  16347. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16348. (updateCheckPoint): Removed.
  16349. (isTimeoutDetected): Removed.
  16350. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16351. * src/PeerInteractionCommand.cc
  16352. (PeerInteractionCommand): Removed the initializations of struct
  16353. timeval variables.
  16354. * src/PeerInteractionCommand.h
  16355. (keepAliveCheckPoint): Changed the type to Time.
  16356. (chokeCheckPoint): Changed the type to Time.
  16357. (freqCheckPoint): Changed the type to Time.
  16358. (haveCheckTime): Changed the type to Time.
  16359. * src/PeerInteractionCommand.cc
  16360. (executeInternal): Rewritten using Time object.
  16361. (detectMessageFlooding): Rewritten using Time object.
  16362. (checkLongTimePeerChoking): Rewritten using Time object.
  16363. (sendKeepAlive): Rewritten using Time object.
  16364. (checkHave): Rewritten using Time object.
  16365. * src/SleepCommand.h
  16366. (checkPoint): Changed the type to Time.
  16367. * src/SleepCommand.cc
  16368. (SleepCommand): Removed the initialization of checkPoint.
  16369. (execute): Rewritten using Time object.
  16370. * src/TorrentAutoSaveCommand.h
  16371. (checkPoint): Changed the type to Time.
  16372. * src/TorrentAutoSaveCommand.cc
  16373. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16374. (execute): Rewritten.
  16375. * src/DownloadCommand.h
  16376. (sw): Changed the type to Time.
  16377. * src/DownloadCommand.cc
  16378. (DownloadCommand): Removed the initialization of sw.
  16379. (executeInternal): Rewritten.
  16380. * src/RequestSlot.h
  16381. (dispatchedTime): Changed the type to Time.
  16382. * src/RequestSlot.cc
  16383. (RequestSlot): Removed the call to setDispatchedTime().
  16384. (setDispatchedTime): Rewirtten.
  16385. (isTimeout): Rewritten.
  16386. (getLatencyInMillis): Rewritten.
  16387. * src/TorrentDownloadEngine.h
  16388. (cp): Changed the type to Time[2].
  16389. (startup): Changed the type to Time.
  16390. * src/TorrentDownloadEngine.cc
  16391. (initStatistics): Rewritten.
  16392. (calculateStatistics): Rewritten.
  16393. * src/DownloadEngine.cc
  16394. (run): Rewritten.
  16395. To detect all attempts to connect to the tracker are failed:
  16396. * src/AbstractCommand.cc
  16397. (execute): Increment e->segmentMan->errors if a command aborted.
  16398. * src/SegmentMan.h
  16399. (errors): New variable.
  16400. * src/SegmentMan.cc
  16401. (SegmentMan): Added the initialization of errors.
  16402. (init): Added the initialization of errors.
  16403. * src/TrackerWatcherCommand.cc
  16404. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16405. request was failed.
  16406. To handle snubbed peers:
  16407. * src/PeerChokeCommand.cc
  16408. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16409. (execute): Snubbed peers don't get unchoked.
  16410. * src/PeerInteraction.h
  16411. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16412. * src/PeerInteraction.cc
  16413. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16414. back the requested 16k block in 60 seconds.
  16415. * src/PieceMessage.cc
  16416. (receivedAction): A peer's snubbed state is cleard if it sends
  16417. the requested 16k block in 60 seconds.
  16418. * src/Peer.h
  16419. (snubbing): New variable.
  16420. * src/Peer.cc
  16421. (resetStatus): Added snubbed = false.
  16422. To fix the bug that causes have message is not sent:
  16423. * src/PeerInteractionCommand.cc
  16424. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16425. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16426. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16427. * src/TorrentMan.h
  16428. (HaveEntry): New class.
  16429. (advertisePiece): Rewritten.
  16430. (getAdvertisedPieceIndexes): Rewritten.
  16431. (Haves): Changed the type.
  16432. (getAdvertisedPieceIndexes): Added an argument.
  16433. Others:
  16434. * src/TorrentMan.h
  16435. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16436. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16437. * src/TorrentMan.cc
  16438. (getPeer): Don't check the number of connections here.
  16439. (setupInternal1): Changed peerId.
  16440. * src/PeerInteractionCommand.h
  16441. (KEEP_ALIVE_INTERVAL): New definition.
  16442. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16443. * src/main.cc
  16444. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16445. * src/DownloadEngine.h: Removed unnecessary header includes.
  16446. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16447. To fix the bug that causes segfaults if a tracker returns a zero-length
  16448. list as "peers":
  16449. * src/TrackerUpdateCommand.cc
  16450. (execute): Added a check to see wether the type of peers is Data*.
  16451. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16452. * Release 0.5.0
  16453. To fix compile issue with gcc3:
  16454. * src/CancelMessage.h
  16455. (ID): Renamed as ID_t
  16456. (ID_t): New enum.
  16457. * src/RejectMessage.h
  16458. (ID): Renamed as ID_t
  16459. (ID_t): New enum.
  16460. * src/SuggestPieceMessage.h
  16461. (ID): Renamed as ID_t
  16462. (ID_t): New enum.
  16463. * src/AllowedFastMessage.h
  16464. (ID): Renamed as ID_t
  16465. (ID_t): New enum.
  16466. * src/PortMessage.h
  16467. (ID): Renamed as ID_t
  16468. (ID_t): New enum.
  16469. * src/HaveNoneMessage.h
  16470. (ID): Renamed as ID_t
  16471. (ID_t): New enum.
  16472. * src/KeepAliveMessage.h
  16473. (ID): Renamed as ID_t
  16474. (ID_t): New enum.
  16475. * src/HaveAllMessage.h
  16476. (ID): Renamed as ID_t
  16477. (ID_t): New enum.
  16478. * src/UnchokeMessage.h
  16479. (ID): Renamed as ID_t
  16480. (ID_t): New enum.
  16481. * src/BitfieldMessage.h
  16482. (ID): Renamed as ID_t
  16483. (ID_t): New enum.
  16484. * src/PieceMessage.h
  16485. (ID): Renamed as ID_t
  16486. (ID_t): New enum.
  16487. * src/RequestMessage.h
  16488. (ID): Renamed as ID_t
  16489. (ID_t): New enum.
  16490. * src/NotInterestedMessage.h
  16491. (ID): Renamed as ID_t
  16492. (ID_t): New enum.
  16493. * src/ChokeMessage.h
  16494. (ID): Renamed as ID_t
  16495. (ID_t): New enum.
  16496. * src/InterestedMessage.h
  16497. (ID): Renamed as ID_t
  16498. (ID_t): New enum.
  16499. * src/HaveMessage.h
  16500. (ID): Renamed as ID_t
  16501. (ID_t): New enum.
  16502. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16503. * src/PeerAbstractCommand.h
  16504. (beforeSocketCheck): Removed.
  16505. * src/PeerAbstractCommand.cc
  16506. Modified in order to call executeInternal() even if socket check
  16507. and upload limit check fail.
  16508. * src/PeerInteractionCommand.h
  16509. (keepAlive): Removed.
  16510. (sendKeepAlive): New function.
  16511. (checkHave): New function.
  16512. (beforeSocketCheck): Removed.
  16513. * src/PeerInteractionCommand.cc
  16514. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16515. calls to checkHave() and sendKeepAlive().
  16516. (keepAlive): Renamed to sendKeepAlive().
  16517. (sendKeepAlive): New function.
  16518. (beforeSocketCheck): Removed.
  16519. (checkHave): New function.
  16520. * src/BitfieldMan.cc
  16521. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16522. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16523. 0.
  16524. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16525. * src/TorrentMan.h
  16526. (UsedPieces): Removed.
  16527. (Pieces): New type definition.
  16528. * src/Piece.h: Updated doc.
  16529. * src/Peer.h
  16530. (totalLength): Removed.
  16531. * src/Peer.cc
  16532. (updateLatency): Fixed the latency calculation.
  16533. * src/TorrentMan.cc
  16534. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16535. than or equal to MAX_PEER_LIST_SIZE.
  16536. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16537. then return false.
  16538. (deleteOldErrorPeers): Rewritten.
  16539. (deleteUsedPiece): Fixed the miss use of STL remove.
  16540. * src/PeerInteraction.h
  16541. (Pieces): Removed.
  16542. (deleteTimeoutRequestSlot): Removed.
  16543. (deleteCompletedRequestSlot): Removed.
  16544. (checkRequestSlot): New function.
  16545. * src/PeerInteraction.cc
  16546. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16547. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16548. (checkRequestSlot): New function.
  16549. * src/DownloadEngine.cc
  16550. (run): Clear activeSockets before calling waitData().
  16551. (waitData): Removed a call to activeSockets.clear().
  16552. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16553. To attempt to handle EINTR:
  16554. * src/SocketCore.cc
  16555. (isReadable): Added EINTR handling.
  16556. (isWritable): Added EINTR handling.
  16557. To improve the performance:
  16558. * src/AbstractCommand.cc
  16559. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16560. * src/PeerInteractionCommand.h
  16561. (receiveMessage): Renamed as receiveMessages().
  16562. (receiveMessages): New function.
  16563. * src/PeerInteractionCommand.cc
  16564. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16565. () function. detectMessageFlooding() is moved here.
  16566. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16567. (). The flooding detection for have message is comment out.
  16568. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16569. Util::difftv().
  16570. (receiveMessage): Renamed as receiveMessages().
  16571. (receiveMessages): New function.
  16572. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16573. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16574. * src/SleepCommand.cc
  16575. (execute): Use Util::difftvsec() instead of Util::difftv().
  16576. * src/BitfieldMan.h
  16577. (getNthBitIndex): New function.
  16578. (hasMissingPiece): New function.
  16579. (getAllMissingIndexes): New function.
  16580. * src/BitfieldMan.cc
  16581. (countSetBit): Rewritten.
  16582. (getNthBitIndex): New function.
  16583. (getMissingIndexRandomly): Rewritten.
  16584. (hasMissingPiece): New function.
  16585. (getAllMissingIndexes): New function.
  16586. * src/TorrentMan.cc
  16587. (hasMissingPiece): New function.
  16588. (deleteUsedPiece): Rewritten using STL.
  16589. * src/PeerInteraction.cc
  16590. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16591. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16592. (addRequests): Updated the number of pending requests.
  16593. * src/PeerAbstractCommand.cc
  16594. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16595. (execute): Returns true if TorrentMan::isHalt() is true.
  16596. Corrected the condition of upload limit checking.
  16597. * src/Util.h
  16598. (countBit): New function.
  16599. * src/Util.cc
  16600. (nbits): New variable.
  16601. (countBit): New function.
  16602. * src/DownloadEngine.h
  16603. (SockCmdMap): New type definition.
  16604. (waitData): Added an argument.
  16605. (addSocket): Added an argument.
  16606. (addSocketForReadCheck): Added an argument.
  16607. (addSocketForWriteCheck): Added an argument.
  16608. * src/DownloadEngine.cc
  16609. (run): Executes only commands whose sockets are ready to read or write.
  16610. All commands are executed in every 1 second.
  16611. (waitData): Calls select() again if it returned
  16612. EINTR.
  16613. (addSocket): Saves socket and command object pair to the map.
  16614. (deleteSocket): Deletes socket and command object pair from the map.
  16615. (addSocketForReadCheck): Added an argument.
  16616. (addSocketForWriteCheck): Added an argument.
  16617. * src/DownloadCommand.cc
  16618. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16619. To send "event=stopped" to the tracker when the application finishes:
  16620. * src/PeerChokeCommand.h
  16621. (checkPoint): New variable.
  16622. * src/PeerChokeCommand.cc
  16623. (PeerChokeCommand): Added the initialization of checkPoint.
  16624. (execute): The interval check is now done by checkPoint, not
  16625. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16626. * src/TorrentMan.h
  16627. (halt): New function.
  16628. (hasMissingPiece): New function.
  16629. (isHalt): New function.
  16630. (setHalt): New function.
  16631. * src/TorrentMan.cc
  16632. (TorrentMan): Added the initialization of halt.
  16633. * src/TorrentAutoSaveCommand.h
  16634. (checkPoint): New variable.
  16635. * src/PeerListenCommand.cc
  16636. (execute): Returns true if TorrentMan::isHalt() is true.
  16637. * src/main.cc
  16638. (setSignalHander): Added flags argument.
  16639. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16640. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16641. Removed printDownloadAbortMessage() after torrent downloading loop.
  16642. * src/TorrentAutoSaveCommand.cc
  16643. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16644. (execute): Returns true if TorrentMan::isHalt() is true.
  16645. The interval check is now done by checkPoint, not SleepCommand.
  16646. * src/TrackerWatcherCommand.cc
  16647. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16648. event=stopped.
  16649. * src/TrackerUpdateCommand.cc
  16650. (prepareForRetry): Do not use SleepCommand here.
  16651. (execute): Returns true if TorrentMan::isHalt() is true.
  16652. Others:
  16653. * src/TorrentMan.cc
  16654. (getMissingPieceIndex): Updated log message.
  16655. * src/PeerInteraction.cc
  16656. (createPeerMessag): Updated log message.
  16657. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16658. To add the ability to download several pieces in mix in a command and
  16659. increase the number of request slots according to request-cancel
  16660. latency:
  16661. * src/PeerInteractionCommand.cc
  16662. (executeInternal): The number of messages to be received at a time
  16663. is increased from 10 to 50.
  16664. * src/LogFactory
  16665. (getInstance): Added NullLogger.
  16666. * src/NullLogger.h: New class.
  16667. * src/BitfieldMan.h
  16668. (getMissingIndex): New function.
  16669. * src/BitfieldMan.cc
  16670. (getMissingIndex): New function.
  16671. * src/TorrentMan.h
  16672. (checkOutPiece): New function.
  16673. (getMissingPieceIndex): New function.
  16674. (getMissingFastPieceIndex): New function.
  16675. (getMissingFastPiece): New function.
  16676. * src/TorrentMan.cc
  16677. (updatePiece): Rewritten using STL.
  16678. (syncPiece): Rewritten using STL.
  16679. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16680. checkOutPiece().
  16681. (getMissingPieceIndex): New function.
  16682. (getMissingFastPieceIndex): New function.
  16683. (getMissingFastPiece): New function.
  16684. (checkOutPiece): New function.
  16685. * src/PeerInteraction.h
  16686. (Pieces): New type definition.
  16687. (piece): Removed.
  16688. (pieces): New variable.
  16689. (getNewPieceAndSendInterest): Added the "piece" argument.
  16690. (abortPiece): Added the "piece" argument.
  16691. (abortAllPieces): New function.
  16692. (isInRequestSlot): New function.
  16693. (hasDownloadPiece): Added the "index" argument.
  16694. (setDownloadPiece): Removed.
  16695. (getDownloadPiece): Added the "index" argument.
  16696. (updatePiece): New function.
  16697. (createRequestMessage): Added the "index" argument.
  16698. * src/PeerInteraction.cc
  16699. (onChoked): Rewritten.
  16700. (abortPiece): Rewirtten.
  16701. (abortAllPieces): New function.
  16702. (deleteTimeoutRequestSlot): Rewritten.
  16703. Clarified code a little bit.
  16704. (deleteCompletedRequestSlot): Rewritten.
  16705. (isInRequestSlot): New function.
  16706. (syncPiece): Rewritten.
  16707. (updatePiece): New function.
  16708. (getNewPieceAndSendInterest): Rewritten.
  16709. (addRequests): Rewritten.
  16710. (getDownloadPiece): Rewritten.
  16711. (hasDownloadPiece): Rewritten.
  16712. (createRequestMessage): Added the "index" argument.
  16713. * src/common.h
  16714. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16715. (DIV_FLOOR): New definition.
  16716. * src/PieceMessage.cc
  16717. (receivedAction): Update request-piece latency here.
  16718. * src/RequestSlot.h
  16719. (getLatencyInMillis): New function.
  16720. * src/RequestSlot.cc
  16721. (isTimeout): Rewritten using getLatencyInMillis.
  16722. (getLatencyInMillis): New function.
  16723. * src/Piece.h
  16724. (operator==): New function.
  16725. (getMissingBlockIndex): New function.
  16726. * src/Piece.cc
  16727. (operator==): New function.
  16728. (getMissingBlockIndex): New function.
  16729. * src/Peer.h
  16730. (DEFAULT_LATENCY): New definition.
  16731. (latency): New variable.
  16732. (updateLatency): New function.
  16733. (getLatency): New function.
  16734. * src/Peer.cc
  16735. (resetStatus): Reset latecy.
  16736. (updateLatency): New function.
  16737. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16738. * src/SocketCore.cc
  16739. (isReadable): Added secure to the condition.
  16740. * src/HttpConnection.cc
  16741. (receiveResponse): Fixed a bug that causes no response header
  16742. exception.
  16743. * src/Peer.h
  16744. (getFastSet): Fixed the return value type.
  16745. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16746. To remove a wait from download loop:
  16747. * src/DownloadEngine.cc
  16748. (run): Comment out shortSleep.
  16749. To rewrite the message handling:
  16750. * src/SimplePeerMessage.h: New class.
  16751. * src/SimplePeerMessage.cc: New class.
  16752. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16753. (msg): New variable.
  16754. (create): New function.
  16755. (send): Removed.
  16756. (getMessage): New function.
  16757. (getMessageLength): New function.
  16758. * src/CancelMessage.cc
  16759. (create): New function.
  16760. (receivedAction): Replaced deleteRequestMessageInQueue with
  16761. rejectPieceMessageInQueue.
  16762. (send): Removed.
  16763. (getMessage): New function.
  16764. (getMessageLength): New function.
  16765. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16766. (msg): New variable.
  16767. (msgLength): New variable.
  16768. (~BitfieldMessage): Deleted msg.
  16769. (send): Removed.
  16770. (getMessage): New function.
  16771. (getMessageLength): New function.
  16772. * src/BitfieldMessage.cc
  16773. (create): New function.
  16774. (send): Removed.
  16775. (getMessage): New function.
  16776. (getMessageLength): New function.
  16777. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16778. (msg): New variable.
  16779. (sendPredicate): New function.
  16780. (onSendComplete): New function.
  16781. (send): Removed.
  16782. (getMessage): New function.
  16783. (getMessageLength): New function.
  16784. (create): New function.
  16785. * src/ChokeMessage.cc
  16786. (create): New function.
  16787. (send): Removed.
  16788. (sendPredicate): New function.
  16789. (getMessage): New function.
  16790. (getMessageLength): New function.
  16791. (onSendComplete): New function.
  16792. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16793. (msg): New variable.
  16794. (send): Removed.
  16795. (getMessage): New function.
  16796. (getMessageLength): New function.
  16797. * src/KeepAliveMessage.cc
  16798. (send): Removed.
  16799. (getMessage): New function.
  16800. (getMessageLength): New function.
  16801. * src/PortMessage.h
  16802. (create): New function.
  16803. (receivedAction): Updated log message.
  16804. * src/PortMessage.cc: New file.
  16805. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16806. (msg): New variable.
  16807. (sendPredicate): New function.
  16808. (onSendComplete): New function.
  16809. (create): New function.
  16810. (send): Removed.
  16811. (getMessage): New function.
  16812. (getMessageLength): New function.
  16813. * src/UnchokeMessage.cc
  16814. (create): New function.
  16815. (send): Removed.
  16816. (sendPredicate): New function.
  16817. (getMessage): New function.
  16818. (getMessageLength): New function.
  16819. (onSendComplete): New function.
  16820. * src/PieceMessage.h
  16821. (leftPieceDataLength): Removed.
  16822. (leftDataLength): New variable.
  16823. (headerSend): New variable.
  16824. (pendingCount): New variable.
  16825. (msgHeader): New variable.
  16826. (sendPieceData): New function.
  16827. (incrementPendingCount): New function.
  16828. (isPendingCountMax): New function.
  16829. (create): New function.
  16830. (getMessageHeader): New function.
  16831. (getMessageHeaderLength): New function.
  16832. * src/PieceMessage.cc
  16833. (create): New function.
  16834. (getMessageHeader): New function.
  16835. (getMessageHeaderLength): New function.
  16836. (send): Rewritten.
  16837. (sendPieceData): New function.
  16838. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16839. (msg): New variable.
  16840. (create): New function.
  16841. (getMessage): New function.
  16842. (getMessageLength): New function.
  16843. * src/HaveMessage.cc
  16844. (create): New function.
  16845. (send): Removed.
  16846. (sendPieceData): New function.
  16847. (getMessage): New function.
  16848. (getMessageLength): New function.
  16849. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16850. (msg): New variable.
  16851. (create): New function.
  16852. (send): Removed.
  16853. (getMessage): New function.
  16854. (getMessageLength): New function.
  16855. * src/RequestMessage.cc
  16856. (create): New function.
  16857. (receivedAction): Added the handling of fast extension.
  16858. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16859. (send): Removed.
  16860. (getMessage): New function.
  16861. (getMessageLength): New function.
  16862. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16863. (msg): New variable.
  16864. (sendPredicate): New function.
  16865. (onSendComplete): New function.
  16866. (create): New function.
  16867. (getMessage): New function.
  16868. (getMessageLength): New function.
  16869. * src/InterestedMessage.cc
  16870. (create): New function.
  16871. (send): Removed.
  16872. (sendPieceData): New function.
  16873. (getMessage): New function.
  16874. (getMessageLength): New function.
  16875. (onSendComplete): New function.
  16876. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16877. (msg): New variable.
  16878. (sendPieceData): New function.
  16879. (onSendComplete): New function.
  16880. (create): New function.
  16881. (send): Removed.
  16882. (getMessage): New function.
  16883. (getMessageLength): New function.
  16884. * src/NotInterestedMessage.cc
  16885. (create): New function.
  16886. (send): Removed.
  16887. (sendPredicate): New function.
  16888. (getMessage): New function.
  16889. (getMessageLength): New function.
  16890. (onSendComplete): New function.
  16891. * src/AllowedFastMessage.h: New class.
  16892. * src/AllowedFastMessage.cc: New class.
  16893. * src/RejectMessage.h: New class.
  16894. * src/RejectMessage.cc: New class.
  16895. * src/SuggestPieceMessage.h: New class.
  16896. * src/SuggestPieceMessage.cc: New class.
  16897. * src/HaveAllMessage.h: New class.
  16898. * src/HaveAllMessage.cc: New class.
  16899. * src/HaveNoneMessage.h: New class.
  16900. * src/HaveNoneMessage.cc: New class.
  16901. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16902. (msg): New variable.
  16903. (reserved): New variable.
  16904. (create): New function.
  16905. (getId): New function.
  16906. (receivedAction): New function.
  16907. (getMessage): New function.
  16908. (getMessageLength): New function.
  16909. (isFastExtensionSupported): New function.
  16910. * src/HandshakeMessage.cc
  16911. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16912. (create): New function.
  16913. (getMessage): New function.
  16914. (getMessageLength): New function.
  16915. (toString): Added the output of reserved field.
  16916. (check): Added const qualifier.
  16917. (isFastExtensionSupported): New function.
  16918. * src/PeerMessageUtil.h
  16919. (createChokeMessage): Removed.
  16920. (createUnchokeMessage): Removed.
  16921. (createInterestedMessage): Removed.
  16922. (createNotInterestedMessage): Removed.
  16923. (createHaveMessage): Removed.
  16924. (createBitfieldMessage): Removed.
  16925. (createRequestMessage): Removed.
  16926. (createCancelMessage): Removed.
  16927. (createPieceMessage): Removed.
  16928. (createPortMessage): Removed.
  16929. (createChokeMessage): Removed.
  16930. (createUnchokeMessage): Removed.
  16931. (createInterestedMessage): Removed.
  16932. (createNotInterestedMessage): Removed.
  16933. (createHaveMessage): Removed.
  16934. (createBitfieldMessage): Removed.
  16935. (createRequestMessage): Removed.
  16936. (createCancelMessage): Removed.
  16937. (createPieceMessage): Removed.
  16938. (createKeepAliveMessage): Removed.
  16939. (createHandshakeMessage): Removed.
  16940. (setIntParam): New function.
  16941. (createPeerMessageString): New function.
  16942. * src/PeerMessageUtil.cc
  16943. (createChokeMessage): Removed.
  16944. (createUnchokeMessage): Removed.
  16945. (createInterestedMessage): Removed.
  16946. (createNotInterestedMessage): Removed.
  16947. (createHaveMessage): Removed.
  16948. (createBitfieldMessage): Removed.
  16949. (createRequestMessage): Removed.
  16950. (createCancelMessage): Removed.
  16951. (createPieceMessage): Removed.
  16952. (createPortMessage): Removed.
  16953. (createRequestMessage): Removed.
  16954. (createCancelMessage): Removed.
  16955. (createPieceMessage): Removed.
  16956. (createHaveMessage): Removed.
  16957. (createChokeMessage): Removed.
  16958. (createUnchokeMessage): Removed.
  16959. (createInterestedMessage): Removed.
  16960. (createNotInterestedMessage): Removed.
  16961. (createBitfieldMessage): Removed.
  16962. (createKeepAliveMessage): Removed.
  16963. (createHandshakeMessage): Removed.
  16964. (setIntParam): New function.
  16965. (createPeerMessageString): New function.
  16966. * src/PeerConnection.h
  16967. (peer): Removed.
  16968. (torrentMan): Removed.
  16969. (createNLengthMessage): Removed.
  16970. (setIntParam): Removed.
  16971. (writeOutgoingMessageLog): Removed all overloaded functions.
  16972. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16973. (sendMessage): New function.
  16974. (sendHandshake): Removed.
  16975. (sendKeepAlive): Removed.
  16976. (sendChoke): Removed.
  16977. (sendUnchoke): Removed.
  16978. (sendInterested): Removed.
  16979. (sendNotInterested): Removed.
  16980. (sendHave): Removed.
  16981. (sendBitfield): Removed.
  16982. (sendRequest): Removed.
  16983. (sendPiece): Removed.
  16984. (sendPieceHeader): Removed.
  16985. (sendPieceData): Removed.
  16986. (sendCancel): Removed.
  16987. (getPeer): Removed.
  16988. * src/PeerConnection.cc
  16989. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16990. (sendHandshake): Removed.
  16991. (sendKeepAlive): Removed.
  16992. (createNLengthMessage): Removed.
  16993. (setIntParam): Removed.
  16994. (writeOutgoingMessageLog): Removed all overloaded functions.
  16995. (sendChoke): Removed.
  16996. (sendUnchoke): Removed.
  16997. (sendInterested): Removed.
  16998. (sendNotInterested): Removed.
  16999. (sendHave): Removed.
  17000. (sendBitfield): Removed.
  17001. (sendRequest): Removed.
  17002. (sendPiece): Removed.
  17003. (sendPieceHeader): Removed.
  17004. (sendPieceData): Removed.
  17005. (sendMessage): New function.
  17006. (sendCancel): Removed.
  17007. * src/PeerInteractionCommand.cc
  17008. (PeerInteractionCommand): Call setUploadLimit.
  17009. (executeInternal): Call setUploadLimit.
  17010. Added the handling of "inProgress" state of handshake message.
  17011. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17012. sendNow().
  17013. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17014. sendNow().
  17015. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17016. * src/TorrentMan.h
  17017. (PEER_ID_LENGTH): New definition.
  17018. (hasAllPieces): New function.
  17019. * src/TorrentMan.cc
  17020. (getMissingPiece): Added the handling of fast extension.
  17021. (cancelPiece): Call updatePiece().
  17022. (hasAllPieces): New function.
  17023. * src/PeerInteraction.h
  17024. (fastSet): New variable.
  17025. (getNewPieceAndSendInterest): Changed the return type to void.
  17026. (send): Renamed as sendMessages.
  17027. (deleteAllRequestSlot): Removed.
  17028. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17029. (cancelAllRequest): Removed all overloaded functions.
  17030. (deleteAllRequestSlot): Removed.
  17031. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17032. (rejectPieceMessageInQueue): New function.
  17033. (rejectAllPieceMessageInQueue): New function.
  17034. (onChoked): New function.
  17035. (isSendingMessageInProgress): New function.
  17036. (getCorrespondingRequestSlot): Changed its arguments.
  17037. (isInFastSet): New function.
  17038. (addFastSetIndex): New function.
  17039. (addRequests): New function.
  17040. (sendNow): Removed.
  17041. (trySendNow): Removed.
  17042. (sendBitfield): New function.
  17043. (sendAllowdFast): New function.
  17044. (createHaveAllMessage): New function.
  17045. (createHaveNoneMessage): New function.
  17046. (createRejectMessage): New function.
  17047. (createAllowedFastMessage): New function.
  17048. * src/PeerInteraction.cc
  17049. (send): Renamed as sendMessages.
  17050. (sendMessages): New function.
  17051. (MsgPushBack): New class.
  17052. (isSendingMessageInProgress): New function.
  17053. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17054. (rejectAllPieceMessageInQueue): New function.
  17055. Added the handling of fast extension.
  17056. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17057. (rejectPieceMessageInQueue): New function.
  17058. Added the handling of fast extension.
  17059. (deleteRequestSlot): Replaced for loop with std::find.
  17060. (onChoked): New function.
  17061. (deleteAllRequestSlot): Removed.
  17062. (abortPiece): Rewirtten.
  17063. (deleteTimeoutRequestSlot): Updated log messages.
  17064. (getCorrespondingRequestSlot): Changed its arguments.
  17065. (cancelAllRequest): Removed all overloaded functions.
  17066. (receiveHandshake): Added the check to see whether an incoming peer
  17067. supports fast extension.
  17068. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17069. PeerMessageUtil.
  17070. (createPeerMessage): Use create() of each message class instead of
  17071. PeerMessageUtil.
  17072. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17073. AllowedFastMessage were added.
  17074. (getNewPieceAndSendInterest): Changed its return value type to void.
  17075. Added the handling of fast extension.
  17076. (addRequests): New function.
  17077. (sendNow): Removed.
  17078. (sendHandshake): Rewritten.
  17079. (trySendNow): Removed.
  17080. (sendBitfield): New function.
  17081. (sendAllowdFast): New function.
  17082. (isInFastSet): New function.
  17083. (addFastSetIndex): New function.
  17084. (createRequestMessage): Use RequestMessage::create instead of
  17085. PeerMessageUtil.
  17086. (createCancelMessage): Use CancelMessage::create instead of
  17087. PeerMessageUtil.
  17088. (createPieceMessage): Use PieceMessage::create instead of
  17089. PeerMessageUtil.
  17090. (createHaveMessage): Use HaveMessage::create instead of
  17091. PeerMessageUtil.
  17092. (createChokeMessage): Use ChokeMessage::create instead of
  17093. PeerMessageUtil.
  17094. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17095. PeerMessageUtil.
  17096. (createInterestedMessage): Use InterestedMessage::create instead of
  17097. PeerMessageUtil.
  17098. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17099. of PeerMessageUtil.
  17100. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17101. PeerMessageUtil.
  17102. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17103. PeerMessageUtil.
  17104. (createHaveAllMessage): New function.
  17105. (createHaveNoneMessage): New function.
  17106. (createRejectMessage): New function.
  17107. (createAllowedFastMessage: New function.
  17108. * src/Util.h
  17109. (sha1Sum): New function.
  17110. (computeFastSet): New function.
  17111. * src/Util.cc
  17112. (sha1Sum): New function.
  17113. (computeFastSet): New function.
  17114. * src/Peer.h
  17115. (fastExtensionEnabled): New variable.
  17116. (fastSet): New variable.
  17117. (setAllBitfield): New function.
  17118. (setFastExtensionEnabled): New function.
  17119. (isFastExtensionEnabled): New function.
  17120. (addFastSetIndex): New function.
  17121. (getFastSet): New function.
  17122. (isInFastSet): New function.
  17123. (countFastSet): New function.
  17124. * src/Peer.cc
  17125. (isInFastSet): New function.
  17126. (addFastSetIndex): New function.
  17127. (setAllBitfield): New function.
  17128. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17129. sockets.
  17130. * src/PeerAbstractCommand.cc
  17131. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17132. and uploadLimit.
  17133. (execute): Changed the procedure of checking sockets. The upload speed
  17134. checking were added.
  17135. (setUploadLimit): New function.
  17136. (setUploadLimitCheck): New function.
  17137. * src/PeerAbstractCommand.h
  17138. (setUploadLimit): New function.
  17139. (setUploadLimitCheck): New function.
  17140. (uploadLimit): New variable.
  17141. (uploadLimitCheck): New variable.
  17142. To contact a tracker regularly:
  17143. * src/TrackerWatcherCommand.h (interval): New variable.
  17144. (checkPoint): New variable.
  17145. (TrackerWatcherCommand): Added interval argument.
  17146. * src/TrackerWatcherCommand.cc
  17147. (TrackerWatcherCommand): Initialized checkPoint.
  17148. (execute): Now a tracker is contacted in every specified period.
  17149. If peer list is not needed, send request with numwant=0.
  17150. * src/TrackerUpdateCommand.cc
  17151. (execute): Updated log messages.
  17152. * src/DownloadEngine.cc
  17153. (~DownloadEngine): Removed two asserts.
  17154. (waitData): Uncommented wfds. May be a bug fix.
  17155. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17156. * src/PeerInteractionCommand.h
  17157. (checkInactiveConnection): Removed.
  17158. * src/PeerInteractionCommand.cc
  17159. (executeInternal): Removed following function calls:
  17160. detectMessageFlooding(), checkLongTimePeerChoking and
  17161. checkInactiveConnection().
  17162. (checkInactiveConnection): Removed.
  17163. (detectMessageFlooding): Removed function call to
  17164. checkInactiveConnection().
  17165. * src/PeerMessageUtil.h
  17166. (createChokeMessage): New function. Overload.
  17167. (createUnchokeMessage): New function. Overload.
  17168. (createInterestedMessage): New function. Overload.
  17169. (createNotInterestedMessage): New function. Overload.
  17170. (createHaveMessage): New function. Overload.
  17171. (createBitfieldMessage): New function. Overload.
  17172. (createRequestMessage): New function. Overload.
  17173. (createCancelMessage): New function. Overload.
  17174. (createPieceMessage): New function. Overload.
  17175. (createKeepAliveMessage): New function. Overload.
  17176. * src/PeerMessageUtil.cc
  17177. (createChokeMessage): New function. Overload.
  17178. (createUnchokeMessage): New function. Overload.
  17179. (createInterestedMessage): New function. Overload.
  17180. (createNotInterestedMessage): New function. Overload.
  17181. (createHaveMessage): New function. Overload.
  17182. (createBitfieldMessage): New function. Overload.
  17183. (createRequestMessage): New function. Overload.
  17184. (createCancelMessage): New function. Overload.
  17185. (createPieceMessage): New function. Overload.
  17186. (createKeepAliveMessage): New function. Overload.
  17187. * src/SendMessageQueue.cc
  17188. (createRequestMessage): Use PeerMessageUtil.
  17189. (createCancelMessage): Use PeerMessageUtil.
  17190. (createPieceMessage): Use PeerMessageUtil.
  17191. (createHaveMessage): Use PeerMessageUtil.
  17192. (createChokeMessage): Use PeerMessageUtil.
  17193. (createUnchokeMessage): Use PeerMessageUtil.
  17194. (createInterestedMessage): Use PeerMessageUtil.
  17195. (createNotInterestedMessage): Use PeerMessageUtil.
  17196. (createBitfieldMessage): Use PeerMessageUtil.
  17197. (createKeepAliveMessage): Use PeerMessageUtil.
  17198. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17199. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17200. * src/PeerInteraction.h: New class.
  17201. * src/PeerInteraction.cc: New class.
  17202. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17203. Each peer message has its own class.
  17204. * src/PendingMessages.h: Removed.
  17205. * src/PendingMessages.cc: Removed. The sending process was moved to
  17206. each message class.
  17207. * src/RequestSlotMan.h: Removed.
  17208. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17209. SendMessageQueue.
  17210. * src/RequestMessage.h: New class.
  17211. * src/RequestMessage.cc: New class.
  17212. * src/CancelMessage.h: New class.
  17213. * src/CancelMessage.cc: New class.
  17214. * src/BitfieldMessage.h: New class.
  17215. * src/BitfieldMessage.cc: New class.
  17216. * src/ChokeMessage.h: New class.
  17217. * src/ChokeMessage.cc: New class.
  17218. * src/KeepAliveMessage.h: New class.
  17219. * src/KeepAliveMessage.cc: New class.
  17220. * src/PortMessage.h: New class.
  17221. * src/UnchokeMessage.h: New class.
  17222. * src/UnchokeMessage.cc: New class.
  17223. * src/PieceMessage.h: New class.
  17224. * src/PieceMessage.cc: New class.
  17225. * src/HaveMessage.h: New class.
  17226. * src/HaveMessage.cc: New class.
  17227. * src/BitfieldMessage.h: New class.
  17228. * src/BitfieldMessage.cc: New class.
  17229. * src/NotInterestedMessage.h: New class.
  17230. * src/NotInterestedMessage.cc: New class.
  17231. * src/InterestedMessage.h: New class.
  17232. * src/InterestedMessage.cc: New class.
  17233. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17234. (getSendMessageQueue): New function.
  17235. (setSendMessageQueue): New function.
  17236. * src/HandshakeMessage.cc: New class.
  17237. * src/PeerConnection.h (receiveMessage): Changed return value and
  17238. arguments.
  17239. (receiveHandshake): Changed return value and arguments.
  17240. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17241. here.
  17242. (receiveHandshake): Do not create handshake class here.
  17243. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17244. (piece): Removed.
  17245. (syncPiece): Removed.
  17246. (sendInterest): Removed.
  17247. (sendMessages): Removed.
  17248. (createRequestPendingMessage): Removed.
  17249. (checkPieceHash): Removed.
  17250. (erasePieceOnDisk): Removed.
  17251. (getNewPieceAndSendInterest): Removed.
  17252. (onGotNewPice): Removed.
  17253. (onGotWrongPiece): Removed.
  17254. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17255. Removed peerConnection, piece.
  17256. (~PeerInteractionCommand): Removed peerConnection.
  17257. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17258. (syncPiece): Moved to SendMessageQueue.
  17259. (decideChoking): Removed PendingMessage.
  17260. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17261. The action after receiving peer message was moved to each message
  17262. class.
  17263. (onGotNewPice): Moved to SendMessageQueue.
  17264. (onGotWrongPiece): Moved to SendMessageQueue.
  17265. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17266. (sendInterest): Moved to SendMessageQueue.
  17267. (createRequestPendingMessage): Removed.
  17268. (sendMessages): Moved to SendMessageQueue.
  17269. (onAbort): Use SendMessageQueue::abortPiece()
  17270. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17271. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17272. (checkPieceHash): Moved to SendMessageQueue.
  17273. (erasePieceOnDisk): Moved to SendMessageQueue.
  17274. * src/PeerMessageUtil.h
  17275. (createBitfieldMessage): Removed.
  17276. (createHaveMessage): Changed return value and arguments.
  17277. (createBitfieldMessage): Changed return value and arguments.
  17278. (createRequestCancelMessage): Removed.
  17279. (createPieceMessage): Changed return value and arguments.
  17280. (getShortIntParam): New function.
  17281. (checkIndex): Changed arguments.
  17282. (checkBegin): Changed arguments.
  17283. (checkLength): Changed arguments.
  17284. (checkPieceOffset): Removed.
  17285. (checkRange): New function.
  17286. (checkBitfield): Changed arguments.
  17287. (createPeerMessage): Removed.
  17288. (checkIntegrity): Removed.
  17289. (createHandshakeMessage): Changed arguments.
  17290. (createChokeMessage): New function.
  17291. (createUnchokeMessage): New function.
  17292. (createInterestedMessage): New function.
  17293. (createNotInterestedMessage): New function.
  17294. (createRequestMessage): New function.
  17295. (createCancelMessage): New function.
  17296. (createPortMessage): New function.
  17297. * src/PeerMessageUtil.cc
  17298. (createBitfieldMessage): Removed.
  17299. (createHaveMessage): Changed return value and arguments.
  17300. (createBitfieldMessage): Changed return value and arguments.
  17301. (createRequestCancelMessage): Removed.
  17302. (createPieceMessage): Changed return value and arguments.
  17303. (getShortIntParam): New function.
  17304. (checkIndex): Changed arguments.
  17305. (checkBegin): Changed arguments.
  17306. (checkLength): Changed arguments.
  17307. (checkPieceOffset): Removed.
  17308. (checkRange): New function.
  17309. (checkBitfield): Changed arguments.
  17310. (createPeerMessage): Removed.
  17311. (checkIntegrity): Removed.
  17312. (createHandshakeMessage): Changed arguments.
  17313. (createChokeMessage): New function.
  17314. (createUnchokeMessage): New function.
  17315. (createInterestedMessage): New function.
  17316. (createNotInterestedMessage): New function.
  17317. (createRequestMessage): New function.
  17318. (createCancelMessage): New function.
  17319. (createPortMessage): New function.
  17320. * src/PeerMessage.h
  17321. (id): Removed.
  17322. (index): Removed.
  17323. (begin): Removed.
  17324. (length): Removed.
  17325. (bitfield): Removed.
  17326. (bitfieldLength): Removed.
  17327. (block): Removed.
  17328. (blockLength): Removed.
  17329. (inProgress): New variable.
  17330. (cuid): New variable.
  17331. (peer): New variable.
  17332. (sendMessageQueue): New variable.
  17333. (logger): New variable.
  17334. (setBitfield): Removed.
  17335. (getBitfield): Removed.
  17336. (setBlock): Removed.
  17337. (getBlock): Removed.
  17338. (getBitfieldLength): Removed.
  17339. (getBlockLength): Removed.
  17340. (isInProgress): New function.
  17341. (toString): Made pure virtual.
  17342. (check): New function.
  17343. (send): New function.
  17344. (receivedAction): New function.
  17345. (getId): Made pure virtual.
  17346. (setId): Removed.
  17347. (getIndex): Removed.
  17348. (setIndex): Removed.
  17349. (getBegin): Removed.
  17350. (setBegin): Removed.
  17351. (getLength): Removed.
  17352. (setLength): Removed.
  17353. (getCuid): New function.
  17354. (setCuid): New function.
  17355. (getPeer): New function.
  17356. (setPeer): New function.
  17357. (getSendMessageQueue): New function.
  17358. (setSendMessageQueue): New function.
  17359. (ID): Removed.
  17360. * src/PeerMessage.cc
  17361. (setBitfield): Removed.
  17362. (setBlock): Removed.
  17363. (toString): Removed.
  17364. * src/TorrentMan.h
  17365. (getPieceLength): New function.
  17366. (getPieceLength): New function.
  17367. * src/SendMessageQueue.h
  17368. (REQUEST_TIME_OUT): New definition.
  17369. (RequestSlots): New definition.
  17370. (MessageQueue): New definition.
  17371. (requestSlotMan): Removed.
  17372. (pendingMessages): Removed.
  17373. (requestSlots): New variable.
  17374. (messageQueue): New variable.
  17375. (torrentMan): New variable.
  17376. (peerConnection): New variable.
  17377. (peer): New variable.
  17378. (piece): New variable.
  17379. (getNewPieceAndSendInterest): New function.
  17380. (createPeerMessage): New function.
  17381. (createHandshakeMessage): New function.
  17382. (send): Made private.
  17383. (setPeerMessageCommonProperty): New function.
  17384. (deleteAllRequestSlot): New function.
  17385. (deleteRequestMessageInQueue): New function.
  17386. (cancelAllRequest): Made private.
  17387. (cancelAllRequest): Made private.
  17388. (countRequestSlot): Made private.
  17389. (addPendingMessage): Removed.
  17390. (deletePendingPieceMessage): Removed.
  17391. (deletePendingRequestMessage): Removed.
  17392. (addMessage): New function.
  17393. (deletePieceMessageInQueue): New function.
  17394. (deleteTimeoutRequestSlot): Changed argument.
  17395. (deleteCompletedRequestSlot): Changed argument.
  17396. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17397. (getCorrespondingRequestSlot): New function.
  17398. (countPendingMessage): Removed.
  17399. (countMessageInQueue): New function.
  17400. (getTorrentMan): New function.
  17401. (getPeerConnection): New function.
  17402. (hasDownloadPiece): New function.
  17403. (getDownloadPiece): New function.
  17404. (setDownloadPiece): New function.
  17405. (syncPiece): New function.
  17406. (sendMessages): New function.
  17407. (sendNow): New function.
  17408. (trySendNow): New function.
  17409. (abortPiece): New function.
  17410. (sendHandshake): New function.
  17411. (receiveMessage): New function.
  17412. (receiveHandshake): New function.
  17413. (createRequestMessage): New function.
  17414. (createCancelMessage): New function.
  17415. (createPieceMessage): New function.
  17416. (createHaveMessage): New function.
  17417. (createChokeMessage): New function.
  17418. (createUnchokeMessage): New function.
  17419. (createInterestedMessage): New function.
  17420. (createNotInterestedMessage): New function.
  17421. (createBitfieldMessage): New function.
  17422. (createKeepAliveMessage): New function.
  17423. * src/SendMessageQueue.cc
  17424. (SendMessageQueue): Removed requestSlotMan.
  17425. Instantiated peerConnection here.
  17426. (~SendMessageQueue): Removed requestSlotMan.
  17427. Added deletion of peerConnection and the contents of messageQueue.
  17428. (send): Updated according to the change of messageQueue.
  17429. (addPendingMessage): Renamed to addMessage.
  17430. (addMessage): New function.
  17431. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17432. (deletePieceMessageInQueue): New function.
  17433. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17434. (deleteRequestMessageInQueue): New function.
  17435. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17436. here.
  17437. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17438. (...) was moved here.
  17439. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17440. moved here.
  17441. (deleteCompletedRequestSlot):
  17442. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17443. (getCorrespondingRequestSlot):
  17444. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17445. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17446. (countPendingMessage): Renamed to countMessageInQueue.
  17447. (countMessageInQueue): New function.
  17448. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17449. (receiveHandshake): New function.
  17450. (createHandshakeMessage): New function.
  17451. (receiveMessage): New function.
  17452. (createPeerMessage): New function.
  17453. (syncPiece): New function.
  17454. (getNewPieceAndSendInterest): New function.
  17455. (sendMessages): New function.
  17456. (sendNow): New function.
  17457. (trySendNow): New function.
  17458. (sendHandshake): New function.
  17459. (abortPiece): New function.
  17460. (getDownloadPiece): New function.
  17461. (getPeerMessageCommonProperty): New function.
  17462. (createRequestMessage): New function.
  17463. (createCancelMessage): New function.
  17464. (createPieceMessage): New function.
  17465. (createHaveMessage): New function.
  17466. (createChokeMessage): New function.
  17467. (createUnchokeMessage): New function.
  17468. (createInterestedMessage): New function.
  17469. (createNotInterestedMessage): New function.
  17470. (createBitfieldMessage): New function.
  17471. (createKeepAliveMessage): New function.
  17472. To add simple Content-Disposition support:
  17473. * src/HttpResponseCommand.h (determinFilename): New function.
  17474. * src/HttpResponseCommand.cc (executeInternal):
  17475. Use determinFilename(headers) instead of req->getFile() when comparing
  17476. filename.
  17477. (determinFilename): New function.
  17478. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17479. req->getFile().
  17480. (handleOtherEncoding): Use determinFilename(headers) instead of
  17481. req->getFile().
  17482. * src/Util.h (getContentDispositionFilename): New function.
  17483. * src/Util.cc (getContentDispositionFilename): New function.
  17484. * src/LogFactory.h (release): New function.
  17485. * src/LogFactory.cc (release): New function.
  17486. To fix a bug that causes out-of-bound exception when HTTP status
  17487. line is wrong:
  17488. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17489. size.
  17490. * src/common.h (Deleter): New class.
  17491. * src/SegmentMan.cc
  17492. (~SegmentMan): Added deletion of splitter and diskWriter.
  17493. * src/DownloadEngine.h
  17494. (Commands): Use deque.
  17495. (clearQueue): New function.
  17496. * src/DownloadEngine.cc
  17497. (~DownloadEngine): Added deletion of segmentMan.
  17498. (cleanQueue): New function.
  17499. * src/TorrentDownloadEngine.h
  17500. (TorrentDownloadEngine): The implementation was moved to
  17501. TorrentDownloadEngine.cc.
  17502. (~TorrentDownloadEngine): The implementation was moved to
  17503. TorrentDownloadEngine.cc.
  17504. * src/TorrentDownloadEngine.cc
  17505. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17506. * src/main.cc
  17507. (clearRequest): Removed.
  17508. (handler): Added deletion of e.
  17509. (torrentHandler): Added deletion of te.
  17510. (main): Do not share splitter.
  17511. Use Deleter instead of clearRequest.
  17512. Deletion of classes were updated.
  17513. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17514. * src/main.cc (main): Fixed typo.
  17515. * src/message.h: Fixed typo.
  17516. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17517. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17518. To add --select-file command-line option:
  17519. * src/Util.cc
  17520. (unfoldRange): New function.
  17521. (getNum): New function.
  17522. (unfoldSubRange): New function
  17523. * src/main.cc
  17524. (showUsage): Added help message.
  17525. (main): Added --select-file command-line option. Updated the layout of
  17526. file listing.
  17527. * src/common.h
  17528. (Integers): New definition.
  17529. * src/SocketCore.cc
  17530. (writeData): Removed timeout argument.
  17531. (readData): Removed timeout argument.
  17532. (peekData): Removed timeout argument.
  17533. * src/Socket.cc
  17534. (writeData): Removed timeout argument.
  17535. (readData): Removed timeout argument.
  17536. (peekData): Removed timeout argument.
  17537. * Release 0.4.1
  17538. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17539. To deploy upload rate based choking algorithm:
  17540. * src/PeerInteractionCommand.cc
  17541. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17542. peer currently used.
  17543. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17544. download completes. Simplified.
  17545. (receiveMessage): Updated.
  17546. * src/TorrentMan.h
  17547. (activePeers): New variable.
  17548. (addActivePeer): New function.
  17549. (getActivePeers): New function.
  17550. (deleteActivePeer): New function.
  17551. * src/TorrentMan.cc
  17552. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17553. * src/PeerAbstractCommand.cc
  17554. (onAbort): Use peer->resetStatus().
  17555. * src/main.cc
  17556. (PeerChokeCommand.h): Included.
  17557. (main): Added the instance of ChokingCommand to the command queue.
  17558. * src/Peer.h
  17559. (amChoking): Renamed from amChocking
  17560. (chokingRequired): New variable.
  17561. (optUnchoking): New variable.
  17562. (deltaUpload): New variable.
  17563. (deltaDownload): New variable.
  17564. (addDeltaUpload): New function.
  17565. (resetDeltaUpload): New function.
  17566. (addDeltaDownload): New function.
  17567. (resetDeltaDownload): New function.
  17568. (addPeerUpload): Added a call to addDeltaUpload.
  17569. (addPeerDownload): Added a call to addDeltaDownload.
  17570. * src/Peer.cc
  17571. (shouldBeChoking): Renamed from shouldChoke.
  17572. (resetStatus): New function.
  17573. * src/PeerChokeCommand.h: New class.
  17574. * src/PeerChokeCommand.cc: New class.
  17575. To add lazy upload speed limiter:
  17576. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17577. statistics calculation to TorrentDownloadEngine.
  17578. * src/TorrentConsoleDownloadEngine.cc
  17579. (sendStatistics): Renamed from printStatistics.
  17580. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17581. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17582. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17583. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17584. calculation.
  17585. (sendStatistics): New function as pure virtual function.
  17586. (getUploadSpeed): New function.
  17587. * src/TorrentDownloadEngine.cc
  17588. (initStatistics): New function.
  17589. (calculateSpeed): New function.
  17590. (calculateStatistics): New function.
  17591. * src/SendMessageQueue.h
  17592. (uploadLength): New variable.
  17593. (send): Added an argument.
  17594. (setUploadLimit): New function.
  17595. (getUploadLimit): New function.
  17596. * src/SendMessageQueue.cc
  17597. (send): Added upload speed limiter.
  17598. * src/prefs.h
  17599. (PREF_UPLOAD_LIMIT): New definition.
  17600. * src/PeerInteractionCommand.cc
  17601. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17602. * src/main.cc
  17603. (main): Added --upload-limit option
  17604. For bug fixes:
  17605. * src/main.cc
  17606. (showUsage): Corrected --listen-port help
  17607. Other changes:
  17608. * src/TorrentMan.cc
  17609. (getPeer): Return nullPeer if connection is grather than
  17610. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17611. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17612. To add some useful information to the exception message:
  17613. * src/SocketCore.cc : Updated messages.
  17614. * src/SegmentMan.cc :
  17615. * src/TorrentMan.cc : Updated messages.
  17616. * src/MultiDiskWriter.cc : Updated messages.
  17617. * src/Util.cc : Updated messages.
  17618. * src/AbstractDiskWriter.cc : Updated messages.
  17619. * src/PreAllocationDiskWriter.cc : Updated messages.
  17620. * src/message.cc : Added new messages. Updated some messages.
  17621. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17622. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17623. Updated threshold from 30 to 15.
  17624. * src/AbstractDiskWriter.h (filename): New variable.
  17625. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17626. (createFile): Assigned filename.
  17627. * src/main.cc: Updated the help message for http-auth-scheme.
  17628. * Release 0.4.0
  17629. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17630. To add TrackerUpdateCommand with which replaces
  17631. CompactTrackerResponseProcessor:
  17632. * src/TrackerWatcherCommand.h (req): Removed.
  17633. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17634. if the number of peer connections are less than 30.
  17635. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17636. * src/SegmentMan.h (diskWriter): New function.
  17637. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17638. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17639. (main): Use TrackerUpdateCommand.
  17640. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17641. (req): New variable.
  17642. (setTrackerResponseProcessor): Removed.
  17643. (getTrackerResponseProcessor): Removed.
  17644. (processTrackerResponse): Removed.
  17645. * src/DownloadEngine.h (diskWriter): Removed.
  17646. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17647. to torrentMan->processTrackerResponse().
  17648. To add Util::expandBuffer:
  17649. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17650. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17651. * src/Util.h (expandBuffer): New function.
  17652. To fix the bug that causes segmentation fault when "-l ." is specified
  17653. in command-line option:
  17654. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17655. (openFile): New function.
  17656. (closeFile): New function.
  17657. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17658. (~SimpleLogger): Call closeFile();
  17659. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17660. * src/main.cc (main): Added a check to see logger is configured
  17661. properly.
  17662. To enable HTTP authentication without specifying "--http-auth-scheme"
  17663. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17664. * src/HttpConnection.cc (createRequest): Send Authorization header
  17665. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17666. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17667. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17668. * src/Peer.cc (shouldChoke): Updated algorithm.
  17669. * src/message.h (EX_AUTH_FAILED): New definition.
  17670. (EX_FILE_OPEN): New definition.
  17671. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17672. if status == 401.
  17673. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17674. if req->isTorrent == true.
  17675. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17676. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17677. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17678. (createFile): Updated message.
  17679. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17680. To add a readout of estimated remaining time to normal HTTP/FTP
  17681. downloads:
  17682. * src/ConsoleDownloadEngine.h (startup): New variable.
  17683. (startupLength): New variable.
  17684. (isStartupLengthSet): New variable.
  17685. (avgSpeed): New variable.
  17686. (eta): New variable.
  17687. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17688. estimated remaining time.
  17689. (initStatistics): Initialized newly added variables.
  17690. (calculateStatistics): Calculate average speed and estimated remaining
  17691. time.
  17692. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17693. * src/TrackerDownloadCommand.h: Removed.
  17694. * src/TrackerDownloadCommand.cc: Removed.
  17695. * src/TrackerInitCommand.h: Removed.
  17696. * src/TrackerInitCommand.cc: Removed.
  17697. * src/TrackerUpdateCommand.h: Removed.
  17698. * src/TrackerUpdateCommand.cc: Removed.
  17699. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17700. url written in TrackerInitCommand was moved here. Do not create
  17701. tracker request command if torrentMan->trackers != 0.
  17702. * src/CompactTrackerResponseProcessor.h: New class.
  17703. * src/CompactTrackerResponseProcessor.cc: New class.
  17704. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17705. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17706. Decoupled TorrentDownloadEngine from this.
  17707. * src/SegmentMan.h (init): New function.
  17708. * src/SegmentMan.cc (init): New function.
  17709. * src/TorrentMan.h (responseProcessor): New variable.
  17710. (trackers): New variable.
  17711. (setTrackerResponseProcessor): New function.
  17712. (getTrackerResponseProcessor): New function.
  17713. (processTrackerResponse): New function.
  17714. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17715. (processTrackerResponse): New function.
  17716. * src/main.cc (main): Use ByteArrayDiskWriter and
  17717. CompactTrackerResponseProcessor.
  17718. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17719. processTrackerResponse().
  17720. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17721. readout.
  17722. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17723. which indicates download has completed.
  17724. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17725. (closeFile): fd >= 0, not fd > 0
  17726. * src/main.cc (main): Added short cut for show-files.
  17727. Added short cut for torrent-file.
  17728. Added new command-line option listen-port.
  17729. Updated i18n messages.
  17730. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17731. To add LogFactory which creates singleton logger:
  17732. * src/LogFactory.h: New class.
  17733. * src/LogFactory.cc: New class.
  17734. * src/Command.h (logger): New variable.
  17735. (Constructor): Use LogFactory.
  17736. * src/AbstractCommand.cc: Use Command::logger
  17737. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17738. Use LogFactory.
  17739. * src/SegmentSplitter.h : Made logger protected.
  17740. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17741. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17742. * src/DownloadEngine.h : Made logger protected.
  17743. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17744. * src/PeerInteractionCommand.cc : Use Command::logger.
  17745. * src/HttpResponseCommand.cc : Use Command::logger.
  17746. * src/SegmentMan.h : Made logger private.
  17747. * src/TorrentMan.h : Made logger private.
  17748. * src/TorrentMan.cc : Use LogFactory.
  17749. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17750. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17751. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17752. Use LogFactory.
  17753. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17754. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17755. Use LogFactory.
  17756. * src/DownloadCommand.cc : Use Command::logger.
  17757. * src/PeerAbstractCommand.cc : Use Command::logger.
  17758. * src/PeerListenCommand.cc : Use Command::logger.
  17759. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17760. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17761. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17762. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17763. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17764. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17765. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17766. Use LogFactory.
  17767. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17768. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17769. Use LogFactory.
  17770. * src/main.cc (main): Use LogFactory.
  17771. * src/DiskAdaptor.h (logger): New variable.
  17772. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17773. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17774. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17775. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17776. parameter to a tracker request.
  17777. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17778. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17779. * src/main.cc (setSignalHander): New function.
  17780. (main): Added a handler for SIGTERM.
  17781. (handler): Updated message.
  17782. (torrentHandler): Updated message.
  17783. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17784. * src/TorrentConsoleDownloadEngine.cc
  17785. (onPartialDownloadingCompletes): Renamed as
  17786. onSelectiveDownloadingCompletes.
  17787. (onSelectiveDownloadingCompletes): Updated message.
  17788. To add DiskAdaptor which abstract DiskWriter family:
  17789. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17790. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17791. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17792. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17793. MultiDiskAdaptor.h.
  17794. (readFileEntry): Changed its arguments.
  17795. (setup): setupDiskWriter is merged into this function.
  17796. (setupDiskWriter): Removed.
  17797. (setFileFilter): New function.
  17798. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17799. made in readFileEntry.
  17800. (getFilePath): Removed.
  17801. (getTempFilePath): Removed.
  17802. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17803. (fixFilename): Removed.
  17804. (copySingleFile): Removed.
  17805. (splitMultiFile): Removed.
  17806. (deleteTempFile): Removed.
  17807. (setFileEntriesToDownload): Removed.
  17808. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17809. (isSelectiveDownloadingMode): New function.
  17810. (setAllMultiFileRequestedState): Removed.
  17811. (finishPartialDownloadingMode): Renamed as
  17812. finishSelectiveDownloadingMode.
  17813. (finishSelectiveDownloadingMode): New function.
  17814. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17815. (getSelectedTotalLength): New function.
  17816. (onDownloadComplete): Use diskAdaptor.
  17817. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17818. (Range): Removed.
  17819. (setMultiFileEntries): Renamed as setFileEntries.
  17820. (setFileEntries): New function.
  17821. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17822. (pieceLength): New variable.
  17823. * src/main.cc (printDownloadCompeleteMessage): New function.
  17824. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17825. (main): Renamed torrent-show-files to show-files.
  17826. Rewritten file contents listing.
  17827. * src/TorrentMan.h (FileEntry): Removed.
  17828. (multiFileTopDir): Removed.
  17829. (multiFileEntries): Removed.
  17830. (diskWriter): Removed.
  17831. (diskAdaptor): New variable.
  17832. * src/DefaultDiskWriter.h (totalLength): New variable.
  17833. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17834. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17835. diskWriter.
  17836. * src/TorrentConsoleDownloadEngine.h
  17837. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17838. (partialTotalLength): Renamed as selectedTotalLength.
  17839. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17840. openExistingFile, otherwise call initAndOpenFile.
  17841. (closeFile): fd > 0, not fd != 0.
  17842. * src/DirectDiskAdaptor.h: New class.
  17843. * src/DirectDiskAdaptor.cc: New class.
  17844. * src/MultiDiskAdaptor.h: New class.
  17845. * src/MultiDiskAdaptor.cc: New class.
  17846. * src/CopyDiskAdaptor.h: New class.
  17847. * src/CopyDiskAdaptor.cc: New class.
  17848. * src/DiskAdaptor.h: New class.
  17849. * src/DiskAdaptor.cc: New class.
  17850. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17851. (PREF_SHOW_FILES): New definition.
  17852. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17853. To add the ability to download multi torrent into respective files
  17854. directly:
  17855. * src/DiskWriter.h (openFile): New function.
  17856. (seek): Removed.
  17857. * src/MultiDiskWriter.h: New class.
  17858. * src/MultiDiskWriter.cc: New class.
  17859. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17860. protected.
  17861. (openFile): New function.
  17862. * src/AbstractDiskWriter.cc (openFile): New function.
  17863. * src/prefs.h (V_FALSE): New definition.
  17864. (PREF_DIRECT_FILE_MAPPING): New definition.
  17865. * src/TorrentMan.h (setupDiskWriter): New function.
  17866. (setAllMultiFileRequestedState): New function.
  17867. (onDownloadComplete): New function.
  17868. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17869. (setupDiskWriter): New function.
  17870. (getFilePath): Updated.
  17871. (getTempFilePath): Updated.
  17872. (getSegmentFilePath): Updated.
  17873. (fixFilename): Updated.
  17874. (deleteTempFile): Updated.
  17875. (setAllMultiFileRequestedState): New function.
  17876. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17877. (finishPartialDownloadingMode): Reset requested flags.
  17878. (onDownloadComplete): New function.
  17879. * src/main.cc: Added --direct-file-mapping option.
  17880. Use TorrentMan::setupDiskWriter().
  17881. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17882. onDownloadComplete().
  17883. To fix ETA bug:
  17884. * src/Util.h (difftvsec): New function.
  17885. * src/Util.cc (difftvsec): New function.
  17886. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17887. type of "elapsed" instead of long long int.
  17888. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17889. The updates of statistics takes place every 1 seconds.
  17890. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17891. (calculateSpeed): Changed its argument signature.
  17892. * src/PeerMessage.cc (toString): Fixed message.
  17893. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17894. To print ETA:
  17895. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17896. completion handling when dealing with
  17897. TorrentMan::isPartialDownloadingMode() == true.
  17898. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17899. New function.
  17900. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17901. (sessionDownloadLength): New variable.
  17902. (avgSpeed): New variable.
  17903. (eta): New variable.
  17904. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17905. new variables: eta, avgSpeed, startup.
  17906. (calculateSpeed): Calculate average speed and ETA.
  17907. (printStatistics): Added ETA.
  17908. * src/Util.h (secfmt): New function.
  17909. * src/Util.cc (secfmt): New function.
  17910. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17911. To detect "keep alive" flooding:
  17912. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17913. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17914. variable: keepAliveCount.
  17915. (detectMessageFlooding): Added "keep alive" flooding detection.
  17916. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17917. received.
  17918. To add the ability to download only specified files in multi-file
  17919. torrent:
  17920. * src/BitfieldMan.h (filterBitfield): New variable.
  17921. (filterEnabled): New variable.
  17922. (setFilterBit): New function.
  17923. (enableFilter): New function.
  17924. (disableFilter): New function.
  17925. (isFilterEnabled): New function.
  17926. (getFilteredTotalLength): New function.
  17927. (getCompletedLength): New function.
  17928. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17929. filterBitfield, filterEnabled.
  17930. (CopyConstructor): Added filterBitfield and filterEnabled.
  17931. (operator==): Added filterBitfield and filterEnabled.
  17932. (Destructor): Added filterBitfield.
  17933. (getMissingIndex): Use filterBitfield.
  17934. (getMissingUnusedIndex): Use filterBitfield.
  17935. (getFirstMissingUnusedIndex): Use filterBitfield.
  17936. (getFirstMissingUnusedIndex): Use filterBitfield.
  17937. (getAllMissingIndexes): Use filterBitfield.
  17938. (countMissingBlock): Use filterBitfield.
  17939. (countBlock): Use filterBitfield.
  17940. (setBitInternal): Added new argument on.
  17941. (setUseBit): Use setBitInternal.
  17942. (unsetUseBit): Use setBitInternal.
  17943. (setBit): Use setBitInternal.
  17944. (unsetBit): Use setBitInternal.
  17945. (isAllBitSet): Use filterBitfield.
  17946. (setFilterBit): New function.
  17947. (addFilter): New function.
  17948. (enableFilter): New function.
  17949. (disableFilter): New function.
  17950. (clearFilter): New function.
  17951. (isFilterEnabled): New function.
  17952. (getFilteredTotalLength): New function.
  17953. (getCompletedLength): New function.
  17954. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17955. Initalized newly added variables.
  17956. [FileEntry](offset): New variable.
  17957. [FileEntry](extracted): New variable.
  17958. [FileEntry](requested): New variable.
  17959. (readFileEntry): New function.
  17960. (option): New variable.
  17961. (splitMultiFile): Removed const qualifier.
  17962. (fixFilename): Removed const qualifier.
  17963. (readFileEntryFromMetaInfoFile): New function.
  17964. (finishPartialDownloadingMode): New function.
  17965. (isPartialDownloadingMode): New function.
  17966. (setFileEntriesToDownload): New function.
  17967. (getCompletedLength): New function.
  17968. (getPartialTotalLength): New function.
  17969. * src/TorrentMan.cc (readFileEntry): New function.
  17970. (setup): Use readFileEntry. If no-preallocation option is specified,
  17971. use DefaultDiskWriter.
  17972. (readFileEntryFromMetaInfoFile): New function.
  17973. (fixFilename): Removed const qualifier.
  17974. (splitMultiFile): Removed const qualifier.
  17975. (setFileEntriesToDownload): New function.
  17976. (isPartialDownloadingMode): New function.
  17977. (finishPartialDownloadingMode): New function.
  17978. (getCompletedLength): New function.
  17979. (getPartialTotalLength): New function.
  17980. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17981. New variable.
  17982. (partialTotalLength): New variable.
  17983. (downloadLength): New variable.
  17984. (totalLength): New variable.
  17985. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17986. Added log.
  17987. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17988. partialTotalLength, downloadLength, totalLength.
  17989. (calculate): Calculate downloadLength and totalLength.
  17990. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17991. * src/main.cc (addCommand): Changed argument signature.
  17992. (main): Added new variable: args. Added new option "torrent-show-files"
  17993. "no-preallocation". Usage is not updated yet.
  17994. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17995. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17996. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17997. Attempt to add the ability to listing file entries in a .torrent file.
  17998. This feature is not yet complete.
  17999. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18000. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18001. (getName): New function.
  18002. * src/TorrentMan.h (getMultiFileEntries): New function.
  18003. (getName): New function.
  18004. * src/main.cc (main): Use above 2 funtion.
  18005. * Release 0.3.2
  18006. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18007. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18008. (detectMessageFlooding): Updated threshold value.
  18009. (checkLongTimePeerChoking): Updated timeout value.
  18010. (getNewPieceAndSendInterest): Added debug log.
  18011. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18012. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18013. (getPeer): Updated.
  18014. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18015. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18016. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18017. is localhost.
  18018. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18019. * src/PendingMessage.cc (processMessage): Not to send piece message
  18020. if peer is not interested in the pieces localhost has.
  18021. * src/Peer.cc (shouldChoke): Updated.
  18022. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18023. * src/Util.cc (isPowerOf): New function.
  18024. * src/Util.h (isPowerOf): New function.
  18025. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18026. whether or not it is power of 2.
  18027. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18028. Added new class SendMessageQueue that includes PendingMessages and
  18029. RequestSlotMan.
  18030. * src/SendMessageQueue.h: New class.
  18031. * src/SendMessageQueue.cc: New class.
  18032. * src/PendingMessage.h: Added new member variable blockIndex and its
  18033. accessors.
  18034. (createRequestMessage): Updated.
  18035. * src/PendingMessage.cc (createRequestMessage): Updated.
  18036. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18037. SendMessageQueue.
  18038. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18039. (receiveMessage): Updated with SendMessageQueue.
  18040. (deletePendingPieceMessage): Removed.
  18041. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18042. (sendInterest): Updated with SendMessageQueue.
  18043. (createRequestPendingMessage): Updated with SendMessageQueue.
  18044. (sendMessages): Updated with SendMessageQueue.
  18045. (onAbort): Updated with SendMessageQueue.
  18046. (keepAlive): Updated with SendMessageQueue.
  18047. (beforeSocketCheck): Updated SendMessageQueue.
  18048. * src/PeerInteractionCommand (sendMessages): Shuffle
  18049. missingBLockIndexes before using it.
  18050. Added its own timeout for peer connection.
  18051. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18052. setter.
  18053. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18054. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18055. Added setTimeout() call.
  18056. (executeInternal): Added setTimeout() call.
  18057. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18058. Added timeout.
  18059. (isTimeoutDetected): Updated.
  18060. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18061. option.
  18062. Added *simple* message flooding checker.
  18063. * src/PeerInteractionCommand.cc (executeInternal):
  18064. Added detectMessageFlooding() call.
  18065. (detectMessageFlooding): New function.
  18066. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18067. (beforeSocketCheck): Added detectMessageFlooding() call.
  18068. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18069. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18070. Removed deletePendingPieceMessage(), getRequestSlot(),
  18071. deleteRequestSlot(), deleteAllRequestSlot().
  18072. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18073. Added checkLongTimePeerChoking() call.
  18074. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18075. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18076. if duplicate == false.
  18077. The parameter "uploaded" and "downloaded" in the tracker request are
  18078. the size since the client sent the "started" event to the tracker.
  18079. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18080. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18081. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18082. getSessionDownloadedSize(), getSessionUploadedSize().
  18083. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18084. getSessionUploadedSize() instead of getDownloadedSize(),
  18085. getUploadedSize().
  18086. * src/PendingMessage.cc (processMessage): Do not send request message
  18087. if the peer is choking the client.
  18088. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18089. less than interval.
  18090. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18091. * configure.in: Added gnutls support. Added several CPP macros.
  18092. * m4/openssl.m4: Added.
  18093. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18094. readData(), peekData(). Added gnutls support.
  18095. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18096. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18097. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18098. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18099. Instead, added a check for whether setup method has executed
  18100. successfully.
  18101. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18102. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18103. * src/Makefile.am: Updated.
  18104. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18105. using whether OpenSSL or gcrypt, depending on the result of configure
  18106. script.
  18107. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18108. messageDigest.h.
  18109. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18110. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18111. Fixed memory leak.
  18112. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18113. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18114. Removed instantiation of TrackerInitCommand. Instead,
  18115. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18116. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18117. ENABLE_SSL.
  18118. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18119. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18120. If a piece is already acquired by another command, delete the request
  18121. slots for the piece.
  18122. * src/TrackerUpdateCommand.cc (execute):
  18123. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18124. Added a check whether peer list is null.
  18125. Fixed the bug that causes sending completed event to the tracker
  18126. several times.
  18127. * src/TrackerInitCommand.cc (execute):
  18128. Fixed the bug that causes sending completed event to the tracker
  18129. several times.
  18130. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18131. by using messageDigest.h.
  18132. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18133. * PeerConnection.cc: Replaced log message "keep-alive" with
  18134. "keep alive".
  18135. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18136. localhost long time.
  18137. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18138. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18139. at most 100 failure entry from the list. If with duplicate = false,
  18140. MAX_PEER_LIST is not checked.
  18141. * PeerListenCommand.cc: Fixed the argument order of log message.
  18142. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18143. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18144. Added warn().
  18145. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18146. Implemented warn().
  18147. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18148. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18149. * Request.h: Added AFTER_COMPLETED event.
  18150. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18151. instead of downloaded size and progress(%) after download completes.
  18152. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18153. message to the peer if it is interested in what localhost has
  18154. downloaded.
  18155. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18156. destination instead of just renaming it.
  18157. * TorrentMan.cc: Added deleteTempFile().
  18158. * PeerAbstractCommand.cc: do not stop execution after download
  18159. completes. This makes localhost a seeder.
  18160. * Util.{h,cc}: Added fileCopy().
  18161. * PeerListenCommand.cc: do not stop execution after download completes.
  18162. This makes localhost a seeder.
  18163. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18164. Added TorrentMan::deleteTempFile() to torrentHandler.
  18165. Initialized the variable dir as ".".
  18166. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18167. Deleted renameSingleFile().
  18168. Added copySingleFile(), deleteTempFile().
  18169. * DownloadEngine.h: Added virtual function afterEachIteration().
  18170. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18171. in onEndOfRun() to afterEachIteration().
  18172. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18173. true.
  18174. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18175. In rangedFileCopy(), added try-catch block to properly close file
  18176. descriptors.
  18177. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18178. Added afterEachIteration(), isFilenameFixed().
  18179. * Peer.cc: Changed choking strategy.
  18180. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18181. * TrackerInitCommand.cc: Send completed event only once.
  18182. * DownloadEngine.cc: Added a call to afterEachIteration().
  18183. * TrackerUpdateCommand.cc: Do not stop execution after download
  18184. completes.
  18185. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18186. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18187. received from a tracker.
  18188. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18189. Decreased the number of failure peers to delete to 0(just comment out
  18190. the line).
  18191. * Release 0.3.1
  18192. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18193. * PeerInteractionCommand.cc: added a call to
  18194. TorrentMan::unadvertisePiece in Destructor.
  18195. * PeerInteractionCommand.cc: make have message sent immediately
  18196. if the size of pending message queue is zero.
  18197. * TorrentMan.cc: set the maximum size of peer list to 250.
  18198. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18199. to deque.
  18200. * Util.cc: fixed rangedFileCopy.
  18201. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18202. to Constructor. Also, moved digest cleanup to Destructor.
  18203. * MetaFileUtil.cc: fixed memory leak
  18204. * replaced std::vector with std::deque.
  18205. * AbstractCommand.cc: casted timeout value to long long int.
  18206. * ChunkedEncoding.cc: fixed memory leak.
  18207. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18208. * SleepCommand.cc: casted timeout value to long long int.
  18209. * Data.cc: fixed memory leak.
  18210. * Data.cc: fixed toLLInt().
  18211. * BitfieldMan.cc: fixed memory leak.
  18212. * TorrentMan.cc: initialized storeDir to ".".
  18213. * TorrentMan.cc: fixed memory leak.
  18214. * TorrentMan.cc: corrected file paths of splitted files.
  18215. * PeerAbstractCommand.cc: casted timeout to long long int.
  18216. * main.cc: added delete(req) and delete(te->diskWriter).
  18217. * RequestSlot.cc: casted timeout value to long long int.
  18218. * Request.cc: fixed memory leak.
  18219. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18220. have the piece.
  18221. * Peer.{h,cc}: added hasPiece(int index).
  18222. * main.cc: corrected addCommand.
  18223. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18224. * BitTorrent protocol support added.
  18225. * Release 0.3.0
  18226. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18227. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18228. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18229. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18230. decoding did not work properly.
  18231. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18232. * DownloadEngine.h: included sys/time.h
  18233. * DownloadEngine.cc: remove sys/time.h
  18234. * Makefile.am (SUBDIRS): Add intl.
  18235. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18236. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18237. * main.cc: correct help message for --http-auth-scheme.
  18238. * main.cc: changed e-mail address for bug reports.
  18239. * ja.po: added japanese translation.
  18240. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18241. * SimpleLogger.cc: flush log file instead of stdout.
  18242. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18243. * main.cc: Fixed command-line option: max-tries
  18244. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18245. does not equal to seg.sp.
  18246. * DownloadCommand.cc: If EOF is got from the server and the total size
  18247. of file is not zero, then throw DlRetryEx.
  18248. * main.cc: Set the minium value of min-segment-size to 1024.
  18249. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18250. fails because of a regression since 0.2.0 release.
  18251. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18252. * HttpConnection.cc:
  18253. * common.h: defined the user agent name as macro
  18254. * DownloadEngine.{h, cc}:
  18255. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18256. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18257. * main.cc: Download complete/abort message is now generated by main.
  18258. * Makefile.am (SUBDIRS): Add m4.
  18259. (ACLOCAL_AMFLAGS): New variable.
  18260. (EXTRA_DIST): New variable.
  18261. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18262. * gettext: added gettext functionality
  18263. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18264. * AbstractCommand.cc:
  18265. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18266. unregister its cuid from SegmentMan.
  18267. * DownloadEngine.cc: .aria2 file was written when a downloading
  18268. failed with errors.
  18269. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18270. Added "User-Agent" header to CONNECT proxy request.
  18271. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18272. properly.
  18273. * Logger.h:
  18274. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18275. * ChunkedEncoding.cc: Added #include directive for strings.h
  18276. * Release 0.2.1
  18277. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18278. * Util.{h,cc}: added startsWith().
  18279. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18280. Util::endsWith().
  18281. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18282. * common.h: added #include directive of limit.h.
  18283. * DownloadEngine.cc: added #include directive of sys/time.h and
  18284. algorithm.
  18285. * Exception.h: added #include directive of stdio.h.
  18286. * AbstractCommand.h: added #include directive of sys/time.h.
  18287. * DownloadCommand.h: added #include directive of sys/time.h.
  18288. * *.h: added #include directive of common.h to all base classes.
  18289. subclasses' one was removed.
  18290. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18291. does not define these macros.
  18292. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18293. * Release 0.2.0
  18294. * main.cc:
  18295. * HttpInitiateConnectionCommand.{h,cc}:
  18296. * prefs.h:
  18297. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18298. We can now use GET command in http proxy.
  18299. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18300. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18301. that splits slowest segment of SegmentMan::commands vector.
  18302. This is the default split algorithm of aria2.
  18303. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18304. that splits first segment of SegmentMan::commands vector.
  18305. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18306. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18307. * Segment.h:
  18308. * SegmentMan.cc: Added speed field to Segment.h
  18309. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18310. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18311. * message.h: Change file size related %d to %lld.
  18312. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18313. * FtpInitiateConnectionCommand.{h,cc}:
  18314. * FtpNegotiationCommand.{h,cc}:
  18315. * FtpDownloadCommand.{h,cc}:
  18316. * FtpConnection.{h,cc}: Added FTP support
  18317. * SimpleLogger.cc: Log message now includes time information.
  18318. * main.cc: The value of --http-auth-scheme option is chagned from
  18319. 'BASIC' to 'basic'
  18320. * main.cc: Added --timeout command-line option.
  18321. * main.cc: Added --min-segment-size command-line option.
  18322. * main.cc: Added --max-retries command-line option.
  18323. * prefs.h: option string constants are now defined in prefs.h
  18324. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18325. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18326. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18327. with version 0.1.0's one.
  18328. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18329. * configure.in: Added --enable-ssl option to configure script.
  18330. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18331. cannot permit absoluteURI as Request-URI.
  18332. * HttpConnection.cc: Added Referer support.
  18333. * main.cc: Added referer command-line option.
  18334. * main.cc: Added rety-wait command-line option.
  18335. * Exception.h: Fixed formating bug in Exception::setMsg()
  18336. * SocketCore.{h,cc}:
  18337. * Socket.{h, cc}:
  18338. * Request.cc:
  18339. * InitiateConnectionCommandFactory.cc:
  18340. * HttpRequestCommand.cc: Added HTTPS support.
  18341. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18342. for SocketCore.
  18343. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18344. size is wrong
  18345. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18346. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18347. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18348. * Release 0.1.0