ChangeLog 680 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912
  1. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  3. readout by 80 characters in mingw32 build. Catch exception in
  4. DHTMessageReceiver::receiveMessage().
  5. * src/AbstractDiskWriter.cc
  6. * src/ConsoleStatCalc.cc
  7. * src/DHTMessageReceiver.cc
  8. * src/File.cc
  9. * src/RequestGroupMan.cc
  10. * src/a2io.h
  11. * test/FileTest.cc
  12. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Fixed compile error with intel compiler
  14. * src/XmlRpcMethodImpl.cc
  15. * src/XmlRpcMethodImpl.h
  16. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Release 1.8.1
  18. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Updated Swedish, Russian and Italian translations. Thanks to all
  20. translators.
  21. * po/it.po
  22. * po/ru.po
  23. * po/sv.po
  24. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Fixed broken OptionParser::findByName().
  26. * src/OptionParser.cc
  27. * test/OptionParserTest.cc
  28. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Fixed test error without BitTorrent support.
  30. * test/XmlRpcMethodTest.cc
  31. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Fixed compile error without GNUTLS/OpenSSL.
  33. * src/util.cc
  34. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Changed compression level to Z_DEFAULT_COMPRESSION.
  36. * src/GZipEncoder.cc
  37. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Added missing command line options: --http-no-cache,
  39. --bt-save-metadata and --bt-metadata-only.
  40. * doc/xmlrpc/aria2rpc
  41. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  43. client accepts gzip content encoding.
  44. * src/A2STR.cc
  45. * src/A2STR.h
  46. * src/GZipEncoder.cc
  47. * src/GZipEncoder.h
  48. * src/HttpHeader.cc
  49. * src/HttpHeader.h
  50. * src/HttpServer.cc
  51. * src/HttpServer.h
  52. * src/HttpServerBodyCommand.cc
  53. * src/HttpServerCommand.cc
  54. * src/Makefile.am
  55. * src/XmlRpcResponse.cc
  56. * src/XmlRpcResponse.h
  57. * test/GZipEncoderTest.cc
  58. * test/Makefile.am
  59. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Added XML-RPC client sample code in Python.
  61. * doc/aria2c.1.txt
  62. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Updated po templates.
  64. * po/aria2.pot
  65. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Bump up version number to 1.8.1
  67. * configure.ac
  68. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Added version number to man page. Updated copyright year in man
  70. page.
  71. * doc/aria2c.1.txt
  72. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Rewritten toTagString
  74. * src/NameMatchOptionHandler.cc
  75. * test/OptionHandlerTest.cc
  76. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Added dir and files key to the response struct of aria2.tellStatus
  78. XML-RPC method. The value associated with files key is the list
  79. of files. Its element is the same struct used in aria2.getFiles
  80. XML-RPC method. Added uris key to the response struct of
  81. aria2.getFiles XML-RPC method. The value associated with uris key
  82. is the list of URIs. Its element is the same struct used in
  83. aria2.getUris XML-RPC method.
  84. * doc/aria2c.1.txt
  85. * src/XmlRpcMethodImpl.cc
  86. * test/XmlRpcMethodTest.cc
  87. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Added aria2.getSessionInfo XML-RPC method. This method returns a
  89. struct containing Session ID, which is generated each time when
  90. aria2 is invoked.
  91. * doc/aria2c.1.txt
  92. * doc/xmlrpc/aria2rpc
  93. * src/DownloadEngine.cc
  94. * src/DownloadEngine.h
  95. * src/XmlRpcMethodFactory.cc
  96. * src/XmlRpcMethodImpl.cc
  97. * src/XmlRpcMethodImpl.h
  98. * test/XmlRpcMethodTest.cc
  99. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Moved generateRandomKey() from bittorrent_helper to util.
  101. * src/DHTBucket.cc
  102. * src/DHTNode.cc
  103. * src/bittorrent_helper.cc
  104. * src/bittorrent_helper.h
  105. * src/util.cc
  106. * src/util.h
  107. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Updated doc about GID.
  109. * doc/aria2c.1.txt
  110. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  112. accepts a negative integer. 'offset' == -1 points last download
  113. in the waiting queue and 'offset' == -2 points the download before
  114. the last download, and so on. The downloads in the response are in
  115. reversed order.
  116. * doc/aria2c.1.txt
  117. * src/XmlRpcMethodImpl.cc
  118. * src/XmlRpcMethodImpl.h
  119. * test/XmlRpcMethodTest.cc
  120. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added --human-readable option. This option, when true is given,
  122. prints sizes and speed in human readable format(e.g., 1.2Ki,
  123. 3.4Mi) in the console readout. The default value is true and it
  124. looks exactly the same as aria2-1.8.0. So the 'new feature'
  125. appears when false is given. In this case, sizes and speed are
  126. printed without in bytes. No Ki, Mi units conversion is used.
  127. This may be useful for a program to parse the output of aria2.
  128. * doc/aria2c.1.txt
  129. * src/ConsoleStatCalc.cc
  130. * src/ConsoleStatCalc.h
  131. * src/OptionHandlerFactory.cc
  132. * src/main.cc
  133. * src/prefs.cc
  134. * src/prefs.h
  135. * src/usage_text.h
  136. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  138. option accepts empty string "". When "" is given, it erases
  139. previously defined proxy.
  140. * doc/aria2c.1.txt
  141. * src/OptionHandlerImpl.h
  142. * src/usage_text.h
  143. * test/OptionHandlerTest.cc
  144. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Code cleanup for proxy URI handling.
  146. * src/AbstractCommand.cc
  147. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Added --bt-metadata-only option. If true is given to this option,
  149. aria2 downloads metadata only. The file(s) described in metadata
  150. will not be downloaded. This option has effect only when
  151. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  152. * doc/aria2c.1.txt
  153. * src/OptionHandlerFactory.cc
  154. * src/UTMetadataPostDownloadHandler.cc
  155. * src/download_helper.cc
  156. * src/prefs.cc
  157. * src/prefs.h
  158. * src/usage_text.h
  159. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Fixed memory leak. Commands stored in std::deque<Command*> are not
  161. deleted when exception is thrown. Make sure that when passing
  162. std::deque<Command*> to function to store Commands, handle
  163. exception and delete these Commands.
  164. * src/AbstractCommand.cc
  165. * src/CheckIntegrityCommand.cc
  166. * src/FileAllocationCommand.cc
  167. * src/RequestGroup.cc
  168. * src/TrackerWatcherCommand.cc
  169. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  171. * src/A2STR.cc
  172. * src/A2STR.h
  173. * src/FtpNegotiationCommand.cc
  174. * src/HttpResponseCommand.cc
  175. * src/util.cc
  176. * src/util.h
  177. * test/UtilTest.cc
  178. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Treat --dir="" as --dir="."
  180. * src/FtpNegotiationCommand.cc
  181. * src/HttpResponseCommand.cc
  182. * src/Metalink2RequestGroup.cc
  183. * src/UTMetadataPostDownloadHandler.cc
  184. * src/bittorrent_helper.cc
  185. * src/download_helper.cc
  186. * src/util.cc
  187. * src/util.h
  188. * test/UtilTest.cc
  189. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Code clean up.
  191. * src/main.cc
  192. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Reset GID to 1 when they reach maximum value. Rewritten
  194. CUIDCounter::newID()
  195. * src/CUIDCounter.h
  196. * src/RequestGroup.cc
  197. * src/RequestGroup.h
  198. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Documented --http-no-cache option in man page.
  200. * doc/aria2c.1.txt
  201. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Added --http-no-cache option. When true is given, aria2 sends
  203. Cache-Control: no-cache and Pragma: no-cache header to avoid
  204. cached content. If false is given , these headers are not sent
  205. and you can add Cache-Control header with a directive you like
  206. using --header option.
  207. * src/HttpRequest.cc
  208. * src/HttpRequest.h
  209. * src/HttpRequestCommand.cc
  210. * src/OptionHandlerFactory.cc
  211. * src/download_helper.cc
  212. * src/prefs.cc
  213. * src/prefs.h
  214. * src/usage_text.h
  215. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Removed Logger from OptionParser. When OptionParser is used to
  217. parse options at bootstrap, LogFactory is not configured yet
  218. properly. When LogFactory is used in OptionParser, it initializes
  219. itself to return a logger which has no ability to write log to the
  220. disk.
  221. * src/OptionParser.cc
  222. * src/OptionParser.h
  223. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Added following sentance to the help message of --out option:
  225. --out option is ignored when -Z is used.
  226. * doc/aria2c.1.txt
  227. * src/usage_text.h
  228. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Added --bt-save-metadata option to -i list options.
  230. * doc/aria2c.1.txt
  231. * src/download_helper.cc
  232. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  234. additional libraries.
  235. * src/MultiUrlRequestInfo.cc
  236. * src/NameResolver.cc
  237. * src/SelectEventPoll.cc
  238. * src/SelectEventPoll.h
  239. * src/SocketCore.cc
  240. * src/SocketCore.h
  241. * src/a2netcompat.h
  242. * src/daemon.cc
  243. * src/main.cc
  244. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Fixed typo.
  246. * src/DHTMessageReceiver.cc
  247. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Fixed the bug that causes segmentation fault if unknown option is
  249. put in aria2.conf file. BUG#2928303
  250. * src/OptionParser.cc
  251. * src/OptionParser.h
  252. * src/option_processing.cc
  253. * test/OptionParserTest.cc
  254. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Ignore port message with port=0.
  256. * src/BtPortMessage.cc
  257. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Run autoupdate
  259. * configure.ac
  260. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Updated autoconf/automake auxiliary files.
  262. * INSTALL
  263. * config.guess
  264. * config.sub
  265. * depcomp
  266. * install-sh
  267. * m4/intldir.m4
  268. * missing
  269. * mkinstalldirs
  270. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Removed unused function.
  272. * src/SharedHandle.h
  273. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Find pooled socket using all cached addresses.
  275. * src/DNSCache.h
  276. * src/DownloadEngine.cc
  277. * src/DownloadEngine.h
  278. * src/InitiateConnectionCommand.cc
  279. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Updated copyright year.
  281. * src/version_usage.cc
  282. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Pool connection if _contentEncodingDecoder is used and server
  284. supports persistent connection.
  285. * src/HttpDownloadCommand.cc
  286. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Updated doc.
  288. * src/DownloadCommand.cc
  289. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Untabify. Fixed one line in copyright which is longer than 80
  291. columns.
  292. * src
  293. * test
  294. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Release 1.8.0
  296. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Updated po templates.
  298. * po/aria2.pot
  299. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Documented --bt-save-metadata option in man page.
  301. * doc/aria2c.1.txt
  302. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Fixed usage of --bt-save-metadata option.
  304. * src/usage_text.h
  305. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Updated po templates.
  307. * po/aria2.pot
  308. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  310. causes name resolution error when none of network interface has
  311. IPv4 address.
  312. * src/main.cc
  313. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Bump up version number to 1.8.0.
  315. * configure.ac
  316. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Use info hash as a filename when saving BitTorrent metadata.
  318. * src/UTMetadataPostDownloadHandler.cc
  319. * test/UTMetadataPostDownloadHandlerTest.cc
  320. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Documented system.multicall XML-RPC method in man page.
  322. * doc/aria2c.1.txt
  323. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Added signal handler for SIGHUP to save .aria2 file when terminal
  325. is closed. The handler is the same one for SIGINT and SIGTERM.
  326. * src/MultiUrlRequestInfo.cc
  327. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Defined method name in XmlRpcMethod subclasses.
  329. * src/XmlRpcMethodFactory.cc
  330. * src/XmlRpcMethodImpl.cc
  331. * src/XmlRpcMethodImpl.h
  332. * test/XmlRpcMethodTest.cc
  333. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Added system.multicall XML-RPC method.
  335. * src/XmlRpcMethod.cc
  336. * src/XmlRpcMethod.h
  337. * src/XmlRpcMethodFactory.cc
  338. * src/XmlRpcMethodImpl.cc
  339. * src/XmlRpcMethodImpl.h
  340. * test/XmlRpcMethodTest.cc
  341. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Check structure depth when decoding.
  343. * src/bencode.cc
  344. * src/bencode.h
  345. * test/BencodeTest.cc
  346. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Documented tellStopped XML-RPC method in man page.
  348. * doc/aria2c.1.txt
  349. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Added tellStopped XML-RPC method to aria2rpc.
  351. * doc/xmlrpc/aria2rpc
  352. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Added tellStopped XML-RPC method. This method returns stopped
  354. download in the specified range. It takes same parameters with
  355. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  356. * src/XmlRpcMethodFactory.cc
  357. * src/XmlRpcMethodImpl.cc
  358. * src/XmlRpcMethodImpl.h
  359. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  361. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  362. when conducting unit tests because they fail if networking
  363. interface is not configured with IPv4 address.
  364. * src/NameResolver.cc
  365. * src/SocketCore.cc
  366. * src/SocketCore.h
  367. * src/a2netcompat.h
  368. * test/AllTest.cc
  369. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Fixed unit test error
  371. * test/UTMetadataPostDownloadHandlerTest.cc
  372. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Defined static string constants for efficiency.
  374. * src/XmlRpcMethodImpl.cc
  375. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Added --bt-save-metadata option. When true is given, it saves
  377. metadata as .torrent file. This option has effect only when
  378. BitTorrent Magnet URI is used. The filename is name in metadata
  379. with suffix .torrent. The directory to be saved is the same
  380. directory where download file is saved. If the same file already
  381. exists, metdata is not saved.
  382. * src/OptionHandlerFactory.cc
  383. * src/UTMetadataPostDownloadHandler.cc
  384. * src/UTMetadataPostDownloadHandler.h
  385. * src/message.h
  386. * src/prefs.cc
  387. * src/prefs.h
  388. * src/usage_text.h
  389. * test/UTMetadataDataExtensionMessageTest.cc
  390. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Added util::saveAs() function. Use it in Signature::save().
  392. * src/Signature.cc
  393. * src/util.cc
  394. * src/util.h
  395. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Upcase info hash in Magnet URI.
  397. * doc/aria2c.1.txt
  398. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Refactored RequestGroupMan::changeReservedGroupPosition()
  400. * src/RequestGroupMan.cc
  401. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Updated the description for aria2.addTorrent XML-RPC method.
  403. * doc/aria2c.1.txt
  404. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added changePosition to aria2rpc.
  406. * doc/xmlrpc/aria2rpc
  407. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Documented changePosition XML-RPC method in man page.
  409. * doc/aria2c.1.txt
  410. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  412. pos and how. This method changes the position of download denoted
  413. by gid. If how is POS_SET, it moves the download to a position
  414. relative to the beginning of the queue. If how is POS_CUR, it
  415. moves the download to a position relative to the current
  416. position. If how is POS_END, it moves the download to a position
  417. relative to the end of the queue. If the destination position is
  418. less than 0 or beyond the end of the queue, it moves the download
  419. to the beginning or the end of the queue respectively. Returns
  420. the destination position.
  421. * src/RequestGroupMan.cc
  422. * src/RequestGroupMan.h
  423. * src/XmlRpcMethodFactory.cc
  424. * src/XmlRpcMethodImpl.cc
  425. * src/XmlRpcMethodImpl.h
  426. * test/RequestGroupManTest.cc
  427. * test/XmlRpcMethodTest.cc
  428. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Added getOption and getGlobalOption to aria2rpc.
  430. * doc/xmlrpc/aria2rpc
  431. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Documented getOption and getGlobalOption XML-RPC method in man
  433. page
  434. * doc/aria2c.1.txt
  435. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Added getOption and getGlobalOption XML-RPC method. getOption
  437. takes GID as a parameter and returns its options as struct.
  438. getGlobalOption takes no parameter and returns global
  439. options. Because global option is used as a template for the
  440. option of newly added downloads, it includes options returned by
  441. getOption.
  442. * src/Option.h
  443. * src/XmlRpcMethodFactory.cc
  444. * src/XmlRpcMethodImpl.cc
  445. * src/XmlRpcMethodImpl.h
  446. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Sort _optionHandlers in OptionParser by name in ascending order.
  448. Use vector instead of deque for efficiency.
  449. * src/OptionHandler.h
  450. * src/OptionHandlerFactory.h
  451. * src/OptionParser.cc
  452. * src/OptionParser.h
  453. * src/version_usage.cc
  454. * test/OptionParserTest.cc
  455. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Code cleanup
  457. * src/XmlRpcMethod.cc
  458. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Documented about followedBy and belongsTo in man page.
  460. * doc/aria2c.1.txt
  461. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Added following 2 keys, followedBy and belongsTo, to the response
  463. of tellStatus.
  464. followedBy: List of GIDs which are generated by the consequence of
  465. this download. For example, when aria2 downloaded Metalink file,
  466. it generates downloads described in it(see *--follow-metalink*
  467. option). This value is useful to track these auto generated
  468. downloads. If there is no such downloads, this key will not be
  469. included in the response.
  470. belongsTo: GID of a parent download. Some downloads are a part of
  471. another download. For example, if a file in Metalink has
  472. BitTorrent resource, the download of .torrent is a part of that
  473. file. If this download has no parent, this key will not be
  474. included in the response.
  475. * src/BtPostDownloadHandler.cc
  476. * src/DownloadResult.h
  477. * src/Metalink2RequestGroup.cc
  478. * src/MetalinkPostDownloadHandler.cc
  479. * src/RequestGroup.cc
  480. * src/RequestGroup.h
  481. * src/UTMetadataPostDownloadHandler.cc
  482. * src/XmlRpcMethodImpl.cc
  483. * src/XmlRpcMethodImpl.h
  484. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Assigned BObject in BDE() to avoid segmentation fault when calling
  486. methods of BDE::none().
  487. * src/BDE.cc
  488. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Show info hash in Magnet URI in upper case letters in -S output.
  490. * src/bittorrent_helper.cc
  491. * test/BittorrentHelperTest.cc
  492. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Removed old useless comment
  494. * src/MultiUrlRequestInfo.cc
  495. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  497. not properly used in configure script and failed to detect gnutls.
  498. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  499. and the initialization of pkg-config is done in first occurrence
  500. of PKG_CHECK_MODULES which is not executed because it is inside of
  501. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  502. * configure.ac
  503. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Release 1.7.2
  505. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Fixed the bug that RequestGroupMan::downloadFinished() returns
  507. true even if all downloads haven't finished, especially when
  508. PostDownloadHandler is involved. Changed the condition so that it
  509. only returns true if both _requestGroups and _reservedGroups are
  510. empty.
  511. * src/RequestGroupMan.cc
  512. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Log listening port for BitTorrent/DHT in notice level.
  514. * src/DHTConnectionImpl.cc
  515. * src/PeerListenCommand.cc
  516. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Updated po templates.
  518. * po/aria2.pot
  519. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Bump up version number to 1.7.2
  521. * configure.ac
  522. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Changed default value of --enable-dht from 'false' to 'true'.
  524. * doc/aria2c.1.txt
  525. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Enabled DHT by default because of Magnet URI support. To disable
  527. DHT, use --enable-dht=false
  528. * src/OptionHandlerFactory.cc
  529. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Print Magnet URI in -S output.
  531. * src/AnnounceList.cc
  532. * src/bittorrent_helper.cc
  533. * src/bittorrent_helper.h
  534. * test/BittorrentHelperTest.cc
  535. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Added --bt-prioritize-piece option to aria2rpc.
  537. * doc/xmlrpc/aria2rpc
  538. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Refer Magnet URI in --help. Made some cosmetic changes.
  540. * src/version_usage.cc
  541. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Updated -T and -M option.
  543. * doc/aria2c.1.txt
  544. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Fixed typo
  546. * doc/aria2c.1.txt
  547. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Fixed the bug that line separator is missing in horizontal bar.
  549. * doc/xmlrpc/aria2mon
  550. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Updated usage text for --metalink-file option.
  552. * src/usage_text.h
  553. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. If '-' is given as an argument to --metalink-file option, aria2
  555. reads Metalink file from stdin.
  556. * src/OptionHandlerFactory.cc
  557. * src/OptionHandlerImpl.h
  558. * src/a2io.h
  559. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Fixed the bug that aria2 listens wrong port if --interface option
  561. is used.
  562. * src/SocketCore.cc
  563. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Fixed the bug that query parameter in magnet URI is not decoded.
  565. * src/magnet.cc
  566. * test/MagnetTest.cc
  567. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Specified defaultSize as an argument for easy testing.
  569. * src/util.cc
  570. * src/util.h
  571. * test/UtilTest.cc
  572. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Release 1.7.1
  574. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Bump up version number to 1.7.1
  576. * configure.ac
  577. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Fixed the bug --bt-prioritize-piece=tail is not working.
  579. * src/util.cc
  580. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Release 1.7.0
  582. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Updated po templates.
  584. * po/aria2.pot
  585. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Updated help message for --bt-prioritize-piece. Some cosmetic
  587. changes.
  588. * doc/aria2c.1.txt
  589. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  591. * src/usage_text.h
  592. * src/util.cc
  593. * test/UtilTest.cc
  594. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Updated Russian, Ukrainian, German and French translations.
  596. Thanks to all translators involved.
  597. * po/de.po
  598. * po/fr.po
  599. * po/ru.po
  600. * po/uk.po
  601. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Mentioned about pkg-config
  603. * README
  604. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Fixed typo. Referred --index-out option in BitTorrent notes.
  606. * README
  607. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Store all addresses found by getifaddrs() and getaddrinfo(). In
  609. bind, try all addresses until success
  610. * src/SocketCore.cc
  611. * src/SocketCore.h
  612. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Updated po templates.
  614. * po/aria2.pot
  615. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Bump up version number to 1.7.0
  617. * configure.ac
  618. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Fixed compile error if ENABLE_BITTORRENT is undefined.
  620. * src/DefaultPieceStorage.cc
  621. * src/DefaultPieceStorage.h
  622. * src/PieceStorage.h
  623. * src/UnknownLengthPieceStorage.cc
  624. * src/UnknownLengthPieceStorage.h
  625. * test/MockPieceStorage.h
  626. * test/ProtocolDetectorTest.cc
  627. * test/XmlRpcMethodTest.cc
  628. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Documented in man page that if getifaddrs() is missing,
  630. --interface option doesn't accept interface name.
  631. * doc/aria2c.1.txt
  632. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  634. * src/DefaultBtAnnounce.cc
  635. * src/DefaultBtAnnounce.h
  636. * test/DefaultBtAnnounceTest.cc
  637. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Fixed the bug that connection is always dropped if handshake
  639. message in extension protocol don't have metadata_size.
  640. src/HandshakeExtensionMessage.cc
  641. * src/HandshakeExtensionMessage.cc
  642. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  644. text saying DHT is recommended when Magnet URI is provided.
  645. * doc/aria2c.1.txt
  646. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  648. URI is supplied. Notify user that they should consider enabling
  649. DHT if they use Magnet URI.
  650. * src/RequestGroup.cc
  651. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Added --disable-ipv6 option to disable IPv6.
  653. * doc/aria2c.1.txt
  654. * src/InitiateConnectionCommand.cc
  655. * src/NameResolver.cc
  656. * src/NameResolver.h
  657. * src/OptionHandlerFactory.cc
  658. * src/main.cc
  659. * src/prefs.cc
  660. * src/prefs.h
  661. * src/usage_text.h
  662. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Updated usage text for --bt-prioritize-piece option.
  664. * doc/aria2c.1.txt
  665. * src/usage_text.h
  666. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. In configure script, if --with-PACKAGE and --enable-FEATURE are
  668. given and PACKAGE is missing in the system or FEATURE cannot be
  669. enabled, print error message and stop the script.
  670. * configure.ac
  671. * m4/aria2_arg.m4
  672. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Halt metadata download immediately when metadata download is done.
  674. Don't wait unresponsive tracker.
  675. * src/ByteArrayDiskWriter.h
  676. * src/DefaultBtInteractive.cc
  677. * src/DefaultExtensionMessageFactory.cc
  678. * src/DefaultExtensionMessageFactory.h
  679. * src/PeerInteractionCommand.cc
  680. * src/UTMetadataDataExtensionMessage.cc
  681. * src/UTMetadataDataExtensionMessage.h
  682. * src/UTMetadataRequestExtensionMessage.cc
  683. * test/UTMetadataDataExtensionMessageTest.cc
  684. * test/UTMetadataRequestExtensionMessageTest.cc
  685. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Documented --interface option in man page.
  687. * doc/aria2c.1.txt
  688. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Try resolved address in the order received from the resolver.
  690. * src/DNSCache.h
  691. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Added debug logs.
  693. * src/SocketCore.cc
  694. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Fixed type of tail to uint64_t
  696. * src/util.cc
  697. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Added --interface option. This feature binds sockets to given
  699. interface. You can specify interface name, IP address and
  700. hostname.
  701. * configure.ac
  702. * src/OptionHandlerFactory.cc
  703. * src/SocketCore.cc
  704. * src/SocketCore.h
  705. * src/main.cc
  706. * src/message.h
  707. * src/prefs.cc
  708. * src/prefs.h
  709. * src/usage_text.h
  710. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Updated man page for bt-prioritize-piece option in -i list.
  712. * doc/aria2c.1.txt
  713. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Added bt-prioritize-piece option to -i list.
  715. * src/download_helper.cc
  716. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Removed --http-auth-scheme option from man page.
  718. * doc/aria2c.1.txt
  719. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Removed --http-auth-scheme option since it doesn't do nothing.
  721. * src/OptionHandlerFactory.cc
  722. * src/prefs.cc
  723. * src/prefs.h
  724. * src/usage_text.h
  725. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Adjusted the number of peer info which get_peers reply message can
  727. carry.
  728. * src/DHTGetPeersReplyMessage.cc
  729. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added extension_message_test_helper.h to aria2c_SOURCES.
  731. * test/Makefile.am
  732. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Documented --bt-prioritize-piece option in man page.
  734. * doc/aria2c.1.txt
  735. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Added option --bt-prioritize-piece. This option instruct aria2 to
  737. try to download first and last pieces of each file first. The
  738. argument can contain 2 keywords:head and tail. To include both
  739. keywords, they must be separated by comma. These keywords can take
  740. one parameter, SIZE. For example , if head=SIZE is specified,
  741. pieces in the range of first SIZE bytes of each file get higher
  742. priority. tail=SIZE means the range of last SIZE bytes of each
  743. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  744. * src/DefaultPieceStorage.h
  745. * src/Makefile.am
  746. * src/OptionHandlerFactory.cc
  747. * src/OptionHandlerImpl.h
  748. * src/PriorityPieceSelector.cc
  749. * src/PriorityPieceSelector.h
  750. * src/RequestGroup.cc
  751. * src/prefs.cc
  752. * src/prefs.h
  753. * src/usage_text.h
  754. * src/util.cc
  755. * src/util.h
  756. * test/Makefile.am
  757. * test/MockPieceSelector.h
  758. * test/PriorityPieceSelectorTest.cc
  759. * test/UtilTest.cc
  760. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Fixed typo
  762. * src/HttpRequest.h
  763. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. In Magnet URI with tr parameter, put each announce URI in separate
  765. tier.
  766. * src/bittorrent_helper.cc
  767. * test/BittorrentHelperTest.cc
  768. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Renamed ExtensionMessage::getBencodedData() as
  770. ExtensionMessage::getPayload()
  771. * src/BtExtendedMessage.cc
  772. * src/ExtensionMessage.h
  773. * src/HandshakeExtensionMessage.cc
  774. * src/HandshakeExtensionMessage.h
  775. * src/UTMetadataDataExtensionMessage.cc
  776. * src/UTMetadataDataExtensionMessage.h
  777. * src/UTMetadataRejectExtensionMessage.cc
  778. * src/UTMetadataRejectExtensionMessage.h
  779. * src/UTMetadataRequestExtensionMessage.cc
  780. * src/UTMetadataRequestExtensionMessage.h
  781. * src/UTPexExtensionMessage.cc
  782. * src/UTPexExtensionMessage.h
  783. * test/HandshakeExtensionMessageTest.cc
  784. * test/MockExtensionMessage.h
  785. * test/UTMetadataDataExtensionMessageTest.cc
  786. * test/UTMetadataRejectExtensionMessageTest.cc
  787. * test/UTMetadataRequestExtensionMessageTest.cc
  788. * test/UTPexExtensionMessageTest.cc
  789. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Updated man page for BitTorrent Magnet URI.
  791. * doc/aria2c.1.txt
  792. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Call DownloadContext::setOwnerRequestGroup() in
  794. RequestGroup::setDownloadContext().
  795. * src/BtDependency.cc
  796. * src/RequestGroup.cc
  797. * src/RequestGroup.h
  798. * src/download_helper.cc
  799. * test/DefaultBtMessageDispatcherTest.cc
  800. * test/DefaultExtensionMessageFactoryTest.cc
  801. * test/HandshakeExtensionMessageTest.cc
  802. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  804. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  805. from metadata, use new metadata2Torrent() function.
  806. * src/BtDependency.cc
  807. * src/UTMetadataPostDownloadHandler.cc
  808. * src/bittorrent_helper.cc
  809. * src/bittorrent_helper.h
  810. * test/BittorrentHelperTest.cc
  811. * test/BtDependencyTest.cc
  812. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Use createRequestGroupForUri to create the download for torrent
  814. file.
  815. * src/Metalink2RequestGroup.cc
  816. * test/Metalink2RequestGroupTest.cc
  817. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed typo
  819. * src/DownloadContext.h
  820. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Use createRequestGroupForBitTorrent()
  822. * src/BtPostDownloadHandler.cc
  823. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Added remove().
  825. * src/Option.cc
  826. * src/Option.h
  827. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Removed options which is only valid for URIs specified in
  829. command-line. If they are left, because op is used as a template
  830. for new RequestGroup(such as created in XML-RPC command,
  831. BtPostDownloadHandler etc), they causes unintentional effect.
  832. * src/main.cc
  833. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Refer to option value of PREF_OUT only in download_helper.
  835. * src/FtpNegotiationCommand.cc
  836. * src/HttpResponseCommand.cc
  837. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  839. * src/download_helper.cc
  840. * src/download_helper.h
  841. * src/XmlRpcMethodImpl.cc
  842. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Updated man page for changeOption XML-RPC method.
  844. * doc/aria2c.1.txt
  845. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added --bt-max-peers option to changeOption XML-RPC method.
  847. * src/XmlRpcMethod.cc
  848. * src/XmlRpcMethodImpl.cc
  849. * test/XmlRpcMethodTest.cc
  850. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  852. * test/XmlRpcMethodTest.cc
  853. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Removed redundant DownloadContext::hasAttribute(...) calls.
  855. * src/ConsoleStatCalc.cc
  856. * src/RequestGroup.cc
  857. * src/XmlRpcMethodImpl.cc
  858. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Changed the number of tracker request attempt from 5 to 2.
  860. * src/TrackerWatcherCommand.cc
  861. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Use host and protocol in original URI, because URI selector
  863. selects URI based on original URI, not redirected one.
  864. * src/Request.cc
  865. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Fixed the bug which causes segmentation fault with tellWaiting
  867. XML-RPC method when BitTorrent download is waiting. The key of
  868. BtRegistry is changed from info hash to GID, because it is
  869. registered per RequestGroup, not info hash.
  870. * src/BtRegistry.cc
  871. * src/BtRegistry.h
  872. * src/BtSetup.cc
  873. * src/ConsoleStatCalc.cc
  874. * src/InitiatorMSEHandshakeCommand.cc
  875. * src/PeerInitiateConnectionCommand.cc
  876. * src/PeerInteractionCommand.cc
  877. * src/PeerInteractionCommand.h
  878. * src/PeerReceiveHandshakeCommand.cc
  879. * src/RequestGroup.cc
  880. * src/XmlRpcMethodImpl.cc
  881. * test/BtRegistryTest.cc
  882. * test/XmlRpcMethodTest.cc
  883. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Updated man page for changeOption XML-RPC method.
  885. * doc/aria2c.1.txt
  886. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  888. method.
  889. * src/XmlRpcMethod.cc
  890. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Documented about BitTorrent Magnet URI in man page.
  892. * doc/aria2c.1.txt
  893. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Fixed the bug that trackers in BitTorrent Magnet URI are not
  895. inherited to generated RequestGroup.
  896. * src/UTMetadataPostDownloadHandler.cc
  897. * test/UTMetadataPostDownloadHandlerTest.cc
  898. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Prepended "[METADATA]" before dn.
  900. * src/bittorrent_helper.cc
  901. * test/BittorrentHelperTest.cc
  902. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Rewritten Magnet URI parser.
  904. * src/Makefile.am
  905. * src/ProtocolDetector.cc
  906. * src/bittorrent_helper.cc
  907. * src/bittorrent_helper.h
  908. * src/download_helper.cc
  909. * src/magnet.cc
  910. * src/magnet.h
  911. * test/BittorrentHelperTest.cc
  912. * test/MagnetTest.cc
  913. * test/Makefile.am
  914. * test/ProtocolDetectorTest.cc
  915. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Use hton64
  917. * src/base32.cc
  918. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Added Base32 encoded BitTorrent Magnet Link support.
  920. * src/Makefile.am
  921. * src/base32.cc
  922. * src/base32.h
  923. * src/bittorrent_helper.cc
  924. * test/Base32Test.cc
  925. * test/BittorrentHelperTest.cc
  926. * test/Makefile.am
  927. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Added BitTorrent Magnet Link support. Base32 encoded link is not
  929. supported yet. Fixed typo in method name in RequestGroup. In
  930. metadataGetMode, don't show "Your share ratio was ..." message.
  931. * src/DefaultBtInteractive.cc
  932. * src/DefaultBtInteractive.h
  933. * src/DownloadHandlerFactory.cc
  934. * src/DownloadHandlerFactory.h
  935. * src/HandshakeExtensionMessage.cc
  936. * src/Makefile.am
  937. * src/Metalink2RequestGroup.cc
  938. * src/PeerInteractionCommand.cc
  939. * src/RequestGroup.cc
  940. * src/RequestGroup.h
  941. * src/UTMetadataPostDownloadHandler.cc
  942. * src/UTMetadataPostDownloadHandler.h
  943. * src/download_helper.cc
  944. * test/HandshakeExtensionMessageTest.cc
  945. * test/Makefile.am
  946. * test/UTMetadataPostDownloadHandlerTest.cc
  947. * test/UTMetadataRejectExtensionMessageTest.cc
  948. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. In metadataGetMode, don't show SEEDING.
  950. * src/ConsoleStatCalc.cc
  951. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Fixed ut_metadata data handling. Implemented
  953. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  954. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  955. metadata_size is received.
  956. * src/DefaultExtensionMessageFactory.cc
  957. * src/DefaultExtensionMessageFactory.h
  958. * src/HandshakeExtensionMessage.cc
  959. * src/HandshakeExtensionMessage.h
  960. * src/UTMetadataDataExtensionMessage.cc
  961. * src/UTMetadataDataExtensionMessage.h
  962. * src/UTMetadataRequestExtensionMessage.cc
  963. * src/UTMetadataRequestFactory.cc
  964. * src/UTMetadataRequestFactory.h
  965. * src/UTMetadataRequestTracker.cc
  966. * src/UTMetadataRequestTracker.h
  967. * test/DefaultExtensionMessageFactoryTest.cc
  968. * test/HandshakeExtensionMessageTest.cc
  969. * test/MockBtMessage.h
  970. * test/UTMetadataDataExtensionMessageTest.cc
  971. * test/UTMetadataRequestExtensionMessageTest.cc
  972. * test/UTMetadataRequestFactoryTest.cc
  973. * test/UTMetadataRequestTrackerTest.cc
  974. * test/extension_message_test_helper.h
  975. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Drop connection if ut_metadata reject message is received.
  977. * src/UTMetadataRejectExtensionMessage.cc
  978. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  980. get high enough in that mode.
  981. * src/ActivePeerConnectionCommand.cc
  982. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Added BitTorrent magnet link support to ProtocolDetector.
  984. * src/ProtocolDetector.cc
  985. * src/ProtocolDetector.h
  986. * test/ProtocolDetectorTest.cc
  987. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Don't inject validator into BtMessage in metadataGetMode because
  989. most of the checks depends on the total length of download but it
  990. is unknown. Delegate metadataGetMode to BtMessage.
  991. * src/DefaultBtMessageFactory.cc
  992. * src/DefaultBtMessageFactory.h
  993. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  995. * src/DefaultPieceStorage.h
  996. * src/PieceStorage.h
  997. * src/UnknownLengthPieceStorage.h
  998. * test/MockPieceStorage.h
  999. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Added markTotalLengthIsKnown().
  1001. * src/DownloadContext.h
  1002. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1004. missing. If metadata is missing, always use DHT when it is ready.
  1005. * src/BtSetup.cc
  1006. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added parseMagnetLink(). Hex encoded info hash is supported.
  1008. Base32 encoded info hash is not supported yet.
  1009. * src/bittorrent_helper.cc
  1010. * src/bittorrent_helper.h
  1011. * test/BittorrentHelperTest.cc
  1012. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added FromHex()
  1014. * src/util.cc
  1015. * src/util.h
  1016. * test/UtilTest.cc
  1017. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added _metadataGetMode member variable. It toggles the action when
  1019. messages are received: usually they almost do nothing if
  1020. _metadataGetMode is true.
  1021. * src/AbstractBtMessage.cc
  1022. * src/AbstractBtMessage.h
  1023. * src/BtAllowedFastMessage.cc
  1024. * src/BtBitfieldMessage.cc
  1025. * src/BtCancelMessage.cc
  1026. * src/BtChokeMessage.cc
  1027. * src/BtHaveAllMessage.cc
  1028. * src/BtHaveMessage.cc
  1029. * src/BtInterestedMessage.cc
  1030. * src/BtNotInterestedMessage.cc
  1031. * src/BtPieceMessage.cc
  1032. * src/BtRejectMessage.cc
  1033. * src/BtRequestMessage.cc
  1034. * src/BtUnchokeMessage.cc
  1035. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Added bencode::decode overload functions. They have extra argument
  1037. 'end', passed by reference. 'end' points to the beyond the last
  1038. position of data used in decoding process.
  1039. * src/bencode.cc
  1040. * src/bencode.h
  1041. * test/BencodeTest.cc
  1042. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Initial support of Extension for Peers to Send Metadata
  1044. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1045. metadata from swarm.
  1046. * src/BtConstants.h
  1047. * src/DefaultBtInteractive.cc
  1048. * src/DefaultExtensionMessageFactory.cc
  1049. * src/DefaultExtensionMessageFactory.h
  1050. * src/ExtensionMessage.h
  1051. * src/ExtensionMessageRegistry.h
  1052. * src/HandshakeExtensionMessage.cc
  1053. * src/HandshakeExtensionMessage.h
  1054. * src/Makefile.am
  1055. * src/PeerConnection.h
  1056. * src/PeerInteractionCommand.cc
  1057. * src/UTMetadataDataExtensionMessage.cc
  1058. * src/UTMetadataDataExtensionMessage.h
  1059. * src/UTMetadataExtensionMessage.cc
  1060. * src/UTMetadataExtensionMessage.h
  1061. * src/UTMetadataRejectExtensionMessage.cc
  1062. * src/UTMetadataRejectExtensionMessage.h
  1063. * src/UTMetadataRequestExtensionMessage.cc
  1064. * src/UTMetadataRequestExtensionMessage.h
  1065. * src/bittorrent_helper.cc
  1066. * src/bittorrent_helper.h
  1067. * test/BittorrentHelperTest.cc
  1068. * test/DefaultExtensionMessageFactoryTest.cc
  1069. * test/HandshakeExtensionMessageTest.cc
  1070. * test/Makefile.am
  1071. * test/UTMetadataDataExtensionMessageTest.cc
  1072. * test/UTMetadataRejectExtensionMessageTest.cc
  1073. * test/UTMetadataRequestExtensionMessageTest.cc
  1074. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Cancel segment in prepareForRetry() because there is a chance that
  1076. the command has segments.
  1077. * src/CreateRequestCommand.cc
  1078. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Fixed the bug that slow server is not knocked down in favor of
  1080. faster one.
  1081. * src/AbstractCommand.cc
  1082. * src/DefaultPieceStorage.cc
  1083. * src/DefaultPieceStorage.h
  1084. * src/PieceStorage.h
  1085. * src/UnknownLengthPieceStorage.cc
  1086. * src/UnknownLengthPieceStorage.h
  1087. * test/MockPieceStorage.h
  1088. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Fixed the bug that Request object is not added to
  1090. _inFlightRequests in findFasterRequest().
  1091. * src/FileEntry.cc
  1092. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Changed the strategry of how to increase the number of outstanding
  1094. requests. Now the number is doubled if there are no outstanding
  1095. requests after receiving messages.
  1096. * src/BtConstants.h
  1097. * src/DefaultBtInteractive.cc
  1098. * src/DefaultBtInteractive.h
  1099. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Check socket for reading if there are outstanding requests.
  1101. * src/PeerInteractionCommand.cc
  1102. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Moved frequently called methods to header file so they get
  1104. inlined.
  1105. * src/RequestSlot.cc
  1106. * src/RequestSlot.h
  1107. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Copied in_addr instead of just casting from char* which might
  1109. violate strict aliasing rules.
  1110. * src/AsyncNameResolver.cc
  1111. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Use dynamic_pointer_cast
  1113. * test/BtPieceMessageTest.cc
  1114. * test/BtRequestMessageTest.cc
  1115. * test/DefaultBtRequestFactoryTest.cc
  1116. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Added testSetUrl20()
  1118. * test/RequestTest.cc
  1119. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Code cleanup
  1121. * src/bittorrent_helper.cc
  1122. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Use C++ style cast
  1124. * src/AsyncNameResolver.cc
  1125. * src/Base64.h
  1126. * src/BtBitfieldMessage.cc
  1127. * src/BtHandshakeMessage.cc
  1128. * src/DefaultBtMessageFactory.cc
  1129. * src/DefaultBtProgressInfoFile.cc
  1130. * src/EpollEventPoll.cc
  1131. * src/ExpatMetalinkProcessor.cc
  1132. * src/IteratableChecksumValidator.cc
  1133. * src/IteratableChunkChecksumValidator.cc
  1134. * src/MessageDigestHelper.cc
  1135. * src/Platform.cc
  1136. * src/RequestGroupMan.cc
  1137. * src/SingleFileAllocationIterator.cc
  1138. * src/Sqlite3MozCookieParser.cc
  1139. * src/XML2SAXMetalinkProcessor.cc
  1140. * src/Xml2XmlRpcRequestProcessor.cc
  1141. * src/util.cc
  1142. * src/util.h
  1143. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1144. Fixed integer potential alignment problem.
  1145. * src/bitfield.h
  1146. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1148. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1149. include file ordering.
  1150. * src/PeerListProcessor.h
  1151. * src/bittorrent_helper.cc
  1152. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1154. * src/Request.cc
  1155. * src/util.cc
  1156. * src/util.h
  1157. * test/RequestTest.cc
  1158. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Rewritten util::uitos()
  1160. * src/util.h
  1161. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Code cleanup
  1163. * src/Request.cc
  1164. * src/Request.h
  1165. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Rewritten Request::parseUrl()
  1167. * src/Request.cc
  1168. * test/RequestTest.cc
  1169. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Removed unused macro SAFE_CHARS
  1171. * src/Request.cc
  1172. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Updated doc
  1174. * src/DHTRoutingTableDeserializer.cc
  1175. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Release 1.6.3
  1177. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Removed unused function.
  1179. * test/DHTPeerAnnounceStorageTest.cc
  1180. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Only decrement cols if cols > 0
  1182. * src/ConsoleStatCalc.cc
  1183. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1185. translations. Thanks to all translators.
  1186. * po/ca.po
  1187. * po/fr.po
  1188. * po/it.po
  1189. * po/ja.po
  1190. * po/pl.po
  1191. * po/ru.po
  1192. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Updated translation template
  1194. * po
  1195. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Fixed compile error without ssl library.
  1197. * src/util.cc
  1198. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Logged received nodes in get_peers reply message.
  1200. * src/DHTAbstractNodeLookupTask.cc
  1201. * src/DHTAbstractNodeLookupTask.h
  1202. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1204. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1205. * src/DHTMessageDispatcherImpl.cc
  1206. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Don't reuse URI if Request pool is not empty.
  1208. * src/CreateRequestCommand.cc
  1209. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1211. receive get_peers request for torrent which the client is now
  1212. downloading.
  1213. * src/BtSetup.cc
  1214. * src/DHTPeerAnnounceEntry.cc
  1215. * src/DHTPeerAnnounceEntry.h
  1216. * src/DHTPeerAnnounceStorage.cc
  1217. * src/DHTPeerAnnounceStorage.h
  1218. * src/RequestGroup.cc
  1219. * test/DHTPeerAnnounceEntryTest.cc
  1220. * test/DHTPeerAnnounceStorageTest.cc
  1221. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Fixed the bug that in Windows environment new blank line is
  1223. inserted when console readout is updated.
  1224. * src/ConsoleStatCalc.cc
  1225. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Throw exception if binding listening port is failed. Removed
  1227. RequestGroupMan::getInitialCommand(). Use
  1228. fillRequestGroupFromReserver() instead. Delete commands for
  1229. RequestGroup which has errors when it is being added.
  1230. * src/BtSetup.cc
  1231. * src/DownloadEngine.cc
  1232. * src/DownloadEngine.h
  1233. * src/DownloadEngineFactory.cc
  1234. * src/MultiUrlRequestInfo.cc
  1235. * src/RequestGroupMan.cc
  1236. * src/RequestGroupMan.h
  1237. * test/RequestGroupManTest.cc
  1238. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Fixed the bug that when downloading more than one torrent,
  1240. listening port is not reported properly to tracker for 2nd or
  1241. later torrents.
  1242. * src/BtSetup.cc
  1243. * src/PeerListenCommand.cc
  1244. * src/PeerListenCommand.h
  1245. * src/RequestGroup.cc
  1246. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Bump up version number to 1.6.3
  1248. * configure.ac
  1249. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Removed Util.cc from POTFILES.in
  1251. * po/POTFILES.in
  1252. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Updated man page for previous change.
  1254. * doc/aria2c.1.txt
  1255. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. If user name is embedded but password is missing in URI, first
  1257. resolve password using .netrc. If password is found in .netrc,
  1258. then use it as password. If not, use the password specified in
  1259. --ftp-passwd.
  1260. * src/AuthConfigFactory.cc
  1261. * src/Request.cc
  1262. * src/Request.h
  1263. * test/AuthConfigFactoryTest.cc
  1264. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Fixed typo
  1266. * doc/aria2c.1.txt
  1267. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Fixed typo
  1269. * src/usage_text.h
  1270. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Added missing bitfield.cc
  1272. * src/bitfield.cc
  1273. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Renamed Util.{cc,h} as util.{cc,h}
  1275. * src/Util.cc
  1276. * src/Util.h
  1277. * src/util.cc
  1278. * src/util.h
  1279. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Moved static functions in Util class to namespace util.
  1281. * src
  1282. * test
  1283. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1285. Moved generateRandomKey to bittorrent_helper.cc.
  1286. * src/DHTBucket.cc
  1287. * src/DHTGetPeersMessage.cc
  1288. * src/DHTGetPeersReplyMessage.cc
  1289. * src/DHTMessage.cc
  1290. * src/DHTNode.cc
  1291. * src/DHTTokenTracker.cc
  1292. * src/DHTUtil.cc: Removed.
  1293. * src/DHTUtil.h: Removed.
  1294. * src/Makefile.am
  1295. * src/Util.cc
  1296. * src/Util.h
  1297. * src/bitfield.h
  1298. * src/bittorrent_helper.cc
  1299. * src/bittorrent_helper.h
  1300. * test/ARC4Test.cc
  1301. * test/BNodeTest.cc
  1302. * test/DHTAnnouncePeerMessageTest.cc
  1303. * test/DHTAnnouncePeerReplyMessageTest.cc
  1304. * test/DHTFindNodeMessageTest.cc
  1305. * test/DHTFindNodeReplyMessageTest.cc
  1306. * test/DHTGetPeersMessageTest.cc
  1307. * test/DHTGetPeersReplyMessageTest.cc
  1308. * test/DHTPingMessageTest.cc
  1309. * test/DHTPingReplyMessageTest.cc
  1310. * test/DHTTokenTrackerTest.cc
  1311. * test/DHTUtilTest.cc: Removed.
  1312. * test/Makefile.am
  1313. * test/UtilTest.cc
  1314. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Removed the call to trim() because trim() is called for each
  1316. element in split().
  1317. * src/CookieParser.cc
  1318. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Replaced Util::slice() with split()
  1320. * src/AbstractCommand.cc
  1321. * src/CookieParser.cc
  1322. * src/File.cc
  1323. * src/HttpHeaderProcessor.cc
  1324. * src/HttpRequest.cc
  1325. * src/Metalink2RequestGroup.cc
  1326. * src/MetalinkParserController.cc
  1327. * src/Netrc.cc
  1328. * src/NsCookieParser.cc
  1329. * src/ParameterizedStringParser.cc
  1330. * src/ServerStatMan.cc
  1331. * src/UriListParser.cc
  1332. * src/Util.cc
  1333. * src/Util.h
  1334. * src/bittorrent_helper.cc
  1335. * test/UtilTest.cc
  1336. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Use request->getDir() instead of "/" for embedded user/pass in
  1338. URI.
  1339. * src/AuthConfigFactory.cc
  1340. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Fixed wrong insertion point for BasicCred.
  1342. * src/AuthConfigFactory.cc
  1343. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Allowed non-regular file in LocalFilePathOptionHandler
  1345. * src/OptionHandlerImpl.h
  1346. * src/message.h
  1347. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1349. * src/Netrc.cc
  1350. * src/Util.h
  1351. * test/NetrcTest.cc
  1352. * test/sample.netrc
  1353. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Fixed typo
  1355. * src/BtDependency.cc
  1356. * src/BtRejectMessage.cc
  1357. * src/FtpConnection.cc
  1358. * src/HttpHeaderProcessor.h
  1359. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Fixed lintian report in man page
  1361. * doc/aria2c.1.txt
  1362. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Release 1.6.2
  1364. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Updated Ukrainian translation. Thanks to all translators.
  1366. * po/uk.po
  1367. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Updated translation template
  1369. * po
  1370. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Bump up version number to 1.6.2
  1372. * configure.ac
  1373. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Updated licence message in -v output.
  1375. * src/version_usage.cc
  1376. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Replaced aria2 with aria2c in help message.
  1378. * src/version_usage.cc
  1379. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1381. * src/version_usage.cc
  1382. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Quoted localedir
  1384. * src/Makefile.am
  1385. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1387. utime. Check header for utime.h.
  1388. * configure.ac
  1389. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1391. * configure.ac
  1392. * src/daemon.cc
  1393. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Don't set localedir manually. Leave it to autoconf.
  1395. * configure.ac
  1396. * src/Makefile.am
  1397. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Added --install to ACLOCAL_AMFLAGS.
  1399. Removed m4 from SUBDIRS.
  1400. Updated automake 1.11 and autoconf 2.64.
  1401. Replaced some obsolute macros with new one.
  1402. * Makefile.am
  1403. * configure.ac
  1404. * m4/aria2_arg.m4
  1405. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Removed Makefile.am in m4 directory.
  1407. * configure.ac
  1408. * m4/ChangeLog
  1409. * m4/Makefile.am
  1410. * m4/Makefile.in
  1411. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Removed unused m4 macros.
  1413. * m4/intldir.m4
  1414. * m4/inttypes.m4
  1415. * m4/isc-posix.m4
  1416. * m4/libgnutls-extra.m4
  1417. * m4/ulonglong.m4
  1418. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Fixed the bug that causes segmentation fault if
  1420. req->getCurrentUrl() contains printf formatting characters such as
  1421. %d. The statement that causes this bug is useless and removed.
  1422. * src/AbstractCommand.cc
  1423. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. * Release 1.6.1
  1425. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Updated Simplified Chinese translation. Thanks to translators.
  1427. * po/zh_CN.po
  1428. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Updated translation template
  1430. * po
  1431. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Bump up version number to 1.6.1
  1433. * configure.ac
  1434. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Changed interval from 120 to 60 for dropping inactive peer.
  1436. * src/DefaultBtInteractive.cc
  1437. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Updated man page for --user-agent and --peer-id-prefix option.
  1439. * doc/aria2c.1.txt
  1440. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Code clean up
  1442. * src/BtPostDownloadHandler.cc
  1443. * src/ContentTypeRequestGroupCriteria.cc
  1444. * src/ContentTypeRequestGroupCriteria.h
  1445. * src/DownloadHandlerConstants.cc
  1446. * src/DownloadHandlerConstants.h
  1447. * src/DownloadHandlerFactory.cc
  1448. * src/MetalinkPostDownloadHandler.cc
  1449. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Don't save control file when aria2 exists while checking piece
  1451. hash(behavior of -V option). If control file doesn't exist when
  1452. aria2 launched, the completed length in saved control file will be
  1453. 0 byte and this confuses user. disableSaveControlFile() is called
  1454. in RequestGroup::processCheckIntegrityEntry().
  1455. enableSaveControlFile() will be called after hash checking is
  1456. done. See CheckIntegrityCommand.
  1457. * src/CheckIntegrityCommand.cc
  1458. * src/RequestGroup.cc
  1459. * src/RequestGroup.h
  1460. * src/RequestGroupMan.cc
  1461. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Included version number in Peer ID and client version. Peer ID
  1463. now starts with "aria2/VERSION-", where VERSION is
  1464. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1465. * src/DefaultBtInteractive.cc
  1466. * src/OptionHandlerFactory.cc
  1467. * src/bittorrent_helper.cc
  1468. * src/bittorrent_helper.h
  1469. * src/main.cc
  1470. * src/usage_text.h
  1471. * test/BittorrentHelperTest.cc
  1472. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Fixed memory leak.
  1474. * src/DownloadCommand.cc
  1475. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Removed server, port, user and passwd key from options before
  1477. XMLRPC::Client.call since they are not options of aria2.
  1478. * doc/xmlrpc/aria2mon
  1479. * doc/xmlrpc/aria2rpc
  1480. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Included version number in user-agent string.
  1482. * src/OptionHandlerFactory.cc
  1483. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Fixed the bug that the option values changed by XML-RPC
  1485. method(changeOption and changeGlobalOption) are overwritten to the
  1486. previous value by the next these request which doesn't contain
  1487. that option value. Supporse max-download-limit is initially 0. You
  1488. changed this value to 100K by changeOption. Then you issue
  1489. changeOption request to change max-upload-limit to 50K. This
  1490. second request doesn't contain xml-download-limit, so it is back
  1491. to initial value, 0. Another improvement is that exception is
  1492. thrown when changeOption and changeGlobalOption request contains
  1493. option name which doesn't allowed in each request.
  1494. * src/DownloadEngine.h
  1495. * src/XmlRpcMethod.cc
  1496. * src/XmlRpcMethod.h
  1497. * src/XmlRpcMethodImpl.cc
  1498. * src/download_helper.cc
  1499. * src/download_helper.h
  1500. * test/XmlRpcMethodTest.cc
  1501. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Added missing MetalinkParserStateImpl.{cc,h}
  1503. * src/MetalinkParserStateImpl.cc
  1504. * src/MetalinkParserStateImpl.h
  1505. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Put all MetalinkParserState subclasses into
  1507. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1508. * src/FileMetalinkParserState.cc: Removed
  1509. * src/FileMetalinkParserState.h: Removed
  1510. * src/FilesMetalinkParserState.cc: Removed
  1511. * src/FilesMetalinkParserState.h: Removed
  1512. * src/FinMetalinkParserState.cc: Removed
  1513. * src/FinMetalinkParserState.h: Removed
  1514. * src/HashMetalinkParserState.cc: Removed
  1515. * src/HashMetalinkParserState.h: Removed
  1516. * src/InitialMetalinkParserState.cc: Removed
  1517. * src/InitialMetalinkParserState.h: Removed
  1518. * src/LanguageMetalinkParserState.cc: Removed
  1519. * src/LanguageMetalinkParserState.h: Removed
  1520. * src/Makefile.am
  1521. * src/MetalinkMetalinkParserState.cc: Removed
  1522. * src/MetalinkMetalinkParserState.h: Removed
  1523. * src/MetalinkParserState.h
  1524. * src/MetalinkParserStateMachine.cc
  1525. * src/MetalinkParserStateMachine.h
  1526. * src/OSMetalinkParserState.cc: Removed
  1527. * src/OSMetalinkParserState.h: Removed
  1528. * src/PieceHashMetalinkParserState.cc: Removed
  1529. * src/PieceHashMetalinkParserState.h: Removed
  1530. * src/PiecesMetalinkParserState.cc: Removed
  1531. * src/PiecesMetalinkParserState.h: Removed
  1532. * src/ResourcesMetalinkParserState.cc: Removed
  1533. * src/ResourcesMetalinkParserState.h: Removed
  1534. * src/SignatureMetalinkParserState.cc: Removed
  1535. * src/SignatureMetalinkParserState.h: Removed
  1536. * src/SizeMetalinkParserState.cc: Removed
  1537. * src/SizeMetalinkParserState.h: Removed
  1538. * src/SkipTagMetalinkParserState.cc: Removed
  1539. * src/SkipTagMetalinkParserState.h: Removed
  1540. * src/URLMetalinkParserState.cc: Removed
  1541. * src/URLMetalinkParserState.h: Removed
  1542. * src/VerificationMetalinkParserState.cc: Removed
  1543. * src/VerificationMetalinkParserState.h: Removed
  1544. * src/VersionMetalinkParserState.cc: Removed
  1545. * src/VersionMetalinkParserState.h: Removed
  1546. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Move all functions in PeerMessageUtil to bittorrent_helper.
  1548. * src/BtBitfieldMessage.cc
  1549. * src/BtBitfieldMessageValidator.h
  1550. * src/BtExtendedMessage.cc
  1551. * src/BtHandshakeMessage.cc
  1552. * src/BtHandshakeMessageValidator.h
  1553. * src/BtPieceMessage.cc
  1554. * src/BtPieceMessageValidator.h
  1555. * src/BtPortMessage.cc
  1556. * src/DHTFindNodeReplyMessage.cc
  1557. * src/DHTGetPeersReplyMessage.cc
  1558. * src/DHTMessageFactoryImpl.cc
  1559. * src/DHTRoutingTableDeserializer.cc
  1560. * src/DHTRoutingTableSerializer.cc
  1561. * src/DHTTokenTracker.cc
  1562. * src/DefaultBtMessageFactory.cc
  1563. * src/IndexBtMessage.cc
  1564. * src/IndexBtMessage.h
  1565. * src/IndexBtMessageValidator.h
  1566. * src/Makefile.am
  1567. * src/PeerMessageUtil.cc: Removed.
  1568. * src/PeerMessageUtil.h: Removed.
  1569. * src/RangeBtMessage.cc
  1570. * src/RangeBtMessage.h
  1571. * src/RangeBtMessageValidator.h
  1572. * src/UTPexExtensionMessage.cc
  1573. * src/ZeroBtMessage.cc
  1574. * src/ZeroBtMessage.h
  1575. * src/bittorrent_helper.cc
  1576. * src/bittorrent_helper.h
  1577. * test/BittorrentHelperTest.cc
  1578. * test/BtAllowedFastMessageTest.cc
  1579. * test/BtBitfieldMessageTest.cc
  1580. * test/BtCancelMessageTest.cc
  1581. * test/BtChokeMessageTest.cc
  1582. * test/BtExtendedMessageTest.cc
  1583. * test/BtHandshakeMessageTest.cc
  1584. * test/BtHaveAllMessageTest.cc
  1585. * test/BtHaveMessageTest.cc
  1586. * test/BtHaveNoneMessageTest.cc
  1587. * test/BtInterestedMessageTest.cc
  1588. * test/BtNotInterestedMessageTest.cc
  1589. * test/BtPieceMessageTest.cc
  1590. * test/BtPortMessageTest.cc
  1591. * test/BtRejectMessageTest.cc
  1592. * test/BtRequestMessageTest.cc
  1593. * test/BtSuggestPieceMessageTest.cc
  1594. * test/BtUnchokeMessageTest.cc
  1595. * test/DHTFindNodeReplyMessageTest.cc
  1596. * test/DHTGetPeersReplyMessageTest.cc
  1597. * test/DHTMessageFactoryImplTest.cc
  1598. * test/DHTRoutingTableDeserializerTest.cc
  1599. * test/DHTRoutingTableSerializerTest.cc
  1600. * test/DefaultBtMessageFactoryTest.cc
  1601. * test/DefaultExtensionMessageFactoryTest.cc
  1602. * test/Makefile.am
  1603. * test/PeerListProcessorTest.cc
  1604. * test/PeerMessageUtilTest.cc: Removed.
  1605. * test/UTPexExtensionMessageTest.cc
  1606. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Limit the size of values list when sending get_peers reply.
  1608. * src/DHTGetPeersReplyMessage.cc
  1609. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Updated banner
  1611. * doc/xmlrpc/aria2rpc
  1612. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Added missing help message for remove command.
  1614. * doc/xmlrpc/aria2rpc
  1615. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Generated configure and config.h.in
  1617. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1618. Add check for fork(), which is missing on MinGW
  1619. * src/daemon.cc
  1620. * configure.ac
  1621. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1623. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1624. Util::httpGMT().
  1625. * src/Util.cc
  1626. * src/Util.h
  1627. * test/UtilTest.cc
  1628. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. * Release 1.6.0
  1630. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Fixed a path to xmlrpc/README.txt
  1632. * doc/Makefile.am
  1633. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added XML-RPC in -v Configuration output.
  1635. * src/FeatureConfig.cc
  1636. * src/FeatureConfig.h
  1637. * test/FeatureConfigTest.cc
  1638. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Updated Bulgarian, Russian, Slovak and Japanese
  1640. translations. Thanks to all translators.
  1641. * po/bg.po
  1642. * po/ja.po
  1643. * po/ru.po
  1644. * po/sk.po
  1645. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Removed --retry-wait option from aria2rpc
  1647. * doc/xmlrpc/aria2rpc
  1648. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Removed --retry-wait option from man page.
  1650. * doc/aria2c.1.txt
  1651. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Removed --retry-wait option since the current architecture doesn't
  1653. allow sleep for particular URI.
  1654. * src/AbstractCommand.cc
  1655. * src/OptionHandlerFactory.cc
  1656. * src/download_helper.cc
  1657. * src/prefs.cc
  1658. * src/prefs.h
  1659. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Removed Retry-After header support. Since the current architecture
  1661. doesn't allow sleep for particular URI.
  1662. * src/HttpSkipResponseCommand.cc
  1663. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Updated the help message for --daemon option.
  1665. * doc/aria2c.1.txt
  1666. * src/usage_text.h
  1667. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Added our own daemon() function for systems which desn't have
  1669. daemon(3).
  1670. * configure.ac
  1671. * src/Makefile.am
  1672. * src/daemon.cc
  1673. * src/daemon.h
  1674. * src/option_processing.cc
  1675. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Simplified File::getCurrentDir()
  1677. * src/File.cc
  1678. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Use exit() instead of _exit
  1680. * src/RequestGroupMan.cc
  1681. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Replaced "CATEGORY" with "TAGS".
  1683. * src/usage_text.h
  1684. * doc/aria2c.1.txt
  1685. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Updated the help message for --help option.
  1687. * src/usage_text.h
  1688. * doc/aria2c.1.txt
  1689. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Updated man page for added help tags.
  1691. * doc/aria2c.1.txt
  1692. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Added help category #file. Added #file tag to the options related
  1694. to downloaded file.
  1695. * src/OptionHandlerFactory.cc
  1696. * src/help_tags.h
  1697. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Added help categories: #cookie and #hook. Added #https tag to
  1699. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1700. * src/OptionHandlerFactory.cc
  1701. * src/help_tags.h
  1702. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Made MSG_NOT_FILE translatable.
  1704. * src/message.h
  1705. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Updated man page for --help option.
  1707. * doc/aria2c.1.txt
  1708. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Updated doc.
  1710. * src/XmlRpcMethod.h
  1711. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Help category now starts with "#" to distinguish a category from
  1713. keyword search. For example, "http" categroy is now "#http". You
  1714. can type "--help=#http" to get explanation of options related to
  1715. http. If '#' is omitted, then the argument is treated as a keyword
  1716. and aria2 searches options whose name includes the keyword and
  1717. print matched ones. For example, "--help=http" will show options
  1718. whose name includes "http".
  1719. * src/OptionHandlerFactory.cc
  1720. * src/help_tags.h
  1721. * src/usage_text.h
  1722. * src/version_usage.cc
  1723. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Documented missing experimental tag and newly added xml-rpc tag in
  1725. man page.
  1726. * doc/aria2c.1.txt
  1727. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Added xml-rpc help tag. Tagged xml-rpc related options with
  1729. xml-rpc tag.
  1730. * src/OptionHandlerFactory.cc
  1731. * src/help_tags.h
  1732. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Updated message when a path is not a file. Updated common message
  1734. for wrong option.
  1735. * src/OptionHandlerException.cc
  1736. * src/message.h
  1737. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Use File::isFile() instead of File::exists(). Updated message when
  1739. a path is not a file.
  1740. * src/OptionHandlerImpl.cc
  1741. * src/message.h
  1742. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Fixed the bug that server performence profile is not updated when
  1744. aria2c was terminated by emergency shutdown.
  1745. * src/TrackerWatcherCommand.cc
  1746. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Use LocalFilePathOptionHandler for -T and -M option.
  1748. Updated message of MSG_FILE_NOT_EXIST.
  1749. * src/OptionHandlerFactory.cc
  1750. * src/message.h
  1751. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Added LocalFilePathOptionHandler which check whether the specified
  1753. file path does exist or not.
  1754. * src/OptionHandlerImpl.cc
  1755. * src/message.h
  1756. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Updated wiki page URI.
  1758. * README
  1759. * doc/aria2c.1.txt
  1760. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added README.txt for xmlrpc directory.
  1762. * doc/Makefile.am
  1763. * doc/xmlrpc/README.txt
  1764. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Bump up version number to 1.6.0.
  1766. * configure.ac
  1767. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Added XML-RPC client scripts written in ruby.
  1769. * doc/Makefile.am
  1770. * doc/xmlrpc/aria2mon
  1771. * doc/xmlrpc/aria2rpc
  1772. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Added support for IPv6 literal address in URI. Now aria2 can
  1774. handle URI such as http://[::1]/
  1775. * src/HttpRequest.cc
  1776. * src/HttpRequest.h
  1777. * src/Request.cc
  1778. * src/Request.h
  1779. * test/HttpRequestTest.cc
  1780. * test/OptionHandlerTest.cc
  1781. * test/RequestTest.cc
  1782. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Fixed the bug that HTTP request header for XML-RPC request is not
  1784. parsed properly.
  1785. * src/HttpHeader.cc
  1786. * src/HttpHeaderProcessor.cc
  1787. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Fixed the bug that XML-RPC authorization might be done before HTTP
  1789. request header is fully received.
  1790. * src/HttpServerCommand.cc
  1791. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Documented --xml-rpc-listen-all option in man page.
  1793. * doc/aria2c.1.txt
  1794. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Added --xml-rpc-listen-all option. If true is given to this
  1796. option, aria2 listens incoming XML-RPC requests on all network
  1797. interfaces. If false is given, listens only on local loopback
  1798. interface. The default value is false.
  1799. * src/HttpListenCommand.cc
  1800. * src/OptionHandlerFactory.cc
  1801. * src/SocketCore.cc
  1802. * src/SocketCore.h
  1803. * src/prefs.cc
  1804. * src/prefs.h
  1805. * src/usage_text.h
  1806. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. * Release 1.5.2
  1808. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Updated Ukrainian and Russian translations. Thanks to all
  1810. translators.
  1811. * po/ru.po
  1812. * po/uk.po
  1813. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Bump up version number to 1.5.2
  1815. * configure.ac
  1816. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Get comment, comment.utf-8, created by and creation date from
  1818. .torrent file and print them in -S output.
  1819. * src/bittorrent_helper.cc
  1820. * src/bittorrent_helper.h
  1821. * test/BittorrentHelperTest.cc
  1822. * test/test.torrent
  1823. * test/utf8.torrent
  1824. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Show exact file size along in -S option output.
  1826. * src/Util.h
  1827. * src/bittorrent_helper.cc
  1828. * test/UtilTest.cc
  1829. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Avoided unnecessary memory allocation in
  1831. BitfieldMan::getCompletedLength().
  1832. * src/BitfieldMan.cc
  1833. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Fixed the bug that download fails if
  1835. SocketCore::establishConnection() throws exception and aria2
  1836. doesn't try another address.
  1837. * src/AbstractCommand.cc
  1838. * src/InitiateConnectionCommand.cc
  1839. * src/message.h
  1840. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1842. detected properly.
  1843. * m4/sqlite3.m4
  1844. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1846. because it causes compile error if PARAMS macro is defined.
  1847. * src/XmlRpcElements.cc
  1848. * src/XmlRpcElements.h
  1849. * src/XmlRpcRequestParserStateImpl.cc
  1850. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. * Release 1.5.1
  1852. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Bump up version number to 1.5.1
  1854. * configure.ac
  1855. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Fixed compile error without BitTorrent support
  1857. * src/DefaultBtProgressInfoFile.cc
  1858. * src/DownloadEngine.cc
  1859. * src/DownloadEngine.h
  1860. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Added missing '=' in Download Results
  1862. * src/RequestGroupMan.cc
  1863. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Fixed compiler warning
  1865. * src/DefaultBtProgressInfoFile.cc
  1866. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Fixed compiler warning on 32bit systems.
  1868. * src/DownloadCommand.cc
  1869. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Call flush from ServerStatMan::save()
  1871. * src/ServerStatMan.cc
  1872. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Check stream status after file is opened.
  1874. * src/CookieStorage.cc
  1875. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Rewritten Signature::save()
  1877. * src/Signature.cc
  1878. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Rewritten RequestGroupMan::saveServerStat()
  1880. * src/RequestGroupMan.cc
  1881. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Rewritten stream error handling
  1883. * src/DHTAutoSaveCommand.cc
  1884. * src/DHTRoutingTableDeserializer.cc
  1885. * src/DHTRoutingTableSerializer.cc
  1886. * src/DHTSetup.cc
  1887. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Check stream status after file is opened.
  1889. * src/DefaultBtProgressInfoFile.cc
  1890. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Rewritten stream error handling
  1892. * src/DefaultBtProgressInfoFile.cc
  1893. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Make sure that stream is closed before renaming file. Unit test
  1895. fails on mingw32 in the previous implementation.
  1896. * src/CookieStorage.cc
  1897. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Fixed the unit test error without sqlite3
  1899. * test/CookieStorageTest.cc
  1900. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Fixed the undefined reference error
  1902. * test/HttpResponseTest.cc
  1903. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. * Release 1.5.0
  1905. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1907. Ukrainian translations. Thanks to all translators.
  1908. * po/ru.po
  1909. * po/it.po
  1910. * po/da.po
  1911. * po/bg.po
  1912. * po/ja.po
  1913. * po/uk.po
  1914. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Added missing src/Logger.cc
  1916. * src/Logger.cc
  1917. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Rewritten Logger to avoiding constly virtual call.
  1919. * src/LogFactory.cc
  1920. * src/LogFactory.h
  1921. * src/Logger.h
  1922. * src/Makefile.am
  1923. * src/Makefile.in
  1924. * src/NullLogger.h: Removed.
  1925. * src/SimpleLogger.cc
  1926. * src/SimpleLogger.h
  1927. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Updated doc
  1929. * src/main.cc
  1930. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Updated debug log message
  1932. * src/AbstractCommand.cc
  1933. * src/message.h
  1934. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Avoid to create zombie process when commands specified in
  1936. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1937. X and NetBSD.
  1938. * src/main.cc
  1939. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Fixed typo
  1941. * src/usage_text.h
  1942. * doc/aria2c.1.txt
  1943. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Documented 'errorCode' of tellStatus in man page.
  1945. * doc/aria2c.1.txt
  1946. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1948. This key is only available for stopped/completed downloads and its
  1949. value is the error code defined in EXIT STATUS in man page.
  1950. * src/XmlRpcMethodImpl.cc
  1951. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Fixed the bug that session download length is not updated when
  1953. PeerStat is not fastest one.
  1954. * src/SegmentMan.cc
  1955. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Updated doc.
  1957. * doc/aria2c.1.txt
  1958. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Updated doc.
  1960. * src/AbstractCommand.cc
  1961. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Handle the case when DownloadContext has no FileEntry.
  1963. * src/XmlRpcMethodImpl.cc
  1964. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Handle the situation where struct option.name is char *.
  1966. * configure.ac
  1967. * src/OptionParser.cc
  1968. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Code cleanup
  1970. * src/AbstractCommand.cc
  1971. * src/DownloadCommand.cc
  1972. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Use option of each download to create AuthConfig instead of global
  1974. option.
  1975. * src/AuthConfigFactory.cc
  1976. * src/AuthConfigFactory.h
  1977. * src/FtpNegotiationCommand.cc
  1978. * src/HttpRequest.cc
  1979. * src/HttpRequest.h
  1980. * src/HttpRequestCommand.cc
  1981. * src/HttpSkipResponseCommand.cc
  1982. * src/MultiUrlRequestInfo.cc
  1983. * test/AuthConfigFactoryTest.cc
  1984. * test/FtpConnectionTest.cc
  1985. * test/HttpRequestTest.cc
  1986. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Don't call prepareForRetry(1) if all segments are ignored in
  1988. SegmentMan.
  1989. * src/AbstractCommand.cc
  1990. * src/BitfieldMan.cc
  1991. * src/BitfieldMan.h
  1992. * src/SegmentMan.cc
  1993. * src/SegmentMan.h
  1994. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Removed FileEntry::getAssociatedUris()
  1996. * src/FileEntry.h
  1997. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Updated doc: TODO1.5 -> TODO
  1999. * src/FileEntry.cc
  2000. * src/HttpResponseCommand.cc
  2001. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2003. involved.
  2004. * src/RequestGroup.cc
  2005. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Eliminated duplicated filterBitfield initialization code.
  2007. * src/BitfieldMan.cc
  2008. * src/BitfieldMan.h
  2009. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2011. relatively naive approach, though). For DownloadFailureException,
  2012. we handle the case when req is null properly.
  2013. * src/AbstractCommand.cc
  2014. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Added function returning suffix of control file to
  2016. DefaultBtProgressInfoFile.
  2017. * src/DefaultBtProgressInfoFile.cc
  2018. * src/DefaultBtProgressInfoFile.h
  2019. * src/RequestGroup.cc
  2020. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Documented getVersion in man page.
  2022. * doc/aria2c.1.txt
  2023. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Documented type of offset and num for tellWaiting xml-rpc method.
  2025. * doc/aria2c.1.txt
  2026. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Implemented getVersion xml-rpc method. This method returns struct
  2028. which has 2 key-value pairs: "version" key is associated to the
  2029. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2030. associated to the list of enabled features, such as "Async DNS",
  2031. "BitTorrent".
  2032. * src/FeatureConfig.h
  2033. * src/XmlRpcMethodFactory.cc
  2034. * src/XmlRpcMethodImpl.cc
  2035. * src/XmlRpcMethodImpl.h
  2036. * test/XmlRpcMethodTest.cc
  2037. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2039. for compatibility issue.
  2040. * src/SocketCore.cc
  2041. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Fixed compile error with openSSL
  2043. * src/bittorrent_helper.cc
  2044. * src/messageDigest.h
  2045. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Removed bad code: setting certificate type priority to key
  2047. exchange priority.
  2048. * src/SocketCore.cc
  2049. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Disconnect seeder if client is also in seed state.
  2051. * src/BtBitfieldMessage.cc
  2052. * src/BtHaveAllMessage.cc
  2053. * src/BtHaveMessage.cc
  2054. * src/message.h
  2055. * test/BtBitfieldMessageTest.cc
  2056. * test/BtHaveAllMessageTest.cc
  2057. * test/BtHaveMessageTest.cc
  2058. * test/MockPieceStorage.h
  2059. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Keep CreateRequestCommand in queue when no segment is available so
  2061. that they can pick up pieces which slow BitTorrent peers are
  2062. downloading.
  2063. * src/AbstractCommand.cc
  2064. * src/CreateRequestCommand.cc
  2065. * src/CreateRequestCommand.h
  2066. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. --bt-stop-timeout now only checks download speed.
  2068. * src/BtStopDownloadCommand.cc
  2069. * src/BtStopDownloadCommand.h
  2070. * src/BtSetup.cc
  2071. * src/usage_text.h
  2072. * doc/aria2c.1.txt
  2073. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Fixed compile error regarding BUFSIZE.
  2075. * src/DownloadCommand.cc
  2076. * src/DownloadCommand.h
  2077. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Documented tellWaiting xml-rpc method in man page.
  2079. * doc/aria2c.1.txt
  2080. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Bump up version number to 1.5.0
  2082. * configure.ac
  2083. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Removed resolved TODO1.5
  2085. * src/AbstractCommand.cc
  2086. * src/DownloadCommand.cc
  2087. * src/RequestGroup.cc
  2088. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Release pooled and in-flight Request objectsand URIResult objects
  2090. in FileEntry after download completed.
  2091. * src/DownloadContext.cc
  2092. * src/DownloadContext.h
  2093. * src/FileEntry.cc
  2094. * src/FileEntry.h
  2095. * src/RequestGroup.cc
  2096. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Set manual and source attribute in aria2c.1.txt
  2098. * doc/aria2c.1.txt
  2099. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Documented that the default value of --use-head is 'false' in man
  2101. page.
  2102. * doc/aria2c.1.txt
  2103. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Added bt-stop-timeout option to -i list.
  2105. * doc/aria2c.1.txt
  2106. * src/download_helper.cc
  2107. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Fixed typo
  2109. * doc/aria2c.1.txt
  2110. * src/usage_text.h
  2111. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Removed peer-id-prefix option from -i list.
  2113. * doc/aria2c.1.txt
  2114. * src/download_helper.cc
  2115. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Fixed typo
  2117. * doc/aria2c.1.txt
  2118. * src/usage_text.h
  2119. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Documented --bt-stop-timeout option in man page.
  2121. * doc/aria2c.1.txt
  2122. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Updated README regarding multi-file torrent web-seeding.
  2124. * doc/README.txt
  2125. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Updated man page regarding multi-file torrent web-seeding.
  2127. * doc/aria2c.1.txt
  2128. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Updated doc
  2130. * src/version_usage.cc
  2131. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Winsock select() doesn't work if no socket is in FD_SET. To
  2133. overcome this problem, a dummy socket is added to FD_SET and it is
  2134. given to select().
  2135. * src/SelectEventPoll.cc
  2136. * src/SelectEventPoll.h
  2137. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Disabled --use-head option by default because --use-head=true
  2139. causes problems on some web sites.
  2140. * src/OptionHandlerFactory.cc
  2141. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Print URL List in -S option for torrent.
  2143. * src/bittorrent_helper.cc
  2144. * src/bittorrent_helper.h
  2145. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Allocate buffer in ctor of DownloadCommand.
  2147. * src/DownloadCommand.cc
  2148. * src/DownloadCommand.h
  2149. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Removed DiskAdaptor::onDownloadComplete()
  2151. * src/DirectDiskAdaptor.cc
  2152. * src/DirectDiskAdaptor.h
  2153. * src/DiskAdaptor.h
  2154. * src/MultiDiskAdaptor.cc
  2155. * src/MultiDiskAdaptor.h
  2156. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Committed missing BtStopDownloadCommand.{cc,h}
  2158. * src/BtStopDownloadCommand.cc
  2159. * src/BtStopDownloadCommand.h
  2160. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2162. download if the download speed is 0 and the number of seeder is 0
  2163. in consecutive SEC seconds. By default, this function is disabled.
  2164. * src/BtSetup.cc
  2165. * src/Makefile.am
  2166. * src/OptionHandlerFactory.cc
  2167. * src/prefs.cc
  2168. * src/prefs.h
  2169. * src/usage_text.h
  2170. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Removed the call to DiskAdaptor::onDownloadComplete() from
  2172. BtCheckIntegrityEntry and DefaultPieceStorage.
  2173. * src/BtCheckIntegrityEntry.cc
  2174. * src/DefaultPieceStorage.cc
  2175. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Commented out throw statements when number of piece is 0 to
  2177. download 0 length torrent.
  2178. * src/bittorrent_helper.cc
  2179. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Call RequestGroup::createNextCommandWithAdj() from
  2181. BtFileAllocationEntry if at least one FileEntry has URI. The
  2182. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2183. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2184. * src/BtFileAllocationEntry.cc
  2185. * src/FileEntry.h
  2186. * src/RequestGroup.cc
  2187. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Generate peer ID after SimpleRandomizer is initialized.
  2189. * src/main.cc
  2190. * src/option_processing.cc
  2191. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Removed unused method argument.
  2193. * src/CreateRequestCommand.cc
  2194. * src/RequestGroup.cc
  2195. * src/RequestGroup.h
  2196. * src/RequestGroupMan.cc
  2197. * src/TrackerWatcherCommand.cc
  2198. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Made URI reusing function work.
  2200. * src/CreateRequestCommand.cc
  2201. * src/FileEntry.cc
  2202. * src/FileEntry.h
  2203. * test/FileEntryTest.cc
  2204. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Add formerly fastest PeerStat's sessionDownloadLength to new
  2206. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2207. bytes in a session.
  2208. * src/PeerStat.cc
  2209. * src/SegmentMan.cc
  2210. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. If pipelining is enabled, we can always pool socket.
  2212. * src/HttpDownloadCommand.cc
  2213. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. In a single file download, file size becomes known just after
  2215. downloading, set total length to FileEntry object when download
  2216. completed.
  2217. * src/DownloadCommand.cc
  2218. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Use std::vector::reserve() for fileEntries and pieceHashes in
  2220. bittorrent_helper
  2221. * src/bittorrent_helper.cc
  2222. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2224. Removed hidden option PREF_RESET_URI.
  2225. * src/AbstractCommand.cc
  2226. * src/OptionHandlerFactory.cc
  2227. * src/prefs.cc
  2228. * src/prefs.h
  2229. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Removed unused variable/function.
  2231. * src/PeerStat.h
  2232. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Show first URL in Download Results if file path is not available.
  2234. * src/FileEntry.h
  2235. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Throw exception if file path doesn't exist in FTP URL.
  2237. * src/InitiateConnectionCommandFactory.cc
  2238. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2240. * src/BitfieldMan.cc
  2241. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2243. of PeerStat in SegmentMan. peerStats is used for calculating
  2244. download speed. Therefore all active PeerStats should be in
  2245. there. Another one is _fastestPeerStats and it only contains
  2246. fastest PeerStat for each hostname/protocol pair. They are used
  2247. for updating ServerStat.
  2248. * src/DownloadCommand.cc
  2249. * src/Request.h
  2250. * src/RequestGroupMan.cc
  2251. * src/SegmentMan.cc
  2252. * src/SegmentMan.h
  2253. * test/SegmentManTest.cc
  2254. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Try all available addresses returned by DNS until it gets
  2256. connected in HTTP(S)/FTP download
  2257. * src/AbstractCommand.cc
  2258. * src/AbstractCommand.h
  2259. * src/AbstractProxyRequestCommand.cc
  2260. * src/AbstractProxyRequestCommand.h
  2261. * src/DNSCache.h
  2262. * src/DownloadEngine.cc
  2263. * src/DownloadEngine.h
  2264. * src/FtpInitiateConnectionCommand.cc
  2265. * src/FtpInitiateConnectionCommand.h
  2266. * src/FtpNegotiationCommand.cc
  2267. * src/FtpNegotiationCommand.h
  2268. * src/HttpInitiateConnectionCommand.cc
  2269. * src/HttpInitiateConnectionCommand.h
  2270. * src/HttpRequestCommand.cc
  2271. * src/HttpRequestCommand.h
  2272. * src/InitiateConnectionCommand.cc
  2273. * src/InitiateConnectionCommand.h
  2274. * test/DNSCacheTest.cc
  2275. * test/Makefile.am
  2276. * test/SimpleDNSCacheTest.cc
  2277. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Updated doc
  2279. * src/download_helper.cc
  2280. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Refactored fieldMan ctor.
  2282. * src/BitfieldMan.cc
  2283. * src/BitfieldMan.h
  2284. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Don't print "No files to download." message if -S is given.
  2286. * src/main.cc
  2287. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Set referer and method to newly created Request object.
  2289. * src/CreateRequestCommand.cc
  2290. * src/FileEntry.cc
  2291. * src/FileEntry.h
  2292. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2294. * src/AbstractCommand.cc
  2295. * src/AbstractCommand.h
  2296. * src/CreateRequestCommand.cc
  2297. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Get proxy download working
  2299. * src/AbstractProxyRequestCommand.cc
  2300. * src/AbstractProxyRequestCommand.h
  2301. * src/AbstractProxyResponseCommand.cc
  2302. * src/AbstractProxyResponseCommand.h
  2303. * src/FtpInitiateConnectionCommand.cc
  2304. * src/FtpTunnelRequestCommand.cc
  2305. * src/FtpTunnelRequestCommand.h
  2306. * src/FtpTunnelResponseCommand.cc
  2307. * src/FtpTunnelResponseCommand.h
  2308. * src/HttpInitiateConnectionCommand.cc
  2309. * src/HttpProxyRequestCommand.cc
  2310. * src/HttpProxyRequestCommand.h
  2311. * src/HttpProxyResponseCommand.cc
  2312. * src/HttpProxyResponseCommand.h
  2313. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Use SegmentMan::getSegment(cuid) for single file download.
  2315. * src/AbstractCommand.cc
  2316. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Fixed bufSize calculation
  2318. * src/DownloadCommand.cc
  2319. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Don't append "/" if base URI ends with "/".
  2321. * src/bittorrent_helper.cc
  2322. * test/url-list-multiFile.torrent
  2323. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. HTTP pipelining is now working. Fixed Segmention fault in
  2325. BitfieldMan's copy ctor.
  2326. * src/AbstractCommand.cc
  2327. * src/BitfieldMan.cc
  2328. * src/BitfieldMan.h
  2329. * src/DownloadCommand.cc
  2330. * src/HttpDownloadCommand.cc
  2331. * src/HttpRequest.cc
  2332. * src/SegmentMan.cc
  2333. * src/SegmentMan.h
  2334. * test/BitfieldManTest.cc
  2335. * test/SegmentManTest.cc
  2336. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Removed ServerHost. Same functionality is implemented using
  2338. FileEntry's in-flight Request objects.
  2339. * src/AbstractCommand.cc
  2340. * src/BtDependency.cc
  2341. * src/CreateRequestCommand.cc
  2342. * src/FileEntry.cc
  2343. * src/FileEntry.h
  2344. * src/FtpNegotiationCommand.cc
  2345. * src/HttpResponseCommand.cc
  2346. * src/Makefile.am
  2347. * src/Metalink2RequestGroup.cc
  2348. * src/RequestGroup.cc
  2349. * src/RequestGroup.h
  2350. * src/ServerHost.cc: Removed
  2351. * src/ServerHost.h: Removed
  2352. * test/BtDependencyTest.cc
  2353. * test/FileEntryTest.cc
  2354. * test/RequestGroupTest.cc
  2355. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Rewritten PeerStat handling. In the previous implementation,
  2357. faster command tries to find slower command. In this new
  2358. implementation, slower command tries to find faster command.
  2359. PeerStat is now created in each HTTP/FTP request to get download
  2360. rate correctly. If the download range is small, the download rate
  2361. tends to small and this will occur at the later stage of download.
  2362. * src/AbstractCommand.cc
  2363. * src/DownloadCommand.cc
  2364. * src/FileEntry.cc
  2365. * src/FileEntry.h
  2366. * src/Request.cc
  2367. * src/Request.h
  2368. * src/RequestGroup.h
  2369. * src/RequestGroupMan.cc
  2370. * src/SegmentMan.cc
  2371. * src/SegmentMan.h
  2372. * test/SegmentManTest.cc
  2373. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Removed _uris from RequestGroup. All functions that refer to _uris
  2375. were moved to FileEntry. Exit status code are now defined in
  2376. DownloadResultCode.h.
  2377. * src/AbstractCommand.cc
  2378. * src/AdaptiveURISelector.cc
  2379. * src/AdaptiveURISelector.h
  2380. * src/AutoSaveCommand.cc
  2381. * src/BtPostDownloadHandler.cc
  2382. * src/CheckIntegrityDispatcherCommand.cc
  2383. * src/CookieStorage.cc
  2384. * src/DHTAutoSaveCommand.cc
  2385. * src/DHTBucketRefreshCommand.cc
  2386. * src/DHTEntryPointNameResolveCommand.cc
  2387. * src/DHTInteractionCommand.cc
  2388. * src/DHTPeerAnnounceCommand.cc
  2389. * src/DHTTokenUpdateCommand.cc
  2390. * src/DlAbortEx.h
  2391. * src/DlRetryEx.h
  2392. * src/DownloadCommand.cc
  2393. * src/DownloadContext.h
  2394. * src/DownloadFailureException.h
  2395. * src/DownloadResult.h
  2396. * src/DownloadResultCode.h
  2397. * src/FeedbackURISelector.cc
  2398. * src/FeedbackURISelector.h
  2399. * src/FileEntry.cc
  2400. * src/FileEntry.h
  2401. * src/FtpNegotiationCommand.cc
  2402. * src/HttpListenCommand.cc
  2403. * src/HttpResponseCommand.cc
  2404. * src/HttpServerResponseCommand.cc
  2405. * src/HttpSkipResponseCommand.cc
  2406. * src/InOrderURISelector.cc
  2407. * src/InOrderURISelector.h
  2408. * src/Makefile.am
  2409. * src/Makefile.in
  2410. * src/Metalink2RequestGroup.cc
  2411. * src/MultiUrlRequestInfo.cc
  2412. * src/MultiUrlRequestInfo.h
  2413. * src/OptionHandlerFactory.cc
  2414. * src/PeerListenCommand.cc
  2415. * src/RecoverableException.h
  2416. * src/RequestGroup.cc
  2417. * src/RequestGroup.h
  2418. * src/RequestGroupMan.cc
  2419. * src/RequestGroupMan.h
  2420. * src/TimedHaltCommand.cc
  2421. * src/TrackerWatcherCommand.cc
  2422. * src/URIResult.cc
  2423. * src/URIResult.h
  2424. * src/URISelector.h
  2425. * src/XmlRpcMethodImpl.cc
  2426. * src/bittorrent_helper.cc
  2427. * src/bittorrent_helper.h
  2428. * src/download_helper.cc
  2429. * src/main.cc
  2430. * src/option_processing.cc
  2431. * test/BtDependencyTest.cc
  2432. * test/BtPostDownloadHandlerTest.cc
  2433. * test/CookieStorageTest.cc
  2434. * test/DefaultBtMessageDispatcherTest.cc
  2435. * test/DownloadHandlerFactoryTest.cc
  2436. * test/DownloadHelperTest.cc
  2437. * test/FeedbackURISelectorTest.cc
  2438. * test/FileEntryTest.cc
  2439. * test/InOrderURISelectorTest.cc
  2440. * test/Metalink2RequestGroupTest.cc
  2441. * test/MetalinkPostDownloadHandlerTest.cc
  2442. * test/RequestGroupManTest.cc
  2443. * test/RequestGroupTest.cc
  2444. * test/XmlRpcMethodTest.cc
  2445. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Removed MockBtContext.h
  2447. * test/Makefile.am
  2448. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Removed _currentRequest from StreamCheckIntegrityEntry and
  2450. StreamFileAllocationEntry.
  2451. * src/AbstractCommand.cc
  2452. * src/HttpResponseCommand.cc
  2453. * src/RequestGroup.cc
  2454. * src/StreamCheckIntegrityEntry.cc
  2455. * src/StreamCheckIntegrityEntry.h
  2456. * src/StreamFileAllocationEntry.cc
  2457. * src/StreamFileAllocationEntry.h
  2458. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Rewritten DownloadContext and removed SingleFileDownloadContext
  2460. and BtContext and its derived classes. BitTorrent specific
  2461. attributes are now set by DownloadContext::setAttribute() with key
  2462. bittorrent::BITTORRENT.
  2463. * src/AbstractBtMessage.cc
  2464. * src/AbstractBtMessage.h
  2465. * src/AbstractCommand.cc
  2466. * src/AbstractCommand.h
  2467. * src/AbstractProxyRequestCommand.cc
  2468. * src/AbstractProxyResponseCommand.cc
  2469. * src/ActivePeerConnectionCommand.cc
  2470. * src/ActivePeerConnectionCommand.h
  2471. * src/AnnounceList.cc
  2472. * src/BtCheckIntegrityEntry.cc
  2473. * src/BtConstants.h
  2474. * src/BtContext.h: Removed
  2475. * src/BtDependency.cc
  2476. * src/BtExtendedMessage.cc
  2477. * src/BtPieceMessage.cc
  2478. * src/BtPieceMessage.h
  2479. * src/BtPostDownloadHandler.cc
  2480. * src/BtRegistry.cc
  2481. * src/BtRegistry.h
  2482. * src/BtSetup.cc
  2483. * src/CheckIntegrityCommand.cc
  2484. * src/CheckIntegrityEntry.cc
  2485. * src/ChecksumCheckIntegrityEntry.cc
  2486. * src/ConsoleStatCalc.cc
  2487. * src/ContentTypeRequestGroupCriteria.cc
  2488. * src/DHTGetPeersCommand.cc
  2489. * src/DHTGetPeersCommand.h
  2490. * src/DHTPeerLookupTask.cc
  2491. * src/DHTPeerLookupTask.h
  2492. * src/DHTTaskFactory.h
  2493. * src/DHTTaskFactoryImpl.cc
  2494. * src/DHTTaskFactoryImpl.h
  2495. * src/DefaultBtAnnounce.cc
  2496. * src/DefaultBtAnnounce.h
  2497. * src/DefaultBtContext.cc: Removed
  2498. * src/DefaultBtContext.h: Removed
  2499. * src/DefaultBtInteractive.cc
  2500. * src/DefaultBtInteractive.h
  2501. * src/DefaultBtMessageDispatcher.cc
  2502. * src/DefaultBtMessageDispatcher.h
  2503. * src/DefaultBtMessageFactory.cc
  2504. * src/DefaultBtMessageFactory.h
  2505. * src/DefaultBtMessageReceiver.cc
  2506. * src/DefaultBtMessageReceiver.h
  2507. * src/DefaultBtProgressInfoFile.cc
  2508. * src/DefaultBtRequestFactory.cc
  2509. * src/DefaultBtRequestFactory.h
  2510. * src/DefaultExtensionMessageFactory.cc
  2511. * src/DefaultExtensionMessageFactory.h
  2512. * src/DefaultPeerStorage.cc
  2513. * src/DefaultPeerStorage.h
  2514. * src/DefaultPieceStorage.cc
  2515. * src/DefaultSegmentManFactory.cc
  2516. * src/DiskAdaptor.cc
  2517. * src/DiskAdaptor.h
  2518. * src/DownloadContext.cc
  2519. * src/DownloadContext.h
  2520. * src/DownloadEngine.cc
  2521. * src/DownloadEngineFactory.cc
  2522. * src/DownloadHandler.cc
  2523. * src/DownloadResult.h
  2524. * src/FileAllocationCommand.cc
  2525. * src/FileAllocationDispatcherCommand.cc
  2526. * src/FileAllocationEntry.cc
  2527. * src/FileEntry.h
  2528. * src/FillRequestGroupCommand.cc
  2529. * src/FtpDownloadCommand.cc
  2530. * src/FtpFinishDownloadCommand.cc
  2531. * src/FtpInitiateConnectionCommand.cc
  2532. * src/FtpNegotiationCommand.cc
  2533. * src/FtpTunnelRequestCommand.cc
  2534. * src/FtpTunnelResponseCommand.cc
  2535. * src/HandshakeExtensionMessage.cc
  2536. * src/HandshakeExtensionMessage.h
  2537. * src/HaveEraseCommand.cc
  2538. * src/HttpDownloadCommand.cc
  2539. * src/HttpInitiateConnectionCommand.cc
  2540. * src/HttpProxyRequestCommand.cc
  2541. * src/HttpProxyResponseCommand.cc
  2542. * src/HttpRequest.cc
  2543. * src/HttpRequest.h
  2544. * src/HttpRequestCommand.cc
  2545. * src/HttpResponseCommand.cc
  2546. * src/HttpServerBodyCommand.cc
  2547. * src/HttpServerCommand.cc
  2548. * src/HttpSkipResponseCommand.cc
  2549. * src/InitiateConnectionCommandFactory.cc
  2550. * src/InitiatorMSEHandshakeCommand.cc
  2551. * src/InitiatorMSEHandshakeCommand.h
  2552. * src/IteratableChecksumValidator.cc
  2553. * src/IteratableChecksumValidator.h
  2554. * src/IteratableChunkChecksumValidator.cc
  2555. * src/MSEHandshake.cc
  2556. * src/MSEHandshake.h
  2557. * src/Makefile.am
  2558. * src/Makefile.in
  2559. * src/Metalink2RequestGroup.cc
  2560. * src/MetalinkPostDownloadHandler.cc
  2561. * src/MultiDiskAdaptor.cc
  2562. * src/MultiDiskAdaptor.h
  2563. * src/MultiFileAllocationIterator.cc
  2564. * src/MultiUrlRequestInfo.cc
  2565. * src/PeerChokeCommand.cc
  2566. * src/PeerChokeCommand.h
  2567. * src/PeerInitiateConnectionCommand.cc
  2568. * src/PeerInitiateConnectionCommand.h
  2569. * src/PeerInteractionCommand.cc
  2570. * src/PeerInteractionCommand.h
  2571. * src/PeerReceiveHandshakeCommand.cc
  2572. * src/PieceHashCheckIntegrityEntry.cc
  2573. * src/RealtimeCommand.cc
  2574. * src/ReceiverMSEHandshakeCommand.cc
  2575. * src/RequestGroup.cc
  2576. * src/RequestGroup.h
  2577. * src/RequestGroupEntry.cc
  2578. * src/RequestGroupMan.cc
  2579. * src/SeedCheckCommand.cc
  2580. * src/SeedCheckCommand.h
  2581. * src/SegmentMan.cc
  2582. * src/ShareRatioSeedCriteria.h
  2583. * src/SingleFileDownloadContext.cc: Removed
  2584. * src/SingleFileDownloadContext.h: Removed
  2585. * src/SleepCommand.cc
  2586. * src/StreamCheckIntegrityEntry.cc
  2587. * src/TrackerWatcherCommand.cc
  2588. * src/TrackerWatcherCommand.h
  2589. * src/UnknownLengthPieceStorage.cc
  2590. * src/Util.cc
  2591. * src/Util.h
  2592. * src/XmlRpcMethodImpl.cc
  2593. * src/bittorrent_helper.cc
  2594. * src/bittorrent_helper.h
  2595. * src/download_helper.cc
  2596. * src/main.cc
  2597. * src/option_processing.cc
  2598. * test/BitfieldManTest.cc
  2599. * test/BittorrentHelperTest.cc
  2600. * test/BtCancelMessageTest.cc
  2601. * test/BtChokeMessageTest.cc
  2602. * test/BtDependencyTest.cc
  2603. * test/BtPieceMessageTest.cc
  2604. * test/BtPostDownloadHandlerTest.cc
  2605. * test/BtRegistryTest.cc
  2606. * test/BtRejectMessageTest.cc
  2607. * test/BtRequestMessageTest.cc
  2608. * test/DHTPeerAnnounceStorageTest.cc
  2609. * test/DefaultBtAnnounceTest.cc
  2610. * test/DefaultBtContextTest.cc: Removed
  2611. * test/DefaultBtMessageDispatcherTest.cc
  2612. * test/DefaultBtMessageFactoryTest.cc
  2613. * test/DefaultBtProgressInfoFileTest.cc
  2614. * test/DefaultBtRequestFactoryTest.cc
  2615. * test/DefaultExtensionMessageFactoryTest.cc
  2616. * test/DefaultPeerStorageTest.cc
  2617. * test/DefaultPieceStorageTest.cc
  2618. * test/DirectDiskAdaptorTest.cc
  2619. * test/DownloadContextTest.cc
  2620. * test/DownloadHandlerFactoryTest.cc
  2621. * test/DownloadHelperTest.cc
  2622. * test/HandshakeExtensionMessageTest.cc
  2623. * test/HttpRequestTest.cc
  2624. * test/HttpResponseTest.cc
  2625. * test/IteratableChecksumValidatorTest.cc
  2626. * test/IteratableChunkChecksumValidatorTest.cc
  2627. * test/MSEHandshakeTest.cc
  2628. * test/Makefile.am
  2629. * test/Makefile.in
  2630. * test/Metalink2RequestGroupTest.cc
  2631. * test/MetalinkPostDownloadHandlerTest.cc
  2632. * test/MockBtContext.h: Removed
  2633. * test/MockDHTTaskFactory.h
  2634. * test/MockDownloadContext.h: Removed
  2635. * test/MockPieceStorage.h
  2636. * test/MultiDiskAdaptorTest.cc
  2637. * test/MultiFileAllocationIteratorTest.cc
  2638. * test/RequestGroupManTest.cc
  2639. * test/RequestGroupTest.cc
  2640. * test/SegmentManTest.cc
  2641. * test/ShareRatioSeedCriteriaTest.cc
  2642. * test/SingleFileDownloadContextTest.cc: Removed
  2643. * test/UtilTest.cc
  2644. * test/XmlRpcMethodTest.cc
  2645. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added experimental support of WEB-Seeding for multi-file torrent.
  2647. Due to fundamental changes in file handling in HTTP/FTP code, many
  2648. functions are not working: PeerStat, ServerHost, proxy..etc
  2649. * src/AbstractCommand.cc
  2650. * src/AbstractCommand.h
  2651. * src/BitfieldMan.cc
  2652. * src/BitfieldMan.h
  2653. * src/CreateRequestCommand.cc
  2654. * src/CreateRequestCommand.h
  2655. * src/DefaultPieceStorage.cc
  2656. * src/DefaultPieceStorage.h
  2657. * src/DownloadCommand.cc
  2658. * src/DownloadCommand.h
  2659. * src/DownloadContext.cc
  2660. * src/DownloadContext.h
  2661. * src/FileEntry.cc
  2662. * src/FileEntry.h
  2663. * src/FtpDownloadCommand.cc
  2664. * src/FtpDownloadCommand.h
  2665. * src/FtpFinishDownloadCommand.cc
  2666. * src/FtpFinishDownloadCommand.h
  2667. * src/FtpInitiateConnectionCommand.cc
  2668. * src/FtpInitiateConnectionCommand.h
  2669. * src/FtpNegotiationCommand.cc
  2670. * src/FtpNegotiationCommand.h
  2671. * src/FtpTunnelResponseCommand.cc
  2672. * src/HttpDownloadCommand.cc
  2673. * src/HttpDownloadCommand.h
  2674. * src/HttpInitiateConnectionCommand.cc
  2675. * src/HttpInitiateConnectionCommand.h
  2676. * src/HttpProxyResponseCommand.cc
  2677. * src/HttpRequest.cc
  2678. * src/HttpRequest.h
  2679. * src/HttpRequestCommand.cc
  2680. * src/HttpRequestCommand.h
  2681. * src/HttpResponseCommand.cc
  2682. * src/HttpResponseCommand.h
  2683. * src/HttpSkipResponseCommand.cc
  2684. * src/HttpSkipResponseCommand.h
  2685. * src/InitiateConnectionCommand.cc
  2686. * src/InitiateConnectionCommand.h
  2687. * src/InitiateConnectionCommandFactory.cc
  2688. * src/InitiateConnectionCommandFactory.h
  2689. * src/Makefile.am
  2690. * src/PieceStorage.h
  2691. * src/RequestGroup.cc
  2692. * src/RequestGroup.h
  2693. * src/RequestGroupMan.cc
  2694. * src/SegmentMan.cc
  2695. * src/SegmentMan.h
  2696. * src/SingleFileDownloadContext.h
  2697. * src/StreamFileAllocationEntry.cc
  2698. * src/TrackerWatcherCommand.cc
  2699. * src/UnknownLengthPieceStorage.cc
  2700. * src/UnknownLengthPieceStorage.h
  2701. * src/array_fun.h
  2702. * src/bitfield.h
  2703. * src/download_helper.cc
  2704. * test/DownloadContextTest.cc
  2705. * test/Makefile.am
  2706. * test/MockDownloadContext.h
  2707. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Added tellWaiting XML-RPC method.
  2709. * src/SingleFileDownloadContext.cc
  2710. * src/XmlRpcMethodFactory.cc
  2711. * src/XmlRpcMethodImpl.cc
  2712. * src/XmlRpcMethodImpl.h
  2713. * test/XmlRpcMethodTest.cc
  2714. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2715. Updated CookieStorageTest
  2716. * test/CookieStorageTest.cc
  2717. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2719. handle excepion inside these functions.
  2720. * src/LibgnutlsTLSContext.cc
  2721. * src/LibgnutlsTLSContext.h
  2722. * src/LibsslTLSContext.cc
  2723. * src/LibsslTLSContext.h
  2724. * src/MultiUrlRequestInfo.cc
  2725. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Added comment
  2727. * src/RequestGroup.cc
  2728. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. In CookieStorage::load() and saveNsFormat(), handle exception
  2730. inside the functions. When saving Cookies, first write temporary
  2731. file and after successful writes, then renames it to final
  2732. destination.
  2733. * src/CookieStorage.cc
  2734. * src/CookieStorage.h
  2735. * src/MultiUrlRequestInfo.cc
  2736. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. The default value of --dir option is the absolute path to the
  2738. current directory. If getcwd() is failed, then it is ".", which is
  2739. the same value with old implementation. This change is necessary
  2740. because after daemon() call, the current working directory is
  2741. changed to /.
  2742. * src/File.cc
  2743. * src/File.h
  2744. * src/OptionHandlerFactory.cc
  2745. * src/option_processing.cc
  2746. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Call daemon() with arguments(0,0), which means daemon() changes
  2748. current working directory to / and redirects stdin, stdout and
  2749. stderr to /dev/null.
  2750. * src/option_processing.cc
  2751. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Small performance optimizations.
  2753. * src/RequestGroupMan.cc
  2754. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2756. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2757. * src/RequestGroupMan.cc
  2758. * src/RequestGroupMan.h
  2759. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2761. setNoWiat(true) if newly created command calls
  2762. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2763. * src/HttpListenCommand.cc
  2764. * src/HttpServerBodyCommand.cc
  2765. * src/HttpServerCommand.cc
  2766. * src/HttpServerResponseCommand.cc
  2767. * src/InitiateConnectionCommand.cc
  2768. * src/RequestGroup.cc
  2769. * src/StreamFileAllocationEntry.cc
  2770. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Removed include vector
  2772. * src/BtRegistry.h
  2773. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Rewritten BtRegistry
  2775. * src/BtRegistry.cc
  2776. * src/BtRegistry.h
  2777. * src/BtSetup.cc
  2778. * src/ConsoleStatCalc.cc
  2779. * src/PeerInteractionCommand.cc
  2780. * src/PeerReceiveHandshakeCommand.cc
  2781. * src/ReceiverMSEHandshakeCommand.cc
  2782. * src/RequestGroup.cc
  2783. * src/XmlRpcMethodImpl.cc
  2784. * test/BtRegistryTest.cc
  2785. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2787. * src/DefaultBtProgressInfoFile.cc
  2788. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Throw an exception if position is less than 0.
  2790. * src/XmlRpcMethodImpl.cc
  2791. * test/XmlRpcMethodTest.cc
  2792. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Use writeFilePath() in ConsoleStatCalc.cc
  2794. * src/ConsoleStatCalc.cc
  2795. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Receive the return value as const reference from
  2797. DownloadContext::getFileEntries().
  2798. * src/DefaultPieceStorage.cc
  2799. * src/RequestGroupMan.cc
  2800. * src/XmlRpcMethodImpl.cc
  2801. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. DownloadContext now has _fileEntries so that
  2803. DownloadContext::getFileEntries() can returns its const reference.
  2804. * src/DefaultBtContext.cc
  2805. * src/DefaultBtContext.h
  2806. * src/DownloadContext.cc
  2807. * src/DownloadContext.h
  2808. * src/SingleFileDownloadContext.cc
  2809. * src/SingleFileDownloadContext.h
  2810. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2812. writeFilePath() function template from RequestGroupMan.cc to
  2813. FileEntry.h
  2814. * src/FileEntry.h
  2815. * src/RequestGroupMan.cc
  2816. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Documented 'position' parameter is starting from 0 in man page.
  2818. * doc/aria2c.1.txt
  2819. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Updated doc.
  2821. * src/MSEHandshake.cc
  2822. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Removed _acceptFeatures and its accessor functions from
  2824. RequestGroup since they are not used practically.
  2825. * src/HttpRequestCommand.cc
  2826. * src/RequestGroup.cc
  2827. * src/RequestGroup.h
  2828. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Removed member _maxTries from RequestGroup class to avoid
  2830. duplicate option value. Those classes who refer this variable
  2831. should use option value of PREF_MAX_TRIES directly.
  2832. * src/AbstractCommand.cc
  2833. * src/RequestGroup.cc
  2834. * src/RequestGroup.h
  2835. * src/TrackerWatcherCommand.cc
  2836. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. * Release 1.4.1
  2838. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Fixed compiler warnings on netbsd
  2840. * src/DHTConnectionImpl.cc
  2841. * src/PeerListenCommand.cc
  2842. * src/PeerSessionResource.cc
  2843. * src/SegmentMan.cc
  2844. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Updated Ukrainian translation. Thanks to all translators.
  2846. * po/uk.po
  2847. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Bump up version number to 1.4.1.
  2849. * configure.ac
  2850. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Added unit tests for strjoin, strconcat and strappend.
  2852. * test/a2functionalTest.cc
  2853. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Rewritten strconcat and strappend using operator+ instead of
  2855. append().
  2856. * src/a2functional.h
  2857. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2859. is enabled.
  2860. * src/Makefile.am
  2861. * test/Makefile.am
  2862. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Added countSeeder() function which counts seeder in the given
  2864. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2865. * src/ConsoleStatCalc.cc
  2866. * src/Peer.h
  2867. * src/XmlRpcMethodImpl.cc
  2868. * test/PeerTest.cc
  2869. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Documented missing seeder in getPeers xml-rpc method.
  2871. Documented uploadLength and numSeeders.
  2872. * doc/aria2c.1.txt
  2873. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Added uploadLength and numSeeders to the response of tellStatus
  2875. xml-rpc method. Assert that PeerStorage instance is not null
  2876. instead of checking if statement. It should be non-null in this
  2877. context.
  2878. * src/XmlRpcMethodImpl.cc
  2879. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2881. * src/XmlRpcResponse.cc
  2882. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Avoid intermediate object during string concatenation.
  2884. * src/HttpRequest.cc
  2885. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Added strjoin function template. Use it in pathJoin()
  2887. * src/Util.h
  2888. * src/a2functional.h
  2889. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Avoid intermediate object during string concatenation. Replaced
  2891. post-increment unary operator with pre-increment one in for loop.
  2892. * src/AdaptiveURISelector.cc
  2893. * src/AnnounceList.cc
  2894. * src/AuthConfig.h
  2895. * src/BtBitfieldMessage.cc
  2896. * src/BtExtendedMessage.cc
  2897. * src/BtHandshakeMessage.cc
  2898. * src/BtPieceMessage.cc
  2899. * src/BtPortMessage.cc
  2900. * src/Cookie.cc
  2901. * src/DHTAnnouncePeerMessage.cc
  2902. * src/DHTAutoSaveCommand.cc
  2903. * src/DHTGetPeersReplyMessage.cc
  2904. * src/DHTNode.cc
  2905. * src/DHTQueryMessage.cc
  2906. * src/DHTResponseMessage.cc
  2907. * src/DHTUnknownMessage.cc
  2908. * src/DefaultBtAnnounce.cc
  2909. * src/DefaultBtContext.cc
  2910. * src/DefaultBtInteractive.cc
  2911. * src/DefaultBtProgressInfoFile.cc
  2912. * src/DefaultPeerStorage.cc
  2913. * src/DownloadEngine.cc
  2914. * src/FeatureConfig.cc
  2915. * src/File.cc
  2916. * src/FtpConnection.cc
  2917. * src/FtpNegotiationCommand.cc
  2918. * src/HandshakeExtensionMessage.cc
  2919. * src/HttpConnection.cc
  2920. * src/HttpRequest.cc
  2921. * src/HttpResponseCommand.cc
  2922. * src/HttpServer.cc
  2923. * src/IndexBtMessage.cc
  2924. * src/Metalink2RequestGroup.cc
  2925. * src/OptionHandlerImpl.h
  2926. * src/PStringBuildVisitor.cc
  2927. * src/Peer.cc
  2928. * src/PeerListenCommand.cc
  2929. * src/Piece.cc
  2930. * src/RangeBtMessage.cc
  2931. * src/Request.cc
  2932. * src/Request.h
  2933. * src/RequestGroup.cc
  2934. * src/RequestGroupMan.cc
  2935. * src/ServerStat.cc
  2936. * src/ServerStatMan.cc
  2937. * src/UTPexExtensionMessage.cc
  2938. * src/Util.cc
  2939. * src/a2functional.h
  2940. * src/download_helper.cc
  2941. * src/messageDigest.cc
  2942. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Unchoke a peer randomly at first and second choke round in seed
  2944. state.
  2945. * src/BtSeederStateChoke.cc
  2946. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2947. Added (sock_t) to quiet compiler warnings in MinGW
  2948. * src/SocketCore.cc
  2949. * src/SocketCore.h
  2950. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2952. * src/EpollEventPoll.h
  2953. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2954. Added fork() emulation using CreateProcess() in MinGW
  2955. * src/RequestGroupMan.cc
  2956. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. * Release 1.4.0
  2958. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Added utf8.torrent to EXTRA_DIST
  2960. * test/Makefile.am
  2961. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Fixed docs of aria2.addMetalink xml-rpc method.
  2963. * doc/aria2c.1.txt
  2964. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Added Slovak translation. Updated Ukrainian and Brazilian
  2966. Portuguese translation. Thanks to all translators.
  2967. * po/sk.po
  2968. * po/uk.po
  2969. * po/pt_BR.po
  2970. * po/LINGUAS
  2971. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Added test case for XmlRpcProcessor to fail to parse malformed
  2973. document.
  2974. * test/XmlRpcRequestProcessorTest.cc
  2975. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Removed *.gmo files in po because they are generated on 'make
  2977. dist'
  2978. * po/*.gmo
  2979. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2980. Documented max-concurrent-downloads of changeGlobalOption method
  2981. in man page.
  2982. * doc/aria2c.1.txt
  2983. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Added max-concurrent-downloads option to changeGlobalOption
  2985. xml-rpc method. Rewritten loop conditional in
  2986. RequestGroupMan::fillRequestGroupFromReserver().
  2987. * src/RequestGroupMan.cc
  2988. * src/RequestGroupMan.h
  2989. * src/XmlRpcMethod.cc
  2990. * src/XmlRpcMethodImpl.cc
  2991. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Documented position parameter in man page.
  2993. * doc/aria2c.1.txt
  2994. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Added 'position' parameter to addUri, addTorrent and addMetalink
  2996. xml-rpc method.
  2997. * src/RequestGroupMan.cc
  2998. * src/RequestGroupMan.h
  2999. * src/XmlRpcMethodImpl.cc
  3000. * test/XmlRpcMethodTest.cc
  3001. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Removed Peer.cc from compile source list when --disable-bittorrent
  3003. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3004. takes Peer.
  3005. * src/DefaultPieceStorage.cc
  3006. * src/DefaultPieceStorage.h
  3007. * src/Makefile.am
  3008. * src/PieceStorage.h
  3009. * src/UnknownLengthPieceStorage.cc
  3010. * src/UnknownLengthPieceStorage.h
  3011. * test/MockPieceStorage.h
  3012. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Implemented getter methods in header files to give them more
  3014. chance of optimization.
  3015. Return const reference for SharadHandle if possible.
  3016. * src/AbstractAuthResolver.cc
  3017. * src/AbstractAuthResolver.h
  3018. * src/AbstractBtMessage.cc
  3019. * src/AbstractBtMessage.h
  3020. * src/AbstractSingleDiskAdaptor.cc
  3021. * src/AbstractSingleDiskAdaptor.h
  3022. * src/AsyncNameResolver.cc
  3023. * src/AsyncNameResolver.h
  3024. * src/BNode.cc
  3025. * src/BNode.h
  3026. * src/BitfieldMan.cc
  3027. * src/BitfieldMan.h
  3028. * src/BtAbortOutstandingRequestEvent.h
  3029. * src/BtExtendedMessage.cc
  3030. * src/BtExtendedMessage.h
  3031. * src/BtSeederStateChoke.cc
  3032. * src/BtSeederStateChoke.h
  3033. * src/Cookie.cc
  3034. * src/Cookie.h
  3035. * src/DHTBucket.cc
  3036. * src/DHTBucket.h
  3037. * src/DHTConnectionImpl.cc
  3038. * src/DHTConnectionImpl.h
  3039. * src/DHTFindNodeReplyMessage.cc
  3040. * src/DHTFindNodeReplyMessage.h
  3041. * src/DHTGetPeersReplyMessage.cc
  3042. * src/DHTGetPeersReplyMessage.h
  3043. * src/DHTInteractionCommand.cc
  3044. * src/DHTMessage.cc
  3045. * src/DHTMessage.h
  3046. * src/DHTMessageDispatcherImpl.cc
  3047. * src/DHTMessageEntry.cc
  3048. * src/DHTMessageReceiver.cc
  3049. * src/DHTMessageReceiver.h
  3050. * src/DHTMessageTrackerEntry.cc
  3051. * src/DHTMessageTrackerEntry.h
  3052. * src/DHTPeerAnnounceEntry.cc
  3053. * src/DHTPeerAnnounceEntry.h
  3054. * src/DHTPeerLookupTask.cc
  3055. * src/DHTPeerLookupTask.h
  3056. * src/DHTRoutingTableDeserializer.cc
  3057. * src/DHTRoutingTableDeserializer.h
  3058. * src/DefaultBtAnnounce.cc
  3059. * src/DefaultBtAnnounce.h
  3060. * src/DefaultBtMessageDispatcher.cc
  3061. * src/DefaultBtMessageDispatcher.h
  3062. * src/DefaultBtRequestFactory.cc
  3063. * src/DefaultBtRequestFactory.h
  3064. * src/DiskAdaptor.cc
  3065. * src/DiskAdaptor.h
  3066. * src/DownloadContext.cc
  3067. * src/DownloadContext.h
  3068. * src/DownloadEngine.cc
  3069. * src/DownloadEngine.h
  3070. * src/EpollEventPoll.cc
  3071. * src/EpollEventPoll.h
  3072. * src/FtpConnection.cc
  3073. * src/FtpConnection.h
  3074. * src/HttpConnection.cc
  3075. * src/HttpConnection.h
  3076. * src/HttpHeader.cc
  3077. * src/HttpHeader.h
  3078. * src/HttpRequest.cc
  3079. * src/HttpRequest.h
  3080. * src/HttpResponse.cc
  3081. * src/HttpResponse.h
  3082. * src/LibsslTLSContext.cc
  3083. * src/LibsslTLSContext.h
  3084. * src/MSEHandshake.cc
  3085. * src/MSEHandshake.h
  3086. * src/MetalinkEntry.cc
  3087. * src/MetalinkEntry.h
  3088. * src/MetalinkParserController.cc
  3089. * src/MetalinkParserController.h
  3090. * src/MetalinkParserStateMachine.cc
  3091. * src/MetalinkParserStateMachine.h
  3092. * src/MultiDiskAdaptor.cc
  3093. * src/MultiDiskAdaptor.h
  3094. * src/NetrcAuthResolver.cc
  3095. * src/NetrcAuthResolver.h
  3096. * src/Peer.cc
  3097. * src/Peer.h
  3098. * src/PeerSessionResource.cc
  3099. * src/PeerSessionResource.h
  3100. * src/Piece.cc
  3101. * src/Piece.h
  3102. * src/PieceStatMan.cc
  3103. * src/PieceStatMan.h
  3104. * src/Request.cc
  3105. * src/Request.h
  3106. * src/RequestGroup.cc
  3107. * src/RequestGroup.h
  3108. * src/RequestGroupMan.cc
  3109. * src/RequestGroupMan.h
  3110. * src/RequestSlot.cc
  3111. * src/RequestSlot.h
  3112. * src/SegmentMan.cc
  3113. * src/SegmentMan.h
  3114. * src/SelectEventPoll.cc
  3115. * src/SelectEventPoll.h
  3116. * src/ServerStat.cc
  3117. * src/ServerStat.h
  3118. * src/Signature.cc
  3119. * src/Signature.h
  3120. * src/URIResult.cc
  3121. * src/URIResult.h
  3122. * src/UTPexExtensionMessage.cc
  3123. * src/UTPexExtensionMessage.h
  3124. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Fixed compile error without BitTorrent and Metalink support.
  3126. * src/XmlRpcMethod.cc
  3127. * src/XmlRpcMethodFactory.cc
  3128. * src/XmlRpcMethodImpl.cc
  3129. * src/XmlRpcMethodImpl.h
  3130. * test/XmlRpcMethodTest.cc
  3131. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Rewritten the help message for --allow-overwrite option.
  3133. * doc/aria2c.1.txt
  3134. * src/usage_text.h
  3135. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Fixed typo
  3137. * doc/aria2c.1.txt
  3138. * src/usage_text.h
  3139. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Updated README for 1.4.0 release. Use new table syntax of
  3141. asciidoc.
  3142. * README
  3143. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Documented --xml-rpc-max-request-size option in man page.
  3145. * doc/aria2c.1.txt
  3146. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Moved C_* constants from BtContext to DefaultBtContext.
  3148. * src/BtContext.cc: Removed.
  3149. * src/BtContext.h
  3150. * src/DefaultBtContext.cc
  3151. * src/DefaultBtContext.h
  3152. * src/Makefile.am
  3153. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3155. path key respectively when persing .torrent file.
  3156. * src/BtContext.cc
  3157. * src/BtContext.h
  3158. * src/DefaultBtContext.cc
  3159. * test/DefaultBtContextTest.cc
  3160. * test/utf8.torrent
  3161. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Added --xml-rpc-max-request-size option to limit the size of
  3163. XML-RPC request.
  3164. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Documented XML-RPC API in man page.
  3166. * doc/aria2c.1.txt
  3167. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3169. will break strict-aliasing rules
  3170. * src/PeerConnection.cc
  3171. * test/DHTRoutingTableSerializerTest.cc
  3172. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3174. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3175. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3176. PKG_CHECK_MODULES macro uses latter name.
  3177. * m4/sqlite3.m4
  3178. * src/Makefile.am
  3179. * test/Makefile.am
  3180. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Fixed typo
  3182. * configure.ac
  3183. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3184. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3185. presence of libgnutls using pkg-config first. If it fails, fall
  3186. back to old macro libgnutls.m4.
  3187. * configure.ac
  3188. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3189. Use s itself instead of !s.bad()
  3190. * src/CookieStorage.cc
  3191. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Documented --on-download-* option and --save-cookies option in man
  3193. page.
  3194. * doc/aria2c.1.txt
  3195. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Set possible values for --load-cookie option to "/path/to/file".
  3197. * src/OptionHandlerFactory.cc
  3198. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Added --save-cookies option.
  3200. * src/Cookie.cc
  3201. * src/Cookie.h
  3202. * src/CookieStorage.cc
  3203. * src/CookieStorage.h
  3204. * src/MultiUrlRequestInfo.cc
  3205. * src/OptionHandlerFactory.cc
  3206. * src/prefs.cc
  3207. * src/prefs.h
  3208. * src/usage_text.h
  3209. * test/CookieStorageTest.cc
  3210. * test/CookieTest.cc
  3211. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Removed tellAll XML-RPC command because its reponse tends to be
  3213. big if stopped/waiting downloads pile up.
  3214. * src/XmlRpcMethodFactory.cc
  3215. * src/XmlRpcMethodImpl.cc
  3216. * src/XmlRpcMethodImpl.h
  3217. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Added the ability to execute command when download starts and
  3219. stops. You can also specify command for particular cases such as
  3220. complete/error download. Added --on-download-start,
  3221. --on-download-stop, --on-download-complete and --on-download-error
  3222. option.
  3223. * src/OptionHandlerFactory.cc
  3224. * src/RequestGroupMan.cc
  3225. * src/prefs.cc
  3226. * src/prefs.h
  3227. * src/usage_text.h
  3228. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Fixed test error
  3230. * test/BencodeTest.cc
  3231. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Added unit tests.
  3233. * test/XmlRpcMethodTest.cc
  3234. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Made exception message more verbose.
  3236. * src/bencode.cc
  3237. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3239. space in console readout. Also they are now shown in MiB/s if
  3240. speed > 1024KiB/s.
  3241. * src/ConsoleStatCalc.cc
  3242. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Added SEED to console output, which represents the number of
  3244. seeders currently the client is connecting to.
  3245. * src/ConsoleStatCalc.cc
  3246. * src/ConsoleStatCalc.h
  3247. * src/DownloadEngine.cc
  3248. * src/NullStatCalc.h
  3249. * src/StatCalc.h
  3250. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Added source filename(__FILE__) and line number(__LINE__) to
  3252. exception message.
  3253. * src/AbstractCommand.cc
  3254. * src/AbstractDiskWriter.cc
  3255. * src/AbstractProxyResponseCommand.cc
  3256. * src/BDE.h
  3257. * src/BtAllowedFastMessage.cc
  3258. * src/BtHandshakeMessageValidator.h
  3259. * src/BtHaveAllMessage.cc
  3260. * src/BtHaveNoneMessage.cc
  3261. * src/BtPieceMessage.cc
  3262. * src/BtRejectMessage.cc
  3263. * src/ChunkedDecoder.cc
  3264. * src/CookieStorage.cc
  3265. * src/DHTAnnouncePeerMessage.cc
  3266. * src/DHTEntryPointNameResolveCommand.cc
  3267. * src/DHTMessageFactoryImpl.cc
  3268. * src/DHTMessageTracker.cc
  3269. * src/DHTRoutingTableDeserializer.cc
  3270. * src/DHTRoutingTableSerializer.cc
  3271. * src/DHTSetup.cc
  3272. * src/DHTTokenTracker.cc
  3273. * src/DefaultBtAnnounce.cc
  3274. * src/DefaultBtContext.cc
  3275. * src/DefaultBtInteractive.cc
  3276. * src/DefaultBtMessageFactory.cc
  3277. * src/DefaultBtProgressInfoFile.cc
  3278. * src/DefaultExtensionMessageFactory.cc
  3279. * src/DlAbortEx.h
  3280. * src/DlRetryEx.h
  3281. * src/DownloadCommand.cc
  3282. * src/DownloadEngineFactory.cc
  3283. * src/DownloadFailureException.h
  3284. * src/Exception.cc
  3285. * src/Exception.h
  3286. * src/ExpatMetalinkProcessor.cc
  3287. * src/ExpatXmlRpcRequestProcessor.cc
  3288. * src/FallocFileAllocationIterator.cc
  3289. * src/FatalException.h
  3290. * src/FtpConnection.cc
  3291. * src/FtpFinishDownloadCommand.cc
  3292. * src/FtpInitiateConnectionCommand.cc
  3293. * src/FtpNegotiationCommand.cc
  3294. * src/GZipDecoder.cc
  3295. * src/HandshakeExtensionMessage.cc
  3296. * src/HttpConnection.cc
  3297. * src/HttpHeaderProcessor.cc
  3298. * src/HttpInitiateConnectionCommand.cc
  3299. * src/HttpResponse.cc
  3300. * src/HttpResponseCommand.cc
  3301. * src/HttpServer.cc
  3302. * src/HttpSkipResponseCommand.cc
  3303. * src/InitiateConnectionCommandFactory.cc
  3304. * src/IteratableChunkChecksumValidator.cc
  3305. * src/LibgcryptARC4Context.h
  3306. * src/LibgcryptARC4Decryptor.h
  3307. * src/LibgcryptARC4Encryptor.h
  3308. * src/LibgcryptDHKeyExchange.h
  3309. * src/LibgnutlsTLSContext.cc
  3310. * src/LibsslARC4Context.h
  3311. * src/LibsslARC4Decryptor.h
  3312. * src/LibsslARC4Encryptor.h
  3313. * src/LibsslDHKeyExchange.h
  3314. * src/LibsslTLSContext.cc
  3315. * src/MSEHandshake.cc
  3316. * src/MessageDigestHelper.cc
  3317. * src/MetalinkHelper.cc
  3318. * src/MultiDiskAdaptor.cc
  3319. * src/NameMatchOptionHandler.h
  3320. * src/NameResolver.cc
  3321. * src/Netrc.cc
  3322. * src/NsCookieParser.cc
  3323. * src/OptionHandlerException.cc
  3324. * src/OptionHandlerException.h
  3325. * src/OptionHandlerImpl.h
  3326. * src/OptionParser.cc
  3327. * src/ParameterizedStringParser.cc
  3328. * src/PeerAbstractCommand.cc
  3329. * src/PeerConnection.cc
  3330. * src/PeerMessageUtil.cc
  3331. * src/PeerReceiveHandshakeCommand.cc
  3332. * src/Platform.cc
  3333. * src/ReceiverMSEHandshakeCommand.cc
  3334. * src/RecoverableException.h
  3335. * src/RequestGroup.cc
  3336. * src/SimpleLogger.cc
  3337. * src/SocketCore.cc
  3338. * src/Sqlite3MozCookieParser.cc
  3339. * src/UTPexExtensionMessage.cc
  3340. * src/Util.cc
  3341. * src/XML2SAXMetalinkProcessor.cc
  3342. * src/Xml2XmlRpcRequestProcessor.cc
  3343. * src/XmlRpcMethodImpl.cc
  3344. * src/bencode.cc
  3345. * src/download_helper.cc
  3346. * src/messageDigest.h
  3347. * test/ExceptionTest.cc
  3348. * test/TestUtil.cc
  3349. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Bump up version number to 1.4.0
  3351. * configure.ac
  3352. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Added 2files.metalink to EXTRA_DIST
  3354. * test/Makefile.am
  3355. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Added missing 2files.metalink
  3357. * test/2files.metalink
  3358. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Show "[MEMORY]" prefix before filename in download summary if it
  3360. is downloaded into memory.
  3361. * src/DownloadResult.h
  3362. * src/RequestGroup.cc
  3363. * src/RequestGroupMan.cc
  3364. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3366. * src/ExpatXmlRpcRequestProcessor.cc
  3367. * src/Xml2XmlRpcRequestProcessor.cc
  3368. * src/message.h
  3369. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Defined const BDEs to avoid duplicate instantiation.
  3371. Defined MSG_GID_NOT_PROVIDED.
  3372. * src/XmlRpcMethodImpl.cc
  3373. * src/message.h
  3374. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Code cleanup
  3376. * src/Xml2XmlRpcRequestProcessor.cc
  3377. * src/Xml2XmlRpcRequestProcessor.h
  3378. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Defined ENABLE_XML_RPC
  3380. * configure.ac
  3381. * configure
  3382. * config.h.in
  3383. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Added ExpatXmlRpcRequestProcessor
  3385. * src/ExpatXmlRpcRequestProcessor.cc
  3386. * src/ExpatXmlRpcRequestProcessor.h
  3387. * src/Makefile.am
  3388. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Added tests for addTorrent and addMetalink command.
  3390. * test/TestUtil.cc
  3391. * test/TestUtil.h
  3392. * test/XmlRpcMethodTest.cc
  3393. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Corrected the description of --file-allocation option.
  3395. * doc/aria2c.1.txt
  3396. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added tellAll command.
  3398. * src/XmlRpcMethodFactory.cc
  3399. * src/XmlRpcMethodImpl.cc
  3400. * src/XmlRpcMethodImpl.h
  3401. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3403. * src/XmlRpcMethodImpl.cc
  3404. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Added changeGlobalOption command. Currently,
  3406. max-overall-download-limit and max-overall-upload-limit option are
  3407. available.
  3408. * src/RequestGroupMan.h
  3409. * src/XmlRpcMethod.cc
  3410. * src/XmlRpcMethod.h
  3411. * src/XmlRpcMethodFactory.cc
  3412. * src/XmlRpcMethodImpl.cc
  3413. * src/XmlRpcMethodImpl.h
  3414. * test/XmlRpcMethodTest.cc
  3415. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Added changeOption command. Currently, max-download-limit,
  3417. max-upload-limit option are available in this command.
  3418. * src/RequestGroup.h
  3419. * src/XmlRpcMethod.cc
  3420. * src/XmlRpcMethod.h
  3421. * src/XmlRpcMethodFactory.cc
  3422. * src/XmlRpcMethodImpl.cc
  3423. * src/XmlRpcMethodImpl.h
  3424. * test/XmlRpcMethodTest.cc
  3425. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Added purgeDownloadResult command.
  3427. * src/RequestGroupMan.cc
  3428. * src/RequestGroupMan.h
  3429. * src/XmlRpcMethodFactory.cc
  3430. * src/XmlRpcMethodImpl.cc
  3431. * src/XmlRpcMethodImpl.h
  3432. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Refactored.
  3434. * src/XmlRpcMethod.cc
  3435. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3437. XmlRpcResponse.
  3438. * src/HttpServerBodyCommand.cc
  3439. * src/Makefile.am
  3440. * src/XmlRpcMethod.cc
  3441. * src/XmlRpcMethod.h
  3442. * src/XmlRpcMethodImpl.cc
  3443. * src/XmlRpcResponse.cc
  3444. * src/XmlRpcResponse.h
  3445. * test/XmlRpcMethodTest.cc
  3446. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. In XML-RPC option struct, header and index-out option can take
  3448. array as value.
  3449. * src/XmlRpcMethod.cc
  3450. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Removed unused option member from PeerConnection.
  3452. * src/InitiatorMSEHandshakeCommand.cc
  3453. * src/PeerConnection.cc
  3454. * src/PeerConnection.h
  3455. * src/PeerInteractionCommand.cc
  3456. * src/PeerReceiveHandshakeCommand.cc
  3457. * src/ReceiverMSEHandshakeCommand.cc
  3458. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Added "seeder" key to getPeers response.
  3460. * src/XmlRpcMethodImpl.cc
  3461. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Added addMetalink XML-RPC command.
  3463. * src/XmlRpcMethodFactory.cc
  3464. * src/XmlRpcMethodImpl.cc
  3465. * src/XmlRpcMethodImpl.h
  3466. * src/download_helper.cc
  3467. * src/download_helper.h
  3468. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Fixed the bug that POU peers are never choked in seeding.
  3470. * src/BtSeederStateChoke.cc
  3471. * src/BtSeederStateChoke.h
  3472. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Added web-seeding URI handling in addTorrent command.
  3474. * src/XmlRpcMethodImpl.cc
  3475. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Added "length" key to getFiles response.
  3477. * src/XmlRpcMethodImpl.cc
  3478. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Moved --no-netrc option from ftp option section to http/ftp option
  3480. section.
  3481. * doc/aria2c.1.txt
  3482. * src/OptionHandlerFactory.cc
  3483. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Removed garbage "\" character before '
  3485. * doc/aria2c.1.txt
  3486. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Removed garbage "\" character before http.
  3488. * doc/aria2c.1.txt
  3489. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Documented additional options that can be specified in -i list.
  3491. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3492. and --xml-rpc-passwd. Removed --enable-http-server and
  3493. --http-server-listen-port.
  3494. * doc/aria2c.1.txt
  3495. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3496. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3497. * src/DefaultPeerStorage.cc
  3498. * src/DefaultPeerStorage.h
  3499. * src/PeerStorage.h
  3500. * src/XmlRpcMethodImpl.cc
  3501. * test/MockPeerStorage.h
  3502. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Put a call to Socket::isReadable() in try block.
  3504. * src/HttpServerBodyCommand.cc
  3505. * src/HttpServerCommand.cc
  3506. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3508. exception , so it is now in try block.
  3509. * src/HttpServerResponseCommand.cc
  3510. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Added "amChoking" and "peerChoking" key in getPeers response.
  3512. * src/XmlRpcMethodImpl.cc
  3513. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added test case for zero-length filter.
  3515. * test/BitfieldManTest.cc
  3516. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. getFiles command now returns file data for finished/stopped
  3518. downloads.
  3519. * src/XmlRpcMethodImpl.cc
  3520. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. DownloadResult now has the list of FileEntry. The download
  3522. summary displays the path of first selected file and the number of
  3523. remaining files for multi-file torrent.
  3524. * src/DownloadResult.h
  3525. * src/RequestGroup.cc
  3526. * src/RequestGroupMan.cc
  3527. * test/RequestGroupTest.cc
  3528. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Fixed segmentation fault error when no file is selected in
  3530. multi-file torrent.
  3531. * src/BitfieldMan.cc
  3532. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Escaped <,>,& character in XML-RPC response.
  3534. * src/XmlRpcMethod.cc
  3535. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Throw DlAbortEx instead of FatalException during parsing options
  3537. because we don't want for aria2 to quit when bad option is passed
  3538. via XML-RPC.
  3539. * src/OptionHandlerException.cc
  3540. * src/OptionHandlerException.h
  3541. * src/OptionHandlerImpl.h
  3542. * src/OptionParser.cc
  3543. * src/OptionParser.h
  3544. * src/PStringSegment.cc
  3545. * src/ParameterizedStringParser.cc
  3546. * src/download_helper.cc
  3547. * test/ParameterizedStringParserTest.cc
  3548. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Selecting files are now done in
  3550. DefaultBtContext::setFileFileter().
  3551. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3552. functions are removed because they are no longer used. Creating
  3553. filter in BitfieldMan is done in new funtion
  3554. PieceStorage::setupFileFilter()
  3555. * src/BtContext.cc
  3556. * src/BtContext.h
  3557. * src/DefaultBtContext.cc
  3558. * src/DefaultBtContext.h
  3559. * src/DefaultPieceStorage.cc
  3560. * src/DefaultPieceStorage.h
  3561. * src/DiskAdaptor.cc
  3562. * src/DiskAdaptor.h
  3563. * src/PieceStorage.h
  3564. * src/RequestGroup.cc
  3565. * src/UnknownLengthPieceStorage.h
  3566. * src/XmlRpcMethodImpl.cc
  3567. * test/DefaultBtContextTest.cc
  3568. * test/MockBtContext.h
  3569. * test/MockPieceStorage.h
  3570. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Fixed compile error on Mac OS X
  3572. * src/HttpServer.cc
  3573. * src/XmlRpcMethod.h
  3574. * src/XmlRpcMethodImpl.cc
  3575. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Use std::binary_search instead of std::find
  3577. * src/DefaultPieceStorage.cc
  3578. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Removed unnecessary BDE() call; leave them to implicit conversion.
  3580. * src/XmlRpcMethodImpl.cc
  3581. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Return connections and gid in string
  3583. * src/XmlRpcMethodImpl.cc
  3584. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Renamed addURI as addUri
  3586. * src/XmlRpcMethodFactory.cc
  3587. * src/XmlRpcMethodImpl.cc
  3588. * src/XmlRpcMethodImpl.h
  3589. * test/XmlRpcMethodTest.cc
  3590. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Renamed addTorrentFile as addTorrent
  3592. * src/XmlRpcMethodFactory.cc
  3593. * src/XmlRpcMethodImpl.cc
  3594. * src/XmlRpcMethodImpl.h
  3595. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3596. The information for files, URIs, peers are removed from the
  3597. reponse of TellaActive, TellStatus command because they tend to be
  3598. large. Instead they can be retrieved by the dedicated commands:
  3599. getFiles, getUris and getPeers respectively.
  3600. * src/XmlRpcMethodFactory.cc
  3601. * src/XmlRpcMethodImpl.cc
  3602. * src/XmlRpcMethodImpl.h
  3603. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Removed --max-overall-upload-limit and
  3605. --max-overall-download-limit option from listRequestOptions.
  3606. * src/download_helper.cc
  3607. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Log incoming host in HttpListenCommand.
  3609. * src/HttpListenCommand.cc
  3610. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3612. --xml-rpc-passwd option.
  3613. * src/HttpServer.cc
  3614. * src/HttpServer.h
  3615. * src/HttpServerCommand.cc
  3616. * src/OptionHandlerFactory.cc
  3617. * src/prefs.cc
  3618. * src/prefs.h
  3619. * src/usage_text.h
  3620. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3622. processing 0 length request.
  3623. * src/HttpServerBodyCommand.cc
  3624. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Removed --enable-http-server and --http-server-listen-port
  3626. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3627. instead. The original feature for --enable-http-server that
  3628. reports download progress in HTML was officially removed. Persist
  3629. XML-RPC connection if client supports keep-alive.
  3630. * src/DownloadEngineFactory.cc
  3631. * src/HttpServerCommand.cc
  3632. * src/HttpServerResponseCommand.cc
  3633. * src/Makefile.am
  3634. * src/Makefile.in
  3635. * src/OptionHandlerFactory.cc
  3636. * src/RequestGroupMan.cc
  3637. * src/main.cc
  3638. * src/option_processing.cc
  3639. * src/prefs.cc
  3640. * src/prefs.h
  3641. * src/usage_text.h
  3642. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Added "uris" key to the response of tellStatus command. Added
  3644. "connections" key to the response of tellStatus and tellActive
  3645. command.
  3646. * src/XmlRpcMethodImpl.cc
  3647. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3649. Added TellStatusXmlRpcMethod. Remove command can now remove
  3650. waiting RequestGroup.
  3651. * src/RequestGroupMan.cc
  3652. * src/RequestGroupMan.h
  3653. * src/XmlRpcMethodFactory.cc
  3654. * src/XmlRpcMethodImpl.cc
  3655. * src/XmlRpcMethodImpl.h
  3656. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Initialized _peerId
  3658. * src/Peer.cc
  3659. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Return fault structure for error. FailXmlRpcMethod is renamed as
  3661. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3662. in non-torrent download. Return single param value.
  3663. * src/XmlRpcMethod.cc
  3664. * src/XmlRpcMethodFactory.cc
  3665. * src/XmlRpcMethodImpl.cc
  3666. * src/XmlRpcMethodImpl.h
  3667. * test/XmlRpcMethodTest.cc
  3668. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3670. command.
  3671. * src/RequestGroup.cc
  3672. * src/RequestGroup.h
  3673. * src/RequestGroupMan.cc
  3674. * src/XmlRpcMethodImpl.cc
  3675. * test/RequestGroupTest.cc
  3676. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added more options that can be specified in -i list and xml-rpc
  3678. add* command.
  3679. * src/download_helper.h
  3680. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. The available options in -i list should be listed in
  3682. listRequestOptions().
  3683. * src/download_helper.cc
  3684. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3686. command.
  3687. * src/XmlRpcMethodImpl.cc
  3688. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Now RequestGroup has its own copy of Option object. This will help
  3690. to give custom option for each RequestGroup.
  3691. addTorrentFile command now takes options.
  3692. * src/AbstractCommand.cc
  3693. * src/AbstractCommand.h
  3694. * src/AbstractProxyRequestCommand.cc
  3695. * src/ActivePeerConnectionCommand.cc
  3696. * src/ActivePeerConnectionCommand.h
  3697. * src/AdaptiveURISelector.cc
  3698. * src/BtCheckIntegrityEntry.cc
  3699. * src/BtDependency.cc
  3700. * src/BtDependency.h
  3701. * src/BtFileAllocationEntry.cc
  3702. * src/BtPostDownloadHandler.cc
  3703. * src/CheckIntegrityEntry.cc
  3704. * src/DownloadCommand.cc
  3705. * src/FtpDownloadCommand.cc
  3706. * src/FtpFinishDownloadCommand.cc
  3707. * src/FtpInitiateConnectionCommand.cc
  3708. * src/FtpNegotiationCommand.cc
  3709. * src/HttpInitiateConnectionCommand.cc
  3710. * src/HttpRequestCommand.cc
  3711. * src/HttpResponseCommand.cc
  3712. * src/HttpSkipResponseCommand.cc
  3713. * src/InitiateConnectionCommand.cc
  3714. * src/InitiateConnectionCommandFactory.cc
  3715. * src/InitiatorMSEHandshakeCommand.cc
  3716. * src/InitiatorMSEHandshakeCommand.h
  3717. * src/Metalink2RequestGroup.cc
  3718. * src/Metalink2RequestGroup.h
  3719. * src/MetalinkPostDownloadHandler.cc
  3720. * src/MultiUrlRequestInfo.cc
  3721. * src/MultiUrlRequestInfo.h
  3722. * src/PeerAbstractCommand.cc
  3723. * src/PeerInteractionCommand.cc
  3724. * src/PeerInteractionCommand.h
  3725. * src/PeerReceiveHandshakeCommand.cc
  3726. * src/PeerReceiveHandshakeCommand.h
  3727. * src/RequestGroup.cc
  3728. * src/RequestGroup.h
  3729. * src/TrackerWatcherCommand.cc
  3730. * src/TrackerWatcherCommand.h
  3731. * src/XmlRpcMethod.cc
  3732. * src/XmlRpcMethod.h
  3733. * src/XmlRpcMethodImpl.cc
  3734. * src/download_helper.cc
  3735. * src/download_helper.h
  3736. * src/main.cc
  3737. * test/BtDependencyTest.cc
  3738. * test/BtPostDownloadHandlerTest.cc
  3739. * test/DefaultBtMessageDispatcherTest.cc
  3740. * test/DownloadHandlerFactoryTest.cc
  3741. * test/DownloadHelperTest.cc
  3742. * test/Metalink2RequestGroupTest.cc
  3743. * test/MetalinkPostDownloadHandlerTest.cc
  3744. * test/RequestGroupManTest.cc
  3745. * test/RequestGroupTest.cc
  3746. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added tellActiveStatus xml-rpc command which reports download
  3748. status of active downloads.
  3749. * src/XmlRpcMethodFactory.cc
  3750. * src/XmlRpcMethodImpl.cc
  3751. * src/XmlRpcMethodImpl.h
  3752. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Added addTorrentFile xml-rpc command which receives uploaded
  3754. torrent file and add download for it.
  3755. * src/RequestGroupMan.cc
  3756. * src/XmlRpcMethodFactory.cc
  3757. * src/XmlRpcMethodImpl.cc
  3758. * src/XmlRpcMethodImpl.h
  3759. * src/download_helper.cc
  3760. * src/download_helper.h
  3761. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Added remove xml-rpc command which removes specified download.
  3763. There is a known issue: the removed unfinished downloads are
  3764. reported ERR when aria2 exits. They should be reported as INPR.
  3765. * src/RequestGroupMan.cc
  3766. * src/RequestGroupMan.h
  3767. * src/XmlRpcMethodFactory.cc
  3768. * src/XmlRpcMethodImpl.cc
  3769. * src/XmlRpcMethodImpl.h
  3770. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. If --enable-http-server is enabled, don't stop aria2 when all
  3772. download finished and don't quit when no files to download at
  3773. start up.
  3774. * src/RequestGroupMan.cc
  3775. * src/main.cc
  3776. * src/option_processing.cc
  3777. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Added missing AM_CONDITIONAL
  3779. * configure.ac
  3780. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Added xml-rpc functionality. Currently only addURI commad is
  3782. supported. To enable xml-rpc, run aria2 with
  3783. --enable-http-server. This option name is temporal and will be
  3784. changed. The feature that reports download progress in html format
  3785. is temporarily disabled.
  3786. * src/HttpServer.cc
  3787. * src/HttpServer.h
  3788. * src/HttpServerBodyCommand.cc
  3789. * src/HttpServerBodyCommand.h
  3790. * src/HttpServerCommand.cc
  3791. * src/HttpServerResponseCommand.cc
  3792. * src/Makefile.am
  3793. * src/OptionParser.cc
  3794. * src/OptionParser.h
  3795. * src/RequestGroupMan.cc
  3796. * src/RequestGroupMan.h
  3797. * src/XmlRpcMethod.cc
  3798. * src/XmlRpcMethod.h
  3799. * src/XmlRpcMethodFactory.cc
  3800. * src/XmlRpcMethodFactory.h
  3801. * src/XmlRpcMethodImpl.cc
  3802. * src/XmlRpcMethodImpl.h
  3803. * src/download_helper.cc
  3804. * src/download_helper.h
  3805. * test/Makefile.am
  3806. * test/XmlRpcMethodTest.cc
  3807. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Added xml-rpc request parser. The supported value types are:
  3809. i4/int, string, double, struct, array, base64. Currently only
  3810. libxml2 version is provided.
  3811. * src/Xml2XmlRpcRequestProcessor.cc
  3812. * src/Xml2XmlRpcRequestProcessor.h
  3813. * src/XmlRpcElements.cc
  3814. * src/XmlRpcElements.h
  3815. * src/XmlRpcRequest.h
  3816. * src/XmlRpcRequestParserController.cc
  3817. * src/XmlRpcRequestParserController.h
  3818. * src/XmlRpcRequestParserState.h
  3819. * src/XmlRpcRequestParserStateImpl.cc
  3820. * src/XmlRpcRequestParserStateImpl.h
  3821. * src/XmlRpcRequestParserStateMachine.cc
  3822. * src/XmlRpcRequestParserStateMachine.h
  3823. * src/XmlRpcRequestProcessor.h
  3824. * test/XmlRpcRequestParserControllerTest.cc
  3825. * test/XmlRpcRequestProcessorTest.cc
  3826. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. * Release 1.3.3
  3828. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Fixed compile error since r1202.
  3830. * src/ExpatMetalinkProcessor.cc
  3831. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Updated Ukrainian, Russian and Simplified Chinese
  3833. translations. Thanks to all translators.
  3834. * po/ru.po
  3835. * po/uk.po
  3836. * po/zh_CN.po
  3837. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Pass reference of Option object instead of pointer.
  3839. * src/download_helper.cc
  3840. * src/download_helper.h
  3841. * src/main.cc
  3842. * test/DownloadHelperTest.cc
  3843. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3845. from option directly. Instead, get them from RequestGroup.
  3846. * src/ActivePeerConnectionCommand.cc
  3847. * src/ActivePeerConnectionCommand.h
  3848. * src/PeerReceiveHandshakeCommand.cc
  3849. * src/RequestGroup.h
  3850. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Removed unused uploadLimitCheck and uploadLimit from
  3852. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3853. PeerInteractionCommand.
  3854. * src/PeerAbstractCommand.cc
  3855. * src/PeerAbstractCommand.h
  3856. * src/PeerInteractionCommand.cc
  3857. * src/PeerInteractionCommand.h
  3858. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3859. Fixed broken file renaming feature since r1202.
  3860. * src/FtpNegotiationCommand.cc
  3861. * src/FtpNegotiationCommand.h
  3862. * src/HttpResponseCommand.cc
  3863. * src/RequestGroup.cc
  3864. * src/RequestGroup.h
  3865. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Removed unused debug log
  3867. * src/SocketCore.cc
  3868. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3869. Generated configure and Makefile.in using autoconf 2.63 and
  3870. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3871. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3872. * configure.ac
  3873. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Moved piece statistics stuff to new PieceStatMan class.
  3875. Refactored PieceSelector interface.
  3876. * src/DefaultPieceStorage.cc
  3877. * src/DefaultPieceStorage.h
  3878. * src/LongestSequencePieceSelector.cc
  3879. * src/LongestSequencePieceSelector.h
  3880. * src/Makefile.am
  3881. * src/PieceSelector.h
  3882. * src/PieceStatMan.cc
  3883. * src/PieceStatMan.h
  3884. * src/RarestPieceSelector.cc
  3885. * src/RarestPieceSelector.h
  3886. * src/RequestGroup.cc
  3887. * test/DefaultPieceStorageTest.cc
  3888. * test/InOrderPieceSelector.h
  3889. * test/Makefile.am
  3890. * test/PieceStatManTest.cc
  3891. * test/RarestPieceSelectorTest.cc
  3892. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Added static member _protocolFamily to SocketCore. By default,
  3894. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3895. address. Sometime SocketCore::bind() and
  3896. SocketCore::establishConnection() use difference protocl family
  3897. and latter cannot connect to former. To avoid this situation, we
  3898. limit protocol family to AF_INET for unit tests.
  3899. * src/SocketCore.cc
  3900. * src/SocketCore.h
  3901. * test/AllTest.cc
  3902. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Avoid std::bad_alloc for negative bencode string length.
  3904. * src/bencode.cc
  3905. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Supported segmented downloading with chunked transfer encoding and
  3907. content-length.
  3908. * src/DownloadCommand.cc
  3909. * src/HttpResponseCommand.cc
  3910. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Bump up version number to 1.3.3
  3912. * configure.ac
  3913. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3915. from 4096 to 65536 (for insanely large ftp login banners)
  3916. * src/FtpConnection.h
  3917. * test/FtpConnectionTest.cc
  3918. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. In DefaultBtContext::getActualBasePath(), return first
  3920. FileEntry::getPath() for single file torrent.
  3921. * src/DefaultBtContext.cc
  3922. * test/DefaultBtContextTest.cc
  3923. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3925. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3926. Removed _directIOAllowed member from DiskWriter.
  3927. * src/AbstractDiskWriter.cc
  3928. * src/AbstractDiskWriter.h
  3929. * src/AbstractSingleDiskAdaptor.cc
  3930. * src/AbstractSingleDiskAdaptor.h
  3931. * src/BinaryStream.h
  3932. * src/ByteArrayDiskWriter.h
  3933. * src/DefaultPieceStorage.cc
  3934. * src/DiskWriter.h
  3935. * src/MultiDiskAdaptor.cc
  3936. * src/MultiDiskAdaptor.h
  3937. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Now the constructor of AbstractDiskWriter takes filename as an
  3939. argument and filename argument is removed from openFile(),
  3940. initAndOpenFile(), openExistingFile() interface. storeDir member
  3941. and its accessor functions are removed from DiskAdaptor because it
  3942. is not used anymore. size() member function of DefaultDiskWriter,
  3943. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3944. opening file.
  3945. * src/AbstractDiskWriter.cc
  3946. * src/AbstractDiskWriter.h
  3947. * src/AbstractSingleDiskAdaptor.cc
  3948. * src/AbstractSingleDiskAdaptor.h
  3949. * src/ByteArrayDiskWriter.cc
  3950. * src/ByteArrayDiskWriter.h
  3951. * src/ByteArrayDiskWriterFactory.cc
  3952. * src/ByteArrayDiskWriterFactory.h
  3953. * src/DefaultDiskWriter.cc
  3954. * src/DefaultDiskWriter.h
  3955. * src/DefaultDiskWriterFactory.cc
  3956. * src/DefaultDiskWriterFactory.h
  3957. * src/DefaultPieceStorage.cc
  3958. * src/DirectDiskAdaptor.cc
  3959. * src/DirectDiskAdaptor.h
  3960. * src/DiskAdaptor.h
  3961. * src/DiskWriter.h
  3962. * src/DiskWriterFactory.h
  3963. * src/MessageDigestHelper.cc
  3964. * src/MultiDiskAdaptor.cc
  3965. * src/RequestGroup.cc
  3966. * src/UnknownLengthPieceStorage.cc
  3967. * src/Util.cc
  3968. * test/DefaultDiskWriterTest.cc
  3969. * test/DirectDiskAdaptorTest.cc
  3970. * test/FallocFileAllocationIteratorTest.cc
  3971. * test/MessageDigestHelperTest.cc
  3972. * test/MetalinkProcessorTest.cc
  3973. * test/MultiDiskAdaptorTest.cc
  3974. * test/MultiFileAllocationIteratorTest.cc
  3975. * test/SingleFileAllocationIteratorTest.cc
  3976. * test/UtilTest.cc
  3977. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Fixed the bug that aria2 aborts when --select-file is used. This
  3979. bug was introduced in r1199.
  3980. * src/MultiDiskAdaptor.cc
  3981. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Code cleanup
  3983. * test/MockPieceStorage.cc
  3984. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Fixed the bug that read-only file with wrong file size will cause
  3986. error because it cannot be truncated to the correct size. Now if
  3987. file size is different than the expected one, re-open file in
  3988. writable mode.
  3989. * src/AbstractSingleDiskAdaptor.cc
  3990. * src/AbstractSingleDiskAdaptor.h
  3991. * src/BtCheckIntegrityEntry.cc
  3992. * src/DiskAdaptor.h
  3993. * src/MultiDiskAdaptor.h
  3994. * src/RequestGroup.cc
  3995. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Fixed the bug that with --check-integrity option aria2 reports
  3997. downloaded file size is 0 even if some parts of file is correctly
  3998. downloaded. This bug is reproducible for the download that a file
  3999. includes last piece is missing. This bug doesn't reveal for
  4000. single-torrent with file allocation on.
  4001. * src/IteratableChecksumValidator.cc
  4002. * test/IteratableChecksumValidatorTest.cc
  4003. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4005. * src/RequestGroupMan.cc
  4006. * src/AdaptiveURISelector.cc
  4007. * src/AdaptiveURISelector.h
  4008. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. * Release 1.3.2
  4010. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Updated README
  4012. * README
  4013. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Updated Ukrainian translations. Thanks to Alexander10.
  4015. * po/uk.po
  4016. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Code cleanup
  4018. * src/MetalinkParserStateMachine.cc
  4019. * src/MetalinkParserStateMachine.h
  4020. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4022. and expat simultaneously, MetalinkProcessor is now not base class
  4023. and it is directly implemented in XML2SAXMetalinkProcessor and
  4024. ExpatMetalinkProcessor.
  4025. * src/ExpatMetalinkProcessor.cc
  4026. * src/ExpatMetalinkProcessor.h
  4027. * src/Makefile.am
  4028. * src/MetalinkHelper.cc
  4029. * src/MetalinkProcessor.h
  4030. * src/MetalinkProcessorFactory.cc: Removed.
  4031. * src/MetalinkProcessorFactory.h: Removed
  4032. * src/XML2SAXMetalinkProcessor.cc
  4033. * src/XML2SAXMetalinkProcessor.h
  4034. * test/MetalinkProcessorTest.cc
  4035. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Bump up version number to 1.3.2
  4037. * configure.ac
  4038. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Added missing file.
  4040. * test/Makefile.am
  4041. * test/url-list-singleFileEndsWithSlash.torrent
  4042. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4044. request.
  4045. * src/AnnounceList.cc
  4046. * src/AnnounceList.h
  4047. * src/BDE.cc: Added
  4048. * src/BDE.h: Added
  4049. * src/DHTAbstractMessage.cc
  4050. * src/DHTAbstractMessage.h
  4051. * src/DHTAnnouncePeerMessage.cc
  4052. * src/DHTAnnouncePeerMessage.h
  4053. * src/DHTAnnouncePeerReplyMessage.cc
  4054. * src/DHTAnnouncePeerReplyMessage.h
  4055. * src/DHTFindNodeMessage.cc
  4056. * src/DHTFindNodeMessage.h
  4057. * src/DHTFindNodeReplyMessage.cc
  4058. * src/DHTFindNodeReplyMessage.h
  4059. * src/DHTGetPeersMessage.cc
  4060. * src/DHTGetPeersMessage.h
  4061. * src/DHTGetPeersReplyMessage.cc
  4062. * src/DHTGetPeersReplyMessage.h
  4063. * src/DHTMessageFactory.h
  4064. * src/DHTMessageFactoryImpl.cc
  4065. * src/DHTMessageFactoryImpl.h
  4066. * src/DHTMessageReceiver.cc
  4067. * src/DHTMessageTracker.cc
  4068. * src/DHTMessageTracker.h
  4069. * src/DHTPingMessage.cc
  4070. * src/DHTPingMessage.h
  4071. * src/DHTPingReplyMessage.cc
  4072. * src/DHTPingReplyMessage.h
  4073. * src/DHTQueryMessage.cc
  4074. * src/DHTQueryMessage.h
  4075. * src/DHTResponseMessage.cc
  4076. * src/DHTResponseMessage.h
  4077. * src/DefaultBtAnnounce.cc
  4078. * src/DefaultBtContext.cc
  4079. * src/DefaultBtContext.h
  4080. * src/HandshakeExtensionMessage.cc
  4081. * src/Makefile.am
  4082. * src/PeerListProcessor.h
  4083. * src/UTPexExtensionMessage.cc
  4084. * src/bencode.cc
  4085. * src/bencode.h
  4086. * test/AnnounceListTest.cc
  4087. * test/BDETest.cc: Added
  4088. * test/BencodeTest.cc
  4089. * test/DHTAnnouncePeerMessageTest.cc
  4090. * test/DHTAnnouncePeerReplyMessageTest.cc
  4091. * test/DHTFindNodeMessageTest.cc
  4092. * test/DHTFindNodeReplyMessageTest.cc
  4093. * test/DHTGetPeersMessageTest.cc
  4094. * test/DHTGetPeersReplyMessageTest.cc
  4095. * test/DHTMessageFactoryImplTest.cc
  4096. * test/DHTMessageTrackerTest.cc
  4097. * test/DHTPingMessageTest.cc
  4098. * test/DHTPingReplyMessageTest.cc
  4099. * test/Makefile.am
  4100. * test/MockDHTMessageFactory.h
  4101. * test/PeerListProcessorTest.cc
  4102. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Use url-list (web-seeding) only for single-file torrent. This is
  4104. basically the same behavior with Metalink file with torrent and
  4105. URIs.
  4106. * src/RequestGroup.cc
  4107. * src/DefaultBtContext.cc
  4108. * test/DefaultBtContextTest.cc
  4109. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Rewritten expr
  4111. * src/array_fun.h
  4112. * test/array_funTest.cc
  4113. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4115. * src/DefaultBtMessageDispatcher.cc
  4116. * src/a2algo.h
  4117. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Removed ExtendedMessagingAware. Instead of using inheritance,
  4119. added ExtensionMessageRegistry and it is passed to
  4120. DefaultExtensionMessageFactory.
  4121. * src/DefaultBtInteractive.cc
  4122. * src/DefaultBtInteractive.h
  4123. * src/DefaultExtensionMessageFactory.cc
  4124. * src/DefaultExtensionMessageFactory.h
  4125. * src/ExtendedMessagingAware.h: Removed.
  4126. * src/ExtensionMessageFactory.h
  4127. * src/ExtensionMessageRegistry.h: Added.
  4128. * src/Makefile.am
  4129. * src/PeerInteractionCommand.cc
  4130. * test/DefaultExtensionMessageFactoryTest.cc
  4131. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Fixed typo in log messages
  4133. * src/MSEHandshake.cc
  4134. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Fixed the bug that prevents torrent download from finishing. The
  4136. bug doesn't reveal for all torrents. The torrents affected this
  4137. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4138. of pieces.
  4139. * src/bitfield.h
  4140. * test/bitfieldTest.cc
  4141. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Code cleanup
  4143. * src/PeerListProcessor.h
  4144. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Removed RequestGroupAware
  4146. * src/AbstractCommand.cc
  4147. * src/AbstractCommand.h
  4148. * src/ActivePeerConnectionCommand.cc
  4149. * src/ActivePeerConnectionCommand.h
  4150. * src/DHTGetPeersCommand.cc
  4151. * src/DHTGetPeersCommand.h
  4152. * src/InitiatorMSEHandshakeCommand.cc
  4153. * src/InitiatorMSEHandshakeCommand.h
  4154. * src/Makefile.am
  4155. * src/PeerInitiateConnectionCommand.cc
  4156. * src/PeerInitiateConnectionCommand.h
  4157. * src/PeerInteractionCommand.cc
  4158. * src/PeerInteractionCommand.h
  4159. * src/RealtimeCommand.cc
  4160. * src/RealtimeCommand.h
  4161. * src/RequestGroupAware.cc: Removed
  4162. * src/RequestGroupAware.h: Removed
  4163. * src/SeedCheckCommand.cc
  4164. * src/SeedCheckCommand.h
  4165. * src/SleepCommand.cc
  4166. * src/TrackerWatcherCommand.cc
  4167. * src/TrackerWatcherCommand.h
  4168. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Rewritten PeerListProcessor
  4170. * src/PeerListProcessor.h
  4171. * src/CompactPeerListProcessor.h: Removed
  4172. * src/CompactPeerListProcessor.cc: Removed
  4173. * src/DelegatingPeerListProcessor.cc: Removed.
  4174. * src/DefaultBtAnnounce.cc
  4175. * src/Makefile.am
  4176. * src/UTPexExtensionMessage.cc
  4177. * src/DefaultPeerListProcessor.h: Removed.
  4178. * src/DefaultPeerListProcessor.cc: Removed.
  4179. * src/DelegatingPeerListProcessor.h: Removed.
  4180. * test/Makefile.am
  4181. * test/PeerListProcessorTest.cc
  4182. * test/DefaultPeerListProcessorTest.cc: Removed.
  4183. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Rewritten RequestGroupMan::calculateStat()
  4185. * src/RequestGroupMan.cc
  4186. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Removed unnecessary virtual destructor for Request class.
  4188. * src/Request.cc
  4189. * src/Request.h
  4190. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Avoid dynamic_pointer_cast.
  4192. * src/DHTGetPeersCommand.cc
  4193. * src/DHTGetPeersCommand.h
  4194. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4196. BtEvent.
  4197. * src/AbstractBtEventListener.h: Removed.
  4198. * src/AbstractBtMessage.cc
  4199. * src/AbstractBtMessage.h
  4200. * src/BtAbortOutstandingRequestEvent.h
  4201. * src/BtCancelSendingPieceEvent.h
  4202. * src/BtChokedEvent.h: Removed.
  4203. * src/BtChokingEvent.h
  4204. * src/BtEvent.h: Removed
  4205. * src/BtEventListener.h: Removed.
  4206. * src/BtMessage.h
  4207. * src/BtPieceMessage.cc
  4208. * src/BtPieceMessage.h
  4209. * src/BtRequestMessage.cc
  4210. * src/BtRequestMessage.h
  4211. * src/DefaultBtMessageDispatcher.cc
  4212. * src/Makefile.am
  4213. * src/a2functional.h
  4214. * test/BtPieceMessageTest.cc
  4215. * test/BtRequestMessageTest.cc
  4216. * test/DefaultBtMessageDispatcherTest.cc
  4217. * test/MockBtMessage.h
  4218. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Code cleanup
  4220. * src/RequestGroupMan.cc
  4221. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Code cleanup
  4223. * src/DownloadCommand.cc
  4224. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4226. byte.
  4227. * src/DownloadCommand.cc
  4228. * src/bitfield.h
  4229. * test/bitfieldTest.cc
  4230. Fixed the bug that causes infinite loop if broken web server
  4231. returns chunked response without last "0" chunk-size marker and
  4232. closes connection.
  4233. * src/DownloadCommand.cc
  4234. Instantiate properly configured HttpDownloadCommand for
  4235. non-resumable downlaods.
  4236. * src/HttpResponseCommand.cc
  4237. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Rewritten array operation functions.
  4239. * src/BitfieldMan.cc
  4240. * src/array_fun.h
  4241. * test/array_funTest.cc
  4242. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4243. Removed unused variable 'query'
  4244. * src/Request.cc
  4245. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4246. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4247. accidentally set to false in r1162.
  4248. * configure.ac
  4249. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Code cleanup
  4251. * src/BNode.cc
  4252. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4253. Increase prefixLength for the bucket which doesn't own local node
  4254. ID when splitting bucket.
  4255. * src/DHTBucket.cc
  4256. * test/DHTBucketTest.cc
  4257. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4258. * Release 1.3.1
  4259. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4260. Bump up version number to 1.3.1
  4261. * configure.ac
  4262. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Removed unused variable checkPoint. Also removed include directive
  4264. for TimeA2.h.
  4265. * src/SeedCheckCommand.h
  4266. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Fixed the bug that upload limit exceeds the value specified in
  4268. --seed-ratio option depending on the timing of the execution of
  4269. SeedCheckCommand.
  4270. * src/SeedCheckCommand.cc
  4271. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Fixed the bug that removed peer's session upload/download length
  4273. are counted twice in _cachedTransferStat before it is
  4274. re-calculated. This affected the calculation of shara ratio,
  4275. resulting aria2 wrongly determines that specified share ratio is
  4276. reached. Also fixed the typo in calculateStatFor function name.
  4277. * src/BtSetup.cc
  4278. * src/DefaultPeerStorage.cc
  4279. * src/ShareRatioSeedCriteria.h
  4280. * test/ShareRatioSeedCriteriaTest.cc
  4281. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. * Release 1.3.0
  4283. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4285. Nynorsk translations. Thanks to all translators.
  4286. * po/es.po
  4287. * po/ja.po
  4288. * po/nn.po
  4289. * po/ru.po
  4290. * po/uk.po
  4291. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Rewritten isInRange()
  4293. * src/DHTBucket.cc
  4294. * test/DHTBucketTest.cc
  4295. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Fixed typo
  4297. * doc/aria2c.1.txt
  4298. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4300. malloc/realloc is not used.
  4301. * src/configure.ac
  4302. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4304. char* bitfield instead of stl container for efficiency.
  4305. PieceSelector::select now takes this
  4306. bitfield. RarestPieceSelector::select now also performs
  4307. efficiently for this change. bitfield namespace is introduced and
  4308. it has several helper functions to handle basic bitfield
  4309. operations such as test, count set bits, etc.
  4310. * src/BitfieldMan.cc
  4311. * src/BitfieldMan.h
  4312. * src/DefaultBtRequestFactory.cc
  4313. * src/DefaultPieceStorage.cc
  4314. * src/DefaultPieceStorage.h
  4315. * src/LongestSequencePieceSelector.cc
  4316. * src/LongestSequencePieceSelector.h
  4317. * src/Makefile.am
  4318. * src/Piece.cc
  4319. * src/Piece.h
  4320. * src/PieceSelector.h
  4321. * src/RarestPieceSelector.cc
  4322. * src/RarestPieceSelector.h
  4323. * src/Util.cc
  4324. * src/Util.h
  4325. * src/bitfield.h
  4326. * test/BitfieldManTest.cc
  4327. * test/LongestSequencePieceSelectorTest.cc
  4328. * test/Makefile.am
  4329. * test/RarestPieceSelectorTest.cc
  4330. * test/UtilTest.cc
  4331. * test/bitfieldTest.cc
  4332. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Made accepted socket non-block.
  4334. * src/FtpNegotiationCommand.cc
  4335. * src/HttpListenCommand.cc
  4336. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4338. * src/AbstractSingleDiskAdaptor.cc
  4339. * src/DefaultPieceStorage.cc
  4340. * src/DiskAdaptor.h
  4341. * src/DiskAdaptor.h
  4342. * src/MultiFileAllocationIterator.cc
  4343. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Run
  4345. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4346. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4347. it doesn't need to be called every time when
  4348. DefaultBtInteractive::doInteractionProcessing() is called.
  4349. * src/DefaultBtInteractive.cc
  4350. * src/DefaultBtInteractive.h
  4351. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Documented 'falloc' in man page.
  4353. * doc/aria2c.1.txt
  4354. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Updated doc
  4356. * src/usage_text.h
  4357. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4359. allocation mode uses posix_fallocate() system call to allocate
  4360. file on disk. If you are using newer file systems such as ext4
  4361. (with extents support), btrfs or xfs, 'falloc' is your best
  4362. choice. It allocates large(few GiB) files almost instantly. Don't
  4363. use 'falloc' with legacy file systems such as ext3 because it
  4364. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4365. until allocation finishes. 'falloc' may not be available if your
  4366. system doesn't have posix_fallocate() system call.
  4367. * configure.ac
  4368. * src/AbstractDiskWriter.cc
  4369. * src/AbstractDiskWriter.h
  4370. * src/AbstractSingleDiskAdaptor.cc
  4371. * src/BinaryStream.h
  4372. * src/BtCheckIntegrityEntry.cc
  4373. * src/ByteArrayDiskWriter.h
  4374. * src/CheckIntegrityEntry.cc
  4375. * src/CheckIntegrityEntry.h
  4376. * src/DefaultPieceStorage.cc
  4377. * src/DiskAdaptor.cc
  4378. * src/DiskAdaptor.h
  4379. * src/DiskWriter.h
  4380. * src/FallocFileAllocationIterator.cc
  4381. * src/FallocFileAllocationIterator.h
  4382. * src/FileAllocationEntry.cc
  4383. * src/FileAllocationEntry.h
  4384. * src/Makefile.am
  4385. * src/MultiFileAllocationIterator.cc
  4386. * src/MultiFileAllocationIterator.h
  4387. * src/OptionHandlerFactory.cc
  4388. * src/RequestGroup.cc
  4389. * src/StreamCheckIntegrityEntry.cc
  4390. * src/prefs.cc
  4391. * src/prefs.h
  4392. * src/usage_text.h
  4393. * test/FallocFileAllocationIteratorTest.cc
  4394. * test/Makefile.am
  4395. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Removed duplicate enableDirectIO() call.
  4397. * src/MultiFileAllocationIterator.cc
  4398. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4399. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4400. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4401. cost of std::rotate().
  4402. * src/RarestPieceSelector.cc
  4403. * src/RarestPieceSelector.h
  4404. * test/RarestPieceSelectorTest.cc
  4405. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4406. Updated usage doc for --bt-tracker-interval option.
  4407. * src/usage_text.h
  4408. * doc/aria2c.1.txt
  4409. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Documented --bt-tracker-interval option in man page.
  4411. * doc/aria2c.1.txt
  4412. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Added an option to specify the interval between tracker requests.
  4414. If non-zero value is specified, aria2 uses it and ignores the
  4415. interval value in the response of tracker. If zero is specified,
  4416. aria2 determines the inteval value based on the tarcker response
  4417. and download progress.
  4418. * src/DefaultBtAnnounce.cc
  4419. * src/DefaultBtAnnounce.h
  4420. * src/OptionHandlerFactory.cc
  4421. * src/RequestGroup.cc
  4422. * src/prefs.cc
  4423. * src/prefs.h
  4424. * src/usage_text.h
  4425. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Added operator+=, operator-=, operator-
  4427. * src/TransferStat.cc
  4428. * src/TransferStat.h
  4429. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Refactored RarestPieceSelector to reduce CPU load, especially for
  4431. addPieceStats.
  4432. * src/RarestPieceSelector.cc
  4433. * src/RarestPieceSelector.h
  4434. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4436. getAllMissingBlockIndexes to reduce a call to
  4437. array_function_base::operator[].
  4438. * src/BitfieldMan.cc
  4439. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Cached TransferStat/download speed to avoid to sum them up in each
  4441. call.
  4442. * src/DefaultPeerStorage.cc
  4443. * src/DefaultPeerStorage.h
  4444. * src/SegmentMan.cc
  4445. * src/SegmentMan.h
  4446. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Typedefed cuid_t as int32_t in Command.h
  4448. * src/CUIDCounter.h
  4449. * src/Command.cc
  4450. * src/Command.h
  4451. * src/DownloadEngine.cc
  4452. * src/DownloadEngine.h
  4453. * src/PeerStat.h
  4454. * src/SegmentMan.cc
  4455. * src/SegmentMan.h
  4456. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Reduced the number of calls to PeerStorage::calculateStat() and
  4458. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4459. transfer rate.
  4460. * src/DefaultBtInteractive.cc
  4461. * src/DefaultBtMessageDispatcher.cc
  4462. * src/DefaultPeerStorage.cc
  4463. * src/DefaultPeerStorage.h
  4464. * src/DownloadCommand.cc
  4465. * src/DownloadEngine.cc
  4466. * src/PeerStorage.h
  4467. * src/SegmentMan.cc
  4468. * src/SegmentMan.h
  4469. * test/MockPeerStorage.h
  4470. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Prepended _dir+"/" after joining path elements in torrent file.
  4472. * src/DefaultBtContext.cc
  4473. * test/DefaultBtContextTest.cc
  4474. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Added missing IndexBtMessageValidator.h
  4476. * src/Makefile.am
  4477. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4479. Chinese translations. Thank you for contributing our project.
  4480. * po/id.po
  4481. * po/it.po
  4482. * po/ru.po
  4483. * po/uk.po
  4484. * po/zh_CN.po
  4485. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4486. Updated README
  4487. * README
  4488. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Bump up version number to 1.3.0
  4490. * configure.ac
  4491. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Updated doc
  4493. * src/DefaultBtContext.h
  4494. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Slice/joinPath for name of single torrent.
  4496. * src/DefaultBtContext.cc
  4497. * test/DefaultBtContextTest.cc
  4498. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Updated man page: Documented --dry-run and --index-out
  4500. options. Changed the default value of --uri-selector and
  4501. --http-auth-challenge options. Removed --direct-file-mapping
  4502. option. Added example for --index-out
  4503. * doc/aria2c.1.txt
  4504. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Updated TEXT_DRY_RUN
  4506. * src/usage_text.h
  4507. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Changed the default value of --uri-selector option from 'inorder'
  4509. to 'feedback'
  4510. * src/OptionHandlerFactory.cc
  4511. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Included current URI in exception message.
  4513. * src/AbstractCommand.cc
  4514. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Renamed ServerStatURISelector as FeedbackURISelector.
  4516. * src/FeedbackURISelector.cc
  4517. * src/FeedbackURISelector.h
  4518. * src/Makefile.am
  4519. * src/RequestGroupMan.cc
  4520. * src/ServerStatURISelector.cc
  4521. * src/ServerStatURISelector.h
  4522. * test/FeedbackURISelectorTest.cc
  4523. * test/Makefile.am
  4524. * test/ServerStatURISelectorTest.cc
  4525. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4527. all URIs are tested and their timeout is not reached.
  4528. * src/AdaptiveURISelector.cc
  4529. * src/AdaptiveURISelector.h
  4530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Changed the default value of --http-auth-challenge option to false.
  4532. * src/OptionHandlerFactory.cc
  4533. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Reuse URIs when all unused URIs run out.
  4535. * src/OptionHandlerFactory.cc
  4536. * src/RequestGroup.cc
  4537. * src/prefs.cc
  4538. * src/prefs.h
  4539. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4541. and BtRejectMessage are derived from RangeBtMessage class.
  4542. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4543. derived from IndexBtMessage class. BtChokeMessage,
  4544. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4545. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4546. ZeroBtMessage class.
  4547. * src/AbstractBtMessage.cc
  4548. * src/AbstractBtMessage.h
  4549. * src/BtAllowedFastMessage.cc
  4550. * src/BtAllowedFastMessage.h
  4551. * src/BtAllowedFastMessageValidator.h: Removed
  4552. * src/BtBitfieldMessage.cc
  4553. * src/BtBitfieldMessage.h
  4554. * src/BtCancelMessage.cc
  4555. * src/BtCancelMessage.h
  4556. * src/BtCancelMessageValidator.h: Removed
  4557. * src/BtChokeMessage.cc
  4558. * src/BtChokeMessage.h
  4559. * src/BtExtendedMessage.cc
  4560. * src/BtExtendedMessage.h
  4561. * src/BtHandshakeMessage.cc
  4562. * src/BtHandshakeMessage.h
  4563. * src/BtHaveAllMessage.cc
  4564. * src/BtHaveAllMessage.h
  4565. * src/BtHaveMessage.cc
  4566. * src/BtHaveMessage.h
  4567. * src/BtHaveMessageValidator.h: Removed
  4568. * src/BtHaveNoneMessage.cc
  4569. * src/BtHaveNoneMessage.h
  4570. * src/BtInterestedMessage.cc
  4571. * src/BtInterestedMessage.h
  4572. * src/BtKeepAliveMessage.cc
  4573. * src/BtKeepAliveMessage.h
  4574. * src/BtNotInterestedMessage.cc
  4575. * src/BtNotInterestedMessage.h
  4576. * src/BtPieceMessage.cc
  4577. * src/BtPieceMessage.h
  4578. * src/BtPortMessage.cc
  4579. * src/BtPortMessage.h
  4580. * src/BtRejectMessage.cc
  4581. * src/BtRejectMessage.h
  4582. * src/BtRejectMessageValidator.h: Removed
  4583. * src/BtRequestMessage.cc
  4584. * src/BtRequestMessage.h
  4585. * src/BtRequestMessageValidator.h: Removed
  4586. * src/BtSuggestPieceMessage.cc
  4587. * src/BtSuggestPieceMessage.h
  4588. * src/BtSuggestPieceMessageValidator.h: Removed
  4589. * src/BtUnchokeMessage.cc
  4590. * src/BtUnchokeMessage.h
  4591. * src/DefaultBtMessageFactory.cc
  4592. * src/IndexBtMessage.cc
  4593. * src/IndexBtMessage.h
  4594. * src/IndexBtMessageValidator.h
  4595. * src/Makefile.am
  4596. * src/PeerMessageUtil.cc
  4597. * src/PeerMessageUtil.h
  4598. * src/RangeBtMessage.cc
  4599. * src/RangeBtMessage.h
  4600. * src/RangeBtMessageValidator.h
  4601. * src/SimpleBtMessage.cc
  4602. * src/SimpleBtMessage.h
  4603. * src/ZeroBtMessage.cc
  4604. * src/ZeroBtMessage.h
  4605. * test/BtRequestMessageTest.cc
  4606. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Reverted usage_text.h to r1093 to avoid to lose translated
  4608. messages.
  4609. * src/usage_text.h
  4610. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4612. declared as non-const previously is now const and defined in class
  4613. definition.
  4614. * src/AbstractBtMessage.cc
  4615. * src/AbstractBtMessage.h
  4616. * src/BtAllowedFastMessage.cc
  4617. * src/BtAllowedFastMessage.h
  4618. * src/BtBitfieldMessage.h
  4619. * src/BtCancelMessage.cc
  4620. * src/BtCancelMessage.h
  4621. * src/BtChokeMessage.cc
  4622. * src/BtChokeMessage.h
  4623. * src/BtExtendedMessage.cc
  4624. * src/BtExtendedMessage.h
  4625. * src/BtHandshakeMessage.cc
  4626. * src/BtHandshakeMessage.h
  4627. * src/BtHaveAllMessage.cc
  4628. * src/BtHaveAllMessage.h
  4629. * src/BtHaveMessage.cc
  4630. * src/BtHaveMessage.h
  4631. * src/BtHaveNoneMessage.cc
  4632. * src/BtHaveNoneMessage.h
  4633. * src/BtInterestedMessage.cc
  4634. * src/BtInterestedMessage.h
  4635. * src/BtKeepAliveMessage.cc
  4636. * src/BtKeepAliveMessage.h
  4637. * src/BtMessage.h
  4638. * src/BtNotInterestedMessage.cc
  4639. * src/BtNotInterestedMessage.h
  4640. * src/BtPieceMessage.h
  4641. * src/BtPortMessage.cc
  4642. * src/BtPortMessage.h
  4643. * src/BtRejectMessage.cc
  4644. * src/BtRejectMessage.h
  4645. * src/BtRequestMessage.cc
  4646. * src/BtRequestMessage.h
  4647. * src/BtSuggestPieceMessage.cc
  4648. * src/BtSuggestPieceMessage.h
  4649. * src/BtUnchokeMessage.cc
  4650. * src/BtUnchokeMessage.h
  4651. * src/SimpleBtMessage.cc
  4652. * src/SimpleBtMessage.h
  4653. * test/MockBtMessage.h
  4654. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Use FileEntry::exists()
  4656. * src/MultiDiskAdaptor.cc
  4657. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Added exists()
  4659. * src/FileEntry.cc
  4660. * src/FileEntry.h
  4661. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Added missing prefix dir.
  4663. * src/download_helper.cc
  4664. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4665. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4666. * src/CopyDiskAdaptor.cc: Removed
  4667. * src/CopyDiskAdaptor.h: Removed
  4668. * src/DefaultPieceStorage.cc
  4669. * src/Makefile.am
  4670. * src/OptionHandlerFactory.cc
  4671. * src/prefs.cc
  4672. * src/prefs.h
  4673. * src/usage_text.h
  4674. * test/CopyDiskAdaptorTest.cc: Removed
  4675. * test/Makefile.am
  4676. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Rewritten isSameFileBeingDownloaded()
  4678. * src/RequestGroupMan.cc
  4679. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Removed getName() from DownloadContext. getName() is declared in
  4681. BtContext.
  4682. * src/BtContext.h
  4683. * src/DownloadContext.h
  4684. * src/SingleFileDownloadContext.cc
  4685. * src/SingleFileDownloadContext.h
  4686. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4687. in AbstractSingleDiskAdaptor.
  4688. * src/AbstractSingleDiskAdaptor.h
  4689. * src/DiskAdaptor.h
  4690. * src/MultiDiskAdaptor.h
  4691. * src/RequestGroup.cc
  4692. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4693. MultiDiskAdaptor.
  4694. * src/DefaultPieceStorage.cc
  4695. * src/MultiDiskAdaptor.cc
  4696. * src/MultiDiskAdaptor.h
  4697. * test/MultiDiskAdaptorTest.cc
  4698. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. FileEntry::getPath() contains store(top level) directory to
  4700. simplify path handling operation. In the previous implementation,
  4701. store directory is concatenated to FileEntry::getPath() in
  4702. DownloadContext.
  4703. * src/BtDependency.cc
  4704. * src/BtPostDownloadHandler.cc
  4705. * src/CopyDiskAdaptor.cc
  4706. * src/DefaultBtContext.cc
  4707. * src/DirectDiskAdaptor.cc
  4708. * src/FileEntry.cc
  4709. * src/FileEntry.h
  4710. * src/FtpNegotiationCommand.cc
  4711. * src/HttpResponse.cc
  4712. * src/HttpResponseCommand.cc
  4713. * src/Metalink2RequestGroup.cc
  4714. * src/MultiDiskAdaptor.cc
  4715. * src/MultiDiskAdaptor.h
  4716. * src/MultiFileAllocationIterator.cc
  4717. * src/RequestGroup.cc
  4718. * src/SingleFileDownloadContext.cc
  4719. * src/SingleFileDownloadContext.h
  4720. * src/download_helper.cc
  4721. * test/BtDependencyTest.cc
  4722. * test/CopyDiskAdaptorTest.cc
  4723. * test/DefaultBtContextTest.cc
  4724. * test/DefaultBtProgressInfoFileTest.cc
  4725. * test/DirectDiskAdaptorTest.cc
  4726. * test/DownloadHelperTest.cc
  4727. * test/FileEntryTest.cc
  4728. * test/MultiDiskAdaptorTest.cc
  4729. * test/MultiFileAllocationIteratorTest.cc
  4730. * test/RequestGroupTest.cc
  4731. * test/SingleFileDownloadContextTest.cc
  4732. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Fixed compiler warning
  4734. * src/download_helper.cc
  4735. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Throw exception if same infohash torrent is now downloading.
  4737. * src/RequestGroup.cc
  4738. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added --dry-run option. In this mode, aria2 just checks whether
  4740. the remote file is available and doesn't download data. This
  4741. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4742. are canceled in this mode.
  4743. * src/FtpNegotiationCommand.cc
  4744. * src/HttpResponseCommand.cc
  4745. * src/HttpResponseCommand.h
  4746. * src/OptionHandlerFactory.cc
  4747. * src/RequestGroup.cc
  4748. * src/RequestGroupMan.cc
  4749. * src/prefs.cc
  4750. * src/prefs.h
  4751. * src/usage_text.h
  4752. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4753. Fixed compiler waring
  4754. * test/UriListParserTest.cc
  4755. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4756. Parse options in -i list using OptionParser.
  4757. * src/UriListParser.cc
  4758. * src/UriListParser.h
  4759. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4760. Don't reset URI in retry to avoid additional round trips because
  4761. of redirects.
  4762. * src/AbstractCommand.cc
  4763. * src/OptionHandlerFactory.cc
  4764. * src/prefs.cc
  4765. * src/prefs.h
  4766. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Declared hide() in OptionHandler.
  4768. * src/NameMatchOptionHandler.h
  4769. * src/OptionHandler.h
  4770. * src/OptionHandlerImpl.h
  4771. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Updated doc
  4773. * src/Peer.h
  4774. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4775. Added log message in setStatusInternal()
  4776. * src/ServerStat.cc
  4777. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4779. effectively exclude failed server.
  4780. * src/AbstractCommand.cc
  4781. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Added --index-out option to specify each file path for torrent.
  4783. Here index shown in --show-files option is used to specify which
  4784. file path should be altered. For example, to change the file path
  4785. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4786. option multiple times: --index-out=1=aria2.tar.bz2
  4787. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4788. available. This option can be specified in -i list.
  4789. * src/DefaultBtContext.cc
  4790. * src/DefaultBtContext.h
  4791. * src/MultiDiskAdaptor.cc
  4792. * src/MultiDiskAdaptor.h
  4793. * src/MultiFileAllocationIterator.cc
  4794. * src/OptionHandlerFactory.cc
  4795. * src/OptionHandlerImpl.h
  4796. * src/Util.cc
  4797. * src/Util.h
  4798. * src/download_helper.cc
  4799. * src/prefs.cc
  4800. * src/prefs.h
  4801. * src/usage_text.h
  4802. * test/DefaultBtContextTest.cc
  4803. * test/MultiDiskAdaptorTest.cc
  4804. * test/MultiFileAllocationIteratorTest.cc
  4805. * test/UtilTest.cc
  4806. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Use Util::pathJoin()
  4808. * src/MetalinkParserController.cc
  4809. * test/test.xml
  4810. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4811. Use Util::pathJoin()
  4812. * src/DefaultBtContext.cc
  4813. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Added Util::pathJoin()
  4815. * src/Util.h
  4816. * test/UtilTest.cc
  4817. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4818. Applied basename function to remove directory element in
  4819. content-disposition value.
  4820. Return empty string if content-disposition value is ".." or ".".
  4821. * src/Util.cc
  4822. * test/UtilTest.cc
  4823. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Added --max-overall-download-limit in man page.
  4825. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4826. * doc/aria2c.1.txt
  4827. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Added --max-overall-download-limit option. Now --max-upload-limit
  4829. option is not ignored when --max-overall-upload-limit option has
  4830. non-zero value. aria2 checks download(upload) speed in the order:
  4831. first checks overall speed limit and if it is not exceeded, then
  4832. checks speed limit per download. Thus you can specify both
  4833. value. For example, set --max-overall-download-limit=1M and
  4834. --max-download-limit=500K to prevent from one download from eating
  4835. all overall speed limit.
  4836. * src/DefaultBtInteractive.cc
  4837. * src/DefaultBtInteractive.h
  4838. * src/DefaultBtMessageDispatcher.cc
  4839. * src/DefaultBtMessageDispatcher.h
  4840. * src/DownloadCommand.cc
  4841. * src/DownloadCommand.h
  4842. * src/FtpNegotiationCommand.cc
  4843. * src/HttpResponseCommand.cc
  4844. * src/OptionHandlerFactory.cc
  4845. * src/PeerInteractionCommand.cc
  4846. * src/RequestGroup.cc
  4847. * src/RequestGroup.h
  4848. * src/RequestGroupMan.cc
  4849. * src/RequestGroupMan.h
  4850. * src/prefs.cc
  4851. * src/prefs.h
  4852. * src/usage_text.h
  4853. * test/DefaultBtMessageDispatcherTest.cc
  4854. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4855. Documented select-file option in Input File section.
  4856. Documented --http-auth-challenge option.
  4857. * doc/aria2c.1.txt
  4858. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4859. Now select-file can be specified in the uri list(-i list).
  4860. * src/BtContext.cc
  4861. * src/BtContext.h
  4862. * src/RequestGroup.cc
  4863. * src/Sequence.h
  4864. * src/download_helper.cc
  4865. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4866. Made the upper value of --max-concurrent-downloads options unlimited.
  4867. * src/OptionHandlerFactory.cc
  4868. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4869. Fixed the bug that disk writer is not created even if it shares
  4870. same piece with the preceding file if the length of previous file
  4871. is 0.
  4872. * src/MultiDiskAdaptor.cc
  4873. * test/MultiDiskAdaptorTest.cc
  4874. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. In BitTorrent, Open files in read-only mode for hash check. After
  4876. that, re-open file in read/write mode only when the download is
  4877. not finished.
  4878. * src/AbstractDiskWriter.cc
  4879. * src/AbstractDiskWriter.h
  4880. * src/AbstractSingleDiskAdaptor.cc
  4881. * src/AbstractSingleDiskAdaptor.h
  4882. * src/BtCheckIntegrityEntry.cc
  4883. * src/DiskAdaptor.h
  4884. * src/DiskWriter.h
  4885. * src/MultiDiskAdaptor.cc
  4886. * src/MultiDiskAdaptor.h
  4887. * src/RequestGroup.cc
  4888. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Added --http-auth-challenge option. If it is set to true(by
  4890. default), aria2 sends HTTP authorization header only when it is
  4891. requested by the server. If false is set, then authorization
  4892. header is always sent to the server. This is useful for servers
  4893. that don't respond 401 code when authentication is required.
  4894. There is an exception: if username and password are embedded in
  4895. URI, authorization header is always sent to the server regardless
  4896. of this option.
  4897. * src/AuthConfigFactory.cc
  4898. * src/HttpSkipResponseCommand.cc
  4899. * src/OptionHandlerFactory.cc
  4900. * src/prefs.cc
  4901. * src/prefs.h
  4902. * src/usage_text.h
  4903. * test/AuthConfigFactoryTest.cc
  4904. * test/HttpRequestTest.cc
  4905. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. * Release 1.2.0
  4907. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4909. Thanks to all translators.
  4910. * po/es.po
  4911. * po/ja.po
  4912. * po/ru.po
  4913. * po/uk.po
  4914. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Call deleteSocketForReadCheck() before socket is closed.
  4916. * src/HttpListenCommand.cc
  4917. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Defined virtual destructor for BObject.
  4919. * src/bencode.h
  4920. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Rewritten BDE to make it efficient.
  4922. * src/bencode.cc
  4923. * src/bencode.h
  4924. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Removed function throw list.
  4926. * src/bencode.cc
  4927. * src/bencode.h
  4928. * test/BencodeTest.cc
  4929. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Enclosed all URLs in double quotes in command-line examples.
  4931. * doc/aria2c.1.txt
  4932. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Updated reference/see also section.
  4934. * README
  4935. * doc/aria2c.1.txt
  4936. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Reorganized man page based on man man-pages.
  4938. * doc/aria2c.1.txt
  4939. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4941. because same documents are available in man page. Added
  4942. References section.
  4943. * README
  4944. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4945. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4946. PERFORMANCE PROFILE section.
  4947. * doc/aria2c.1.txt
  4948. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4949. Rewritten the section for configuration file.
  4950. * README
  4951. * doc/aria2c.1.txt
  4952. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Fixed the segmentation fault during execution of choking algorithm
  4954. in leecher state because of broken compare operator
  4955. implementation.
  4956. * src/BtLeecherStateChoke.cc
  4957. * src/BtLeecherStateChoke.h
  4958. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. Open file in binary mode.
  4960. * src/CookieStorage.cc
  4961. * src/DHTSetup.cc
  4962. * src/DHTUtil.cc
  4963. * src/Netrc.cc
  4964. * src/NsCookieParser.cc
  4965. * src/ProtocolDetector.cc
  4966. * src/RequestGroupMan.cc
  4967. * src/Signature.cc
  4968. * src/bencode.cc
  4969. * src/download_helper.cc
  4970. * src/option_processing.cc
  4971. * test/CookieParserTest.cc
  4972. * test/DefaultBtProgressInfoFileTest.cc
  4973. * test/FileTest.cc
  4974. * test/GZipDecoderTest.cc
  4975. * test/RequestGroupManTest.cc
  4976. * test/SignatureTest.cc
  4977. * test/SingleFileAllocationIteratorTest.cc
  4978. * test/UriListParserTest.cc
  4979. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Removed operator[] because it is ambiguous with built-in []
  4981. operator.
  4982. * src/array_fun.h
  4983. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Fixed compile error
  4985. * src/OptionParser.cc
  4986. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Added missing call to arrayWrapperConst
  4988. * test/array_funTest.cc
  4989. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Use array_wrapper instead of array_ptr.
  4991. * src/DHTRoutingTableDeserializer.cc
  4992. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4994. * src/array_fun.h
  4995. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4996. Added array_wrapper template.
  4997. * src/array_fun.h
  4998. * test/array_funTest.cc
  4999. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. Use operator T* of array_ptr.
  5001. * src/OptionParser.cc
  5002. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5003. Use localhost instead of 127.0.0.1
  5004. * test/FtpConnectionTest.cc
  5005. * test/MSEHandshakeTest.cc
  5006. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Added operator T*
  5008. * src/array_fun.h
  5009. * test/array_funTest.cc
  5010. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. Use dynamically allocated char array to detect memory access
  5012. violation.
  5013. * src/DHTRoutingTableDeserializer.cc
  5014. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5015. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5016. defined.
  5017. * src/PeerMessageUtil.cc
  5018. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5019. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5020. * configure.ac
  5021. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Added a check to see struct sockaddr_in has sin_len member.
  5023. * configure.ac
  5024. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5025. Fixed buffer overrun.
  5026. * src/DHTRoutingTableDeserializer.cc
  5027. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Added LL for long long int constant.
  5029. * test/FtpConnectionTest.cc
  5030. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Casted to unsigned int to suppress compiler warning on netbsd.
  5032. * src/BtRuntime.h
  5033. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5035. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5036. type time_t.
  5037. * src/SimpleLogger.cc
  5038. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Added test for FtpConnection::receiveSizeResponse().
  5040. * test/FtpConnectionTest.cc
  5041. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Fix epoll error on the old kernel 2.6.8 or ealier.
  5043. * src/EpollEventPoll.cc
  5044. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5045. Use Util::parseLLInt instead of sscanf for portability. The
  5046. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5047. * src/FtpConnection.cc
  5048. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5050. block. It should not filter anything.
  5051. * src/BitfieldMan.cc
  5052. * src/ConsoleStatCalc.cc
  5053. * test/BitfieldManTest.cc
  5054. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Fixed the bug that the boolean options that don't take arguments
  5056. don't work.
  5057. * src/OptionHandlerImpl.h
  5058. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Fixed broken selected file BitTorrent download.
  5060. * src/MultiDiskAdaptor.cc
  5061. * test/MultiDiskAdaptorTest.cc
  5062. * test/MultiFileAllocationIteratorTest.cc
  5063. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Fixed #define guard for EpollEventPoll
  5065. * src/EpollEventPoll.h
  5066. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Wait 2 seconds. 1 second is sometimes not enough.
  5068. * test/TimeSeedCriteriaTest.cc
  5069. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5070. Use localhost instead of 127.0.0.1.
  5071. * test/DHTConnectionImplTest.cc
  5072. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Suppressed compiler warning.
  5074. * src/AdaptiveURISelector.cc
  5075. * src/DefaultPieceStorage.cc
  5076. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Defined virtual destructor.
  5078. * src/MetalinkParserState.h
  5079. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Give NULL for second argument of getaddrinfo instead of "0".
  5081. * src/NameResolver.cc
  5082. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5084. included strptime doesn't parse data for this format.
  5085. * src/FtpConnection.cc
  5086. * test/FtpConnectionTest.cc
  5087. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Removed tests giving -1 for unsigned argument.
  5089. * test/SingleFileDownloadContextTest.cc
  5090. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Don't use sha256 in tests because it might not be supported by the
  5092. SSL library.
  5093. * test/MetalinkProcessorTest.cc
  5094. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Removed tests giving -1 for unsigned argument.
  5096. * test/AlphaNumberDecoratorTest
  5097. * test/BitfieldManTest.cc
  5098. * test/DefaultBtContextTest.cc
  5099. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Fixed compile error without libcares when epoll is available.
  5101. * src/EpollEventPoll.cc
  5102. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5103. Included fstream instead of iostream.
  5104. * test/SignatureTest.cc
  5105. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Removed #include <algorithm>
  5107. * test/RequestGroupTest.cc
  5108. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5109. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5110. using RequestGroup::extractURIResult().
  5111. * src/AdaptiveURISelector.cc
  5112. * src/RequestGroup.cc
  5113. * src/RequestGroup.h
  5114. * test/RequestGroupTest.cc
  5115. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5116. Added tests for array_ptr.
  5117. * test/array_funTest.cc
  5118. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Don't send ip parameter to a tracker if ip parameter is empty
  5120. string.
  5121. * src/DefaultBtAnnounce.cc
  5122. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Adjusted line feed.
  5124. * src/version_usage.cc
  5125. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Print tags, possible values when OptionHandlerException is caught.
  5127. * src/option_processing.cc
  5128. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5129. Changed the message for FatalException.
  5130. * src/OptionParser.cc
  5131. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Documented --bt-external-ip option in man page. Updated man pages
  5133. for --proxy-method option.
  5134. * doc/aria2c.1.txt
  5135. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Use GET method for FTP via HTTP proxy.
  5137. * src/FtpInitiateConnectionCommand.cc
  5138. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Changed the default value of --proxy-method option from 'tunnel'
  5140. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5141. option.
  5142. * src/AbstractCommand.cc
  5143. * src/AbstractCommand.h
  5144. * src/FtpInitiateConnectionCommand.cc
  5145. * src/HttpDownloadCommand.cc
  5146. * src/HttpInitiateConnectionCommand.cc
  5147. * src/HttpInitiateConnectionCommand.h
  5148. * src/OptionHandlerFactory.cc
  5149. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Initialized _logger
  5151. * src/SelectEventPoll.cc
  5152. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Defined a copy constructor for the same type.
  5154. * src/SharedHandle.h
  5155. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Added OptionParser::parseArg() which internally uses getopt_long
  5157. to parse command-line options. All command-line options are now
  5158. configured by OptionHandler. No manual editing of struct option*
  5159. is required any more.
  5160. * src/NameMatchOptionHandler.h
  5161. * src/OptionHandler.h
  5162. * src/OptionHandlerFactory.cc
  5163. * src/OptionHandlerImpl.h
  5164. * src/OptionParser.cc
  5165. * src/OptionParser.h
  5166. * src/array_fun.h
  5167. * src/main.cc
  5168. * src/option_processing.cc
  5169. * test/OptionHandlerTest.cc
  5170. * test/OptionParserTest.cc
  5171. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Fixed configure error with --disable-epoll
  5173. * configure.ac
  5174. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Fixed compile error when HAVE_EPOLL is not defined.
  5176. Fixed linker error on bigendian systems.
  5177. * src/SocketCore.cc
  5178. * src/SocketCore.h
  5179. * test/DefaultBtProgressInfoFileTest.cc
  5180. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. Added --bt-external-ip option. You can specify the external IP
  5182. address to report to a BitTorrent tracker. Although this function
  5183. is named 'external', it can accept any kind of IP addresses.
  5184. * src/DefaultBtAnnounce.cc
  5185. * src/OptionHandlerFactory.cc
  5186. * src/option_processing.cc
  5187. * src/prefs.cc
  5188. * src/prefs.h
  5189. * src/usage_text.h
  5190. * test/DefaultBtAnnounceTest.cc
  5191. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Extracted the algorithm to find the longest incremental sequence
  5193. as max_sequence template.
  5194. * src/LongestSequencePieceSelector.cc
  5195. * src/a2algo.h
  5196. * test/Makefile.am
  5197. * test/a2algoTest.cc
  5198. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5200. * src/usage_text.h
  5201. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. Updated doc for --uri-selector, --http-server-listen-port and
  5203. --enable-http-server option. Documented --event-poll option.
  5204. * doc/aria2c.1.txt
  5205. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Updated doc for --enable-http-server.
  5207. * src/usage_text.h
  5208. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Documented --http-server-listen-port and --enable-http-server in
  5210. man page.
  5211. * doc/aria2c.1.txt
  5212. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5214. translations. Thanks to all translators.
  5215. * po/es.po
  5216. * po/id.po
  5217. * po/it.po
  5218. * po/ru.po
  5219. * po/uk.po
  5220. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Bump up version number to 1.2.0
  5222. * configure.ac
  5223. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. BtContext::getAnnounceTiers() now returns const reference.
  5225. * src/BtContext.h
  5226. * src/DefaultBtContext.cc
  5227. * src/DefaultBtContext.h
  5228. * test/MockBtContext.h
  5229. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Change the number of retries for tracker request based on the
  5231. number of available tracker in a torrent file.
  5232. * src/TrackerWatcherCommand.cc
  5233. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Added _maxTries property to RequestGroup and assign the option
  5235. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5236. RequestGroup::getMaxTries() instead of
  5237. Option::getAsInt(PREF_MAX_TRIES).
  5238. * src/AbstractCommand.cc
  5239. * src/RequestGroup.cc
  5240. * src/RequestGroup.h
  5241. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5243. Mandriva. I modified the patch: make RequestGroup have the
  5244. timeout value and AdaptiveURISelector directly modifies that
  5245. value.
  5246. * src/AbstractCommand.cc
  5247. * src/AdaptiveURISelector.cc
  5248. * src/AdaptiveURISelector.h
  5249. * src/FtpNegotiationCommand.cc
  5250. * src/RequestGroup.cc
  5251. * src/RequestGroup.h
  5252. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Fixed compiler warning
  5254. * test/IteratableChecksumValidatorTest.cc
  5255. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5257. integrated downloads. This PieceSelector subclass finds the
  5258. longest continuous sequence in the available missing pieces and
  5259. selects the last index of such sequence. This makes HTTP/FTP
  5260. connections less interrupted by the pieces obtained by BitTorrent
  5261. peers.
  5262. * src/DefaultPieceStorage.cc
  5263. * src/DefaultPieceStorage.h
  5264. * src/LongestSequencePieceSelector.cc
  5265. * src/LongestSequencePieceSelector.h
  5266. * src/Makefile.am
  5267. * src/PieceSelector.h
  5268. * src/RarestPieceSelector.h
  5269. * src/RequestGroup.cc
  5270. * test/BtDependencyTest.cc
  5271. * test/DefaultPieceStorageTest.cc
  5272. * test/IteratableChecksumValidatorTest.cc
  5273. * test/LongestSequencePieceSelectorTest.cc
  5274. * test/Makefile.am
  5275. * test/SegmentManTest.cc
  5276. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Fixed the bug that the average speed is wrong in
  5278. http/ftp/BitTorrent integrated download. Only the download bytes
  5279. in BitTorrent were considered.
  5280. * src/RequestGroup.cc
  5281. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. Choose port for BitTorrent/DHT randomly from the specified range.
  5283. * src/DHTConnectionImpl.cc
  5284. * src/PeerListenCommand.cc
  5285. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Send HTTP Authorization header only if it is requested by the
  5287. server(response 401). There are some exceptions. The authorization
  5288. header for proxy is always sent if it is available without request
  5289. by the server. If username/password is specified in the URI, it
  5290. is immediately sent to the server without request by the server.
  5291. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5292. SharedHandle<AuthConfig>().
  5293. NetrcAuthResolver::resolveAuthConfig() returns
  5294. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5295. * src/AbstractAuthResolver.cc
  5296. * src/AbstractProxyRequestCommand.cc
  5297. * src/AuthConfigFactory.cc
  5298. * src/AuthConfigFactory.h
  5299. * src/HttpConnection.cc
  5300. * src/HttpRequest.cc
  5301. * src/HttpRequest.h
  5302. * src/HttpResponse.cc
  5303. * src/HttpResponseCommand.cc
  5304. * src/HttpSkipResponseCommand.cc
  5305. * test/AuthConfigFactoryTest.cc
  5306. * test/HttpRequestTest.cc
  5307. * test/HttpResponseTest.cc
  5308. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Remove leading "--" from help keyword and a substring after "="
  5310. from help keyword, so that one can query options by '-h--max-' or
  5311. '-hmax-peers=10'.
  5312. * src/option_processing.cc
  5313. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Rewritten PStringVisitor and its implementation.
  5315. * src/PStringBuildVisitor.cc
  5316. * src/PStringBuildVisitor.h
  5317. * src/PStringDatum.h
  5318. * src/PStringNumLoop.h
  5319. * src/PStringSegment.cc
  5320. * src/PStringSegment.h
  5321. * src/PStringSelect.h
  5322. * src/PStringVisitor.h
  5323. * src/download_helper.cc
  5324. * test/PStringBuildVisitorTest.cc
  5325. * test/ParameterizedStringParserTest.cc
  5326. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Persist connection between the built-in HTTP server and a client
  5328. if a client supports keep-alive. Fixed the bug that aria2 exits
  5329. when the HTTP server receives EOF from a client.
  5330. * src/HttpServer.cc
  5331. * src/HttpServer.h
  5332. * src/HttpServerCommand.cc
  5333. * src/HttpServerCommand.h
  5334. * src/HttpServerResponseCommand.cc
  5335. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5336. Added experimental built-in HTTP server. Currently, when a client
  5337. accesses to the server, it responds with the current download
  5338. progress. By default, it is disabled. To enable the server, give
  5339. --enable-http-server option. To change the default port number
  5340. for the server to listen to, use --http-server-listen-port option.
  5341. The response HTML is very simple and refreshes it self each 1
  5342. second. Because of this refresh, you see flicker in normal web
  5343. browser such as Firefox. I recommend to use console-based browser
  5344. such as elinks, w3m. To connect to the server, run 'elinks
  5345. http://localhost:6800/' while running aria2. Please replace port
  5346. number '6800'(which is default) with your preference.
  5347. * src/DownloadEngineFactory.cc
  5348. * src/HttpHeader.cc
  5349. * src/HttpHeader.h
  5350. * src/HttpHeaderProcessor.cc
  5351. * src/HttpHeaderProcessor.h
  5352. * src/HttpListenCommand.cc
  5353. * src/HttpListenCommand.h
  5354. * src/HttpServer.cc
  5355. * src/HttpServer.h
  5356. * src/HttpServerCommand.cc
  5357. * src/HttpServerCommand.h
  5358. * src/HttpServerResponseCommand.cc
  5359. * src/HttpServerResponseCommand.h
  5360. * src/Makefile.am
  5361. * src/OptionHandlerFactory.cc
  5362. * src/Util.cc
  5363. * src/Util.h
  5364. * src/help_tags.h
  5365. * src/option_processing.cc
  5366. * src/prefs.cc
  5367. * src/prefs.h
  5368. * src/usage_text.h
  5369. * test/HttpHeaderProcessorTest.cc
  5370. * test/UtilTest.cc
  5371. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Removed.
  5373. * src/CheckIntegrityMan.cc
  5374. * src/FileAllocationMan.cc
  5375. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Made (piece) hash check sequential for each RequestGroup because
  5377. simultaneous hash check is slower than sequential execution.
  5378. * src/CheckIntegrityCommand.cc
  5379. * src/CheckIntegrityDispatcherCommand.cc
  5380. * src/CheckIntegrityDispatcherCommand.h
  5381. * src/CheckIntegrityMan.h
  5382. * src/ConsoleStatCalc.cc
  5383. * src/DownloadCommand.cc
  5384. * src/DownloadEngine.cc
  5385. * src/DownloadEngine.h
  5386. * src/DownloadEngineFactory.cc
  5387. * src/Makefile.am
  5388. * src/Makefile.in
  5389. * src/RequestGroup.cc
  5390. * src/StatCalc.h
  5391. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5393. SequentialDispatcherCommand.
  5394. * src/FileAllocationDispatcherCommand.cc
  5395. * src/SequentialDispatcherCommand.h
  5396. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Rewritten FileAllocationDispatcherCommand using brand new
  5398. SequentialDispatcherCommand.
  5399. * src/DownloadEngineFactory.cc
  5400. * src/FileAllocationCommand.cc
  5401. * src/FileAllocationDispatcherCommand.cc
  5402. * src/FileAllocationDispatcherCommand.h
  5403. * src/Makefile.am
  5404. * src/SequentialDispatcherCommand.h
  5405. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Replaced FileAllocationMan with
  5407. SequentialPicker<FileAllocationEntry>.
  5408. * src/BtCheckIntegrityEntry.cc
  5409. * src/ConsoleStatCalc.cc
  5410. * src/DownloadEngine.cc
  5411. * src/DownloadEngine.h
  5412. * src/DownloadEngineFactory.cc
  5413. * src/FileAllocationCommand.cc
  5414. * src/FileAllocationDispatcherCommand.cc
  5415. * src/FileAllocationMan.h
  5416. * src/Makefile.am
  5417. * src/SequentialPicker.h
  5418. * src/StatCalc.h
  5419. * src/StreamCheckIntegrityEntry.cc
  5420. * test/Makefile.am
  5421. * test/SequentialPickerTest.cc
  5422. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Added doc for adaptive URI selector.
  5424. * doc/aria2c.1.txt
  5425. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Added doc for adaptive URI selector.
  5427. * src/usage_text.h
  5428. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Added doc for --bt-max-peers option.
  5430. * doc/aria2c.1.txt
  5431. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Added doc for --bt-hash-check-seed option.
  5433. * doc/aria2c.1.txt
  5434. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Documented exit codes.
  5436. * doc/aria2c.1.txt
  5437. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Added --bt-max-peers option to specify the maximum number of peers
  5439. per torrent. 0 means unlimited number of peers.
  5440. * src/ActivePeerConnectionCommand.cc
  5441. * src/BtRuntime.h
  5442. * src/DefaultPeerStorage.cc
  5443. * src/DefaultPeerStorage.h
  5444. * src/OptionHandlerFactory.cc
  5445. * src/RequestGroup.cc
  5446. * src/option_processing.cc
  5447. * src/prefs.cc
  5448. * src/prefs.h
  5449. * src/usage_text.h
  5450. * test/DefaultPeerStorageTest.cc
  5451. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added --bt-hash-check-seed option. If true is given to this
  5453. option, after hash check using --check-integrity option and file
  5454. is complete, continue to seed file. If you want to check file and
  5455. download it only when it is damaged or incomplete, set this option
  5456. to false. This option has effect only on BitTorrent download.
  5457. The default value is true(This is the same behavior with the
  5458. previous release).
  5459. * src/BtCheckIntegrityEntry.cc
  5460. * src/OptionHandlerFactory.cc
  5461. * src/option_processing.cc
  5462. * src/prefs.cc
  5463. * src/prefs.h
  5464. * src/usage_text.h
  5465. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Updated copyright year.
  5467. * src/version_usage.cc
  5468. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5469. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5470. * doc/aria2c.1.txt
  5471. * src/usage_text.h
  5472. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Made the max value of split option unlimited.
  5474. * doc/aria2c.1.txt
  5475. * src/OptionHandlerFactory.cc
  5476. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Fixed compile warning/error.
  5478. * src/DownloadResult.h
  5479. * src/HttpDownloadCommand.cc
  5480. * src/ServerStat.cc
  5481. * test/RequestGroupTest.cc
  5482. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5483. Added --event-poll option to select the method for polling events.
  5484. The available methods are "select" and "epoll". "epoll" is
  5485. available on Linux only. The earlier release has the compile
  5486. option to choose from these methods.
  5487. * configure.ac
  5488. * src/RequestGroupMan.cc
  5489. * src/OptionHandlerFactory.cc
  5490. * src/EpollEventPoll.h
  5491. * src/StreamFileAllocationEntry.cc
  5492. * src/a2io.h
  5493. * src/SelectEventPoll.h
  5494. * src/option_processing.cc
  5495. * src/prefs.h
  5496. * src/EpollEventPoll.cc
  5497. * src/EventPoll.h
  5498. * src/SocketCore.h
  5499. * src/Makefile.am
  5500. * src/main.cc
  5501. * src/DownloadEngine.h
  5502. * src/SelectEventPoll.cc
  5503. * src/DownloadEngine.cc
  5504. * src/SocketCore.cc
  5505. * src/DownloadEngineFactory.cc
  5506. * src/Makefile.in
  5507. * src/prefs.cc
  5508. * src/usage_text.h
  5509. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Included RecoverableException.h from main.cc
  5511. * src/main.cc
  5512. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5514. now returns last error encountered in the HTTP/FTP downloads as a
  5515. exit status value. If all downloads finished successfully, aria2
  5516. returns 0. The error code is defined in src/DownloadResult.h.
  5517. The error occurred in the download currently in progress is not
  5518. reported as a last error. If no error has encountered but there
  5519. are in progress or waiting downloads, aria2 returns 7.
  5520. * src/AbstractCommand.cc
  5521. * src/DlAbortEx.h
  5522. * src/DlRetryEx.h
  5523. * src/DownloadCommand.cc
  5524. * src/DownloadFailureException.h
  5525. * src/DownloadResult.h
  5526. * src/FtpNegotiationCommand.cc
  5527. * src/HttpSkipResponseCommand.cc
  5528. * src/Makefile.am
  5529. * src/MultiUrlRequestInfo.cc
  5530. * src/MultiUrlRequestInfo.h
  5531. * src/RecoverableException.h
  5532. * src/RequestGroup.cc
  5533. * src/RequestGroup.h
  5534. * src/RequestGroupMan.cc
  5535. * src/RequestGroupMan.h
  5536. * src/URIResult.cc
  5537. * src/URIResult.h
  5538. * src/main.cc
  5539. * src/option_processing.cc
  5540. * test/RequestGroupTest.cc
  5541. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5543. patch adds AdaptiveURISelector, which selects one of the bests
  5544. mirrors for first and reserved connections. For supplementary
  5545. ones, it returns mirrors which has not been tested yet, and if
  5546. each of them already tested, returns mirrors which has to be
  5547. tested again. Otherwise, it doesn't return anymore mirrors.
  5548. * src/AdaptiveURISelector.cc
  5549. * src/AdaptiveURISelector.h
  5550. * src/FtpNegotiationCommand.cc
  5551. * src/HttpResponseCommand.cc
  5552. * src/Makefile.am
  5553. * src/Makefile.in
  5554. * src/OptionHandlerFactory.cc
  5555. * src/RequestGroup.cc
  5556. * src/RequestGroup.h
  5557. * src/RequestGroupMan.cc
  5558. * src/ServerStat.cc
  5559. * src/ServerStat.h
  5560. * src/ServerStatMan.cc
  5561. * src/SpeedCalc.cc
  5562. * src/URISelector.h
  5563. * src/prefs.cc
  5564. * src/prefs.h
  5565. * test/RequestGroupManTest.cc
  5566. * test/ServerStatManTest.cc
  5567. * test/ServerStatTest.cc
  5568. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Fixed unit test error.
  5570. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5571. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. * Release 1.1.2
  5573. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5574. Updated Russian translation. Thanks to the translators.
  5575. * po/ru.po
  5576. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. Added the description of --use-head option to man page.
  5578. * doc/aria2c.1.txt
  5579. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. Bump up version number to 1.1.2
  5581. * configure.ac
  5582. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5583. Added --use-head option to toggle whether HEAD method should be
  5584. used in the first HTTP request. By default aria2 uses HEAD method
  5585. as the first request. When the server doesn't recognize HEAD, then
  5586. give aria2 --use-head=false to force aria2 to use GET method
  5587. instead.
  5588. * src/OptionHandlerFactory.cc
  5589. * src/RequestGroupMan.cc
  5590. * src/option_processing.cc
  5591. * src/prefs.cc
  5592. * src/prefs.h
  5593. * src/usage_text.h
  5594. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5595. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5596. message is received before CHOKE message. The old implementation
  5597. doen't clear the use-bit of the piece when recieved REJECT
  5598. message.
  5599. * src/DefaultBtMessageDispatcher.cc
  5600. * test/DefaultBtMessageDispatcherTest.cc
  5601. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. * Release 1.1.1
  5603. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Bump up version number to 1.1.1.
  5605. * configure.ac
  5606. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5608. is printed repeatedly.
  5609. * src/ConsoleStatCalc.cc
  5610. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. * Release 1.1.0
  5612. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5613. Added ifdef clause for conditional compilation.
  5614. * src/main.cc
  5615. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5616. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5617. translations. Thanks to all translators.
  5618. * po/ja.po
  5619. * po/ru.po
  5620. * po/uk.po
  5621. * po/zh_CN.po
  5622. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Added the preceding ">>> " before the message "Printing the
  5624. contents of file..." to make the output more readable.
  5625. * src/main.cc
  5626. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Added try-catch block in the loop in showFiles() to continue the
  5628. operation even if the exception occurred in one file.
  5629. * src/main.cc (showFiles)
  5630. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. Made messages in showFiles() translatable.
  5632. * po/aria2.pot
  5633. * src/main.cc
  5634. * src/message.h
  5635. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Print the contents of Torrent/Metalink files are printed without
  5637. -T/-M options.
  5638. * src/main.cc
  5639. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Escaped '--' with '\--'
  5641. * README
  5642. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Updated "How to build" section in README. Mentioned about
  5644. --with-ca-bundle compile option.
  5645. * README
  5646. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5647. Bump up version number to 1.1.0.
  5648. * configure.ac
  5649. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5650. Added a note for --dht-listen-port option.
  5651. * doc/aria2c.1.txt
  5652. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5653. Update doc for --realtime-chunk-checksum option.
  5654. * doc/aria2c.1.txt
  5655. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Update doc for --realtime-chunk-checksum option.
  5657. * src/usage_text.h
  5658. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Updated French, Japanese, Russian and Ukrainian translations.
  5660. Thanks to all translators.
  5661. * po/fr.po
  5662. * po/ja.po
  5663. * po/ru.po
  5664. * po/uk.po
  5665. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Renamed aria2c.pot to aria2.pot
  5667. * po/aria2.pot
  5668. * po/aria2c.pot: Removed.
  5669. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Removed MetaEntry.h
  5671. * src/Makefile.am
  5672. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5673. Rename file by appending digits if a local file exists and its
  5674. file size is larger than that of remote file with --continue
  5675. option. The old implementation just throws exception in such case.
  5676. * src/RequestGroup.cc
  5677. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Fixed the bug that download progress summary is not printed in the
  5679. interval specified by the option.
  5680. * src/ConsoleStatCalc.cc
  5681. * src/ConsoleStatCalc.h
  5682. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Fixed compiler warning
  5684. * src/Cookie.cc
  5685. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5686. Fixed the cookie implementation based on RFC2965.
  5687. Now if a value in domain field is not started with dot, then
  5688. prepend dot. That means a cookie with domain=sf.net is sent to
  5689. wiki.sf.net.
  5690. * src/Cookie.cc
  5691. * test/CookieParserTest.cc
  5692. * test/CookieStorageTest.cc
  5693. * test/CookieTest.cc
  5694. * test/NsCookieParserTest.cc
  5695. * test/Sqlite3MozCookieParserTest.cc
  5696. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5698. is enabled and the server doesn't support keep-alive.
  5699. * src/AbstractCommand.cc
  5700. * src/DownloadCommand.cc
  5701. * src/HttpDownloadCommand.cc
  5702. * src/HttpDownloadCommand.h
  5703. * src/HttpResponseCommand.cc
  5704. * src/Request.cc
  5705. * src/Request.h
  5706. * test/RequestTest.cc
  5707. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Removed Dictionary/List/Data and its related classes.
  5709. * src/BencodeVisitor.cc: Removed.
  5710. * src/BencodeVisitor.h: Removed.
  5711. * src/Data.cc: Removed.
  5712. * src/Data.h: Removed.
  5713. * src/Dictionary.cc: Removed.
  5714. * src/Dictionary.h: Removed.
  5715. * src/List.cc: Removed.
  5716. * src/List.h: Removed.
  5717. * src/Makefile.am
  5718. * src/MetaEntry.h: Removed.
  5719. * src/MetaEntryVisitor.h: Removed.
  5720. * src/MetaFileUtil.cc: Removed.
  5721. * src/MetaFileUtil.h: Removed.
  5722. * test/BencodeVisitorTest.cc: Removed.
  5723. * test/DataTest.cc: Removed.
  5724. * test/DictionaryTest.cc: Removed.
  5725. * test/ListTest.cc: Removed.
  5726. * test/Makefile.am
  5727. * test/MetaFileUtilTest.cc: Removed.
  5728. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Removed include of MetaEntry.h
  5730. * test/DHTMessageTrackerEntryTest.cc
  5731. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Use BDE instead of Dictionary/List/Data.
  5733. * src/AnnounceList.cc
  5734. * src/AnnounceList.h
  5735. * test/AnnounceListTest.cc
  5736. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5737. Use BDE instead of Dictionary/List/Data.
  5738. * src/DHTAbstractMessage.cc
  5739. * src/DHTAbstractMessage.h
  5740. * src/DHTAnnouncePeerMessage.cc
  5741. * src/DHTAnnouncePeerMessage.h
  5742. * src/DHTAnnouncePeerReplyMessage.cc
  5743. * src/DHTAnnouncePeerReplyMessage.h
  5744. * src/DHTFindNodeMessage.cc
  5745. * src/DHTFindNodeMessage.h
  5746. * src/DHTFindNodeReplyMessage.cc
  5747. * src/DHTFindNodeReplyMessage.h
  5748. * src/DHTGetPeersMessage.cc
  5749. * src/DHTGetPeersMessage.h
  5750. * src/DHTGetPeersReplyMessage.cc
  5751. * src/DHTGetPeersReplyMessage.h
  5752. * src/DHTMessageFactory.h
  5753. * src/DHTMessageFactoryImpl.cc
  5754. * src/DHTMessageFactoryImpl.h
  5755. * src/DHTMessageReceiver.cc
  5756. * src/DHTMessageTracker.cc
  5757. * src/DHTMessageTracker.h
  5758. * src/DHTPingMessage.cc
  5759. * src/DHTPingMessage.h
  5760. * src/DHTPingReplyMessage.cc
  5761. * src/DHTPingReplyMessage.h
  5762. * src/DHTQueryMessage.cc
  5763. * src/DHTQueryMessage.h
  5764. * src/DHTResponseMessage.cc
  5765. * src/DHTResponseMessage.h
  5766. * test/DHTAnnouncePeerMessageTest.cc
  5767. * test/DHTAnnouncePeerReplyMessageTest.cc
  5768. * test/DHTFindNodeMessageTest.cc
  5769. * test/DHTFindNodeReplyMessageTest.cc
  5770. * test/DHTGetPeersMessageTest.cc
  5771. * test/DHTGetPeersReplyMessageTest.cc
  5772. * test/DHTMessageFactoryImplTest.cc
  5773. * test/DHTMessageTrackerTest.cc
  5774. * test/DHTPingMessageTest.cc
  5775. * test/DHTPingReplyMessageTest.cc
  5776. * test/MockDHTMessageFactory.h
  5777. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Added tests the case where length < 0 is specified.
  5779. * test/BencodeTest.cc
  5780. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Fixed memory leak in decoderawstring()
  5782. * src/bencode.cc
  5783. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5784. Added missing #ifdef guard. Added uc() function for String and
  5785. removeKey() for Dict.
  5786. * src/bencode.cc
  5787. * src/bencode.h
  5788. * test/BencodeTest.cc
  5789. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5790. Use BDE instead of Dictionary/List/Data.
  5791. * src/HandshakeExtensionMessage.cc
  5792. * src/HandshakeExtensionMessage.h
  5793. * test/HandshakeExtensionMessageTest.cc
  5794. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5795. Added --max-overall-upload-limit option. This option limits the
  5796. overall upload speed. Stated in help message that the existing
  5797. --max-upload-limit option limits the upload speed per each
  5798. torrent. Man page is also updated.
  5799. * doc/aria2c.1.txt
  5800. * src/DefaultBtMessageDispatcher.cc
  5801. * src/DefaultBtMessageDispatcher.h
  5802. * src/OptionHandlerFactory.cc
  5803. * src/PeerInteractionCommand.cc
  5804. * src/option_processing.cc
  5805. * src/prefs.cc
  5806. * src/prefs.h
  5807. * src/usage_text.h
  5808. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5809. Use BDE instead of Dictionary/List/Data classes.
  5810. * src/CompactPeerListProcessor.cc
  5811. * src/CompactPeerListProcessor.h
  5812. * src/DefaultBtAnnounce.cc
  5813. * src/DefaultBtContext.cc
  5814. * src/DefaultBtContext.h
  5815. * src/DefaultPeerListProcessor.cc
  5816. * src/DefaultPeerListProcessor.h
  5817. * src/DelegatingPeerListProcessor.cc
  5818. * src/DelegatingPeerListProcessor.h
  5819. * src/PeerListProcessor.h
  5820. * src/UTPexExtensionMessage.cc
  5821. * src/Util.h
  5822. * src/message.h
  5823. * test/DefaultBtContextTest.cc
  5824. * test/DefaultPeerListProcessorTest.cc
  5825. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Added bencode helper functions and BDE class.
  5827. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5828. * src/Makefile.am
  5829. * src/bencode.cc
  5830. * src/bencode.h
  5831. * test/BencodeTest.cc
  5832. * test/Makefile.am
  5833. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Fixed the bug that bad URI is sent to the tracker when the announe
  5835. URI in torrent file includes query.
  5836. * src/DefaultBtAnnounce.cc
  5837. * test/DefaultBtAnnounceTest.cc
  5838. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Added Option::blank().
  5840. Use !Option::blank(name) instead of Option::defined(name) for
  5841. the options that take filename.
  5842. * src/MultiUrlRequestInfo.cc
  5843. * src/Option.cc
  5844. * src/Option.h
  5845. * src/main.cc
  5846. * src/option_processing.cc
  5847. * test/OptionTest.cc
  5848. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5849. Documented the default value of --check-certificate option in man
  5850. page.
  5851. * doc/aria2c.1.txt
  5852. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Enabled --check-certificate by default. Added compile
  5854. time(configure) option --with-ca-bundle to specify CA bundle.
  5855. Warn if --check-certificate=true and --ca-certificate is not
  5856. specified or loading CA certificate is failed.
  5857. * configure.ac
  5858. * src/MultiUrlRequestInfo.cc
  5859. * src/OptionHandlerFactory.cc
  5860. * src/message.h
  5861. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Mentioned https tag in help option.
  5863. * doc/aria2c.1.txt
  5864. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5865. Added `https' tag to help option category. Added https tag to
  5866. --ca-certificate, --certificate, --check-certificate and
  5867. --private-key option.
  5868. * src/OptionHandlerFactory.cc
  5869. * src/help_tags.h
  5870. * src/option_processing.cc
  5871. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5872. Changed the package name from `aria2c' to `aria2' in order to fix
  5873. the packaging issue in Debian and Fedora. The name of the
  5874. executable is not changed.
  5875. * configure.ac
  5876. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Fixed typos
  5878. * src/usage_text.h
  5879. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5880. Fixed typos and updated doc.
  5881. * README
  5882. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Fixed typos
  5884. * doc/aria2c.1.txt
  5885. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Fixed typos
  5887. * src/usage_text.h
  5888. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Print a message when no files to download.
  5890. * src/download_helper.cc
  5891. * src/main.cc
  5892. * src/message.h
  5893. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. RFC3986 complied Percent-Encoding(urlencode).
  5895. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5896. ones.
  5897. * src/Request.cc
  5898. * src/Util.cc
  5899. * src/Util.h
  5900. * test/BtHandshakeMessageTest.cc
  5901. * test/DefaultBtAnnounceTest.cc
  5902. * test/DefaultBtContextTest.cc
  5903. * test/RequestTest.cc
  5904. * test/UtilTest.cc
  5905. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Fixed the bug that prevents aria2 from downloading 0-length files
  5907. via HTTP/FTP.
  5908. * src/DefaultBtContext.cc
  5909. * src/DefaultBtContext.h
  5910. * src/DownloadContext.h
  5911. * src/FtpNegotiationCommand.cc
  5912. * src/HttpResponseCommand.cc
  5913. * src/HttpResponseCommand.h
  5914. * src/RequestGroup.cc
  5915. * src/SingleFileDownloadContext.cc
  5916. * src/SingleFileDownloadContext.h
  5917. * test/BtPostDownloadHandlerTest.cc
  5918. * test/MetalinkPostDownloadHandlerTest.cc
  5919. * test/MockBtContext.h
  5920. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5922. * src/option_processing.cc
  5923. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Applied aria2-1.0.1-mingw.patch.
  5925. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5926. mingw.
  5927. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5928. * src/SocketCore.cc
  5929. * src/a2netcompat.h
  5930. * test/SocketCoreTest.cc
  5931. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5932. * Release 1.0.1
  5933. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5934. Updated Ukrainian and Norwegian Nynorsk translations.
  5935. Thanks to all translators.
  5936. * po/nn.po
  5937. * po/uk.po
  5938. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Don't show download result when -S option is used.
  5940. * src/main.cc
  5941. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Bump up version number to 1.0.1
  5943. * configure.ac
  5944. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Closed files after the test cases in MultiDiskWriterTest::
  5946. testResetDiskWriterEntries(). This will fix the unit test error
  5947. in mingw32 build.
  5948. * test/MultiDiskWriterTest.cc
  5949. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Use HEAD method to get file size from HTTP server for segmented
  5951. downloading.
  5952. The request to the BitTorrent Tracker always uses GET method because
  5953. the response of the tracker is small and it doesn't need segmented
  5954. download.
  5955. * src/FtpNegotiationCommand.cc
  5956. * src/HttpRequest.cc
  5957. * src/HttpResponseCommand.cc
  5958. * src/HttpSkipResponseCommand.cc
  5959. * src/RequestGroup.cc
  5960. * src/RequestGroup.h
  5961. * src/TrackerWatcherCommand.cc
  5962. * test/HttpRequestTest.cc
  5963. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5964. Fixed the bug that causes floating exception when -T option is used and
  5965. no URIs are given.
  5966. * src/download_helper.cc
  5967. * test/DownloadHelperTest.cc
  5968. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5969. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5970. errors in MinGW:
  5971. Closed file after saving server stats (RequestGroupMan.cc)
  5972. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5973. Ignored case & handled 2-digit years (strptime.c)
  5974. Added missing suseconds_t definition (a2time.h)
  5975. Fixed socket CLOSE() define (SocketCore.cc)
  5976. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5977. Changed utime() test values from x000 to x00000 as MinGW failed on
  5978. values less than timezone offset from Unix epoch
  5979. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5980. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5981. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5982. handle negative dates (CookieParserTest.cc)
  5983. * src/a2time.h
  5984. * src/FtpConnection.cc
  5985. * src/RequestGroupMan.cc
  5986. * src/SocketCore.cc
  5987. * src/strptime.c
  5988. * test/CookieParserTest.cc
  5989. * test/CopyDiskAdaptorTest.cc
  5990. * test/FileTest.cc
  5991. * test/FtpConnectionTest.cc
  5992. * test/MultiDiskAdaptorTest.cc
  5993. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5995. * doc/aria2c.1.txt
  5996. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. * Release 1.0.0
  5998. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5999. Added '~' to reserved characters.
  6000. * src/Util.cc
  6001. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Do not urlencode Request::url in setUrl() because we want unmodified
  6003. URL using Request::getUrl()
  6004. * src/Request.cc
  6005. * src/Request.h
  6006. * test/RequestTest.cc
  6007. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6008. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6009. Thanks to all translators.
  6010. * po/bg.po
  6011. * po/fr.po
  6012. * po/ja.po
  6013. * po/ru.po
  6014. * po/uk.po
  6015. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Bump up version number to 1.0.0
  6017. * configure.ac
  6018. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Added nosqlite3 build to build_test.sh.
  6020. Renamed noxml as expat.
  6021. * build_test.sh
  6022. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Updated INPUT FILE section.
  6024. * doc/aria2c.1.txt
  6025. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6027. on big endian systems because test .aria2 files are made for little
  6028. endian systems.
  6029. * test/DefaultBtProgressInfoFileTest.cc
  6030. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Dropped ares support.
  6032. * README
  6033. * configure.ac
  6034. * m4/libares.m4: Removed.
  6035. * src/AsyncNameResolver.cc
  6036. * src/Makefile.am
  6037. * test/Makefile.am
  6038. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6040. Removed const qualifier from DiskWriter::size().
  6041. * src/AbstractDiskWriter.cc
  6042. * src/AbstractDiskWriter.h
  6043. * src/ByteArrayDiskWriter.cc
  6044. * src/ByteArrayDiskWriter.h
  6045. * src/DiskWriter.h
  6046. * test/ByteArrayDiskWriterTest.cc
  6047. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6048. Fixed the bug that causes segmentation fault/bus error during executing
  6049. choking algorithm while seeding. This is caused by improper
  6050. implementation of compare function which returns inconsistent results
  6051. depending on the timing of last unchoke.
  6052. * src/BtSeederStateChoke.cc
  6053. * src/BtSeederStateChoke.h
  6054. * src/DefaultPeerStorage.cc
  6055. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Removed TODO
  6057. * TODO
  6058. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6059. Added a section that explains how to pass argument to options that
  6060. takes optional arguments with its short form.
  6061. * doc/aria2c.1.txt
  6062. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Added -u for the short form of --max-upload-limit option.
  6064. * doc/aria2c.1.txt
  6065. * src/option_processing.cc
  6066. * src/usage_text.h
  6067. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6068. Added -V for the short form of --check-integrity option.
  6069. Now the argument of --check-integrity option is optional:
  6070. if it is omitted, it is evaluated as true.
  6071. * doc/aria2c.1.txt
  6072. * src/option_processing.cc
  6073. * src/usage_text.h
  6074. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Made the default value of --ftp-pasv option set to true and it can take
  6076. true/false values.
  6077. * src/OptionHandlerFactory.cc
  6078. * src/option_processing.cc
  6079. * src/usage_text.h
  6080. * doc/aria2c.1.txt
  6081. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. Given custom random number generator to std::random_shuffle.
  6083. * src/AnnounceList.cc
  6084. * src/BtLeecherStateChoke.cc
  6085. * src/BtSeederStateChoke.cc
  6086. * src/DefaultBtRequestFactory.cc
  6087. * src/MetalinkEntry.cc
  6088. * src/RarestPieceSelector.cc
  6089. * src/SimpleRandomizer.cc
  6090. * src/SimpleRandomizer.h
  6091. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Now the default value of --enable-direct-io is true.
  6093. * src/OptionHandlerFactory.cc
  6094. * doc/aria2c.1.txt
  6095. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Erase peer before executing onReturningPeer and onErasingPeer
  6097. because choking algorithm called from onReturningPeer doesn't
  6098. like erasing peer in the active peer list.
  6099. * src/DefaultPeerStorage.cc
  6100. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6101. Instead of creating special filename in createDownloadResult() if
  6102. inMemoryDownload() is true, now it is done in getFilePath().
  6103. * src/RequestGroup.cc
  6104. * test/RequestGroupTest.cc
  6105. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6106. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6107. processed in memory. This is the fix for previous comment out.
  6108. * src/MemoryBufferPreDownloadHandler.cc
  6109. * src/RequestGroup.cc
  6110. * src/RequestGroup.h
  6111. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Commented out the code which sets virtual directory path "[MEMORY]"
  6113. propagate directory to store to following RequestGroup.
  6114. * src/MemoryBufferPreDownloadHandler.cc
  6115. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6116. Bump up version number to 1.0.0b
  6117. * configure.ac
  6118. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. Added input_uris.txt to EXTRA_DIST
  6120. * test/Makefile.am
  6121. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Removed PeerObject.h from Makefile.am
  6123. * src/Makefile.am
  6124. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Avoid slow seeding
  6126. * src/PeerInteractionCommand.cc
  6127. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. Updated usage for -i option.
  6129. * src/usage_text.h (TEXT_INPUT_FILE)
  6130. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Added INPUT FILE section to man page.
  6132. Escaped fake URLs.
  6133. * doc/aria2c.1.txt
  6134. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Fixed wrong note position for -o option.
  6136. * doc/aria2c.1.txt
  6137. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Fixed compile error without SSL/XML library.
  6139. * src/DefaultBtProgressInfoFile.cc
  6140. * src/DefaultBtProgressInfoFile.h
  6141. * src/FileMetalinkParserState.cc
  6142. * src/RequestGroup.h
  6143. * src/SocketCore.cc
  6144. * src/SocketCore.h
  6145. * src/VerificationMetalinkParserState.cc
  6146. * src/download_helper.h
  6147. * src/main.cc
  6148. * test/DefaultBtProgressInfoFileTest.cc
  6149. * test/DownloadHelperTest.cc
  6150. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6151. Rewritten URI handling functions. They are now provided as a testable
  6152. functions.
  6153. * src/Makefile.am
  6154. * src/RequestGroup.cc
  6155. * src/RequestGroup.h
  6156. * src/download_helper.cc
  6157. * src/download_helper.h
  6158. * src/main.cc
  6159. * test/DownloadHelperTest.cc
  6160. * test/Makefile.am
  6161. * test/input_uris.txt
  6162. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Quickly terminate commands when ctrl-c is pressed.
  6164. * src/DownloadEngine.cc
  6165. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6166. Quickly terminate idle commands when download finished.
  6167. * src/AbstractCommand.cc
  6168. * src/DownloadCommand.cc
  6169. * src/DownloadEngine.cc
  6170. * src/DownloadEngine.h
  6171. * src/SleepCommand.cc
  6172. * src/SleepCommand.h
  6173. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6174. Added the ability to specify output filename and directory in input
  6175. file.
  6176. Additional parameters are added in the following line of URIs
  6177. with proceeding white space(s), 1 parameter in 1 line.
  6178. The parameter names are the same with the command-line option name
  6179. without proceeding "--". Not all the options are available here:
  6180. at the moment, 'dir' and 'out' options are avialable.
  6181. Please note that out option has no effect against Metalink or BitTorrent
  6182. downloads.
  6183. Example input file:
  6184. http://host/foo-1.1.tar.bz2
  6185. out=foo.tar.bz2
  6186. dir=/tmp/downloads
  6187. http://host/thundermonkey-2.0.tar.bz2
  6188. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6189. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6190. thundermonkey-2.0.tar.bz2 is saved as
  6191. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6192. * src/BtPostDownloadHandler.cc
  6193. * src/Metalink2RequestGroup.cc
  6194. * src/Metalink2RequestGroup.h
  6195. * src/MetalinkPostDownloadHandler.cc
  6196. * src/UriListParser.cc
  6197. * src/UriListParser.h
  6198. * src/main.cc
  6199. * test/Metalink2RequestGroupTest.cc
  6200. * test/UriListParserTest.cc
  6201. * test/filelist1.txt
  6202. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Fixed error when SSL library is not found.
  6204. * configure.ac
  6205. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6206. Cross referenced among -s, -C and -j options.
  6207. Updated usage of -C and -s options.
  6208. * src/usage_text.h
  6209. * doc/aria2c.1.txt
  6210. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6211. Fixed bad cast in 32bit platforms.
  6212. * test/DefaultPieceStorageTest.cc
  6213. (DefaultPieceStorageTest::testGetCompletedLength)
  6214. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Fixed unit test fails on 32bit platforms.
  6216. * test/CookieParserTest.cc
  6217. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6218. Show an average download speed in Download results.
  6219. * src/BtFileAllocationEntry.cc
  6220. * src/DefaultPieceStorage.cc
  6221. * src/DownloadContext.cc
  6222. * src/DownloadContext.h
  6223. * src/DownloadResult.h
  6224. * src/RequestGroup.cc
  6225. * src/RequestGroupMan.cc
  6226. * src/StreamFileAllocationEntry.cc
  6227. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6228. Fixed the bug that metalink file is not processed if Content-Type
  6229. field has a paramter.
  6230. * src/HttpResponse.cc
  6231. * src/HttpResponse.h
  6232. * test/HttpResponseTest.cc
  6233. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6234. Removed unused code.
  6235. * src/DefaultBtAnnounce.cc
  6236. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6237. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6238. the value larger than DefaultPieceStorage::getTotalLength() when
  6239. in flight pieces are involved.
  6240. * src/DefaultPieceStorage.cc
  6241. * test/DefaultPieceStorageTest.cc
  6242. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Bump up version number to 1.0.0a.
  6244. * configure.ac
  6245. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6246. Updated configure.ac
  6247. * configure.ac
  6248. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6249. Added usege for proxy.
  6250. * doc/aria2c.1.txt
  6251. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Added usage for --ca-certificate, --certificate, --private-key and
  6253. --check-certificate options.
  6254. * doc/aria2c.1.txt
  6255. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Updated man page
  6257. * doc/aria2c.1.txt
  6258. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Added --no-proxy option. It receives comman separated hostname or
  6260. domains to which proxy should not be used.
  6261. aria2 honors the environment variable no_proxy to override no-proxy
  6262. value in configuration file. The user can override the environment
  6263. variable no_proxy with --no-proxy command-line option.
  6264. * src/AbstractCommand.cc
  6265. * src/OptionHandlerFactory.cc
  6266. * src/option_processing.cc
  6267. * src/prefs.cc
  6268. * src/prefs.h
  6269. * src/usage_text.h
  6270. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6271. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6272. The CA certificates are specified in --ca-certificate option.
  6273. By default, the verification is disabled. Use --check-certificate
  6274. option to enable it.
  6275. * src/HttpRequestCommand.cc
  6276. * src/LibgnutlsTLSContext.cc
  6277. * src/LibgnutlsTLSContext.h
  6278. * src/LibsslTLSContext.cc
  6279. * src/LibsslTLSContext.h
  6280. * src/MultiUrlRequestInfo.cc
  6281. * src/OptionHandlerFactory.cc
  6282. * src/SocketCore.cc
  6283. * src/SocketCore.h
  6284. * src/a2functional.h
  6285. * src/message.h
  6286. * src/option_processing.cc
  6287. * src/prefs.cc
  6288. * src/prefs.h
  6289. * src/usage_text.h
  6290. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6291. Added client certificate authentication for SSL/TLS.
  6292. Currently a private key must be decrypted for use with aria2.
  6293. If a user accidentally gives encrypted file to aria2 then following
  6294. thing happens:
  6295. If encrypted private key is given to aria2, it behaves differently
  6296. depending on the ssl library it uses. If aria2 built with openssl then
  6297. openssl prompts the user for password. If aria2 build with gnutls then
  6298. aria2 exists with error at start up.
  6299. * src/DownloadEngineFactory.cc
  6300. * src/MultiUrlRequestInfo.cc
  6301. * src/OptionHandlerFactory.cc
  6302. * src/option_processing.cc
  6303. * src/prefs.cc
  6304. * src/prefs.h
  6305. * src/usage_text.h
  6306. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6307. Introduced TLSContext that holds TLS related data that can be shared
  6308. with multiple SSL connections.
  6309. * src/DownloadEngineFactory.cc
  6310. * src/LibgnutlsTLSContext.cc
  6311. * src/LibgnutlsTLSContext.h
  6312. * src/LibsslTLSContext.cc
  6313. * src/LibsslTLSContext.h
  6314. * src/Makefile.am
  6315. * src/SocketCore.cc
  6316. * src/SocketCore.h
  6317. * src/TLSContext.h
  6318. * src/message.h
  6319. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6320. Fixed the bug that the DiskWriter of the first FileEntry whose
  6321. `needsFileAllocation' property is false is not created
  6322. even if it shares a piece with next FileEntry which `requested' property
  6323. is true.
  6324. Fixed the bug that zero-length file is not created if pre file
  6325. allocation is not done.
  6326. * src/MultiDiskAdaptor.cc
  6327. * src/MultiDiskAdaptor.h
  6328. * test/MultiDiskAdaptorTest.cc
  6329. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Added the ability to pool proxy connection.
  6331. The conneciton in FTP with proxy-method=GET is not pooled.
  6332. Proxy-Connection header will not be sent when sending CONNECT method.
  6333. * src/DownloadEngine.cc
  6334. * src/DownloadEngine.h
  6335. * src/FtpFinishDownloadCommand.cc
  6336. * src/FtpInitiateConnectionCommand.cc
  6337. * src/FtpNegotiationCommand.cc
  6338. * src/HttpDownloadCommand.cc
  6339. * src/HttpInitiateConnectionCommand.cc
  6340. * src/HttpRequest.cc
  6341. * src/HttpRequest.h
  6342. * src/HttpResponse.cc
  6343. * src/HttpSkipResponseCommand.cc
  6344. * test/HttpRequestTest.cc
  6345. * test/HttpResponseTest.cc
  6346. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Handle date before epoch.
  6348. To create *bad* Time object, call Time::null().
  6349. * src/CookieParser.cc
  6350. * src/FtpConnection.cc
  6351. * src/FtpConnection.h
  6352. * src/FtpNegotiationCommand.cc
  6353. * src/RequestGroup.cc
  6354. * src/TimeA2.cc
  6355. * src/TimeA2.h
  6356. * test/CookieParserTest.cc
  6357. * test/FtpConnectionTest.cc
  6358. * test/TimeTest.cc
  6359. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added support for following envrionment variables: http_proxy,
  6361. https_proxy, ftp_proxy and all_proxy.
  6362. Each variable is equivalent to the aria2 option whose name is the
  6363. variable name with '_' replaced with '-'.
  6364. They overrides options specified in aria2.conf file.
  6365. The envrionment variables can be overrode using command-line option.
  6366. * src/option_processing.cc
  6367. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Renamed --http-proxy-method as --proxy-method.
  6369. * src/AbstractCommand.cc
  6370. * src/FtpInitiateConnectionCommand.cc
  6371. * src/HttpInitiateConnectionCommand.cc
  6372. * src/OptionHandlerFactory.cc
  6373. * src/option_processing.cc
  6374. * src/prefs.cc
  6375. * src/prefs.h
  6376. * src/usage_text.h
  6377. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6379. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6380. Above 3 options and --http-proxy option can handle proxy in URL format
  6381. like: http://user:passwd@host:port.
  6382. If a proxy requires user/password, they must be specified in a URL.
  6383. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6384. instead.
  6385. * src/AbstractCommand.cc
  6386. * src/AbstractCommand.h
  6387. * src/AbstractProxyRequestCommand.cc
  6388. * src/AbstractProxyRequestCommand.h
  6389. * src/AuthConfigFactory.cc
  6390. * src/AuthConfigFactory.h
  6391. * src/FtpFinishDownloadCommand.cc
  6392. * src/FtpInitiateConnectionCommand.cc
  6393. * src/FtpInitiateConnectionCommand.h
  6394. * src/FtpNegotiationCommand.cc
  6395. * src/FtpTunnelRequestCommand.cc
  6396. * src/FtpTunnelRequestCommand.h
  6397. * src/HttpDownloadCommand.cc
  6398. * src/HttpInitiateConnectionCommand.cc
  6399. * src/HttpInitiateConnectionCommand.h
  6400. * src/HttpProxyRequestCommand.cc
  6401. * src/HttpProxyRequestCommand.h
  6402. * src/HttpRequest.cc
  6403. * src/HttpRequest.h
  6404. * src/HttpRequestCommand.cc
  6405. * src/HttpRequestCommand.h
  6406. * src/HttpSkipResponseCommand.cc
  6407. * src/InitiateConnectionCommand.cc
  6408. * src/InitiateConnectionCommand.h
  6409. * src/OptionHandlerFactory.cc
  6410. * src/OptionHandlerImpl.h
  6411. * src/Request.cc
  6412. * src/option_processing.cc
  6413. * src/prefs.cc
  6414. * src/prefs.h
  6415. * src/usage_text.h
  6416. * test/AuthConfigFactoryTest.cc
  6417. * test/HttpRequestTest.cc
  6418. * test/OptionHandlerTest.cc
  6419. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Execute choking algorithm when unchoked and interested peer is
  6421. disconected.
  6422. * src/DefaultPeerStorage.cc
  6423. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Added testcase for BtNotInterestedMessage from unchoked peer.
  6425. * test/BtNotInterestedMessageTest.cc
  6426. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Execute choking algorithm when BtInterestedMessage arrives from
  6428. unchoked peer.
  6429. * src/BtInterestedMessage.cc
  6430. * src/BtInterestedMessage.h
  6431. * src/DefaultBtMessageFactory.cc
  6432. * test/BtInterestedMessageTest.cc
  6433. * test/MockPeerStorage.h
  6434. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. AuthConfigFactory is now part of DownloadEngine.
  6436. * src/AbstractProxyRequestCommand.cc
  6437. * src/AuthConfigFactory.h
  6438. * src/DownloadEngine.cc
  6439. * src/DownloadEngine.h
  6440. * src/FtpConnection.cc
  6441. * src/FtpConnection.h
  6442. * src/FtpNegotiationCommand.cc
  6443. * src/HttpConnection.cc
  6444. * src/HttpRequest.cc
  6445. * src/HttpRequest.h
  6446. * src/HttpRequestCommand.cc
  6447. * src/HttpResponse.cc
  6448. * src/HttpResponseCommand.cc
  6449. * src/HttpSkipResponseCommand.cc
  6450. * src/MultiUrlRequestInfo.cc
  6451. * src/main.cc
  6452. * test/FtpConnectionTest.cc
  6453. * test/HttpRequestTest.cc
  6454. * test/HttpResponseTest.cc
  6455. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Corrected catched exception type.
  6457. * src/ServerStatMan.cc
  6458. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. DNSCache is now part of DownloadEngine.
  6460. * src/DNSCache.h
  6461. * src/DownloadEngine.cc
  6462. * src/DownloadEngine.h
  6463. * src/InitiateConnectionCommand.cc
  6464. * src/MultiUrlRequestInfo.cc
  6465. * test/Makefile.am
  6466. * test/Makefile.in
  6467. * test/SimpleDNSCacheTest.cc
  6468. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6470. DownloadEngine.
  6471. * src/ActivePeerConnectionCommand.cc
  6472. * src/BtSetup.cc
  6473. * src/CUIDCounter.h
  6474. * src/DHTSetup.cc
  6475. * src/DownloadCommand.cc
  6476. * src/DownloadEngine.cc
  6477. * src/DownloadEngine.h
  6478. * src/DownloadEngineFactory.cc
  6479. * src/FileAllocationDispatcherCommand.cc
  6480. * src/InitiatorMSEHandshakeCommand.cc
  6481. * src/PeerInitiateConnectionCommand.cc
  6482. * src/PeerInteractionCommand.cc
  6483. * src/PeerListenCommand.cc
  6484. * src/RequestGroup.cc
  6485. * src/StreamFileAllocationEntry.cc
  6486. * src/TrackerWatcherCommand.cc
  6487. * src/main.cc
  6488. * test/RequestGroupManTest.cc
  6489. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Implemented commented code in BtSeederStateChoke
  6491. * src/BtSeederStateChoke.cc
  6492. * src/Peer.cc
  6493. * src/Peer.h
  6494. * src/PeerInteractionCommand.cc
  6495. * src/PeerSessionResource.cc
  6496. * src/PeerSessionResource.h
  6497. * test/MockBtMessageDispatcher.h
  6498. * test/PeerSessionResourceTest.cc
  6499. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6501. its object.
  6502. * src/AbstractBtMessage.cc
  6503. * src/ActivePeerConnectionCommand.cc
  6504. * src/ActivePeerConnectionCommand.h
  6505. * src/BtContextAwareCommand.cc
  6506. * src/BtContextAwareCommand.h
  6507. * src/BtExtendedMessage.cc
  6508. * src/BtExtendedMessage.h
  6509. * src/BtInterestedMessage.cc
  6510. * src/BtInterestedMessage.h
  6511. * src/BtNotInterestedMessage.cc
  6512. * src/BtNotInterestedMessage.h
  6513. * src/BtRegistry.cc
  6514. * src/BtRegistry.h
  6515. * src/BtSeederStateChoke.cc
  6516. * src/BtSetup.cc
  6517. * src/DHTGetPeersCommand.cc
  6518. * src/DHTGetPeersCommand.h
  6519. * src/DHTPeerAnnounceEntry.cc
  6520. * src/DHTPeerAnnounceEntry.h
  6521. * src/DHTPeerAnnounceStorage.cc
  6522. * src/DHTPeerAnnounceStorage.h
  6523. * src/DHTPeerLookupTask.cc
  6524. * src/DHTPeerLookupTask.h
  6525. * src/DHTSetup.cc
  6526. * src/DHTSetup.h
  6527. * src/DHTTaskFactory.h
  6528. * src/DHTTaskFactoryImpl.cc
  6529. * src/DHTTaskFactoryImpl.h
  6530. * src/DefaultBtAnnounce.cc
  6531. * src/DefaultBtInteractive.cc
  6532. * src/DefaultBtInteractive.h
  6533. * src/DefaultBtMessageDispatcher.cc
  6534. * src/DefaultBtMessageDispatcher.h
  6535. * src/DefaultBtMessageFactory.cc
  6536. * src/DefaultBtMessageFactory.h
  6537. * src/DefaultBtMessageReceiver.cc
  6538. * src/DefaultBtProgressInfoFile.cc
  6539. * src/DefaultBtProgressInfoFile.h
  6540. * src/DefaultBtRequestFactory.cc
  6541. * src/DefaultBtRequestFactory.h
  6542. * src/DefaultExtensionMessageFactory.cc
  6543. * src/DefaultExtensionMessageFactory.h
  6544. * src/DefaultPeerStorage.cc
  6545. * src/DefaultPeerStorage.h
  6546. * src/DownloadEngine.cc
  6547. * src/DownloadEngine.h
  6548. * src/InitiatorMSEHandshakeCommand.cc
  6549. * src/InitiatorMSEHandshakeCommand.h
  6550. * src/MSEHandshake.cc
  6551. * src/MSEHandshake.h
  6552. * src/Makefile.am
  6553. * src/Makefile.in
  6554. * src/PeerChokeCommand.cc
  6555. * src/PeerChokeCommand.h
  6556. * src/PeerInitiateConnectionCommand.cc
  6557. * src/PeerInitiateConnectionCommand.h
  6558. * src/PeerInteractionCommand.cc
  6559. * src/PeerInteractionCommand.h
  6560. * src/PeerObject.h
  6561. * src/PeerReceiveHandshakeCommand.cc
  6562. * src/PeerReceiveHandshakeCommand.h
  6563. * src/ReceiverMSEHandshakeCommand.cc
  6564. * src/RequestGroup.cc
  6565. * src/RequestGroup.h
  6566. * src/RequestGroupMan.cc
  6567. * src/RequestGroupMan.h
  6568. * src/SeedCheckCommand.cc
  6569. * src/SeedCheckCommand.h
  6570. * src/ShareRatioSeedCriteria.h
  6571. * src/SimpleBtMessage.cc
  6572. * src/TrackerWatcherCommand.cc
  6573. * src/TrackerWatcherCommand.h
  6574. * src/UTPexExtensionMessage.cc
  6575. * src/UTPexExtensionMessage.h
  6576. * test/BtCancelMessageTest.cc
  6577. * test/BtChokeMessageTest.cc
  6578. * test/BtExtendedMessageTest.cc
  6579. * test/BtInterestedMessageTest.cc
  6580. * test/BtNotInterestedMessageTest.cc
  6581. * test/BtPieceMessageTest.cc
  6582. * test/BtPortMessageTest.cc
  6583. * test/BtRegistryTest.cc
  6584. * test/BtRejectMessageTest.cc
  6585. * test/BtRequestMessageTest.cc
  6586. * test/DHTPeerAnnounceEntryTest.cc
  6587. * test/DHTPeerAnnounceStorageTest.cc
  6588. * test/DefaultBtMessageDispatcherTest.cc
  6589. * test/DefaultBtMessageFactoryTest.cc
  6590. * test/DefaultBtProgressInfoFileTest.cc
  6591. * test/DefaultBtRequestFactoryTest.cc
  6592. * test/DefaultExtensionMessageFactoryTest.cc
  6593. * test/MSEHandshakeTest.cc
  6594. * test/MockDHTTaskFactory.h
  6595. * test/ShareRatioSeedCriteriaTest.cc
  6596. * test/UTPexExtensionMessageTest.cc
  6597. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Fixed compiler warning.
  6599. * test/UtilTest.cc
  6600. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Treat Cookie object as session cookie if expiry = 0 is given.
  6602. With this change, you can specify session scoped cookies in an external
  6603. file setting expiry value to 0.
  6604. * src/Cookie.cc
  6605. * src/Cookie.h
  6606. * test/CookieParserTest.cc
  6607. * test/CookieStorageTest.cc
  6608. * test/CookieTest.cc
  6609. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Changed signature of DHTMessageFactory::createResponseMessage().
  6611. Removed unused validateIDMatch.
  6612. * src/DHTMessageFactory.h
  6613. * src/DHTMessageFactoryImpl.cc
  6614. * src/DHTMessageFactoryImpl.h
  6615. * src/DHTMessageTracker.cc
  6616. * test/DHTMessageFactoryImplTest.cc
  6617. * test/MockDHTMessageFactory.h
  6618. Dropped DHT message coming from same ID of localhost.
  6619. * src/DHTMessageReceiver.cc
  6620. Rejected adding node whose ID is the same as localhost's.
  6621. * src/DHTRoutingTable.cc
  6622. * test/BtPortMessageTest.cc
  6623. * test/DHTRoutingTableTest.cc
  6624. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Pool connection when redirection occurs with Content-Length = 0.
  6626. * src/HttpSkipResponseCommand.cc
  6627. * src/HttpSkipResponseCommand.h
  6628. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Fixed the bug that causes time out when redirection occurs with
  6630. content-length 0.
  6631. * src/HttpResponseCommand.cc
  6632. * src/HttpSkipResponseCommand.cc
  6633. * src/HttpSkipResponseCommand.h
  6634. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Now each status legends is shown only when it appears in Download
  6636. Result. If Download Result has no item, then status legend will not
  6637. be printed.
  6638. * src/RequestGroupMan.cc
  6639. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Removed duplicate creation of OptionHandlers.
  6641. * src/option_processing.cc
  6642. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Fixed the bug that causes segmentation fault when accessing files which
  6644. don't exist or are not included in --select-file option while
  6645. validating chunk checksum.
  6646. * src/MultiDiskAdaptor.cc
  6647. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Fixed compiler warning.
  6649. * test/UtilTest.cc
  6650. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6652. * src/IteratableChecksumValidator.cc
  6653. * src/IteratableChunkChecksumValidator.cc
  6654. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. * Release 0.16.2
  6656. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Added Serbian translation. Updated Ukrainian translation.
  6658. Thanks to all translators.
  6659. * po/sr.po
  6660. * po/uk.po
  6661. * po/LINGUAS
  6662. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Bump up version number to 0.16.2
  6664. * configure.ac
  6665. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Added length equality test to operator== to drop a piece message
  6667. whose length does not match to the requested one.
  6668. * src/RequestSlot.cc
  6669. * test/DefaultBtMessageDispatcherTest.cc
  6670. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6672. recieved.
  6673. In this fix, if a request larger than 16KiB length is received, aria2
  6674. disconnects the peer.
  6675. * src/BtConstants.h
  6676. * src/PeerMessageUtil.cc
  6677. * src/PeerMessageUtil.h
  6678. * test/BtRequestMessageTest.cc
  6679. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. * Release 0.16.1
  6681. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6683. * doc/aria2c.1.txt
  6684. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6686. Updated French, Simplified Chinese and Japanese translations.
  6687. Thanks to all translators.
  6688. en@quot and en@boldquot are also added.
  6689. * po/LINGUAS
  6690. * po/fr.po
  6691. * po/ja.po
  6692. * po/uk.po
  6693. * po/vi.po
  6694. * po/zh_CN.po
  6695. * po/zh_TW.po
  6696. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Bump up version number to 0.16.1.
  6698. * configure.ac
  6699. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Updated README.
  6701. * README
  6702. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6704. not to replace '--' with em dash character.
  6705. * doc/aria2c.1.txt
  6706. * doc/makeman
  6707. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6709. every SEC seconds.
  6710. * src/DownloadEngineFactory.cc
  6711. * src/OptionHandlerFactory.cc
  6712. * src/option_processing.cc
  6713. * src/usage_text.h
  6714. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Fixed compile warning on linux-amd64
  6716. * src/FtpConnection.cc
  6717. * src/IteratableChunkChecksumValidator.cc
  6718. * src/MultiDiskAdaptor.cc
  6719. Fixed the bug that unit test fails on linux-amd64
  6720. * test/UtilTest.cc
  6721. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Added --dht-file-path option to change the path to dht.dat, which is a
  6723. serialized DHT routing table.
  6724. * src/OptionHandlerFactory.cc
  6725. * src/option_processing.cc
  6726. * src/usage_text.h
  6727. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Fixed possible underflow.
  6729. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6730. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Fixed the bug that last character in URI is not encoded.
  6732. * src/Request.cc
  6733. * test/RequestTest.cc
  6734. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Fixed the bug that referer header field contains fragment.
  6736. Now Request class removes fragment part of URI and encodes it
  6737. in Request::setUri() and setReferer().
  6738. * src/Request.h
  6739. * src/Request.cc
  6740. * test/RequestTest.cc
  6741. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Added missing m4 macros.
  6743. * m4/cppunit.m4
  6744. * m4/libgcrypt.m4
  6745. * m4/libgnutls-extra.m4
  6746. * m4/libgnutls.m4
  6747. * m4/libxml2.m4
  6748. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Fixed compile error with gcc-4.4(snapshot)
  6750. * src/File.cc
  6751. * src/FtpConnection.cc
  6752. * src/OptionHandlerImpl.h
  6753. * src/Util.cc
  6754. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Removed assert()
  6756. * src/SocketBuffer.cc (SocketBuffer::send)
  6757. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Changed the type of _numNewConnection to unsigned int.
  6759. * src/ActivePeerConnectionCommand.cc
  6760. * src/ActivePeerConnectionCommand.h
  6761. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6762. * Release 0.16.0
  6763. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Updated doc
  6765. * README
  6766. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6768. translations. Thanks to all translators.
  6769. * po/bg.po
  6770. * po/de.po
  6771. * po/fr.po
  6772. * po/ja.po
  6773. * po/zh_CN.po
  6774. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Bump up version number to 0.16.0.
  6776. * configure.ac
  6777. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6779. int32_t.
  6780. Changed the type of count to int32_t.
  6781. * src/Metalink2RequestGroup.cc
  6782. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Added test for Time::elapsed(time_t).
  6784. * test/TimeTest.cc
  6785. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6787. Util::difftv() should be used instead.
  6788. * src/TimeA2.cc
  6789. * src/TimeA2.h
  6790. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Made socket for dht connections non-blocking
  6792. * src/DHTAbstractMessage.cc
  6793. * src/DHTAbstractMessage.h
  6794. * src/DHTConnection.h
  6795. * src/DHTConnectionImpl.cc
  6796. * src/DHTConnectionImpl.h
  6797. * src/DHTMessage.h
  6798. * src/DHTMessageDispatcherImpl.cc
  6799. * src/DHTMessageDispatcherImpl.h
  6800. * src/DHTUnknownMessage.cc
  6801. * src/DHTUnknownMessage.h
  6802. * src/SocketCore.cc
  6803. * src/SocketCore.h
  6804. * test/MockDHTMessage.h
  6805. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Changed the type of offset to int.
  6807. * src/ParameterizedStringParser.cc
  6808. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Made getAsInt() return int32_t
  6810. * src/Option.h
  6811. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6813. build.
  6814. * configure.ac
  6815. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Use sqlite3_open if sqlite3_open_v2 is not available.
  6817. * src/Sqlite3MozCookieParser.cc
  6818. * src/Sqlite3MozCookieParser.h
  6819. * m4/sqlite3.m4
  6820. * test/Sqlite3MozCookieParserTest.cc
  6821. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6823. * src/BtPieceMessage.cc
  6824. * src/DHTPeerAnnounceStorage.cc
  6825. * src/DefaultPieceStorage.cc
  6826. * src/DownloadCommand.cc
  6827. * src/DownloadEngine.cc
  6828. * src/FtpConnection.cc
  6829. * src/PeerConnection.cc
  6830. * src/PeerMessageUtil.cc
  6831. * src/RequestGroup.cc
  6832. * src/RequestGroupMan.cc
  6833. * src/SimpleBtMessage.cc
  6834. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6836. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6837. * src/AbstractDiskWriter.cc
  6838. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Don't set Request::supportsPersistentConnection() in HttpConnection
  6840. since this code is also used in AbstractProxyResponseCommand.
  6841. Moved those code to HttpResponse.
  6842. * src/HttpResponse.cc
  6843. * src/HttpResponse.h
  6844. * src/HttpConnection.cc
  6845. * src/HttpConnection.h
  6846. * src/HttpResponseCommand.cc
  6847. * test/HttpResponseTest.cc
  6848. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6850. The configuration is minimum: no torrent, no metalink, so there may be
  6851. other compile error on their code.
  6852. * src/a2netcompat.h
  6853. * src/File.cc
  6854. * src/File.h
  6855. * src/SocketCore.cc
  6856. * src/SocketCore.h
  6857. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Made a socket of incoming peer non-blocking.
  6859. * src/PeerListenCommand.cc
  6860. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6862. whole message data is not sent in one send() call.
  6863. * src/BtPieceMessage.cc
  6864. * src/BtPieceMessage.h
  6865. * src/PeerConnection.cc
  6866. * src/PeerConnection.h
  6867. * src/SimpleBtMessage.cc
  6868. * src/SimpleBtMessage.h
  6869. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Fixed the bug that aria2 downloads faster than max-download-limit when
  6871. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6872. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6873. , instead of sum of them.
  6874. * src/ActivePeerConnectionCommand.cc
  6875. * src/DefaultBtInteractive.cc
  6876. * src/DownloadCommand.cc
  6877. * src/PeerInteractionCommand.cc
  6878. * src/PeerReceiveHandshakeCommand.cc
  6879. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Fixed the bug that HTTPS download fails.
  6881. * src/AbstractCommand.cc
  6882. * src/AbstractCommand.h
  6883. * src/DownloadCommand.cc
  6884. * src/FtpConnection.cc
  6885. * src/HttpConnection.cc
  6886. * src/HttpRequestCommand.cc
  6887. * src/HttpResponseCommand.cc
  6888. * src/HttpSkipResponseCommand.cc
  6889. * src/MSEHandshake.cc
  6890. * src/PeerConnection.cc
  6891. * src/SocketCore.cc
  6892. * src/SocketCore.h
  6893. Fixed the bug that aria2 doesn't download whole content body and cannot
  6894. reuse connection if chunked transfer encoding and gzip content encoding
  6895. are set.
  6896. * src/DownloadCommand.cc
  6897. * src/HttpSkipResponseCommand.cc
  6898. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Updated man page.
  6900. * doc/aria2c.1.txt
  6901. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. When error occurred while aria2 was parsing an .aria2.conf file, print
  6903. the usage of the option that caused error.
  6904. * src/option_processing.cc
  6905. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Fixed compile error on OptionHandlerException
  6907. * src/Makefile.am
  6908. * src/OptionHandlerException.cc
  6909. * src/OptionHandlerException.h
  6910. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Moved message of the error to OptionHandlerException.h
  6912. * src/NameMatchOptionHandler.h
  6913. * src/OptionHandlerException.h
  6914. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. When error occurs while aria2 is parsing an command-line option, print
  6916. the usage of the option.
  6917. * src/Makefile.am
  6918. * src/NameMatchOptionHandler.h
  6919. * src/OptionHandlerException.h
  6920. * src/option_processing.cc
  6921. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Reverted previous change.
  6923. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6924. username is not in URI.
  6925. * src/HttpRequest.cc
  6926. * src/Request.cc
  6927. * test/HttpRequestTest.cc
  6928. * test/RequestTest.cc
  6929. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Now colon is required for username and password in FTP URL, like:
  6931. ftp://username:password@host.
  6932. If colon is not there, aria2 don't parse it as a username. For example,
  6933. aria2 don't retrieve username from ftp://username@host.
  6934. This fix was made in order to login FTP server via non-transparent ftp
  6935. proxy.
  6936. * src/Request.cc
  6937. * test/RequestTest.cc
  6938. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Use netrc for HTTP.
  6940. Now FTP user/password is sent in Authorization header when
  6941. --ftp-via-http-proxy=get is given.
  6942. * src/AuthConfigFactory.cc
  6943. * src/HttpRequest.cc
  6944. * src/HttpRequest.h
  6945. * src/NetrcAuthResolver.cc
  6946. * src/NetrcAuthResolver.h
  6947. * src/OptionHandlerFactory.cc
  6948. * src/option_processing.cc
  6949. * src/prefs.cc
  6950. * src/prefs.h
  6951. * test/AuthConfigFactoryTest.cc
  6952. * test/HttpRequestTest.cc
  6953. * test/NetrcAuthResolverTest.cc
  6954. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Issue PWD command first and get working directory and use it as a prefix
  6956. for CWD command.
  6957. * src/DownloadEngine.cc
  6958. * src/DownloadEngine.h
  6959. * src/FtpConnection.cc
  6960. * src/FtpConnection.h
  6961. * src/FtpFinishDownloadCommand.cc
  6962. * src/FtpInitiateConnectionCommand.cc
  6963. * src/FtpNegotiationCommand.cc
  6964. * src/FtpNegotiationCommand.h
  6965. * test/FtpConnectionTest.cc
  6966. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Removed default user/pass for FTP user/pass, since it should not have
  6968. precedence over netrc configuration by default.
  6969. * src/OptionHandlerFactory.cc
  6970. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Added debug log for socket event.
  6972. * src/AbstractCommand.cc
  6973. * src/PeerAbstractCommand.cc
  6974. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Log microseconds.
  6976. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6977. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Replaced HelpItem.cc with OptionHandler.cc.
  6979. * po/POTFILES.in
  6980. Updated po files with 'make update-po'
  6981. * po/aria2c.pot
  6982. * po/*.po
  6983. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Removed possible values from the text.
  6985. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6986. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Removed unused preferences:
  6988. PREF_NO_PREALLOCATION
  6989. PREF_STDOUT_LOG
  6990. PREF_TRACKER_MAX_TRIES
  6991. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6992. PREF_MIN_SEGMENT_SIZE
  6993. * src/option_processing.cc
  6994. * src/prefs.cc
  6995. * src/prefs.h
  6996. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Integrated HelpItem into OptionParser to ease the workload for adding
  6998. new options. Removed default value from usage text.
  6999. * src/HelpItem.cc: Removed.
  7000. * src/HelpItem.h: Removed.
  7001. * src/HelpItemFactory.cc: Removed.
  7002. * src/HelpItemFactory.h: Removed.
  7003. * src/Makefile.am
  7004. * src/Makefile.in
  7005. * src/NameMatchOptionHandler.h
  7006. * src/OptionHandler.cc
  7007. * src/OptionHandler.h
  7008. * src/OptionHandlerFactory.cc
  7009. * src/OptionHandlerImpl.h
  7010. * src/OptionParser.cc
  7011. * src/OptionParser.h
  7012. * src/TagContainer.cc: Removed.
  7013. * src/TagContainer.h: Removed.
  7014. * src/TaggedItem.cc: Removed.
  7015. * src/TaggedItem.h: Removed.
  7016. * src/main.cc
  7017. * src/option_processing.cc
  7018. * src/usage_text.h
  7019. * src/version_usage.cc
  7020. * test/HelpItemTest.cc: Removed.
  7021. * test/Makefile.am
  7022. * test/Makefile.in
  7023. * test/OptionHandlerTest.cc
  7024. * test/OptionParserTest.cc
  7025. * test/TagContainerTest.cc: Removed.
  7026. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Moved `TransferStat stat = ...' to inside the `if' clause.
  7028. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7029. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Fixed the bug that a block in a piece is requested when same block is
  7031. already requested to the same peer in end game mode.
  7032. * src/BtRequestFactory.h
  7033. * src/DefaultBtInteractive.cc
  7034. * src/DefaultBtRequestFactory.cc
  7035. * src/DefaultBtRequestFactory.h
  7036. * src/DefaultPieceStorage.cc
  7037. * src/DefaultPieceStorage.h
  7038. * src/PieceStorage.h
  7039. * src/UnknownLengthPieceStorage.cc
  7040. * src/UnknownLengthPieceStorage.h
  7041. * test/DefaultBtRequestFactoryTest.cc
  7042. * test/DefaultPieceStorageTest.cc
  7043. * test/MockBtRequestFactory.h
  7044. * test/MockPieceStorage.h
  7045. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Removed _uploadLength and _downloadLength from PeerSessionResource
  7047. and use PeerStat::_sessionUploadLength and
  7048. PeerStat::_sessionDownloadLength.
  7049. * src/PeerSessionResource.cc
  7050. * src/PeerSessionResource.h
  7051. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Fixed the bug that prefixLength of split bucket which doesn't include
  7053. local node ID is incremented.
  7054. * src/DHTBucket.cc
  7055. * src/DHTBucket.h
  7056. * test/DHTBucketTest.cc
  7057. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Added cookies.sqlite to EXTRA_DIST
  7059. * test/Makefile.am
  7060. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Added Turkish translation. Updated French, German, Russian and
  7062. Simplified Chinese translations. Thanks to all translators.
  7063. * po/LINGUAS
  7064. * po/de.po
  7065. * po/fr.po
  7066. * po/ru.po
  7067. * po/tr.po
  7068. * po/zh_CN.po
  7069. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Added deliminating text to the beginning of the log so that one can find
  7071. where the log starts easily.
  7072. * src/main.cc
  7073. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7075. to fix compile error when async DNS is not enabled by configuration.
  7076. * src/AbstractCommand.cc
  7077. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. If establishing conneciton to a server is failed, then mark error on
  7079. its ServerStat.
  7080. Added the cause of error to log when error event occurred.
  7081. Moved message string to message.h for translation.
  7082. * src/AbstractCommand.cc
  7083. * src/AbstractCommand.h
  7084. * src/FtpNegotiationCommand.cc
  7085. * src/HttpRequestCommand.cc
  7086. * src/PeerAbstractCommand.cc
  7087. * src/message.h
  7088. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Added the function to get error message from socket.
  7090. * src/SocketCore.cc
  7091. * src/SocketCore.h
  7092. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7094. * src/RequestGroupMan.cc
  7095. * src/RequestGroupMan.h
  7096. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. If error event is received in epoll, then abort download immediately.
  7098. * src/AbstractCommand.cc
  7099. * src/Command.cc
  7100. * src/Command.h
  7101. * src/DownloadEngine.cc
  7102. * src/PeerAbstractCommand.cc
  7103. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Added usage message for --uri-selector, --server-stat-of,
  7105. --server-stat-in, --server-stat-timeout options.
  7106. * src/HelpItemFactory.cc
  7107. * src/usage_text.h
  7108. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Added upper limit of FTP response buffer. The current implementation
  7110. uses 4096bytes as a limit.
  7111. * src/FtpConnection.cc
  7112. * src/FtpConnection.h
  7113. * test/FtpConnectionTest.cc
  7114. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Use non-blocking socket for TCP communication to avoid possible
  7116. blocking due to buffer full.
  7117. * src/AbstractProxyRequestCommand.cc
  7118. * src/FtpConnection.cc
  7119. * src/FtpConnection.h
  7120. * src/FtpNegotiationCommand.cc
  7121. * src/FtpNegotiationCommand.h
  7122. * src/HttpConnection.cc
  7123. * src/HttpConnection.h
  7124. * src/HttpRequestCommand.cc
  7125. * src/InitiatorMSEHandshakeCommand.cc
  7126. * src/InitiatorMSEHandshakeCommand.h
  7127. * src/MSEHandshake.cc
  7128. * src/MSEHandshake.h
  7129. * src/Makefile.am
  7130. * src/PeerConnection.cc
  7131. * src/PeerConnection.h
  7132. * src/PeerInteractionCommand.cc
  7133. * src/PeerListenCommand.cc
  7134. * src/ReceiverMSEHandshakeCommand.cc
  7135. * src/ReceiverMSEHandshakeCommand.h
  7136. * src/SocketBuffer.cc
  7137. * src/SocketBuffer.h
  7138. * src/SocketCore.cc
  7139. * src/SocketCore.h
  7140. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Call setStatusRealtime() in constructor.
  7142. * src/RealtimeCommand.cc
  7143. * src/RealtimeCommand.h
  7144. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Call Download::setNoWait(true) to execute newly created command without
  7146. a pause.
  7147. * src/AbstractCommand.cc
  7148. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7150. found' error from HTTP/FTP server NUM times without getting single
  7151. bytes of data, then force the download to fail.
  7152. Basically aria2 tris all URIs available. So if long list of URIs are
  7153. specified in Metalink, then aria2 will take a long time to fail
  7154. eventually if all URIs are outdated. This option eases this situation
  7155. to limit the number of servers to try.
  7156. * src/FtpNegotiationCommand.cc
  7157. * src/HelpItemFactory.cc
  7158. * src/HttpResponseCommand.cc
  7159. * src/OptionHandlerFactory.cc
  7160. * src/PeerStat.h
  7161. * src/RequestGroup.cc
  7162. * src/RequestGroup.h
  7163. * src/SegmentMan.cc
  7164. * src/SegmentMan.h
  7165. * src/option_processing.cc
  7166. * src/prefs.cc
  7167. * src/prefs.h
  7168. * src/usage_text.h
  7169. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7171. response even if more than one response is in it.
  7172. * src/FtpConnection.cc
  7173. * src/FtpConnection.h
  7174. * test/FtpConnectionTest.cc
  7175. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Merged from stable-0.15
  7177. * m4/libcares.m4
  7178. Use pkg-config
  7179. * m4/sqlite3.m4
  7180. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Removed unnecessary if statement.
  7182. * src/DefaultPieceStorage.cc (initPieceStorage)
  7183. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Added --connect-timeout option to specify connect timeout in seconds.
  7185. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7186. connecting to BitTorrent peer is not controlled by this option.
  7187. * src/AbstractProxyRequestCommand.cc
  7188. * src/FtpNegotiationCommand.cc
  7189. * src/HelpItemFactory.cc
  7190. * src/HttpRequestCommand.cc
  7191. * src/OptionHandlerFactory.cc
  7192. * src/option_processing.cc
  7193. * src/prefs.cc
  7194. * src/prefs.h
  7195. * src/usage_text.h
  7196. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Added help message for -R option.
  7198. * src/HelpItemFactory.cc
  7199. * src/usage_text.h
  7200. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Added the message that the time is in local time zone.
  7202. * src/RequestGroup.cc
  7203. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Implemented the ability to get timestamp from remote FTP server using
  7205. MDTM command described in RFC3659.
  7206. * src/FtpConnection.cc
  7207. * src/FtpConnection.h
  7208. * src/FtpNegotiationCommand.cc
  7209. * src/FtpNegotiationCommand.h
  7210. * test/FtpConnectionTest.cc
  7211. * test/Makefile.am
  7212. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Implemented the ability to get timestamp from remote HTTP server and
  7214. apply it to local file. To enable this feature, --remote-time option
  7215. is added. No usage text has been written yet.
  7216. If several servers returns difference timestamp, then aria2 uses latest
  7217. one.
  7218. * src/CopyDiskAdaptor.cc
  7219. * src/CopyDiskAdaptor.h
  7220. * src/DirectDiskAdaptor.cc
  7221. * src/DirectDiskAdaptor.h
  7222. * src/DiskAdaptor.h
  7223. * src/File.cc
  7224. * src/File.h
  7225. * src/HttpHeader.cc
  7226. * src/HttpHeader.h
  7227. * src/HttpResponse.cc
  7228. * src/HttpResponse.h
  7229. * src/HttpResponseCommand.cc
  7230. * src/HttpResponseCommand.h
  7231. * src/MultiDiskAdaptor.cc
  7232. * src/MultiDiskAdaptor.h
  7233. * src/OptionHandlerFactory.cc
  7234. * src/RequestGroup.cc
  7235. * src/RequestGroup.h
  7236. * src/RequestGroupMan.cc
  7237. * src/option_processing.cc
  7238. * src/prefs.cc
  7239. * src/prefs.h
  7240. * test/CopyDiskAdaptorTest.cc
  7241. * test/FileTest.cc
  7242. * test/Makefile.am
  7243. * test/Makefile.in
  7244. * test/MultiDiskAdaptorTest.cc
  7245. * test/TestUtil.cc
  7246. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Fixed the bug that DiskWriterEntry is not created when its
  7248. FileEntry.isRequested() is false and it doesn't share a piece with
  7249. other FileEntries that are requested. This bug causes segmentation fault
  7250. in the end.
  7251. * src/MultiDiskAdaptor.cc
  7252. * src/MultiDiskAdaptor.h
  7253. * src/MultiFileAllocationIterator.cc
  7254. * test/MultiDiskAdaptorTest.cc
  7255. * test/MultiFileAllocationIteratorTest.cc
  7256. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7258. called if the number of file entries are greater than max open files.
  7259. * src/AbstractSingleDiskAdaptor.cc
  7260. * src/AbstractSingleDiskAdaptor.h
  7261. * src/DiskAdaptor.h
  7262. * src/MultiDiskAdaptor.cc
  7263. * src/MultiDiskAdaptor.h
  7264. * test/MultiDiskAdaptorTest.cc
  7265. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Added a constuctor that receives struct timeval.
  7267. Added operator<.
  7268. * src/TimeA2.cc
  7269. * src/TimeA2.h
  7270. * test/TimeTest.cc
  7271. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7273. * src/CookieParser.cc
  7274. * test/CookieParserTest.cc
  7275. * test/HttpResponseTest.cc
  7276. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Implmented the functions to parse date.
  7278. * src/TimeA2.cc
  7279. * src/TimeA2.h
  7280. * test/TimeTest.cc
  7281. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Added "Firefox3 Cookie" feature to FeatureConfig
  7283. * src/FeatureConfig.cc
  7284. * src/FeatureConfig.h
  7285. * test/FeatureConfigTest.cc
  7286. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Bump up version number to 0.16.0b
  7288. * configure.ac
  7289. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Use pkg-config if is is available.
  7291. * m4/openssl.m4
  7292. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7294. * src/BtAnnounce.h
  7295. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. If an error occurred with a URI, remove identical URI from remaining
  7297. URI list because it is likely that same error occurred in the end and it
  7298. is waste of time.
  7299. * src/AbstractCommand.cc
  7300. * src/RequestGroup.cc
  7301. * src/RequestGroup.h
  7302. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Removed wrong comment.
  7304. * src/DefaultPeerStorage.cc
  7305. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7307. Added return value of getpid() to argument of srand() to achieve more
  7308. randomized value.
  7309. * src/SimpleRandomizer.cc
  7310. * src/SimpleRandomizer.h
  7311. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Contact tracker frequently when the number of connections are 0 and
  7313. download is not finished yet.
  7314. * src/ActivePeerConnectionCommand.cc
  7315. * src/BtAnnounce.h
  7316. * src/DefaultBtAnnounce.cc
  7317. * src/DefaultBtAnnounce.h
  7318. * test/MockBtAnnounce.h
  7319. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Moved threshold values to UTPexExtensionMessage.
  7321. * src/DefaultBtInteractive.cc
  7322. * src/Peer.cc
  7323. * src/Peer.h
  7324. * src/UTPexExtensionMessage.cc
  7325. * src/UTPexExtensionMessage.h
  7326. * test/UTPexExtensionMessageTest.cc
  7327. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Added _incoming member to Peer class and made it true if the peer
  7329. initiated connection. Don't add those peer to UTPex message.
  7330. If extended handshake is received, assign _incoming to false.
  7331. * src/DefaultBtInteractive.cc
  7332. * src/HandshakeExtensionMessage.cc
  7333. * src/Peer.cc
  7334. * src/Peer.h
  7335. * src/PeerListenCommand.cc
  7336. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7338. Encoding Decoder. Removed size threshold for turning off on the fly
  7339. inflation because resulting file may or may not be inflated depending
  7340. on the file size and I think it is not expected by users.
  7341. This change fixes segmentation fault when Metalink file contains gzipped
  7342. file and its filesize is provided.
  7343. * src/HttpResponseCommand.cc
  7344. * src/HttpResponseCommand.h
  7345. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Made Cookie immutable.
  7347. * src/Cookie.cc
  7348. * src/Cookie.h
  7349. * src/CookieParser.cc
  7350. * src/CookieParser.h
  7351. * src/CookieStorage.cc
  7352. * test/CookieParserTest.cc
  7353. * test/CookieStorageTest.cc
  7354. * test/NsCookieParserTest.cc
  7355. * test/Sqlite3MozCookieParserTest.cc
  7356. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Removed CookieBox, CookieBoxFactory.
  7358. * src/CookieBox.cc
  7359. * src/CookieBox.h
  7360. * src/CookieBoxFactory.cc
  7361. * src/CookieBoxFactory.h
  7362. * src/Makefile.am
  7363. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. Use CookieStorage class instead of CookieBox class.
  7365. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7366. * src/AbstractProxyRequestCommand.cc
  7367. * src/CookieStorage.cc
  7368. * src/DownloadEngine.cc
  7369. * src/DownloadEngine.h
  7370. * src/HttpConnection.cc
  7371. * src/HttpConnection.h
  7372. * src/HttpRequest.cc
  7373. * src/HttpRequest.h
  7374. * src/HttpRequestCommand.cc
  7375. * src/HttpResponse.cc
  7376. * src/HttpResponseCommand.cc
  7377. * src/HttpSkipResponseCommand.cc
  7378. * src/Makefile.am
  7379. * src/MultiUrlRequestInfo.cc
  7380. * src/Request.cc
  7381. * src/Request.h
  7382. * src/main.cc
  7383. * test/AllTest.cc
  7384. * test/CookieStorageTest.cc
  7385. * test/CookieTest.cc
  7386. * test/HttpRequestTest.cc
  7387. * test/HttpResponseTest.cc
  7388. * test/Makefile.am
  7389. * test/NsCookieParserTest.cc
  7390. * test/Sqlite3MozCookieParserTest.cc
  7391. * test/nscookietest.txt
  7392. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Updated
  7394. * test/Cookies.sqlite
  7395. * test/nscookietest.txt
  7396. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Added tests for CookieStorage::load()
  7398. * test/CookieStorageTest.cc
  7399. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Added CookieStorage class which is based on RFC2109 and manages cookies
  7401. more strictly than CookieBox and CookieBoxFactory class.
  7402. * src/CookieStorage.cc
  7403. * src/CookieStorage.h
  7404. * src/Cookie.cc
  7405. * src/Cookie.h
  7406. * test/CookieStorageTest.cc
  7407. * test/CookieTest.cc
  7408. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Fixed the bug that commands are created more than the number of pieces.
  7410. * src/RequestGroup.cc
  7411. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Fixed infinite loop bug in FTP when SIZE command failed.
  7413. * src/FtpNegotiationCommand.cc
  7414. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Removed DirectDiskAdaptorTest.h
  7416. * test/Makefile.am
  7417. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Fixed chunk checksum validation cannot detect trailing garbage data.
  7419. BUG#2074141
  7420. * src/AbstractSingleDiskAdaptor.cc
  7421. * src/AbstractSingleDiskAdaptor.h
  7422. * src/CheckIntegrityEntry.cc
  7423. * src/CheckIntegrityEntry.h
  7424. * src/DiskAdaptor.h
  7425. * src/MultiDiskAdaptor.cc
  7426. * src/MultiDiskAdaptor.h
  7427. * src/RequestGroup.cc
  7428. * test/DirectDiskAdaptorTest.cc
  7429. * test/MultiDiskAdaptorTest.cc
  7430. * test/TestUtil.cc
  7431. * test/TestUtil.h
  7432. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Bump up version number of dht.dat file to 3. In version 3 format, time
  7434. is stored in 64bit, network byte order.
  7435. New build can load old format(version 2) but it saves the file in new
  7436. format. It means once you used new build, your dht.dat becomes
  7437. incompatible with older build.
  7438. * src/DHTRoutingTableDeserializer.cc
  7439. * src/DHTRoutingTableSerializer.cc
  7440. * test/DHTRoutingTableSerializerTest.cc
  7441. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7443. * test/Makefile.am
  7444. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Bump up version number of .aria2 control file to 0001.
  7446. New aria2 can still load version 0000 file but it saves the file in
  7447. version 0001 format. It means that new aria2 can resume download
  7448. started by old aria2 but the opposite is not true.
  7449. * src/DefaultBtProgressInfoFile.cc
  7450. * src/DefaultBtProgressInfoFile.h
  7451. * test/DefaultBtProgressInfoFileTest.cc
  7452. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Added ntoh64 and hton64 as inline functions.
  7454. * src/Util.cc
  7455. * test/UtilTest.cc
  7456. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Added sqlite3 depenency and Firefox3 cookie support.
  7458. * README
  7459. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. State that firefox3 cookie is supported explicitly in the usage.
  7461. * src/usage_text.h
  7462. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Externalized message.
  7464. * src/RequestGroupMan.cc
  7465. * src/message.h
  7466. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Save temporary file first and rename to the destination on success.
  7468. Added test cases.
  7469. * src/RequestGroupMan.cc
  7470. * test/RequestGroupManTest.cc
  7471. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Fixed the bug that the number of connected peer is exceeding the limit
  7473. (55 by default) in seeding mode.
  7474. Multiplied 0.8 to _maxUploadSpeedLimit.
  7475. * src/ActivePeerConnectionCommand.cc
  7476. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Clear table item.
  7478. * src/Dictionary.cc
  7479. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Fixed error handling of lseek.
  7481. * src/AbstractDiskWriter.cc
  7482. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7484. style cookie file.
  7485. * src/usage_text.h
  7486. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7488. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7489. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7490. * src/Util.cc
  7491. * src/Util.h
  7492. * src/CookieParser.cc
  7493. * test/UtilTest.cc
  7494. * test/CookieParserTest.cc
  7495. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Separate the implementation to load old mozilla format of cookie to
  7497. NsCookieParser class.
  7498. * src/CookieBoxFactory.cc
  7499. * src/CookieBoxFactory.h
  7500. * src/NsCookieParser.cc
  7501. * src/NsCookieParser.h
  7502. * test/NsCookieParserTest.cc
  7503. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Made parse() const
  7505. * src/Sqlite3MozCookieParser.cc
  7506. * src/Sqlite3MozCookieParser.h
  7507. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Added firefox3 cookie support based on the patch submitted by
  7509. tizianomueller.
  7510. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7511. this functionality.
  7512. * configure.ac
  7513. * m4/sqlite3.m4
  7514. * src/CookieBoxFactory.cc
  7515. * src/CookieBoxFactory.h
  7516. * src/Makefile.am
  7517. * src/Makefile.in
  7518. * src/Sqlite3MozCookieParser.cc
  7519. * src/Sqlite3MozCookieParser.h
  7520. * src/main.cc
  7521. * test/CookieBoxFactoryTest.cc
  7522. * test/Makefile.am
  7523. * test/Makefile.in
  7524. * test/Sqlite3MozCookieParserTest.cc
  7525. * test/badcookies.sqlite
  7526. * test/cookies.sqlite
  7527. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Added Danish and Greek translations.
  7529. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7530. Great thanks to all translators.
  7531. * po/LINGUAS
  7532. * po/el.po
  7533. * po/da.po
  7534. * po/es.po
  7535. * po/ca.po
  7536. * po/nn.po
  7537. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Fixed man page: --follow-bittorrent should be --follow-torrent
  7539. * doc/aria2c.1.txt
  7540. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Fixed: numCommand is less than the value specified in -C option.
  7542. * src/RequestGroup.cc
  7543. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Fixed occasional assertion failure in PieceSegment.
  7545. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7546. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7547. creation of duplicate segments and one of the segment was finished then
  7548. assertion failure was caused.
  7549. * src/SegmentMan.cc
  7550. * test/SegmentManTest.cc
  7551. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Added options to load/save the server's performance/status to a file
  7553. and the timeout to drop their data.
  7554. --server-stat-of=FILE specifies the file to which performance data
  7555. is saved.
  7556. --server-stat-if=FILE specifies the file to read previously saved
  7557. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7558. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7559. TIMEOUT is specified in seconds and the default value is 24hours.
  7560. * src/MultiUrlRequestInfo.cc
  7561. * src/OptionHandlerFactory.cc
  7562. * src/RequestGroupMan.cc
  7563. * src/RequestGroupMan.h
  7564. * src/ServerStatMan.cc
  7565. * src/ServerStatMan.h
  7566. * src/option_processing.cc
  7567. * src/prefs.cc
  7568. * src/prefs.h
  7569. * test/ServerStatManTest.cc
  7570. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7572. * src/ServerStatMan.cc
  7573. * src/ServerStatMan.h
  7574. * test/ServerStatManTest.cc
  7575. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Implemented ServerStatMan::load(...) function and its test case.
  7577. * src/ServerStat.cc
  7578. * src/ServerStat.h
  7579. * src/ServerStatMan.cc
  7580. * test/ServerStatManTest.cc
  7581. * test/ServerStatTest.cc
  7582. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Use time_t instead of int32_t. Use int64_t where milli second is
  7584. expected.
  7585. * src/TimeA2.cc
  7586. * src/TimeA2.h
  7587. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Implemented ServerStatMan::save(...) function and its test case.
  7589. * src/ServerStat.cc
  7590. * src/ServerStat.h
  7591. * src/ServerStatMan.cc
  7592. * src/ServerStatMan.h
  7593. * test/ServerStatManTest.cc
  7594. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Now aria2 uses name attribute in Metalink as local filename in
  7596. BitTorrent downloads. BUG#2033999
  7597. * src/BtContext.h
  7598. * src/BtDependency.cc
  7599. * src/DefaultBtContext.cc
  7600. * src/DefaultBtContext.h
  7601. * src/SingleFileDownloadContext.cc
  7602. * src/SingleFileDownloadContext.h
  7603. * test/BtDependencyTest.cc
  7604. * test/DefaultBtContextTest.cc
  7605. * test/MockBtContext.h
  7606. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Added AC_C_BIGENDIAN
  7608. * src/configure.ac
  7609. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Limited numCommand less than or equal to the number of piece.
  7611. * src/RequestGroup.cc
  7612. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7614. directive.
  7615. * test/DefaultPieceStorageTest.cc
  7616. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed memory leak in test code
  7618. * test/AnnounceListTest.cc
  7619. * test/DefaultPeerListProcessorTest.cc
  7620. * test/DefaultPeerStorageTest.cc
  7621. * test/MetaFileUtilTest.cc
  7622. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7624. * src/DefaultPieceStorage.cc
  7625. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Initialized _directIOAllowed
  7627. * src/MultiDiskAdaptor.cc
  7628. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Fixed memory leak
  7630. * src/GZipDecoder.cc
  7631. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Fixed memory leak
  7633. * src/MetalinkParserStateMachine.cc
  7634. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Fixed memory leak
  7636. * src/Dictionary.cc
  7637. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Fixed memory leak
  7639. * src/IteratableChunkChecksumValidator.h
  7640. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Fixed unmatched malloc/free.
  7642. * src/IteratableChunkChecksumValidator.cc
  7643. * src/IteratableChecksumValidator.cc
  7644. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Removed max chunk size check. This change fixes BUG#2040169
  7646. * src/ChunkedDecoder.cc
  7647. * src/ChunkedDecoder.h
  7648. * test/ChunkedDecoderTest.cc
  7649. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Implemented download speed based URI selection algorithm.
  7651. Introduced new option --uri-selector.
  7652. If --uri-selector=feedback is given, aria2 uses download speed observed
  7653. in the previous downloads and chooses fastest server in the URI list.
  7654. Currently at most 10 URIs are considered to introduce randomeness for
  7655. finding better servers. The speed is average download speed in the
  7656. downloads.
  7657. On the other hand, if --uri-selector=inorder is given, which is default,
  7658. URI is tried in order in URI list.
  7659. The usage text for the new option has not been written yet.
  7660. * src/AbstractCommand.cc
  7661. * src/DownloadCommand.cc
  7662. * src/DownloadEngine.cc
  7663. * src/DownloadEngineFactory.cc
  7664. * src/InOrderURISelector.cc
  7665. * src/InOrderURISelector.h
  7666. * src/OptionHandlerFactory.cc
  7667. * src/PeerStat.h
  7668. * src/RequestGroup.cc
  7669. * src/RequestGroup.h
  7670. * src/RequestGroupMan.cc
  7671. * src/RequestGroupMan.h
  7672. * src/SegmentMan.cc
  7673. * src/SegmentMan.h
  7674. * src/ServerStat.cc
  7675. * src/ServerStat.h
  7676. * src/ServerStatMan.cc
  7677. * src/ServerStatMan.h
  7678. * src/ServerStatURISelector.cc
  7679. * src/ServerStatURISelector.h
  7680. * src/URISelector.h
  7681. * src/option_processing.cc
  7682. * src/prefs.cc
  7683. * src/prefs.h
  7684. * test/InOrderURISelectorTest.cc
  7685. * test/RequestGroupManTest.cc
  7686. * test/ServerStatManTest.cc
  7687. * test/ServerStatURISelectorTest.cc
  7688. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. * Release 0.15.1+2
  7690. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Bump up version number to 0.15.1+2
  7692. * configure.ac
  7693. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7695. * m4/aria2_arg.m4
  7696. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. * Release 0.15.1+1
  7698. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Bump up version number to 0.15.1+1
  7700. * configure.ac
  7701. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Fixed the bug that causes segmentaion fault when resuming download
  7703. using metalink without size tag. Reproducible only using HTTP URI.
  7704. * src/HttpResponseCommand.cc
  7705. * src/FtpNegotiationCommand.cc
  7706. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. * Release 0.15.1
  7708. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. Updated Bulgarian and French translations, thanks to all translators.
  7710. * po/bg.po
  7711. * po/fr.po
  7712. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Bump up version number to 0.15.1
  7714. * configure.ac
  7715. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Avoid repeated call of gettimeofday() when calculating speed.
  7717. * src/SpeedCalc.cc
  7718. * src/SpeedCalc.h
  7719. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. Removed writable check when socket's send buffer is full in BitTorrent
  7721. downloads to lower CPU usage.
  7722. * src/PeerInteractionCommand.cc
  7723. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Fixed broken gzip inflation.
  7725. Turn off segmented downloading if gzip content is smaller than or equal
  7726. to 1MiB and inflate the data on the fly, because HTTP response header
  7727. doesn't contain the length of inflated file we can't determin where
  7728. the chunk of data should be written.
  7729. On the other hand, if gzip content is larger than 1MB, then turn off
  7730. on the fly inflation, because some servers returns "content-type: gzip"
  7731. for *.tgz, *.gz files.
  7732. * src/DownloadCommand.cc
  7733. * src/HttpResponseCommand.cc
  7734. * src/HttpResponseCommand.h
  7735. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Applied tizianomueller's patch to fix compile error.
  7737. * test/BitfieldManTest.cc
  7738. * test/BtRequestMessageTest.cc
  7739. * test/DefaultBtContextTest.cc
  7740. * test/DefaultDiskWriterTest.cc
  7741. * test/DefaultPieceStorageTest.cc
  7742. * test/HttpHeaderProcessorTest.cc
  7743. * test/HttpResponseTest.cc
  7744. * test/Metalink2RequestGroupTest.cc
  7745. * test/MetalinkParserControllerTest.cc
  7746. * test/MetalinkProcessorTest.cc
  7747. * test/PeerSessionResourceTest.cc
  7748. * test/UtilTest.cc
  7749. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. * Release 0.15.0
  7751. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Reordered src files in POTFILES.in so that usage text appears first.
  7753. * po/POTFILES.in
  7754. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Bump up version number to 0.15.0
  7756. * configure.ac
  7757. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Added Bulgarian translation.
  7759. Updated Catalan, Spanish, French and Japanese translations.
  7760. Thanks to all translators.
  7761. * po/LINGUAS
  7762. * po/bg.po
  7763. * po/ca.po
  7764. * po/es.po
  7765. * po/fr.po
  7766. * po/ja.po
  7767. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7768. Updated feature list. Added libz for dependency section.
  7769. Added a description about unit testing using CppUnit.
  7770. * README
  7771. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Added a test for libz. Quoted where it is necessary.
  7773. * build_test.sh
  7774. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Added GZip to `Enabled Features' list.
  7776. * src/FeatureConfig.cc
  7777. * src/FeatureConfig.h
  7778. * test/FeatureConfigTest.cc
  7779. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7781. the transfer has not yet started.
  7782. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7783. * src/SegmentMan.cc
  7784. * src/SegmentMan.h
  7785. * test/SegmentManTest.cc
  7786. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Cache last calculated average download/upload speed.
  7788. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7789. cached value.
  7790. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7791. * src/PeerStat.h
  7792. * src/SpeedCalc.cc
  7793. * src/SpeedCalc.h
  7794. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Call parseUrl directly.
  7796. * src/Request.cc (resetUrl)
  7797. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Supported absolute/relative path in Location header field.
  7799. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7800. * src/HttpHeader.cc
  7801. * src/HttpHeader.h
  7802. * src/HttpResponse.cc
  7803. * src/HttpSkipResponseCommand.cc
  7804. * src/Request.cc
  7805. * test/HttpHeaderTest.cc
  7806. * test/HttpResponseTest.cc
  7807. * test/RequestTest.cc
  7808. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Changed help text for --load-cookie option.
  7810. * doc/aria2c.1.txt
  7811. * src/usage_text.h
  7812. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Regenerated test/Makefile.in to remove stale ChangeLog.
  7814. * test/Makefile.in
  7815. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Updated po files.
  7817. * po/aria2c.pot
  7818. * po/*.po
  7819. * po/*.gmo
  7820. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Bump up version number to 0.15.0b
  7822. * configure.ac
  7823. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Externalize messages.
  7825. * src/RequestGroupMan.cc
  7826. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7827. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Use File::exists() instead of File::isFile() to allow non-regular file
  7829. such as block special files.
  7830. * src/AbstractDiskWriter.cc
  7831. * src/MultiDiskWriter.cc
  7832. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7834. * src/gai_strerror.h
  7835. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Fixed compile error. Thanks gknauf for the patch.
  7837. * src/asctime_r.c
  7838. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Included asctime_r.h from a2time.h.
  7840. * src/a2time.h
  7841. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Added a message "aria2 doesn't verify signature" to log message when
  7843. signature file is saved.
  7844. * src/RequestGroupMan.cc
  7845. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. Added the ability to save signature when download is completed if
  7847. signature is available. The filename of signature file is the path to
  7848. download file followed by ".sig". If it already exists, then signature
  7849. will not be saved.
  7850. * src/RequestGroupMan.cc
  7851. * src/Signature.cc
  7852. * test/SignatureTest.cc
  7853. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Updated the descriptions for --bt-seed-unverified.
  7855. * doc/aria2c.1
  7856. * doc/aria2c.1.html
  7857. * doc/aria2c.1.txt
  7858. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7860. that this is not going to verify files using piece hashes.
  7861. * src/HelpItemFactory.cc
  7862. * src/OptionHandlerFactory.cc
  7863. * src/RequestGroup.cc
  7864. * src/option_processing.cc
  7865. * src/prefs.cc
  7866. * src/prefs.h
  7867. * src/usage_text.h
  7868. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Added the ability to retrieve signature from Metalink file.
  7870. A retrieved signature is stored in Signature class and it is held by
  7871. DownloadContext class. Note that aria2 doesn't verify signature.
  7872. * src/DownloadContext.cc
  7873. * src/DownloadContext.h
  7874. * src/Makefile.am
  7875. * src/Makefile.in
  7876. * src/Metalink2RequestGroup.cc
  7877. * src/MetalinkEntry.cc
  7878. * src/MetalinkEntry.h
  7879. * src/MetalinkParserController.cc
  7880. * src/MetalinkParserController.h
  7881. * src/MetalinkParserStateMachine.cc
  7882. * src/MetalinkParserStateMachine.h
  7883. * src/Signature.cc
  7884. * src/Signature.h
  7885. * src/SignatureMetalinkParserState.cc
  7886. * src/SignatureMetalinkParserState.h
  7887. * src/VerificationMetalinkParserState.cc
  7888. * src/VerificationMetalinkParserState.h
  7889. * test/Metalink2RequestGroupTest.cc
  7890. * test/MetalinkParserControllerTest.cc
  7891. * test/MetalinkProcessorTest.cc
  7892. * test/test.xml
  7893. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Close DiskAdaptor after renaming file.
  7895. * src/RequestGroup.cc
  7896. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. Corrected indentation
  7898. * src/DefaultBtProgressInfoFile.cc
  7899. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Moved the calls of std::ios::exceptions() inside of try-catch block
  7901. because if an error occurred in constructor of std::fstream, then
  7902. exception is thrown immediately when std::ios::exceptions() is called
  7903. which results unhandled exception and aria2c aborts.
  7904. * src/DefaultBtProgressInfoFile.cc
  7905. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Added the test for the previous change in DefaultBtContext.cc
  7907. * test/DefaultBtContextTest.cc
  7908. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Fixed the bug that causes infinite loop when the number of pieces are
  7910. fewer than allowed fast set size which is 10 by default.
  7911. * src/DefaultBtContext.cc
  7912. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Updated the descriptions for -j, -s. Added --bt-seed.
  7914. * doc/aria2c.1
  7915. * doc/aria2c.1.html
  7916. * doc/aria2c.1.txt
  7917. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7919. aria2 seeds previously downloaded files without validating piece hashs.
  7920. * src/HelpItemFactory.cc
  7921. * src/OptionHandlerFactory.cc
  7922. * src/RequestGroup.cc
  7923. * src/option_processing.cc
  7924. * src/prefs.cc
  7925. * src/prefs.h
  7926. * src/usage_text.h
  7927. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Updated DESCRIPTION of man page.
  7929. * doc/aria2c.1
  7930. * doc/aria2c.1.html
  7931. * doc/aria2c.1.txt
  7932. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7934. Don't define `struct addrinfo' when __sun is defined.
  7935. * src/getaddrinfo.h
  7936. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7938. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7939. second argument is of type `struct _stati64'. Otherwise it is defined as
  7940. `struct stat'.
  7941. * src/AbstractDiskWriter.cc
  7942. * src/File.cc
  7943. * src/File.h
  7944. * src/a2io.h
  7945. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Fixed the compile error in hurd-i386
  7947. See the original bug report:
  7948. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7949. * src/a2io.h
  7950. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Code cleanup.
  7952. * src/PeerAbstractCommand.cc
  7953. * src/PeerAbstractCommand.h
  7954. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Removed TransferEncoding.
  7956. * src/DownloadCommand.cc
  7957. * src/DownloadCommand.h
  7958. * src/HttpResponseCommand.cc
  7959. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Updated po files.
  7961. * po/aria2c.pot
  7962. * po/*.po
  7963. * po/*.gmo
  7964. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7966. * src/A2STR.cc
  7967. * src/A2STR.h
  7968. * src/ChunkedDecoder.cc
  7969. * src/ChunkedDecoder.h
  7970. * src/ChunkedEncoding.cc: Removed
  7971. * src/ChunkedEncoding.h: Removed
  7972. * src/DownloadCommand.cc
  7973. * src/DownloadCommand.h
  7974. * src/HttpDownloadCommand.cc
  7975. * src/HttpResponse.cc
  7976. * src/HttpResponse.h
  7977. * src/HttpResponseCommand.cc
  7978. * src/HttpSkipResponseCommand.cc
  7979. * src/HttpSkipResponseCommand.h
  7980. * src/Makefile.am
  7981. * src/TransferEncoding.h: Removed
  7982. * test/ChunkedDecoderTest.cc
  7983. * test/ChunkedEncodingTest.cc: Removed
  7984. * test/HttpResponseTest.cc
  7985. * test/Makefile.am
  7986. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Use append instead of insert.
  7988. * src/GZipDecoder.cc
  7989. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Updated doc
  7991. * src/Decoder.h
  7992. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Updated usage text for -s option.
  7994. * src/usage_text.h
  7995. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7997. * src/Request.cc
  7998. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Cleaned up configure.ac.
  8000. * configure.ac
  8001. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8003. AC_ARG_ENABLE.
  8004. * configure.ac
  8005. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8007. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8008. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8009. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8010. fly and writes decoded data to a local disk.
  8011. * README
  8012. * README.html
  8013. * configure.ac
  8014. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8015. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8016. * m4/libz.m4
  8017. * src/Decoder.h
  8018. * src/DownloadCommand.cc
  8019. * src/DownloadCommand.h
  8020. * src/Exception.h
  8021. * src/GZipDecoder.cc
  8022. * src/GZipDecoder.h
  8023. * src/HttpHeader.cc
  8024. * src/HttpHeader.h
  8025. * src/HttpRequest.cc
  8026. * src/HttpRequest.h
  8027. * src/HttpResponse.cc
  8028. * src/HttpResponse.h
  8029. * src/HttpResponseCommand.cc
  8030. * src/Makefile.am
  8031. * test/GZipDecoderTest.cc
  8032. * test/HttpRequestTest.cc
  8033. * test/HttpResponseTest.cc
  8034. * test/Makefile.am
  8035. * test/Makefile.in
  8036. * test/gzip_decode_test.gz
  8037. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Clarified usage of -j option.
  8039. * src/usage_text.h
  8040. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Disabled getting size from the response of RETR.
  8042. If SIZE command failed, then disable resuming and segmented downloading.
  8043. * src/FtpConnection.cc
  8044. * src/FtpConnection.h
  8045. * src/FtpNegotiationCommand.cc
  8046. * src/FtpNegotiationCommand.h
  8047. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Use digits to find first byte of file size, which makes the intention
  8049. of the code clearer.
  8050. * src/FtpConnection.cc
  8051. Don't call validateTotalLength() when size is 0.
  8052. * src/FtpNegotiationCommand.cc
  8053. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Updated po files.
  8055. * po/aria2c.pot
  8056. * po/*.gmo
  8057. * po/*.po
  8058. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Clarified usage text for --split option.
  8060. * src/usage_text.h
  8061. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8062. Bump up version number to 0.15.0dev. "dev" means "development"
  8063. version, which means I started the development of the next release!
  8064. * src/configure.ac
  8065. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. If FTP server returns negative response with REST raw command and
  8067. requested range is not 0, throw exception. If requested range is 0,
  8068. continue download a file from 0 byte.
  8069. * src/FtpNegotiationCommand.cc
  8070. * src/FtpNegotiationCommand.h
  8071. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Supported FTP server which don't recognize SIZE raw command.
  8073. If SIZE raw command is failed, aria2 will try to get file size
  8074. from the response of RETR raw command. If both attempts are failed,
  8075. then resuming and segmented downloading are disabled.
  8076. * src/FtpConnection.cc
  8077. * src/FtpConnection.h
  8078. * src/FtpNegotiationCommand.cc
  8079. * src/FtpNegotiationCommand.h
  8080. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8081. * Release 0.14.0+1
  8082. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Bump up version number to 0.14.0+1
  8084. * src/configure.ac
  8085. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Fixed the code that refers static member variable from non-static
  8087. context.
  8088. * src/DefaultPeerStorage.cc
  8089. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. * Release 0.14.0
  8091. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Added build test script
  8093. * build_test.sh
  8094. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Updated ja.po
  8096. * src/ja.po
  8097. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Bump up version number to 0.14.0
  8099. * src/configure.ac
  8100. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Updated ja.po and fr.po. Great thanks for french translators and
  8102. Sebastien WILLEMIJNS.
  8103. * po/fr.po
  8104. * po/ja.po
  8105. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Added configure option to enable/disable epoll support.
  8107. * configure.ac
  8108. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Updated man page.
  8110. * doc/aria2c.1.txt
  8111. * doc/aria2c.1
  8112. * doc/aria2c.1.html
  8113. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Added missing default value '5' to the usage of --split option.
  8115. * src/HelpItemFactory.cc
  8116. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Filled up pieces based on the number of missing blocks, rather than
  8118. simplay the number of piece * block length.
  8119. * src/BtRequestFactory.h
  8120. * src/DefaultBtInteractive.cc
  8121. * src/DefaultBtInteractive.h
  8122. * src/DefaultBtRequestFactory.cc
  8123. * src/DefaultBtRequestFactory.h
  8124. * src/Piece.cc
  8125. * src/Piece.h
  8126. * test/BitfieldManTest.cc
  8127. * test/DefaultBtRequestFactoryTest.cc
  8128. * test/MockBtRequestFactory.h
  8129. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Made _epEvents a member variable.
  8131. * src/DownloadEngine.cc
  8132. * src/DownloadEngine.h
  8133. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Cancel download if http redirect is bounded more than 20 times.
  8135. * src/AbstractCommand.cc
  8136. * src/HttpSkipResponseCommand.cc
  8137. * src/Request.cc
  8138. * src/Request.h
  8139. * test/RequestTest.cc
  8140. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Fixed unhandled exception(removed keyword `new').
  8142. * src/SocketCore.cc (initEPOLL)
  8143. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Removed visit(const MetaEntry*)
  8145. * src/MetaEntryVisitor.h:
  8146. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8147. and made them virtual.
  8148. * src/BencodeVisitor.h
  8149. * src/BencodeVisitor.cc
  8150. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Updated po files.
  8152. * po/aria2c.pot
  8153. * po/*.po
  8154. * po/*.gmo
  8155. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8157. the number of socket to watch out.
  8158. * src/PeerInteractionCommand.cc
  8159. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. When there is not enough space in disk when writing a chunk of data,
  8161. aria2 now prints the message to the console to warn user and aborts
  8162. its download. Not all downloads are canceled because some downloads
  8163. may use another disk or partition. BUG#1640332
  8164. * src/AbstractDiskWriter.cc
  8165. * src/PeerAbstractCommand.cc
  8166. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8167. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8168. setHaltRequested(true) to cancel download.
  8169. * src/PeerInteractionCommand.h
  8170. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8172. socket from int to sock_t as sockets are unsigned in Windows.
  8173. For AsyncNameResolver, DownloadEngine, I did additional modification
  8174. for the portion of the code changed according to epoll support.
  8175. I defined sock_t in a2netcompat.h to use sock_t without including
  8176. SocketCore.h.
  8177. * src/AsyncNameResolver.cc
  8178. * src/AsyncNameResolver.h
  8179. * src/DownloadEngine.cc
  8180. * src/DownloadEngine.h
  8181. * src/SocketCore.cc
  8182. * src/SocketCore.h
  8183. * src/a2netcompat.h
  8184. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8186. changes in the patch were applied.
  8187. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8188. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8189. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8190. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8192. a2io.h and common.h were modified.
  8193. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8194. MinGW.
  8195. * src/common.h: Changed off_t to 64 bit in MinGW.
  8196. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8198. only a2netcompat.h is modified.
  8199. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8200. directives.
  8201. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8203. only gai_strerror.h is modified.
  8204. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8205. winsock errors in MinGW.
  8206. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8208. follow sources are applied.
  8209. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8210. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8211. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8212. I included locale.h from Platform.cc.
  8213. * src/main.cc: Moved common setup/teardown code to Platform class.
  8214. * test/AllTest.cc: Use Platform class.
  8215. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8216. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8218. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8219. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8220. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8222. aria2-0.13.2+1-mingw-2.patch.
  8223. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8224. systems which don't have termious.h. I moved the directive inside of
  8225. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8226. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8227. anyway.
  8228. * src/asctime_r.h
  8229. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8230. I added 2nd argument to the prototype declaration.
  8231. * src/StringFormat.cc: Get rid of vasprintf.
  8232. * src/getaddrinfo.h: Fixed constants.
  8233. * configure.ac: Added the check for asctime_r function.
  8234. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8235. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Added writable test for Socket when the sending message is in progress.
  8237. Usually the sending message is piece message. Without wriable check,
  8238. upload latency is dropped to more than 1sec.
  8239. * src/PeerInteractionCommand.cc
  8240. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Create only requested files and files which shares a piece with
  8242. requested file in multi-torrent downloads. Directory structures are
  8243. also created in the same rule.
  8244. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8245. DiskWriterEntry as in the previous implementation.
  8246. * src/MultiDiskWriter.cc
  8247. * src/MultiFileAllocationIterator.cc
  8248. * src/MultiFileAllocationIterator.h
  8249. * test/MultiFileAllocationIteratorTest.cc
  8250. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Commented out -lprofiler
  8252. * src/Makefile.am
  8253. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Bump up version number to 0.14.0b.
  8255. * src/configure.ac
  8256. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Actively establish connection to peers in seeding, when peer cache
  8258. is not full and max upload speed limit is not reached.
  8259. * src/ActivePeerConnectionCommand.cc
  8260. * src/ActivePeerConnectionCommand.h
  8261. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8263. to make room more fleshy, recently found peers.
  8264. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8265. it.
  8266. * src/DefaultPeerStorage.cc
  8267. * test/DefaultPeerStorageTest.cc
  8268. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Returns cached data only when the previous receiveHandshake() is called
  8270. with peek = true.
  8271. * src/PeerConnection.cc (receiveHandshake)
  8272. * src/PeerConnection.h (receiveHandshake)
  8273. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Changed default value of -s option from 1 to 5.
  8275. Also max value of -s option is changed from 5 to 16.
  8276. * src/HelpItemFactory.cc
  8277. * src/OptionHandlerFactory.cc
  8278. * src/option_processing.cc
  8279. * src/usage_text.h
  8280. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Changed -s options behavior. Now it means the number of connections
  8282. made simultaneously in each http/ftp download.
  8283. If 1 URL is specified, the behavior is the same with old implementation.
  8284. If -s N is given and more than N URLs are specified, first N URLs are
  8285. used and remaining URLs are used for backup. If less than N URLs are
  8286. specified, some of URLs are used more than once so that totally N
  8287. connections are made simultaneously.
  8288. * src/main.cc
  8289. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Included missing iosfwd or ostream header.
  8291. * src/RequestGroupMan.cc
  8292. * src/TaggedItem.cc
  8293. * src/TaggedItem.h
  8294. * src/Util.cc
  8295. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8297. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8298. * src/HttpConnection.cc: Included missing sstream.
  8299. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Added --bt-max-open-files option.
  8301. * src/DefaultPieceStorage.cc
  8302. * src/HelpItemFactory.cc
  8303. * src/MultiDiskAdaptor.cc
  8304. * src/MultiDiskAdaptor.h
  8305. * src/OptionHandlerFactory.cc
  8306. * src/option_processing.cc
  8307. * src/prefs.cc
  8308. * src/prefs.h
  8309. * src/usage_text.h
  8310. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Fixed the bug that aria2 aborts when a path to a directory is given
  8312. in command-line.
  8313. * src/ProtocolDetector.cc
  8314. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Limited the number files opened in each BitTorrent download. The default
  8316. value is 100. The option to change this value will be added.
  8317. * src/MultiDiskAdaptor.cc
  8318. * src/MultiDiskAdaptor.h
  8319. * src/MultiFileAllocationIterator.cc
  8320. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Fixed the bug that HTTP downloads don't start with old libraries.
  8322. * src/HttpHeaderProcessor.cc
  8323. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Use empty() instead of size() > 0.
  8325. * src/HttpConnection.cc
  8326. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Drop connection if the incoming peer ID is the same with localhost's
  8328. one. The previous implementation drops connection when incoming peer's
  8329. IP address is the same with localhost's one.
  8330. * src/PeerListenCommand.cc
  8331. * src/DefaultBtInteractive.cc
  8332. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Returns cached data without checking whether socket is readable
  8334. if the cache is available.
  8335. * src/PeerConnection.cc (receiveHandshake)
  8336. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Included stdint.h
  8338. * src/common.h
  8339. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Removed duplicate HAVE_GETTIMEOFDAY
  8341. * src/Makefile.am
  8342. * src/Makefile.in
  8343. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Use interval as a minInterval when minInterval is not supplied.
  8345. * src/DefaultBtAnnounce.cc
  8346. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8348. attempt is failed, then 2nd attempt get kicked out more quickly.
  8349. And it is now static const member of DefaultBtAnnounce.
  8350. * src/DefaultBtAnnounce.h
  8351. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8353. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8354. * src/ActivePeerConnectionCommand.cc
  8355. * src/BtConstants.h
  8356. * src/BtRuntime.h
  8357. * src/DHTGetPeersCommand.cc
  8358. * src/DefaultBtAnnounce.cc
  8359. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8360. BtRuntime::MAX_PEERS.
  8361. * src/DefaultPeerStorage.h
  8362. * src/InitiatorMSEHandshakeCommand.cc
  8363. * src/PeerInitiateConnectionCommand.cc
  8364. * src/PeerInteractionCommand.cc
  8365. * src/PeerReceiveHandshakeCommand.cc
  8366. * src/TrackerWatcherCommand.cc
  8367. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Always Connect to _numNewConnection
  8369. * src/ActivePeerConnectionCommand.cc
  8370. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Made `begin' unsigned int.
  8372. * src/GrowSegment.h
  8373. * src/Piece.cc
  8374. * src/Piece.h
  8375. * src/PiecedSegment.cc
  8376. * src/PiecedSegment.h
  8377. * src/Segment.h
  8378. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Calculate piece hash when data is arrived if the data is arrived in
  8380. order. This removes additional read operation for hash calculation.
  8381. If the data is arrived in out of order, the hash is calucated when the
  8382. piece is completed. This is the same behavior as the old implementation.
  8383. * src/BtPieceMessage.cc
  8384. * src/DefaultBtProgressInfoFile.cc
  8385. * src/DefaultPieceStorage.cc
  8386. * src/DownloadCommand.cc
  8387. * src/DownloadCommand.h
  8388. * src/DownloadEngine.cc
  8389. * src/GrowSegment.cc
  8390. * src/GrowSegment.h
  8391. * src/Piece.cc
  8392. * src/Piece.h
  8393. * src/PiecedSegment.cc
  8394. * src/PiecedSegment.h
  8395. * src/Segment.h
  8396. * test/PieceTest.cc
  8397. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Try to keep the ordering of outgoing piece message.
  8399. * src/DefaultBtMessageDispatcher.cc
  8400. (DefaultBtMessageDispatcher::sendMessages)
  8401. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Fixed busy loop when error/hup epoll events occur.
  8403. * src/AbstractCommand.cc
  8404. * src/PeerAbstractCommand.cc
  8405. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Added --bt-request-peer-speed-limit option, which was a constant
  8407. SLOW_SPEED_THRESHOLD.
  8408. * src/ActivePeerConnectionCommand.cc
  8409. * src/ActivePeerConnectionCommand.h
  8410. * src/BtConstants.h
  8411. * src/HelpItemFactory.cc
  8412. * src/OptionHandlerFactory.cc
  8413. * src/PeerReceiveHandshakeCommand.cc
  8414. * src/option_processing.cc
  8415. * src/prefs.cc
  8416. * src/prefs.h
  8417. * src/usage_text.h
  8418. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Removed repeated call of getTopDirPath(). Instead, call it once and
  8420. cache the result.
  8421. * src/MultiDiskAdaptor.cc
  8422. * src/MultiDiskAdaptor.h
  8423. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8424. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Fixed compile error on debian etch.
  8426. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8427. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8428. it is undefined.
  8429. * src/Util.cc (ULLONG_MAX)
  8430. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Added epoll support. Use epoll if it is available. If not, use select.
  8432. When async dns is enabled in compile time, epoll support is enabled
  8433. only when aria2 is built with c-ares. This condition statement is
  8434. defined in a2io.h.
  8435. Currently aria2 supports both c-ares and ares, but ares is maintained
  8436. for quite a while and debian already has c-ares package, ares support
  8437. will be dropped in the future version.
  8438. * configure.ac
  8439. * src/AbstractCommand.cc
  8440. * src/AsyncNameResolver.cc
  8441. * src/AsyncNameResolver.h
  8442. * src/Command.cc
  8443. * src/Command.h
  8444. * src/DownloadEngine.cc
  8445. * src/DownloadEngine.h
  8446. * src/PeerAbstractCommand.cc
  8447. * src/SocketCore.cc
  8448. * src/SocketCore.h
  8449. * src/a2io.h
  8450. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8452. directive.
  8453. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Do not do write operation to /dev/null file.
  8455. * src/LogFactory.cc
  8456. * src/SimpleLogger.cc
  8457. Replaced vasprintf with vsnprintf
  8458. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8459. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. * src/BtRequestMessage.cc
  8461. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8462. for segmentation fault caused by previous commit.
  8463. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Reduced the usage of gettimeofday().
  8465. * src/DefaultBtMessageDispatcher.cc
  8466. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8467. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8468. * src/RequestSlot.cc
  8469. * src/RequestSlot.h
  8470. (RequestSlot::isTimeout)
  8471. Made RequestSlot have a reference to Piece object to avoid find
  8472. Piece repeatedly.
  8473. * src/DefaultBtMessageDispatcher.cc
  8474. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8475. * src/RequestSlot.cc
  8476. * src/RequestSlot.h
  8477. (RequestSlot::getPiece)
  8478. * test/DefaultBtMessageDispatcherTest.cc
  8479. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. * src/TimeA2.cc
  8481. * src/TimeA2.h
  8482. (Time::difference): New function.
  8483. (Time::elapsed): Done optimization.
  8484. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8486. directive.
  8487. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. * src/option_processing.cc: Added missing `defined' keyword to #if
  8489. directive.
  8490. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Bump up version number to 0.13.2+1
  8492. * src/configure.ac
  8493. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Refactored broken outstanding piece handling.
  8495. * src/DefaultPieceStorage.cc
  8496. * src/DefaultPieceStorage.h
  8497. * src/Piece.cc
  8498. * src/Piece.h
  8499. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8501. name collision of static variable and predefined macro.
  8502. * src/BtContext.cc
  8503. * src/BtContext.h
  8504. * src/CookieBoxFactory.cc
  8505. * src/CookieBoxFactory.h
  8506. * src/CookieParser.cc
  8507. * src/CookieParser.h
  8508. * src/DefaultBtContext.cc
  8509. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. * src/RequestGroup.cc
  8511. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8512. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. * Release 0.13.2
  8514. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8516. * po/fr.po
  8517. * po/ja.po
  8518. * po/aria2c.pot
  8519. * po/*.po
  8520. * po/*.gmo
  8521. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Bump up version number to 0.13.2
  8523. * src/configure.ac
  8524. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Refactord.
  8526. * src/RequestGroupMan.cc
  8527. (removeStoppedGroup)
  8528. (fillRequestGroupFromReserver)
  8529. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Fixed compile error on Ubuntu.
  8531. * src/BtPieceMessage.cc
  8532. * src/MessageDigestHelper.cc
  8533. * src/Util.cc
  8534. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Fixed compile error when configured with --disable-bittorrent
  8536. * test/DownloadHandlerFactoryTest.cc
  8537. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Done make update-po
  8539. * po/aria2c.pot
  8540. * po/*.po
  8541. * po/*.gmo
  8542. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Bump up version number to 0.13.2rc.
  8544. * src/configure.ac
  8545. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Made option name bold. Updated SYNOPSIS to make it more readable.
  8547. * doc/aria2c.1.txt
  8548. * doc/aria2c.1
  8549. * doc/aria2c.1.html
  8550. * src/version_usage.cc
  8551. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Refactored. Use std::string instead of size and char*.
  8553. * Data.cc
  8554. * Data.h
  8555. * test/Data.cc
  8556. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Added trimSelf(). Rewritten trim() to use trimSelf().
  8558. * Util.cc
  8559. * Util.h
  8560. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8562. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Fixed compile error when configured with --disable-metalink.
  8564. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8565. * test/FeatureConfigTest.cc
  8566. * test/DownloadHandlerFactoryTest.cc
  8567. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Fixed compile error when configured with --without-gnutls
  8569. --without-openssl
  8570. * src/main.cc
  8571. * test/DefaultBtProgressInfoFileTest.cc
  8572. * test/SegmentManTest.cc
  8573. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Fixed compile error with OpenSSL.
  8575. * src/IteratableChunkChecksumValidator.cc
  8576. * src/LibsslDHKeyExchange.h
  8577. * src/MessageDigestHelper.cc
  8578. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Revert the default value of --max-concurrent-downloads to 5.
  8580. Revert the default value of --metalink-servers to 5.
  8581. Man pages was also updated.
  8582. * src/option_processing.cc
  8583. * doc/aria2c.1.txt
  8584. * doc/aria2c.1.html
  8585. * doc/aria2c.1
  8586. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Returns const reference:
  8588. DownloadContext::getPieceHash, DownloadContext::getName,
  8589. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8590. BtContext::getInfoHashAsString,
  8591. * src/BtContext.h
  8592. * src/DefaultBtContext.cc
  8593. * src/DefaultBtContext.h
  8594. * src/DownloadContext.h
  8595. * src/SingleFileDownloadContext.h
  8596. * test/MockBtContext.h
  8597. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. * src/RequestGroup.h (getDir): Removed.
  8599. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Returns const reference. The internal urlencode function was optimized
  8601. a little bit.
  8602. * src/Request.cc
  8603. * src/Request.h
  8604. * src/HttpRequest.cc
  8605. * src/HttpRequest.h
  8606. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Defined option name and possible values as std::string to reduce
  8608. temporary string object creation in runtime.
  8609. * src/HelpItemFactory.cc
  8610. * src/LogFactory.cc
  8611. * src/Option.cc
  8612. * src/OptionHandlerFactory.cc
  8613. * src/option_processing.cc
  8614. * src/prefs.cc
  8615. * src/prefs.h
  8616. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Return const reference.
  8618. * src/DownloadHandlerConstants.cc
  8619. * src/DownloadHandlerConstants.h
  8620. (getMetalinkExtensions)
  8621. (getMetalinkContentTypes)
  8622. (getBtExtensions)
  8623. (getBtContentTypes)
  8624. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. * src/HttpHeader.cc (get): Rewritten.
  8626. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Make HttpHeader::getFirst(...) return const reference.
  8628. * src/HttpHeader.cc
  8629. * src/HttpHeader.h
  8630. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8632. it with V_TRUE.
  8633. * src/DefaultPieceStorage.cc
  8634. * src/DownloadCommand.cc
  8635. * src/FtpNegotiationCommand.cc
  8636. * src/HttpRequest.cc
  8637. * src/InitiateConnectionCommand.cc
  8638. * src/RequestGroup.cc
  8639. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Made Option::get(...) return const reference of std::string.
  8641. * src/Option.cc
  8642. * src/Option.h
  8643. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Replaced std:copy with insert.
  8645. * src/DefaultBtMessageDispatcher.cc
  8646. * src/DefaultPieceStorage.cc
  8647. * src/DownloadEngineFactory.cc
  8648. * src/RequestGroup.cc
  8649. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Included SocketCore.h to fix compiler warning.
  8651. * src/InitiateConnectionCommand.cc
  8652. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Put piece selection strategy algorithm to RarestPieceSelector class,
  8654. Added a switch to choose whether randomized selection so that unit
  8655. tests emit same results in, possibly, win32.
  8656. * src/DefaultPieceStorage.cc
  8657. * src/DefaultPieceStorage.h
  8658. * src/RarestPieceSelector.cc
  8659. * src/RarestPieceSelector.h
  8660. * test/DefaultPieceStorageTest.cc
  8661. * test/RarestPieceSelectorTest.cc
  8662. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Don't pool connection if HTTP proxy is enabled.
  8664. * src/FtpFinishDownloadCommand.cc
  8665. * src/FtpNegotiationCommand.cc
  8666. * src/HttpSkipResponseCommand.cc
  8667. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8669. * src/AbstractCommand.cc
  8670. * src/AbstractCommand.h
  8671. * src/ActivePeerConnectionCommand.cc
  8672. * src/FtpInitiateConnectionCommand.cc
  8673. * src/HttpInitiateConnectionCommand.cc
  8674. * src/InitiateConnectionCommandFactory.cc
  8675. * src/PeerAbstractCommand.cc
  8676. * src/PeerAbstractCommand.h
  8677. * src/PeerInitiateConnectionCommand.cc
  8678. * src/TrackerWatcherCommand.cc
  8679. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Sort RequestSlot in ascending order and manipulate them using
  8681. lower_bound.
  8682. * src/DefaultBtMessageDispatcher.cc
  8683. * src/DefaultBtMessageDispatcher.h
  8684. (getMessageQueue): Added const qualifier.
  8685. (getRequestSlots): Added const qualifier.
  8686. (sendMessages): Use empty() instead of size().
  8687. (doCancelSendingPieceAction): Use HandleEvent object.
  8688. (doAbortOutstandingRequestAction): Rewritten.
  8689. (doChokedAction): Rewritten.
  8690. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8691. (isOutstandingRequest): Rewritten.
  8692. (getOutstandingRequest): Rewritten.
  8693. (removeOutstandingRequest): Rewritten.
  8694. (addOutstandingRequest): Rewritten.
  8695. * src/RequestSlot.cc
  8696. * src/RequestSlot.h
  8697. (operator=): Rewritten.
  8698. (operator!=): New function.
  8699. (operator<): New function.
  8700. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. * src/DefaultBtRequestFactory.cc
  8702. (doChokedAction): Rewritten.
  8703. (removeCompletedPiece): Rewritten.
  8704. (removeTargetPiece): Rewritten.
  8705. (createRequestMessages): Added the debug log.
  8706. (createRequestMessagesOnEndGame: Added the debug log.
  8707. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Added the debug log message.
  8709. * src/BtPieceMessage.cc (doReceivedAction)
  8710. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8712. used lower_bound to process them rather than linear search.
  8713. * src/DHTPeerAnnounceStorage.cc
  8714. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8716. peer has at least one completed piece.
  8717. * src/Peer.cc
  8718. * src/Peer.h
  8719. * src/PeerInteractionCommand.cc
  8720. * src/PeerSessionResource.cc
  8721. * src/PeerSessionResource.h
  8722. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Removed unnecessary sorting
  8724. * src/DefaultPieceStorage (DefaultPieceStorage)
  8725. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Rewritten the portion of the code that mangaes allowed fast indexes.
  8727. * src/PeerSessionResource.cc
  8728. * src/PeerSessionResource.h
  8729. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Removed the invalid string including '\r' from ru.po and
  8731. did make update-po.
  8732. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Added --log-level and --summary-interval to man page.
  8734. * doc/aria2c.1.txt
  8735. * doc/aria2c.1.html
  8736. * doc/aria2c.1
  8737. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Added --log-level option to specify log level. Log messages under
  8739. the specified level are not output. Default value is `debug'.
  8740. * src/HelpItemFactory.cc
  8741. * src/LogFactory.cc
  8742. * src/LogFactory.h
  8743. * src/Logger.h
  8744. * src/OptionHandlerFactory.cc
  8745. * src/SimpleLogger.cc
  8746. * src/SimpleLogger.h
  8747. * src/main.cc
  8748. * src/option_processing.cc
  8749. * src/prefs.h
  8750. * src/usage_text.h
  8751. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Print download progress summary of all parallel downloads in specified
  8753. interval, default 60 secs. While aria2 could download several files
  8754. in parallel (see -j option), it displayed just first download progress,
  8755. and the other downloads are hidden from the users. This new feature
  8756. prints all downloads currently in-progress to the console so that you
  8757. can check the status of all downloads. The interval can be adjusted
  8758. by --summary-interval option.
  8759. The progress readout is now cut so that all fits in the one line of
  8760. console.
  8761. * src/ConsoleStatCalc.cc
  8762. * src/ConsoleStatCalc.h
  8763. * src/HelpItemFactory.cc
  8764. * src/OptionHandlerFactory.cc
  8765. * src/RequestGroupMan.cc
  8766. * src/RequestGroupMan.h
  8767. * src/main.cc
  8768. * src/option_processing.cc
  8769. * src/prefs.h
  8770. * src/usage_text.h
  8771. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8773. * src/DownloadEngine.cc (DownloadEngine)
  8774. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8776. defined.
  8777. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8778. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Use erase+lower_bound+insert instead of sort.
  8780. * src/DefaultPieceStorage.cc (addPieceStats)
  8781. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8783. * src/A2STR.cc
  8784. * src/A2STR.h
  8785. * src/OptionParser.cc (parse)
  8786. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Defined fake filename `[tracker.announce]' as static const std::string.
  8788. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8789. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Defined default filename `index.html' as static const std::string
  8791. * src/SingleFileDownloadContext.cc
  8792. * src/SingleFileDownloadContext.h
  8793. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Defined "[MEMORY]" as static const std::string.
  8795. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8796. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Defined control file's version number as static const std::string.
  8798. * src/DefaultBtProgressInfoFile.cc
  8799. * src/DefaultBtProgressInfoFile.h
  8800. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. Use Request::METHOD_GET
  8802. * src/RequestGroup.cc (createNextCommandWithAdj)
  8803. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Defined "OK", "ERR", "INPR" as static const std::string
  8805. * src/RequestGroupMan.cc (showDownloadResults)
  8806. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Defined default client used in extended handshake as static const
  8808. std::string
  8809. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8810. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8812. * src/HttpConnection.cc (eraseConfidentialInfo)
  8813. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Defined default ftp user and password as static const std::string
  8815. * src/AuthConfigFactory.cc
  8816. * src/AuthConfigFactory.h
  8817. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Defined strings used in netrc as static const std::string
  8819. * src/Netrc.cc
  8820. * src/Netrc.h
  8821. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Defined HTTP status as static const std::string
  8823. * src/AbstractProxyResponseCommand.cc
  8824. * src/HttpHeader.cc
  8825. * src/HttpHeader.h
  8826. * src/HttpResponse.cc
  8827. * src/HttpResponseCommand.cc
  8828. * src/HttpSkipResponseCommand.cc
  8829. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Defined "\r\n", "A", "I" as static const std::string
  8831. * src/A2STR.cc
  8832. * src/A2STR.h
  8833. * src/FtpConnection.cc
  8834. * src/FtpConnection.h
  8835. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Added COLON_C(".") and used it in Request::parseUrl()
  8837. * src/A2STR.cc
  8838. * src/A2STR.h
  8839. * src/Request.cc (parseUrl)
  8840. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Changed the type of padName from `const std::string&' to `const char*'.
  8842. * src/MSEHandshake.cc (verifyPadLength)
  8843. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Defined "sha1" as static const std::string.
  8845. * src/MetalinkParserController.cc
  8846. * src/MetalinkParserController.h
  8847. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Defined message digest algorithm name as static const std::string
  8849. * src/DHTTokenTracker.cc
  8850. * src/DHTUtil.cc
  8851. * src/DefaultBtContext.cc
  8852. * src/MSEHandshake.cc
  8853. * src/MessageDigestHelper.cc
  8854. * src/Peer.cc
  8855. * src/messageDigest.cc
  8856. * src/messageDigest.h
  8857. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Made string literals used in SAX parser static const std::string.
  8859. * src/FileMetalinkParserState.cc
  8860. * src/FileMetalinkParserState.h
  8861. * src/FilesMetalinkParserState.cc
  8862. * src/FilesMetalinkParserState.h
  8863. * src/InitialMetalinkParserState.cc
  8864. * src/InitialMetalinkParserState.h
  8865. * src/MetalinkMetalinkParserState.cc
  8866. * src/MetalinkMetalinkParserState.h
  8867. * src/PiecesMetalinkParserState.cc
  8868. * src/PiecesMetalinkParserState.h
  8869. * src/ResourcesMetalinkParserState.cc
  8870. * src/ResourcesMetalinkParserState.h
  8871. * src/VerificationMetalinkParserState.cc
  8872. * src/VerificationMetalinkParserState.h
  8873. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8875. * src/A2STR.cc
  8876. * src/A2STR.h
  8877. * src/File.cc
  8878. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Defined static const std::string IP("ip"), PORT("port") and use them
  8880. instead of string literals.
  8881. * src/DefaultPeerListProcessor.cc
  8882. * src/DefaultPeerListProcessor.h
  8883. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Made string literals for torrent file processing static const
  8885. std::string.
  8886. * src/BtContext.cc
  8887. * src/BtContext.h
  8888. * src/DefaultBtContext.cc
  8889. * src/DefaultBtContext.h
  8890. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Made string literal for tracker response static const std::string
  8892. * src/BtAnnounce.cc
  8893. * src/BtAnnounce.h
  8894. * src/DefaultBtAnnounce.cc
  8895. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Use DHTMessage::T instead of "t".
  8897. * src/DHTMessageTracker.cc (messageArrived)
  8898. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Made keyName static const. Made trimmed charset static const
  8900. std::string.
  8901. * src/Util.cc (getContentDispositionFilename)
  8902. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Made USER_AGENT const. Made "/" static const std::string.
  8904. * src/A2STR.cc
  8905. * src/A2STR.h
  8906. * src/HttpRequest.cc
  8907. * src/HttpRequest.h
  8908. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Made string listeral to static const std::string:
  8910. "Content-Range", "Content-Length"
  8911. * src/HttpHeader.cc
  8912. * src/HttpHeader.h
  8913. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Made string listeral to static const std::string.
  8915. * src/HttpConnection.cc
  8916. * src/HttpHeader.cc
  8917. * src/HttpHeader.h
  8918. * src/HttpResponse.cc
  8919. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Made string listeral to static const std::string.
  8921. * src/A2STR.cc
  8922. * src/A2STR.h
  8923. * src/SimpleLogger.cc
  8924. * src/SimpleLogger.h
  8925. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. Made string literal to static const std::string.
  8927. Rewritten CookieParser::setField.
  8928. * src/A2STR.cc
  8929. * src/A2STR.h
  8930. * src/CookieBoxFactory.cc
  8931. * src/CookieBoxFactory.h
  8932. * src/CookieParser.cc
  8933. * src/CookieParser.h
  8934. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Made string literal to static const std::string
  8936. * src/DHTAbstractMessage.cc
  8937. * src/DHTAnnouncePeerMessage.cc
  8938. * src/DHTAnnouncePeerMessage.h
  8939. * src/DHTAnnouncePeerReplyMessage.cc
  8940. * src/DHTAnnouncePeerReplyMessage.h
  8941. * src/DHTFindNodeMessage.cc
  8942. * src/DHTFindNodeMessage.h
  8943. * src/DHTFindNodeReplyMessage.cc
  8944. * src/DHTFindNodeReplyMessage.h
  8945. * src/DHTGetPeersMessage.cc
  8946. * src/DHTGetPeersMessage.h
  8947. * src/DHTGetPeersReplyMessage.cc
  8948. * src/DHTGetPeersReplyMessage.h
  8949. * src/DHTMessage.cc
  8950. * src/DHTMessage.h
  8951. * src/DHTMessageFactoryImpl.cc
  8952. * src/DHTMessageReceiver.cc
  8953. * src/DHTPingMessage.cc
  8954. * src/DHTPingMessage.h
  8955. * src/DHTPingReplyMessage.cc
  8956. * src/DHTPingReplyMessage.h
  8957. * src/DHTQueryMessage.cc
  8958. * src/DHTQueryMessage.h
  8959. * src/DHTResponseMessage.cc
  8960. * src/DHTResponseMessage.h
  8961. * src/DHTUnknownMessage.cc
  8962. * src/DHTUnknownMessage.h
  8963. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Made string literal to static const std::string
  8965. * src/BtChokeMessage.cc (toString)
  8966. * src/BtHaveAllMessage.cc (toString)
  8967. * src/BtHaveNoneMessage.cc (toString)
  8968. * src/BtInterestedMessage.cc (toString)
  8969. * src/BtNotInterestedMessage.cc (toString)
  8970. * src/BtUnchokeMessage.cc (toString)
  8971. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Replaced "" with static const variable A2STR::NIL.
  8973. Replaced string comparison against "" with std::string::empty().
  8974. Added PROTO_* to Request class and use them as a protocol string
  8975. constant.
  8976. Made "started", "stopped", "completed" static const variable in
  8977. AnnounceList class.
  8978. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Updated translations. Great thanks to translators.
  8980. * po/ca.po
  8981. * po/de.po
  8982. * po/fr.po
  8983. * po/it.po
  8984. * po/ja.po
  8985. * po/ru.po
  8986. * po/zh_CN.po
  8987. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Updated man page; categorized options and fixed typo.
  8989. * doc/aria2c.1.txt
  8990. * doc/aria2c.1.html
  8991. * doc/aria2c.1
  8992. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. Removed const ref
  8994. * src/MetalinkEntry.cc (AddProtocolPreference)
  8995. * src/RequestGroup.cc (FindServerHostByHostname)
  8996. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Rewritten Accept-Features handling.
  8998. * src/HttpRequestCommand.cc (createHttpRequest)
  8999. * src/a2functional.h
  9000. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Changed method signature:
  9002. DHTAbstractNodeLookupTask::toEntries
  9003. * src/DHTAbstractNodeLookupTask.cc
  9004. * src/DHTAbstractNodeLookupTask.h
  9005. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Changed method signature:
  9007. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9008. * src/BtContext.h
  9009. * src/DefaultBtContext.cc
  9010. * src/DefaultBtContext.h
  9011. * src/DefaultBtInteractive.cc
  9012. * test/DefaultBtContextTest.cc
  9013. * test/MockBtContext.h
  9014. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Changed method signature:
  9016. MultiFileAllocationIterator::makeDiskWriterEntries
  9017. * src/MultiFileAllocationIterator.cc
  9018. * src/MultiFileAllocationIterator.h
  9019. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Changed method sinature:
  9021. MetalinkEntry::toFileEntry,
  9022. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9023. Metalinker::queryEntry
  9024. * src/Metalink2RequestGroup.cc
  9025. * src/MetalinkEntry.cc
  9026. * src/MetalinkEntry.h
  9027. * src/MetalinkHelper.cc
  9028. * src/MetalinkHelper.h
  9029. * src/Metalinker.cc
  9030. * src/Metalinker.h
  9031. * src/main.cc
  9032. * test/MetalinkHelperTest.cc
  9033. * test/MetalinkerTest.cc
  9034. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Changed method sinature:
  9036. RequestGroup::getURIs
  9037. * src/RequestGroup.cc
  9038. * src/RequestGroup.h
  9039. * test/Metalink2RequestGroupTest.cc
  9040. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Changed method signature:
  9042. PeerListProcessor::extractPeer
  9043. * src/CompactPeerListProcessor.cc
  9044. * src/CompactPeerListProcessor.h
  9045. * src/DefaultBtAnnounce.cc
  9046. * src/DefaultPeerListProcessor.cc
  9047. * src/DefaultPeerListProcessor.h
  9048. * src/DelegatingPeerListProcessor.cc
  9049. * src/DelegatingPeerListProcessor.h
  9050. * src/PeerListProcessor.h
  9051. * src/UTPexExtensionMessage.cc
  9052. * test/DefaultPeerListProcessorTest.cc
  9053. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Changed method signature:
  9055. BtRequestFactory::createRequestMessages,
  9056. BtRequestFactory::createRequestMessagesOnEndGame
  9057. * src/BtRequestFactory.h
  9058. * src/DefaultBtInteractive.cc
  9059. * src/DefaultBtRequestFactory.cc
  9060. * src/DefaultBtRequestFactory.h
  9061. * test/DefaultBtRequestFactoryTest.cc
  9062. * test/MockBtRequestFactory.h
  9063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Changed method signature:
  9065. PieceStorage::getInFlightPieces
  9066. * src/DefaultBtProgressInfoFile.cc
  9067. * src/DefaultPieceStorage.cc
  9068. * src/DefaultPieceStorage.h
  9069. * src/PieceStorage.h
  9070. * src/UnknownLengthPieceStorage.cc
  9071. * src/UnknownLengthPieceStorage.h
  9072. * test/DefaultBtProgressInfoFileTest.cc
  9073. * test/MockPieceStorage.h
  9074. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Changed method signature:
  9076. PostDownloadHandler::getNextRequestGroups
  9077. Metalink2RequestGroup::generate
  9078. RequestGroup::postDownloadProcessing
  9079. * src/BtPostDownloadHandler.cc
  9080. * src/BtPostDownloadHandler.h
  9081. * src/Metalink2RequestGroup.cc
  9082. * src/Metalink2RequestGroup.h
  9083. * src/MetalinkPostDownloadHandler.cc
  9084. * src/MetalinkPostDownloadHandler.h
  9085. * src/PostDownloadHandler.h
  9086. * src/RequestGroup.cc
  9087. * src/RequestGroup.h
  9088. * src/RequestGroupMan.cc
  9089. * src/main.cc
  9090. * test/BtPostDownloadHandlerTest.cc
  9091. * test/Metalink2RequestGroupTest.cc
  9092. * test/MetalinkPostDownloadHandlerTest.cc
  9093. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Rewritten AccRequestGroup
  9095. * src/main.cc
  9096. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Rewritten.
  9098. * src/TaggedItem.cc (toTagString)
  9099. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Rewritten Accept-Features handling.
  9101. * src/HttpRequestCommand.cc (createHttpRequest)
  9102. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Rewritten accept types handling.
  9104. * HttpRequest.cc (createRequest)
  9105. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Rewritten
  9107. * src/FeatureConfig.cc (featureSummary)
  9108. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Changed method signature:
  9110. PeerStorage::getActivePeers
  9111. * src/DHTPeerAnnounceEntry.cc
  9112. * src/DefaultPeerStorage.cc
  9113. * src/DefaultPeerStorage.h
  9114. * src/PeerStorage.h
  9115. * test/DefaultPeerStorageTest.cc
  9116. * test/MockPeerStorage.h
  9117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Changed method signature:
  9119. DHTPeerAnnounceStorage::getPeers,
  9120. DHTPeerAnnounceEntry::getPeers
  9121. * src/DHTGetPeersMessage.cc
  9122. * src/DHTPeerAnnounceEntry.cc
  9123. * src/DHTPeerAnnounceEntry.h
  9124. * src/DHTPeerAnnounceStorage.cc
  9125. * src/DHTPeerAnnounceStorage.h
  9126. * test/DHTAnnouncePeerMessageTest.cc
  9127. * test/DHTPeerAnnounceEntryTest.cc
  9128. * test/DHTPeerAnnounceStorageTest.cc
  9129. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Changed method signature:
  9131. NameResolver::resolve
  9132. * src/DHTEntryPointNameResolveCommand.cc
  9133. * src/InitiateConnectionCommand.cc
  9134. * src/NameResolver.cc
  9135. * src/NameResolver.h
  9136. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Changed method signature:
  9138. PieceStorage::getAdvertisedPieceIndexes
  9139. * src/DefaultBtInteractive.cc
  9140. * src/DefaultPieceStorage.cc
  9141. * src/DefaultPieceStorage.h
  9142. * src/PieceStorage.h
  9143. * src/UnknownLengthPieceStorage.h
  9144. * test/MockPieceStorage.h
  9145. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Changed method signature:
  9147. SegmentMan::getInFlightSegment
  9148. * src/AbstractCommand.cc
  9149. * src/SegmentMan.cc
  9150. * src/SegmentMan.h
  9151. * test/SegmentManTest.cc
  9152. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Changed method signature:
  9154. DHTAbstractNodeLookupTask::getNodesFromMessage
  9155. * src/DHTAbstractNodeLookupTask.cc
  9156. * src/DHTAbstractNodeLookupTask.h
  9157. * src/DHTNodeLookupTask.cc
  9158. * src/DHTNodeLookupTask.h
  9159. * src/DHTPeerLookupTask.cc
  9160. * src/DHTPeerLookupTask.h
  9161. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9163. * src/AbstractCommand.cc
  9164. * src/BtCheckIntegrityEntry.cc
  9165. * src/BtCheckIntegrityEntry.h
  9166. * src/BtFileAllocationEntry.cc
  9167. * src/BtFileAllocationEntry.h
  9168. * src/BtSetup.cc
  9169. * src/BtSetup.h
  9170. * src/CheckIntegrityCommand.cc
  9171. * src/CheckIntegrityEntry.h
  9172. * src/ChecksumCheckIntegrityEntry.cc
  9173. * src/ChecksumCheckIntegrityEntry.h
  9174. * src/DHTSetup.cc
  9175. * src/DHTSetup.h
  9176. * src/DownloadEngine.cc
  9177. * src/FileAllocationCommand.cc
  9178. * src/FileAllocationEntry.h
  9179. * src/RequestGroup.cc
  9180. * src/RequestGroup.h
  9181. * src/RequestGroupMan.cc
  9182. * src/RequestGroupMan.h
  9183. * src/StreamCheckIntegrityEntry.cc
  9184. * src/StreamCheckIntegrityEntry.h
  9185. * src/StreamFileAllocationEntry.cc
  9186. * src/StreamFileAllocationEntry.h
  9187. * src/TrackerWatcherCommand.cc
  9188. * src/a2functional.h
  9189. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Changed method signature:
  9191. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9192. DHTBucket::getGoodNodes,
  9193. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9194. * src/BNode.cc
  9195. * src/BNode.h
  9196. * src/DHTAbstractNodeLookupTask.cc
  9197. * src/DHTAutoSaveCommand.cc
  9198. * src/DHTBucket.cc
  9199. * src/DHTBucket.h
  9200. * src/DHTBucketRefreshTask.cc
  9201. * src/DHTFindNodeMessage.cc
  9202. * src/DHTGetPeersMessage.cc
  9203. * src/DHTRoutingTable.cc
  9204. * src/DHTRoutingTable.h
  9205. * test/BNodeTest.cc
  9206. * test/DHTBucketTest.cc
  9207. * test/DHTRoutingTableTest.cc
  9208. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. In piece selection functions, Pass std::deque<...> by reference rather
  9210. than returning it.
  9211. * src/BitfieldMan.cc
  9212. * src/BitfieldMan.h
  9213. * src/DefaultBtRequestFactory.cc
  9214. * src/DefaultPieceStorage.cc
  9215. * src/Piece.cc
  9216. * src/Piece.h
  9217. * test/BitfieldManTest.cc
  9218. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Implemented rarest piece first piece selection strategy.
  9220. * src/AbstractBtMessage.cc
  9221. * src/AbstractBtMessage.h
  9222. * src/BitfieldMan.cc
  9223. * src/BitfieldMan.h
  9224. * src/BtBitfieldMessage.cc
  9225. * src/BtHaveAllMessage.cc
  9226. * src/BtHaveMessage.cc
  9227. * src/DefaultPieceStorage.cc
  9228. * src/DefaultPieceStorage.h
  9229. * src/PeerInteractionCommand.cc
  9230. * src/PieceStorage.h
  9231. * src/UnknownLengthPieceStorage.h
  9232. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Rewritten readData and writeData.
  9234. * src/MultiDiskAdaptor.cc
  9235. * src/MultiDiskAdaptor.h
  9236. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Move \n out of the message "Usage: ...".
  9238. * src/version_usage.cc
  9239. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Bump up version number to 0.13.2b.
  9241. * configure.ac
  9242. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Added const qualifier to argument Exception& e.
  9244. * src/Logger.h
  9245. * src/SimpleLogger.cc
  9246. * src/SimpleLogger.h
  9247. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Pool connection when CWD, SIZE command fails.
  9249. * src/FtpNegotiationCommand.cc
  9250. * src/FtpNegotiationCommand.h
  9251. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9253. * src/HttpResponseCommand.cc
  9254. * src/HttpSkipResponseCommand.cc
  9255. * src/HttpSkipResponseCommand.h
  9256. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Pool connection when a server returns 4xx, 5xx responses.
  9258. * src/HttpNullDownloadCommand.cc
  9259. * src/HttpNullDownloadCommand.h
  9260. * src/HttpResponse.cc
  9261. * src/HttpResponse.h
  9262. * src/HttpResponseCommand.cc
  9263. * src/HttpResponseCommand.h
  9264. * test/HttpResponseTest.cc
  9265. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Print usage when no URL is specifed or bad command-line option is
  9267. specified.
  9268. * src/HelpItemFactory.cc
  9269. * src/help_tags.h
  9270. * src/option_processing.cc
  9271. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Removed duplicate log message.
  9273. * src/AbstractCommand.cc (asyncResolveHostname)
  9274. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9276. Changed -j option's default value from 5 to 1.
  9277. Added new examples using protocol auto detection feature.
  9278. Removed -T, -M usage where it can be omitted.
  9279. * doc/aria2c.1.txt
  9280. * doc/aria2c.1.html
  9281. * doc/aria2c.1.txt
  9282. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Updated command-line usage text, so that it tells users that they
  9284. can specify any number of torrent files and metalink files in
  9285. command-line.
  9286. * src/version_usage.cc
  9287. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Changed the default value of -j option to 1.
  9289. * src/HelpItemFactory.cc
  9290. * src/option_processing.cc
  9291. * src/usage_text.h
  9292. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Added the ability to reuse connection in FTP and it is enabled by
  9294. default. It can be disabled by --ftp-reuse-connection=false option.
  9295. * src/Command.cc
  9296. * src/DownloadCommand.cc
  9297. * src/FtpDownloadCommand.cc
  9298. * src/FtpDownloadCommand.h
  9299. * src/FtpFinishDownloadCommand.cc
  9300. * src/FtpFinishDownloadCommand.h
  9301. * src/FtpInitiateConnectionCommand.cc
  9302. * src/FtpNegotiationCommand.cc
  9303. * src/FtpNegotiationCommand.h
  9304. * src/HelpItemFactory.cc
  9305. * src/Makefile.am
  9306. * src/Makefile.in
  9307. * src/OptionHandlerFactory.cc
  9308. * src/option_processing.cc
  9309. * src/prefs.h
  9310. * src/usage_text.h
  9311. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Call Command::transitStatus() before calling Command::execute(),
  9313. so that the status change made in execute() is not cleared.
  9314. * src/DownloadEngine.cc
  9315. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Removed forward declaration of SocketCore class.
  9317. * src/HttpDownloadCommand.h
  9318. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9320. in InitiateConnectionCommandFactory. They should be set only when
  9321. the protocol is HTTP or HTTPS.
  9322. * src/InitiateConnectionCommandFactory.cc
  9323. * src/RequestGroup.cc
  9324. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Fixed infinite loop in checksum checking.
  9326. * src/IteratableChecksumValidator.cc
  9327. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Set _supportsPersistentConnection to true by default.
  9329. * src/Request.cc
  9330. * src/RequestGroup.cc
  9331. * test/HttpRequestTest.cc
  9332. * test/RequestTest.cc
  9333. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Added timeout to socket pool. The default timeout is 15 seconds,
  9335. which is the same value Apache uses.
  9336. * src/DownloadEngine.cc
  9337. * src/DownloadEngine.h
  9338. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Fixed misuse of multimap::find()
  9340. * src/HttpHeader.cc
  9341. * test/HttpHeaderTest.cc
  9342. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9344. option.
  9345. The asynchronous DNS is not capable of IPv6 yet.
  9346. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9347. least for HTTP download.
  9348. * src/AbstractCommand.cc
  9349. * src/AbstractCommand.h
  9350. * src/AsyncNameResolver.cc
  9351. * src/AsyncNameResolver.h
  9352. * src/DHTEntryPointNameResolveCommand.cc
  9353. * src/DHTEntryPointNameResolveCommand.h
  9354. * src/DownloadEngine.cc
  9355. * src/DownloadEngine.h
  9356. * src/FtpInitiateConnectionCommand.cc
  9357. * src/FtpInitiateConnectionCommand.h
  9358. * src/HelpItemFactory.cc
  9359. * src/HttpInitiateConnectionCommand.cc
  9360. * src/HttpInitiateConnectionCommand.h
  9361. * src/InitiateConnectionCommand.cc
  9362. * src/InitiateConnectionCommand.h
  9363. * src/Makefile.am
  9364. * src/Makefile.in
  9365. * src/NameResolver.cc
  9366. * src/NameResolver.h
  9367. * src/OptionHandlerFactory.cc
  9368. * src/SocketCore.cc
  9369. * src/SocketCore.h
  9370. * src/Util.cc
  9371. * src/Util.h
  9372. * src/option_processing.cc
  9373. * src/prefs.h
  9374. * src/usage_text.h
  9375. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Updated man page: --quiet, --header were added.
  9377. --metalink-servers and --enable-http-keep-alive option were updated.
  9378. * doc/aria2c.1
  9379. * doc/aria2c.1.html
  9380. * doc/aria2c.1.txt
  9381. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Enable HTTP keep-alive by default.
  9383. * src/HelpItemFactory.cc
  9384. * src/option_processing.cc
  9385. * src/usage_text.h
  9386. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Disable http keep-alive if the remote server is not HTTP/1.1.
  9388. * src/HttpConnection.cc
  9389. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Receive content body of 302 response so that the connection can be
  9391. reused later when http keep-alive is enabled.
  9392. * src/HttpNullDownloadCommand.cc
  9393. * src/HttpNullDownloadCommand.h
  9394. * src/HttpResponseCommand.cc
  9395. * src/HttpResponseCommand.h
  9396. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. const SharedHandle<Request> -> const SharedHandle<Request>&
  9398. * src/FtpDowndloadCommand.cc
  9399. * src/FtpDowndloadCommand.h
  9400. * src/HttpDownloadCommand.cc
  9401. * src/HttpDownloadCommand.h
  9402. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Fixed the bug that the control file(.aria2 file) is not renamed
  9404. according to tryAutoFileRenaming().
  9405. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9406. its control file exist, use them and continue download.
  9407. The old implementation didn't take into account of control file's
  9408. existence, so basically you couldn't continue download of renamed file.
  9409. * src/BtProgressInfoFile.h
  9410. * src/DefaultBtProgressInfoFile.cc
  9411. * src/DefaultBtProgressInfoFile.h
  9412. * src/NullProgressInfoFile.h
  9413. * src/RequestGroup.cc
  9414. * test/DefaultBtProgressInfoFileTest.cc
  9415. * test/MockBtProgressInfoFile.h
  9416. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Change the default value of --metalink-servers option from `5' to `1'.
  9418. * src/HelpItemFactory.cc
  9419. * src/option_processing.cc
  9420. * src/usage_text.h
  9421. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Reimplemented transparent metalink using Accept request header.
  9423. * src/HttpRequest.cc
  9424. * src/HttpRequest.h
  9425. * src/HttpRequestCommand.cc
  9426. * src/Metalink2RequestGroup.cc
  9427. * src/RequestGroup.cc
  9428. * src/RequestGroup.h
  9429. * test/HttpRequestTest.cc
  9430. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Bump up version number to 0.13.2a
  9432. * configure.ac
  9433. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Updated configure.ac using the result of autoscan.
  9435. * configure.ac
  9436. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Fixed compilation error without gcrypt/openssl.
  9438. * src/DownloadCommand.cc
  9439. * src/DownloadCommand.h
  9440. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Reorganized version information so that it can be displayed in a
  9442. standard terminal screen without scrolling.
  9443. Removed http, ftp from Configuration section, because they are always
  9444. enabled.
  9445. * src/FeatureConfig.cc
  9446. * src/FeatureConfig.h
  9447. * src/main.cc
  9448. * src/messageDigest.cc
  9449. * src/messageDigest.h
  9450. * src/version_usage.cc
  9451. * test/FeatureConfigTest.cc
  9452. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Masked user ID in log.
  9454. * src/FtpConnection.cc (sendUser)
  9455. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Removed query part from filename in HTTP download. The query part means
  9457. the substring after "?" in URL. Firefox seems do the same thing.
  9458. A query part is sometimes very long and not suitable to filename,
  9459. so I think it is better to remove it from filename.
  9460. * src/HttpRequest.cc
  9461. * src/HttpRequest.h
  9462. * src/Request.cc
  9463. * src/Request.h
  9464. * test/HttpRequestTest.cc
  9465. * test/RequestTest.cc
  9466. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Rewritten Exception class. Throw exception object, not its pointer and
  9468. catch by reference, so that remove problematic delete operator for
  9469. catched exception.
  9470. * src/Exception.cc
  9471. * src/Exception.h
  9472. * test/ExceptionTest.cc
  9473. * src/*: All files throwing/catching exception.
  9474. * test/*: All files throwing/catching exception.
  9475. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Now auto protocol detection is enabled without -Z option.
  9477. But there is a important difference between with/without -Z optoin.
  9478. For example, if you type:
  9479. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9480. then, aria2 interprets there are 3 request groups:
  9481. (1) http://host/file, http://mirror/file <-- multi-source download
  9482. (2) file1.torrent
  9483. (3) file2.metalink
  9484. On the other hand, if you invoke above command with -Z option, it is
  9485. interpreted as 4 request groups:
  9486. (1) http://host/file
  9487. (2) file1.torrent
  9488. (3) file2.metalink
  9489. (4) http://mirror/file
  9490. I think usually user don't mix multi-source URLs and torrent files, so
  9491. there is no big problem here.
  9492. * src/main.cc
  9493. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Fixed the bug that causes segmentaion fault when reading XML containing
  9495. unescapsed character like '&'.
  9496. Also a modification was made which avoids adding unnecessary
  9497. characters stack and appending unused string.
  9498. * src/ExpatMetalinkProcessor.cc
  9499. * src/FileMetalinkParserState.h
  9500. * src/FilesMetalinkParserState.h
  9501. * src/FinMetalinkParserState.h
  9502. * src/HashMetalinkParserState.h
  9503. * src/InitialMetalinkParserState.h
  9504. * src/LanguageMetalinkParserState.h
  9505. * src/MetalinkMetalinkParserState.h
  9506. * src/MetalinkParserState.h
  9507. * src/MetalinkParserStateMachine.cc
  9508. * src/MetalinkParserStateMachine.h
  9509. * src/OSMetalinkParserState.h
  9510. * src/PieceHashMetalinkParserState.h
  9511. * src/PiecesMetalinkParserState.h
  9512. * src/ResourcesMetalinkParserState.h
  9513. * src/SizeMetalinkParserState.h
  9514. * src/SkipTagMetalinkParserState.h
  9515. * src/URLMetalinkParserState.h
  9516. * src/VerificationMetalinkParserState.h
  9517. * src/VersionMetalinkParserState.h
  9518. * src/XML2SAXMetalinkProcessor.cc
  9519. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Added StringFormat class, which internally calls vasprintf.
  9521. operator<< is defined for this class, so it can be used with iostream
  9522. classes nicely. SimpleLogger and following functions are rewritten
  9523. using StringFormat class.
  9524. Besides, now Logger class's methods are non-const, many classes
  9525. that has a const Logger* as a member variable are modified to remove
  9526. const qualifier from the variable declaration.
  9527. * src/HelpItemFactory.cc
  9528. * src/Request.cc
  9529. * src/SimpleLogger.cc
  9530. * src/StringFormat.cc
  9531. * src/StringFormat.h
  9532. * src/Util.cc
  9533. * src/option_processing.cc
  9534. * src/version_usage.cc
  9535. * test/StringFormatTest.cc
  9536. * src/*.h: The classes that has const Logger* as a member variable.
  9537. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9539. failed. Also fixed memory link when exception is thrown there.
  9540. * src/main.cc (AccRequestGroup)
  9541. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Added build-in "Accept-Features" support. For now only "metalink" is
  9543. used in this header field.
  9544. This "metalink" value is removed from the list when connecting URLs
  9545. fed by metalink file to avoid loop in "transparent" metlaink.
  9546. * src/HttpRequest.cc
  9547. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9548. header is also held in this variable. Also renamed setUserHeaders as
  9549. addHeader and it was rewritten to add header not just to clear the old
  9550. value.
  9551. * src/HttpRequestCommand.cc
  9552. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9553. from "Accept-Features" list.
  9554. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9555. default.
  9556. * src/RequestGroup.h
  9557. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9558. * src/a2functional.h: Included <string> because Concat class depends on
  9559. it.
  9560. * test/HttpRequestTest.cc
  9561. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Added comment
  9563. * src/RequestGroup.cc (createNextCommand)
  9564. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Capitalized METHOD_GET and METHOD_HEAD
  9566. * src/Request.cc
  9567. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Added getDownloadResults() method
  9569. * src/RequestGroupMan.cc
  9570. * src/RequestGroupMan.h
  9571. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Fixed the bug that aria2 exits when commands is empty() but
  9573. _routineCommands are not.
  9574. * src/DownloadEngine.cc
  9575. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Use the default value pulled from Option object in HelpItemFactory.
  9577. except options whose defualt value is embedded in a usage text.
  9578. * src/HelpItemFactory.cc
  9579. * src/HelpItemFactory.h
  9580. * src/option_processing.cc
  9581. * src/version_usage.cc
  9582. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Added --quiet option to make aria2 quiet (no console output).
  9584. --quiet option is tagged with ADVANCED.
  9585. * src/HelpItemFactory.cc
  9586. * src/LogFactory.cc
  9587. * src/LogFactory.h
  9588. * src/MultiUrlRequestInfo.cc
  9589. * src/MultiUrlRequestInfo.h
  9590. * src/NullStatCalc.h: New class. This class prints nothing.
  9591. * src/OptionHandlerFactory.cc
  9592. * src/main.cc
  9593. * src/option_processing.cc
  9594. * src/prefs.h
  9595. * src/usage_text.h
  9596. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9598. * src/HelpItemFactory.cc (createHelpItems):
  9599. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Fixed compilation error in ExpatMetalinkProcessor.cc
  9601. * src/ExpatMetalinkProcessor.cc
  9602. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Reuse socket if the origin server supports HTTP keep-alive and
  9604. --enable-http-keep-alive or --enable-http-pipelining is given.
  9605. The current implementation doesn't reuse the connections established
  9606. against proxy server.
  9607. * src/AbstractCommand.cc
  9608. * src/DownloadEngine.cc
  9609. * src/DownloadEngine.h
  9610. * src/HttpDownloadCommand.cc
  9611. * src/HttpInitiateConnectionCommand.cc
  9612. * src/HttpResponseCommand.cc
  9613. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Rewritten HTTP keep-alive and pipelining routine.
  9615. * src/AbstractCommand.cc
  9616. * src/HttpConnection.cc
  9617. * src/HttpDownloadCommand.cc
  9618. * src/HttpRequest.cc
  9619. * src/HttpRequestCommand.cc
  9620. * src/HttpResponseCommand.cc
  9621. * src/Request.cc
  9622. * src/Request.h
  9623. * src/RequestGroup.cc
  9624. * test/HttpRequestTest.cc
  9625. * test/HttpResponseTest.cc
  9626. * test/RequestTest.cc
  9627. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. Added missing setUserHeaders call
  9629. * src/HttpRequestCommand.cc
  9630. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9632. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9633. waste of time because it is more likey false.
  9634. * src/FileAllocationDispatcherCommand.cc (execute)
  9635. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Now HTTP status and version are a member variable of HttpHeader.
  9637. HTTP status is processed as a string, not integer.
  9638. * src/AbstractProxyResponseCommand.cc
  9639. * src/HttpConnection.cc
  9640. * src/HttpHeader.cc
  9641. * src/HttpHeader.h
  9642. * src/HttpHeaderProcessor.cc
  9643. * src/HttpHeaderProcessor.h
  9644. * src/HttpResponse.cc
  9645. * src/HttpResponse.h
  9646. * test/HttpHeaderProcessorTest.cc
  9647. * test/HttpResponseTest.cc
  9648. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Added --header option. You can specify any number of additional HTTP headers
  9650. like:
  9651. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9652. Unlike other commad-line option, you can use --header option multiple times.
  9653. * src/HelpItemFactory.cc
  9654. * src/HttpRequest.{cc, h}
  9655. * src/HttpRequestCommand.cc
  9656. * src/OptionHandlerFactory.cc
  9657. * src/OptionHandlerImpl.h
  9658. * src/option_processing.cc
  9659. * src/prefs.h
  9660. * src/usage_text.h
  9661. * test/HttpRequestTest.cc (testUserHeaders)
  9662. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Eliminates the time lag between sequential downloads and commands in
  9664. the same RequestGroup.
  9665. In old implementation, aria2 occasionally waits 1 seconds before
  9666. executing next command or RequestGroup.
  9667. This is really a waste of time, and new implementation eliminates
  9668. this unnecessary time lag.
  9669. * src/AbstractCommand.cc
  9670. * src/AutoSaveCommand.cc
  9671. * src/CheckIntegrityCommand.cc
  9672. * src/Command.{cc, h}
  9673. * src/DownloadEngine.{cc, h}
  9674. * src/DownloadEngineFactory.cc
  9675. * src/FileAllocationCommand.cc
  9676. * src/FileAllocationDispatcherCommand.cc
  9677. * src/FillRequestGroupCommand.cc
  9678. * src/FtpInitiateConnectionCommand.cc
  9679. * src/HaveEraseCommand.cc
  9680. * src/HttpInitiateConnectionCommand.cc
  9681. * src/HttpResponseCommand.cc
  9682. * src/RealtimeCommand.cc
  9683. * src/RequestGroup.cc
  9684. * src/RequestGroupMan.cc
  9685. * src/StreamFileAllocationEntry.cc
  9686. * src/TimeBasedCommand.{cc, h}
  9687. * src/TimedHaltCommand.cc
  9688. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9690. keyword explicit and SharedHandle's default constructor initializes
  9691. its internal obj to null, old implementation initializes it using
  9692. obj's default constructor.
  9693. To assign null, write SharedHandle<T> x(...); x.reset();
  9694. TODO: test/SharedHandleTest.cc needs more tests.
  9695. * src/SharedHandle.h
  9696. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Fixed type in man page.
  9698. * doc/aria2c.1.txt
  9699. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9701. * src/SimpleLogger.{cc, h}
  9702. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Implemented auto protocol detection.
  9704. Now you can do:
  9705. aria2c -Z http://host/file file1.torrent file2.metalink
  9706. (Note: -Z option is required for auto protcol detection.)
  9707. Then aria2c downloads 3 files simultaneously:
  9708. 1. http://host/file
  9709. 2. file1.torrent <-- read local torrent file
  9710. 3. file2.metalink <-- read local Metalink file.
  9711. Same thing goes with -i option. Assume your uris.txt contans:
  9712. http://host/file
  9713. file1.torrent
  9714. file2.metalink
  9715. Then you can do: aria2c -i uris.txt
  9716. (Note: -Z option is not needed if -i option is given.)
  9717. * src/main.cc
  9718. * src/ProtocolDetector.{cc, h}
  9719. * test/ProtocolDetectorTest.cc
  9720. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9722. installed
  9723. * src/ARC4Encryptor.h
  9724. * src/ARC4Decryptor.h
  9725. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Renamed argument from 'errno' to 'err', since errno is confused with
  9727. errno defined in errno.h.
  9728. * src/LibgcryptARC4Decryptor.h
  9729. * src/LibgcryptARC4Context.h
  9730. * src/LibgcryptDHKeyExchange.h
  9731. * src/LibgcryptARC4Encryptor.h
  9732. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Rewritten choking algorithm.
  9734. * src/PeerChokeCommand.{cc, h}
  9735. * src/BtInterestedMessage.cc
  9736. * src/PeerSessionResource.{cc, h}
  9737. * src/DefaultPeerStorage.{cc, h}
  9738. * src/BtNotInterestedMessage.cc
  9739. * src/DefaultBtMessageDispatcher.{cc, h}
  9740. * src/BtMessageDispatcher.h
  9741. * src/Peer.{cc, h}
  9742. * src/BtLeecherStateChoke.{cc, h}
  9743. * src/BtSetup.cc
  9744. * src/BtSeederStateChoke.{cc, h}
  9745. * src/PeerStorage.h
  9746. * test/MockPeerStorage.h
  9747. * test/MockBtMessageDispatcher.h
  9748. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Fixed compilation error on x84-64 platform.
  9750. * src/AuthConfig.cc: Included ostream.
  9751. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Rewritten getBasename() and getDirname(), without standard library
  9753. basename(), dirname().
  9754. * src/File.cc
  9755. * test/FileTest.cc
  9756. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Added Simplified Chinese translation. Also updated the following
  9758. translations: Polish, Dutch, German. Great thanks to all translators.
  9759. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Suppress content-range error when 'Content-Range' response header
  9761. doesn't contains bytes-unit specifier 'bytes'
  9762. * src/HttpHeader.cc (getRange)
  9763. * test/HttpHeaderTest.cc
  9764. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Fixed compilation error with g++-4.3
  9766. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. Added missing include files for MinGW
  9768. * test/HttpHeaderProcessorTest.cc
  9769. * test/DHTRoutingTableSerializerTest.cc
  9770. * test/DHTRoutingTableDeserializerTest.cc
  9771. * test/UriListParserTest.cc
  9772. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Now download line is printed nicely with no garbage at the end of
  9774. line. I use ioctl to get the columns of terminal.
  9775. If stdout is redirected to another device, instead of carriage return,
  9776. end of line '\n' character is used. This is feature request#1909659
  9777. * src/ConsoleStatCalc.cc (calculateStat)
  9778. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Included a2time.h
  9780. * src/DHTMessageDispatcher.h
  9781. * src/DHTMessageEntry.h
  9782. * src/DHTReplaceNodeTask.h
  9783. * src/DHTMessageTracker.h
  9784. * src/Util.h
  9785. * src/CookieBox.h
  9786. * src/SocketCore.h
  9787. * src/DefaultBtMessageDispatcher.h
  9788. * src/SocketCore.cc
  9789. * src/Util.cc
  9790. * src/DHTPingTask.h
  9791. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Fixed high memory footprint when DHT is enabled.
  9793. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9794. queued than it is processed and the queue is getting longer. As a
  9795. consequence, momory usage is increased.
  9796. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9797. replacement cache in DHTBucket which is described in Kademlia paper.
  9798. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9799. DHTReplaceNodeTask.
  9800. * src/DHTBucket.{h, cc}
  9801. (cacheNode): New function.
  9802. (getCachedNodes): New function.
  9803. (dropNode): Push back cached node to _nodes.
  9804. * test/DHTBucketTest.cc
  9805. (testCacheNode): New test
  9806. (testDropNode): New test
  9807. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9809. the unused 4KB memory when ssl is not used.
  9810. * src/SocketCore.cc
  9811. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Added summary log for peer announce storage.
  9813. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9814. Removed cast
  9815. * src/DefaultPeerStorage.cc (addPeer)
  9816. Log exception message
  9817. * src/DHTMessageTracker.cc (handleTimeout)
  9818. Fixed casting
  9819. * test/HttpRequestTest.cc
  9820. * test/MetalinkProcessorTest.cc
  9821. * test/PieceTest.cc
  9822. * test/MetalinkEntryTest.cc
  9823. * test/SequenceTest.cc
  9824. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. * src/ParameterizedStringParser.cc (createLoop):
  9826. Removed unused variable sstep.
  9827. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9828. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. * src/Util.{h, cc}
  9830. (parseUInt): New function.
  9831. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9832. The actual range is uint32_t.
  9833. * test/UtilTest.cc
  9834. * src/ParameterizedStringParser.cc:
  9835. Use Util::parseUInt() for loop variables.
  9836. * test/ParameterizedStringParserTest.cc
  9837. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9838. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Rewritten the functions for binding port.
  9840. * src/DHTConnectionImpl.{h, cc}
  9841. * src/PeerListenCommand.{h, cc}
  9842. * src/DHTSetup.cc
  9843. * src/BtSetup.cc
  9844. * test/DHTConnectionImplTest.cc
  9845. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. type cleanup for allmost all remaining files.
  9847. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Type clarification
  9849. * src/PeerSessionResource.{h, cc}
  9850. * src/DefaultPieceStorage.{h, cc}
  9851. * src/Peer.{h, cc}
  9852. * test/PeerSessionResourceTest.cc
  9853. Use div function
  9854. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9855. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Type clarification
  9857. * src/DefaultPeerStorage.{h, cc}
  9858. * test/DefaultPeerStorageTest.cc
  9859. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Type clarification: size_t for length or size, uint64_t for file
  9861. length, off_t for file offset.
  9862. * src/DefaultBtProgressInfoFile.cc
  9863. * src/DefaultBtContext.{h, cc}
  9864. * src/DefaultBtInteractive.cc
  9865. * src/DownloadCommand.{h, cc}
  9866. * src/IteratableChunkChecksumValidator.{h, cc}
  9867. * src/SegmentMan.{h, cc}
  9868. * src/SingleFileDownloadContext.{h, cc}
  9869. * src/IteratableChecksumValidator.{h, cc}
  9870. * src/BtContext.h
  9871. * src/IteratableValidator.h
  9872. * src/DownloadContext.h
  9873. * test/SingleFileDownloadContextTest.cc
  9874. * test/DefaultBtContextTest.cc
  9875. * test/MockBtContext.h
  9876. * test/Metalink2RequestGroupTest.cc
  9877. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Type clarification: size_t for length or size, uint64_t for file
  9879. length, off_t for file offset.
  9880. * src/PiecedSegment.cc
  9881. * src/GrowSegment.h
  9882. * src/DefaultBtRequestFactory.h
  9883. * src/DefaultBtProgressInfoFile.cc
  9884. * src/UnknownLengthPieceStorage.h
  9885. * src/DefaultPieceStorage.cc
  9886. * src/UnknownLengthPieceStorage.cc
  9887. * src/DefaultBtInteractive.cc
  9888. * src/GrowSegment.cc
  9889. * src/BitfieldMan.h
  9890. * src/DownloadCommand.cc
  9891. * src/BtRequestFactory.h
  9892. * src/PiecedSegment.h
  9893. * src/DefaultPieceStorage.h
  9894. * src/Piece.cc
  9895. * src/DefaultBtRequestFactory.cc
  9896. * src/PieceStorage.h
  9897. * src/Segment.h
  9898. * src/Piece.h
  9899. * src/BitfieldMan.cc
  9900. * src/Util.cc
  9901. * test/DefaultBtProgressInfoFileTest.cc
  9902. * test/DefaultPieceStorageTest.cc
  9903. * test/MockPieceStorage.h
  9904. * test/BtRequestMessageTest.cc
  9905. * test/DefaultBtMessageDispatcherTest.cc
  9906. * test/BitfieldManTest.cc
  9907. * test/GrowSegmentTest.cc
  9908. * test/PieceTest.cc
  9909. * test/SegmentTest.cc
  9910. * test/SegmentManTest.cc
  9911. * test/DefaultBtRequestFactoryTest.cc
  9912. * test/MockBtRequestFactory.h
  9913. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. Fixed compilation error with --disable-nls
  9915. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9916. in gettext.h causes the problem.
  9917. * src/common.h
  9918. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Removed subPiece related functions.
  9920. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9921. * src/DefaultPieceStorage.{h, cc}
  9922. * test/PieceTest.cc
  9923. * test/DefaultPieceStorageTest.cc
  9924. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. Use unsigned char for data store.
  9926. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Bump up version number to 0.13.0+1
  9928. * configure.ac
  9929. * Release 0.13.0+1
  9930. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Changed inactive connection timeout to 120.
  9932. To accept more mulually interested peers, disconnect peer when there
  9933. is no interest between us after certain time passed.
  9934. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9935. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9937. when compiled with async DNS support.
  9938. * src/DownloadEngine.cc
  9939. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9940. value '10' will be a little bit short when some DNS servers are
  9941. offline and several DNS servers are tried. It should be configured
  9942. by command-line option.
  9943. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Merged Ross's mingw patch.
  9945. * src/DHTRoutingTableDeserializer.cc
  9946. * src/DHTRoutingTableSerializer.cc
  9947. * src/Platform.{h, cc}
  9948. * src/timegm.h
  9949. * src/gettimeofday.h
  9950. * src/getaddrinfo.h
  9951. * src/SocketCore.h
  9952. * src/common.h
  9953. * src/inet_aton.h
  9954. * src/DownloadEngine.h
  9955. * src/gai_strerror.h
  9956. * src/a2netcompat.h
  9957. * configure.ac
  9958. * configure
  9959. * aclocal.m4
  9960. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9961. Included missing iostream.
  9962. * test/AllTest.cc
  9963. * test/BtDependencyTest.cc
  9964. * test/BtExtendedMessageTest.cc
  9965. * test/DHTConnectionImplTest.cc
  9966. * test/DHTMessageFactoryImplTest.cc
  9967. * test/DHTMessageTrackerEntryTest.cc
  9968. * test/DHTNodeTest.cc
  9969. * test/DHTRoutingTableSerializerTest.cc
  9970. * test/DefaultBtAnnounceTest.cc
  9971. * test/DefaultBtContextTest.cc
  9972. * test/DefaultBtMessageFactoryTest.cc
  9973. * test/DefaultExtensionMessageFactoryTest.cc
  9974. * test/HandshakeExtensionMessageTest.cc
  9975. * test/HttpResponseTest.cc
  9976. * test/MetalinkProcessorTest.cc
  9977. * test/MultiFileAllocationIteratorTest.cc
  9978. * test/SocketCoreTest.cc
  9979. * test/UTPexExtensionMessageTest.cc
  9980. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Reorganized includes.
  9982. * src/NameResolver.cc
  9983. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Fixed compilation error without ares/c-ares
  9985. * src/NameResolver.h:
  9986. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Added a test for large file.
  9988. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9989. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Fixed the bug that file size is ignored if size > INT32_MAX
  9991. * src/SizeMetalinkParserState.cc (endElement):
  9992. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Bump up version number to 0.13.0
  9994. * configure.ac
  9995. * Release 0.13.0
  9996. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Updated Makfefile.am to make 'make dist' work.
  9998. Now packaged filename is aria2c-VERSION.tar.bz2.
  9999. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10000. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10001. Large file support is now configured by configure script.
  10002. * configure.ac
  10003. Removed unsused source files
  10004. * src/
  10005. * test/
  10006. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10007. Peer.h and BtContext.h respectively.
  10008. * src/Peer.h
  10009. * src/BtContext.h
  10010. Updated translations.
  10011. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10012. translations. Great thanks to all translators!;)
  10013. * po/*.{po, gmo}
  10014. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10015. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10016. statically declared sha1 MessageDigestContext.
  10017. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10018. initialization of short-lived MessageDigestContext.
  10019. * src/MessageDigestHelper.{h, cc}
  10020. * src/main.cc
  10021. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10022. the initialization of MessageDigestContext every time in validating
  10023. chunk checksum.
  10024. * src/DownloadCommand.{h, cc}
  10025. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Add a file descriptor which connected to fast peer(latency<1500) to
  10027. select(). This change reduced CPU load.
  10028. * src/PeerInteractionCommand.cc
  10029. * src/DefaultBtInteractive.{h, cc}
  10030. * src/BtInteractive.h
  10031. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Fixed the previous insufficient fix for possible busy loop.
  10033. * src/MSEHandshake.cc (identifyHandshakeType)
  10034. Removed unused functions.
  10035. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10036. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Fixed possible busy loop if first 20 bytes are not received for a few
  10038. minutes.
  10039. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10040. * src/ReceiverMSEHandshakeCommand.cc
  10041. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Fixed compilation error
  10043. * src/ExpatMetalinkProcessor.cc
  10044. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10046. * src/DHTBucket.cc
  10047. Removed unnecessary cast.
  10048. * src/HandshakeExtensionMessage.cc
  10049. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10051. is missing.
  10052. * src/OptionHandlerFactory.cc
  10053. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Fixed the bug that HAVE message is not sent for a piece they are
  10055. downloaded fom http/ftp server before any BitTorrent handshake is done
  10056. with peers.
  10057. * src/DefaultBtInteractive.cc
  10058. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10060. * src/Makefile.am
  10061. * src/Makefile.in
  10062. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Updated README. Added html version of README and man page.
  10064. * README
  10065. * README.html
  10066. * readme2html: Shell script to generate README.html from README using
  10067. asciidoc.
  10068. * doc/aria2c.1.html
  10069. * doc/makeman: Added the line to generate aria2c.1.html
  10070. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. Fixed offset calculation.
  10072. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10073. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Rewritten itos and uitos using template. llitos and ullitos are
  10075. replaced with itos and uitos respectively.
  10076. * src/Util.{h, cc}
  10077. * test/UtilTest.cc
  10078. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10080. of the number of bytes required for storing public key and shared
  10081. secret.
  10082. * src/LibgcryptDHKeyExchange.h
  10083. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10084. * src/MSEHandshake.cc
  10085. * test/DHKeyExchangeTest.cc
  10086. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Removed since they are not used.
  10088. * src/Xml2MetalinkProcessor.{h, cc}
  10089. * src/Socket.cc
  10090. * src/SegmentSplitter.{h, cc}
  10091. * test/Xml2MetalinkProcessorTest.cc
  10092. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Fixed the bug that prevents aria2 from stopping other than by pressing
  10094. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10095. option. aria2 doesn't stop even after --seed-time is satisfied and
  10096. continues to output blank lines in the console.
  10097. * src/ReceiverMSEHandshakeCommand.cc
  10098. * src/PeerReceiveHandshakeCommand.cc
  10099. * src/PeerListenCommand.cc
  10100. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Bump up version number to 0.13.0rc
  10102. * configure.ac
  10103. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Updated man page and some usage text.
  10105. * doc/aria2c.1.txt
  10106. * src/usage_text.h
  10107. * po/*.{po, gmo}
  10108. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Updated translations. Added Finnish and Hebrew translations.
  10110. Great thanks to all translators!
  10111. * po/*.{po, gmo}
  10112. * po/LINGUAS
  10113. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Log more detailed information about each message.
  10115. * src/DHTQueryMessage.{h, cc}
  10116. * src/DHTGetPeersMessage.{h, cc}
  10117. * src/DHTFindNodeReplyMessage.{h, cc}
  10118. * src/DHTGetPeersReplyMessage.{h, cc}
  10119. * src/DHTAnnouncePeerMessage.{h, cc}
  10120. * src/DHTResponseMessage.{h, cc}
  10121. * src/DHTFindNodeMessage.{h, cc}
  10122. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Use constants defined in prefs.h
  10124. * src/option_processing.cc
  10125. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10126. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10127. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Make room for future enchancements for IPv6 addresses.
  10129. Bump up version number of dht.dat file format to 2.
  10130. Not compatible with previous version.
  10131. * src/DHTRoutingTableSerializer.cc
  10132. * src/DHTRoutingTableDeserializer.cc
  10133. * test/DHTRoutingTableSerializerTest.cc
  10134. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Added handling for the return values from
  10136. PeerMessageUtil::createcompact().
  10137. * src/DefaultBtContext.cc (computeFastSet):
  10138. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Fixed abort when peer's ip address is IPv4-mapped address.
  10140. * src/DefaultBtContext.cc (computeFastSet)
  10141. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10142. cannot handle IPv4-mapped addresses.
  10143. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10144. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Proper return value handling for OpenSSL functions.
  10146. * src/LibsslDHKeyExchange.h
  10147. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Random bytes generation using libgcrypt and OpenSSL.
  10149. * src/DHTUtil.{h, cc}
  10150. * test/DHTUtilTest.cc
  10151. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10153. received.
  10154. * src/DHTMessageReceiver.cc (receiveMessage)
  10155. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Fixed the bug that a return code is always 0. BUG#1897704
  10157. If error occurred during the download or there exist unfinished
  10158. downloads, aria2 returns with code 1.
  10159. * src/RequestGroupMan.{h, cc}
  10160. * src/MultiUrlRequestInfo.{h, cc}
  10161. * src/main.cc
  10162. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. IPv6 support for SocketCore class.
  10164. TODO: In SocketCore::establishConnection(), this is insufficient to
  10165. determin the failure of connect() here because the socket is
  10166. non-blocking state. The next addresses should be tried after select().
  10167. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10168. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10169. instead which address family independent.
  10170. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10171. information in a compact peer format which is for IPv4 only.
  10172. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10173. this is a spec of BitTorrent protocol.
  10174. * src/SocketCore.{h, cc}
  10175. * src/PeerMessageUtil.cc
  10176. * test/SocketCoreTest.cc
  10177. * test/PeerMessageUtilTest.cc
  10178. * test/DHTConnectionImplTest.cc
  10179. Handle IPv4-mapped addresses.
  10180. * src/DHTNode.cc: Now identity is determined by node id.
  10181. * src/DHTMessageTrackerEntry.cc
  10182. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10183. should handle it.
  10184. * src/DHTRoutingTableDeserializer.cc
  10185. * src/DHTMessageFactoryImpl.cc
  10186. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Change the unit of --stop option from a minute to a second.
  10188. * src/usage_text.h
  10189. * src/DownloadEngineFactory.cc
  10190. * src/OptionHandlerFactory.cc
  10191. * src/message.h
  10192. * src/TimedHaltCommand.cc
  10193. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Make listening socket non-block mode.
  10195. * src/FtpConnection.cc
  10196. * src/FtpNegotiationCommand.{h, cc}
  10197. * src/PeerListenCommand.cc
  10198. Fixed the bug that cause slow ftp negotiation.
  10199. * src/FtpNegotiationCommand.{h, cc}
  10200. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Added basic tag to --enable-dht, --dht-listen-port option.
  10202. * src/HelpItemFactory.cc (createHelpItems)
  10203. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Updated text.
  10205. * src/usage_text.h
  10206. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10208. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Determin _threadtholdSpeed in each constructor for
  10210. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10211. * src/ActivePeerConnectionCommand.{h, cc}
  10212. * src/PeerReceiveHandshakeCommand.{h, cc}
  10213. * src/BtSetup.cc
  10214. * src/BtConstants.h
  10215. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Added --bt-min-crypto-level and --bt-require-crypto options.
  10217. * src/OptionHandlerFactory.cc
  10218. * src/MSEHandshake.cc
  10219. * src/HelpItemFactory.cc
  10220. * src/option_processing.cc
  10221. * src/ReceiverMSEHandshakeCommand.cc
  10222. * src/prefs.h
  10223. * src/DefaultBtAnnounce.cc
  10224. * src/InitiatorMSEHandshakeCommand.cc
  10225. * src/usage_text.h
  10226. * test/MSEHandshakeTest.cc
  10227. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Bump version number to 0.13.0b
  10229. * configure.ac
  10230. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Updated doc.
  10232. * src/MessageDigestHelper.h:
  10233. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10234. Use raw message digest as a token instead of its hexadecimal
  10235. representation.
  10236. * src/DHTTokenTracker.cc (generateToken)
  10237. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Added Message Stream Encryption(MSE) support.
  10239. Currently, aria2 accepts incoming connections with Obfuscation Header
  10240. and legacy BitTorrent Header and establishes connections with
  10241. Obfuscation Header first and if failed then retry with legacy
  10242. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10243. choose ARC4. The new option to change the default behavior is planned.
  10244. For tracker extension, "supportcrypto=1" is added statically.
  10245. * src/PeerInitiateConnectionCommand.{h, cc}
  10246. * src/PeerConnection.{h, cc}
  10247. * src/HandleRegistry.h
  10248. * src/SocketCore.h
  10249. * src/PeerReceiveHandshakeCommand.{h, cc}
  10250. * src/BtRegistry.{h, cc}
  10251. * src/PeerListenCommand.cc
  10252. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10253. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10254. * src/MSEHandshake.{h, cc}
  10255. * src/ARC4Encryptor.h
  10256. * src/ARC4Decryptor.h
  10257. * src/LibgcryptARC4Encryptor.h
  10258. * src/LibgcryptARC4Decryptor.h
  10259. * src/LibgcryptARC4Context.h
  10260. * src/LibsslARC4Encryptor.h
  10261. * src/LibsslARC4Decryptor.h
  10262. * src/LibsslARC4Context.h
  10263. * src/DHKeyExchange.h
  10264. * src/LibgcryptDHKeyExchange.h
  10265. * src/LibsslDHKeyExchange.h
  10266. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10267. * test/DefaultBtAnnounceTest.cc
  10268. * test/ARC4Test.cc
  10269. * test/DHKeyExchangeTest.cc
  10270. Removed prepareForRetry() because it is not used.
  10271. * src/PeerAbstractCommand.{h, cc}
  10272. * src/PeerInteractionCommand.{h, cc}
  10273. * src/PeerInitiateConnectionCommand.{h, cc}
  10274. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. Added the ability to load nodes from torrent file. These nodes are
  10276. added to the routing table when downloading that torrent.
  10277. * src/BtContext.h
  10278. * src/DefaultBtContext.{h, cc}
  10279. * src/DHTSetup.cc
  10280. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10281. hostname and port pair, and resolves all of them.
  10282. * src/NameResolver.{h, cc}: Added reset().
  10283. * src/RequestGroup.cc
  10284. * test/DefaultBtContextTest.cc
  10285. * test/MockBtContext.h
  10286. Removed assert() from DefaultBtContext and throw exception instead.
  10287. * src/DefaultBtContext.cc
  10288. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Fixed segmentation fault bug when exiting if dht is disabled.
  10290. * src/RequestGroup.cc
  10291. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Fixed typo in log message and define the message in message.h
  10293. * src/TimedHaltCommand.cc
  10294. * src/message.h
  10295. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Included RecoverableException.h to fix compilation error.
  10297. * test/DHTMessageFactoryImplTest.cc
  10298. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10300. * test/DHTPingMessageTest.cc
  10301. * test/DHTGetPeersMessageTest.cc
  10302. * test/DHTFindNodeMessageTest.cc
  10303. * test/DHTAnnouncePeerMessageTest.cc
  10304. * test/MockDHTMessage.h
  10305. * test/MockDHTMessageFactory.h
  10306. * test/MockDHTMessageDispatcher.h: New class.
  10307. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10309. virtual.
  10310. * src/DHTMessageDispatcher.h
  10311. * src/DHTMessageDispatcherImpl.{h, cc}
  10312. * src/DHTSetup.cc
  10313. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Adding handling of DHT error message. Just log error message and
  10315. throw exception.
  10316. * src/DHTMessageFactoryImpl.cc
  10317. * test/DHTMessageFactoryImplTest.cc
  10318. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Added handling of dynamic cast failure.
  10320. * src/DHTNodeLookupTask.cc
  10321. * src/DHTPeerLookupTask.cc
  10322. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Added the ability to stop aria2 itself when given time has passed
  10324. from start. Use --stop option to specify time in minutes.
  10325. When 0 is given, this feature is disabled.
  10326. * src/OptionHandlerFactory.cc
  10327. * src/TimeBasedCommand.h: Make _interval protected scope.
  10328. * src/HelpItemFactory.cc
  10329. * src/option_processing.cc
  10330. * src/prefs.h
  10331. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10332. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10333. Without this modification, the result list shows "ERR" when aria2 is
  10334. stopped by --stop option. It should be "INPR".
  10335. * src/DownloadEngine.{h, cc}
  10336. * src/DownloadEngineFactory.cc
  10337. * src/usage_text.h
  10338. * src/TimedHaltCommand.{h, cc}: New class.
  10339. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Bootstrap through node added by port message.
  10341. Currently bootstrap is executed if the number of buckets in routing
  10342. table is 1.
  10343. * src/BtPortMessage.{h, cc}
  10344. * src/DefaultBtMessageFactory.{h, cc}
  10345. * src/PeerInteractionCommand.cc
  10346. * test/BtPortMessageTest.cc
  10347. * test/MockDHTTask.h
  10348. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Extract the Peer class's member variables, which are only needed after
  10350. PeerInteractionCommand, into PeerSessionResource class.
  10351. This class is instantiated in PeerInteractionCommand class's ctor and
  10352. released in its dtor.
  10353. This will make Peer class lightweight and uses less memory for peers
  10354. which are not connected and wait in the queue.
  10355. * src/PeerChokeCommand.cc
  10356. * src/PeerSessionResource.{h, cc}
  10357. * src/PeerInteractionCommand.cc
  10358. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10359. * src/DefaultBtInteractive.cc
  10360. * src/BtPieceMessage.cc
  10361. * src/BtInterestedMessage.cc
  10362. * src/BtUnchokeMessage.cc
  10363. * src/DefaultPeerStorage.{h, cc}
  10364. * src/PeerInitiateConnectionCommand.cc
  10365. * src/ActivePeerConnectionCommand.cc
  10366. * src/BtNotInterestedMessage.cc
  10367. * src/DefaultBtMessageDispatcher.cc
  10368. * src/BtChokeMessage.cc
  10369. * src/BtRequestMessage.cc
  10370. * src/Peer.{h, cc}
  10371. * src/BtRegistry.h
  10372. * src/TrackerWatcherCommand.cc
  10373. * src/PeerReceiveHandshakeCommand.cc
  10374. * test/BtExtendedMessageTest.cc
  10375. * test/BtAllowedFastMessageTest.cc
  10376. * test/BtCancelMessageTest.cc
  10377. * test/DefaultPieceStorageTest.cc
  10378. * test/BtBitfieldMessageTest.cc
  10379. * test/BtHaveMessageTest.cc
  10380. * test/BtNotInterestedMessageTest.cc
  10381. * test/BtRequestMessageTest.cc
  10382. * test/PeerSessionResourceTest.cc
  10383. * test/DefaultBtMessageDispatcherTest.cc
  10384. * test/PeerTest.cc
  10385. * test/BtInterestedMessageTest.cc
  10386. * test/BtRejectMessageTest.cc
  10387. * test/BtChokeMessageTest.cc
  10388. * test/DefaultPeerStorageTest.cc
  10389. * test/BtHaveNoneMessageTest.cc
  10390. * test/BtHaveAllMessageTest.cc
  10391. * test/DefaultExtensionMessageFactoryTest.cc
  10392. * test/BtUnchokeMessageTest.cc
  10393. * test/DefaultBtMessageFactoryTest.cc
  10394. * test/HandshakeExtensionMessageTest.cc
  10395. * test/UTPexExtensionMessageTest.cc
  10396. * test/DefaultBtRequestFactoryTest.cc
  10397. * test/BtPieceMessageTest.cc
  10398. Removed typedef PeerStats.
  10399. * src/PeerStat.h
  10400. * src/SegmentMan.cc
  10401. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Added std namespace to copy, remove_copy, back_inserter,
  10403. front_inserter.
  10404. * src/RequestGroupMan.cc
  10405. * src/DefaultPieceStorage.cc
  10406. * src/StreamFileAllocationEntry.cc
  10407. * src/BtFileAllocationEntry.cc
  10408. * src/RequestGroup.cc
  10409. * src/MetalinkEntry.cc
  10410. * src/DelegatingPeerListProcessor.cc
  10411. * src/DefaultBtRequestFactory.cc
  10412. * src/DefaultBtMessageDispatcher.cc
  10413. * src/version_usage.cc: Included <algorithm>
  10414. * src/main.cc
  10415. * src/MetalinkParserController.cc
  10416. * src/DefaultBtContext.cc
  10417. * src/DownloadEngineFactory.cc
  10418. * src/a2algo.h
  10419. Removed.
  10420. * test/StreamUriListParserTest.cc
  10421. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10423. ActivePeerConnectionCommand when it is given and
  10424. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10425. * src/ActivePeerConnectionCommand.{h, cc}
  10426. * src/BtSetup.cc
  10427. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Only add socket to DownloadEngine's select routine when peer or
  10429. localhost is unchoked and interested. This lowers CPU usage a
  10430. little bit.
  10431. * src/PeerInteractionCommand.cc
  10432. * src/PeerAbstractCommand.{h, cc}
  10433. * src/BtInteractive.h
  10434. * src/DefaultBtInteractive.{h, cc}
  10435. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Revert previous change because get_peers message is needed for
  10437. announce_peer anyway.
  10438. * src/DHTGetPeersCommand.cc
  10439. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Request peers thought DHT only when download hasn't finished.
  10441. * src/DHTGetPeersCommand.cc
  10442. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10444. * src/DHTBucketRefreshTask.{h, cc}
  10445. * src/DHTSetup.cc
  10446. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10448. standard classes.
  10449. Included string.h where mem* function are used.
  10450. Added namespace aria2.
  10451. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Create directory before saving DHT routing table.
  10453. Now ios::failure is now handled properly.
  10454. * src/DHTAutoSaveCommand.cc
  10455. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Removed unnecessary cerr.
  10457. * src/DownloadEngine.cc
  10458. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10459. Catch exception inside DHTMessageReceiver::receiveMessage().
  10460. Log unknown message.
  10461. * src/DHTMessageReceiver.{h, cc}
  10462. * src/DHTMessageFactory.h
  10463. * src/DHTMessageFactoryImpl.{h, cc}
  10464. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10465. * src/DHTInteractionCommand.cc
  10466. * src/DHTUnknownMessage.{h, cc}
  10467. * test/DHTUnknownMessageTest.cc
  10468. * test/MockDHTMessageFactory.h
  10469. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Commented out ip address comparison because a host can have multiple
  10471. ip addresses and it is hard to predict the hostname is resolved into
  10472. which one.
  10473. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10474. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. * po/Makefile.in: Removed since this is generated by configure.
  10476. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10477. Fixed compiler warning about redefinition of SIZE_MAX.
  10478. Use common.h instead of config.h directly here.
  10479. * src/Platform.{h, cc}
  10480. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10481. here.
  10482. * common.h
  10483. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10484. Updated gettext related files.
  10485. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10486. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10487. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Added DHT functionality, compatible with mainline.
  10489. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10490. You may need to specify entry point to DHT network using
  10491. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10492. Use --dht-listen-port to specify port number. Make sure that your
  10493. firewall configuration can pass through UDP traffic to the port.
  10494. The routing table is saved in $HOME/.aria2/dht.dat.
  10495. * src/DHT*
  10496. * src/BNode.{h, cc}
  10497. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10498. particular torrent.
  10499. * src/Data.cc: Rewritten ctor.
  10500. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10501. --dht-entry-point.
  10502. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10503. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10504. ends, remove BtContext from DHTPeerAnnounceStorage.
  10505. * src/BtPortMessage.{h, cc}: Rewritten.
  10506. * src/message.h
  10507. * src/OptionHandlerImpl.cc
  10508. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10509. --dht-entry-point.
  10510. * src/Dictionary.{h, cc} (remove): New function.
  10511. * src/prefs.h
  10512. * src/DefaultBtMessageFactory.h
  10513. * src/BtHandshakeMessage.cc
  10514. * src/ActivePeerConnectionCommand.cc
  10515. * src/SocketCore.{h, cc}: Added datagram socket support.
  10516. * src/DefaultBtMessageFactory.cc
  10517. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10518. Create DHT commands.
  10519. * src/BtMessageFactory.h
  10520. * src/PeerMessageUtil.{h, cc}
  10521. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Fixed the bug that log file is not written when configuration file doesn't exist.
  10523. This is caused by using Logger class before LogFactory is not configured.
  10524. BUG #1875079
  10525. * src/option_processing.cc
  10526. Warning message "configuration doesn't exist" is only printed when --conf is
  10527. given.
  10528. * src/option_processing.cc
  10529. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10531. ShaVisitor is now deprecated and slated to be removed.
  10532. * src/DefaultBtContext.cc
  10533. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Externalize message to message.h
  10535. * src/Platform.cc
  10536. * src/message.h
  10537. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Set default domain and default path to cookie.
  10539. * src/HttpResponse.cc
  10540. * src/CookieBox.{h, cc}
  10541. * src/CookieParser.{h, cc}
  10542. * test/CookieParserTest.cc
  10543. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Added --no-conf and --conf-path command-line option.
  10545. --no-conf option disables loading aria2.conf file.
  10546. --conf-path option changes the configuration file path. The default
  10547. file path is $HOME/.aria2/aria2.conf
  10548. Added a warning message when the configuration file is not found.
  10549. * src/HelpItemFactory.cc
  10550. * src/option_processing.cc
  10551. * src/prefs.h
  10552. * src/usage_text.h
  10553. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Added the message to inform users that other help categories are
  10555. available in -h option.
  10556. * src/version_usage.cc
  10557. * src/TagContainer.{h, cc}
  10558. * test/TagContainerTest.cc
  10559. * src/TaggedItem.{h, cc}
  10560. * test/TaggedItemTest.cc
  10561. * src/HelpItem.h
  10562. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10564. from PiecedSegment's ctor.
  10565. Previously Piece::getAllMissingBlockIndexes() is called from
  10566. PiecedSegment() but it is rather expensive since only first element is
  10567. used.
  10568. * src/PiecedSegment.cc
  10569. * src/Piece.{h, cc}
  10570. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10572. each time these functions are called.
  10573. * src/BitfieldMan.{h, cc}
  10574. * test/BitfieldManTest.cc
  10575. * src/array_fun.h
  10576. * test/array_funTest.cc
  10577. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10578. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10579. filtered. Removed unnecessary cast to int32_t.
  10580. * src/BitfieldMan.{h, cc}
  10581. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10583. payload length(4bytes) are received. This happens because lenbufLength
  10584. is not updated in this particular case and successive call of
  10585. receiveMessage() overwrites payload length with bytes recieved which
  10586. are payload body.
  10587. * src/PeerConnection.{h, cc}
  10588. * src/message.h
  10589. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10590. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10591. peer if there are peers that have same ipaddr and port.
  10592. I've experiened segmentation fault and "pure virtual function was
  10593. called" error.
  10594. * src/Peer.h
  10595. * test/PeerTest.cc
  10596. * src/DefaultPeerStorage.cc
  10597. * test/DefaultPeerStorageTest.cc
  10598. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. Removed a call to isPowerOf() because it is no longer necessary here
  10600. and a request block is not always power of 2.
  10601. BUG#1866924
  10602. * src/PeerMessageUtil.cc (checkLength)
  10603. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Fixed the bug that always first found Segment is removed from
  10605. usedSegmentEntries. Removed unused functions.
  10606. * src/SegmentMan.{h, cc}
  10607. * test/SegmentManTest.cc
  10608. Fixed the bug that ServerHost is not removed.
  10609. * src/RequestGroup.cc
  10610. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Fixed the bug that SegmentMan::completeSegment() is not called
  10612. even if Segment is complete when --lowest-speed-limit is enabled.
  10613. BUG#1864525
  10614. * src/DownloadCommand.{h, cc}
  10615. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Fixed: hash algorithm 'sha1' is always used.
  10617. * src/DownloadCommand.cc (validatePieceHash)
  10618. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. Added --enable-peer-exchange command-line option.
  10620. * src/OptionHandlerFactory.cc
  10621. * src/HelpItemFactory.cc
  10622. * src/option_processing.cc
  10623. * src/usage_text.h
  10624. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Move extension from BtRuntime to ExtensionMessageFactory, because
  10626. extension can be specified per peer, not per torrent.
  10627. * src/DefaultBtInteractive.cc
  10628. * src/BtRuntime.h
  10629. * src/ExtendedMessagingAware.h
  10630. * src/ExtensionMessageFactory.h
  10631. * src/DefaultExtensionMessageFactory.cc
  10632. * test/DefaultExtensionMessageFactoryTest.cc
  10633. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Added categorized option help. Specify category using --help option.
  10635. Also added the ability to search options in forward match.
  10636. * src/HelpItem.{h, cc}
  10637. * test/HelpItemTest.cc
  10638. * src/HelpItemFactory.{h, cc}
  10639. * src/TagContainer.{h, cc}
  10640. * test/TagContainerTest.cc
  10641. * src/option_processing.cc
  10642. * src/prefs.h
  10643. * src/TaggedItem.{h, cc}
  10644. * test/TaggedItemTest.cc
  10645. * src/version_usage.cc
  10646. * src/help_tags.h
  10647. * src/usage_text.h
  10648. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. Fixed segmentation fault when bad torrent metainfo is parsed.
  10650. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10651. and then throw exception or skip it.
  10652. * src/DefaultBtContext.{h, cc}
  10653. * test/DefaultBtContextTest.cc
  10654. * src/AnnounceList.cc
  10655. * src/CompactPeerListProcessor.cc
  10656. * src/message.h
  10657. * src/DefaultBtAnnounce.{h, cc}
  10658. * test/DefaultBtAnnounceTest.cc
  10659. * src/BencodeVisitor.cc
  10660. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Added missing "B"(=Byte). So now the message looks like this:
  10662. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10663. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10664. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. Show the seed ratio after torrent downloads.
  10666. For example, after torrent download completed and --seed-time and
  10667. --seed-ratio conditions are fulfilled, following message is printed
  10668. right after "Download complete: .....":
  10669. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10670. * src/RequestGroupMan.cc
  10671. * src/RequestGroup.{h, cc}
  10672. * src/message.h
  10673. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Remove a defunct control file. A defunct control file means that while
  10675. it exists, but the corresponding download file is missing.
  10676. After its removal, a download restarts from the beginning.
  10677. * src/RequestGroup.cc
  10678. * src/message.h
  10679. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Allocate bitfield in Peer when it is really used. More specifically,
  10681. bitfield in Peer is allocated after the connection is established and
  10682. deallocated when the connection is dropped.
  10683. Since 2 parameters(piece length and total length) was removed from the
  10684. constructor of Peer class, many test classes were modified accordingly.
  10685. See svn log for more detailed information.
  10686. * src/PeerInteractionCommand.cc
  10687. * src/CompactPeerListProcessor.cc
  10688. * src/Peer.cc
  10689. * src/DefaultPeerListProcessor.cc
  10690. * src/PeerListenCommand.cc
  10691. * src/PeerReceiveHandshakeCommand.cc
  10692. Fixed memory leak
  10693. * src/Piece.cc
  10694. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10696. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10697. command-line options.
  10698. * src/option_processing.cc
  10699. * src/ActivePeerConnectionCommand.cc
  10700. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Send have message to peer if it already has the piece.
  10702. * src/BtHaveMessage.{h, cc}
  10703. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10705. port.
  10706. * src/DefaultPeerStorage.{h, cc}
  10707. * test/DefaultPeerStorageTest.cc
  10708. * src/HandshakeExtensionMessage.cc
  10709. * test/HandshakeExtensionMessageTest.cc
  10710. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10711. * src/PeerStorage.h
  10712. * test/MockPeerStorage.h
  10713. * src/PeerListenCommand.cc
  10714. * src/PeerReceiveHandshakeCommand.cc
  10715. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Added --metalink-enable-unique-protocol option.
  10717. * src/Metalink2RequestGroup.cc
  10718. * src/option_processing.cc
  10719. * src/prefs.h
  10720. * src/version_usage.cc
  10721. * doc/aria2c.1.txt
  10722. * doc/aria2c.1
  10723. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Allow a peer in incomingPeer to be added peers.
  10725. * src/DefaultPeerStorage.cc
  10726. * test/DefaultPeerStorageTest.cc
  10727. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10728. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10729. I could reproduce this bug in following procedure:
  10730. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10731. 2. Restart aria2.
  10732. 3. You see the download stopped around 99%.
  10733. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10734. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10735. If timeout is reached, then _nextCommand is unused and it may contains
  10736. segments and they won't be canceled. Actually, timeout is not needed
  10737. here because if the server dropped connection, then retry is made.
  10738. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. Added uTorrent compatible Peer Exchange.
  10740. * src/BencodeVisitor.{h, cc}
  10741. * test/BencodeVisitorTest.cc
  10742. * src/BtConstants.h
  10743. * src/BtContext.h: Added 'private' flag.
  10744. * src/BtExtendedMessage.{h, cc}
  10745. * test/BtExtendedMessageTest.cc
  10746. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10747. reserved field.
  10748. * test/BtHandshakeMessageTest.cc
  10749. * src/BtMessageFactory.h
  10750. * src/BtRegistry.h
  10751. * src/BtRuntime.h: This class holds default extension message IDs for
  10752. aria2. By default, aria2 uses ID 8 for ut_pex.
  10753. * src/DefaultBtContext.cc
  10754. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10755. When it is true, aria2 enables ut_pex. This value is set by
  10756. PeerInteractionCommand.
  10757. * src/DefaultBtMessageFactory.{h, cc}
  10758. * test/DefaultBtMessageFactoryTest.cc
  10759. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10760. handling to DefaultBtInteractive class.
  10761. * src/DefaultExtensionMessageFactory.{h, cc}
  10762. * test/DefaultExtensionMessageFactoryTest.cc
  10763. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10764. the container(peers and incomingPeers. The equality is determined by
  10765. Peer::id).
  10766. * test/DefaultPeerStorageTest.cc
  10767. * src/ExtensionMessage.h
  10768. * test/MockExtensionMessage.h
  10769. * src/ExtensionMessageFactory.h
  10770. * test/MockExtensionMessageFactory.h
  10771. * src/HandshakeExtensionMessage.{h, cc}
  10772. * test/HandshakeExtensionMessageTest.cc
  10773. * src/MetaEntry.h
  10774. * src/Peer.{h, cc}
  10775. * src/PeerInteractionCommand.cc
  10776. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10777. addIncomingPeer.
  10778. * src/PeerMessageUtil.{h, cc}
  10779. * src/PeerObject.h
  10780. * src/UTPexExtensionMessage.{h, cc}
  10781. * test/UTPexExtensionMessageTest.cc
  10782. * src/message.h
  10783. * src/prefs.h
  10784. Fixed the bug that returns incomplete data when it contains null
  10785. character. A convenient constructor was also added.
  10786. * src/Data.{h, cc}
  10787. Rewritten.
  10788. * src/CompactPeerListProcessor.cc
  10789. Fixed typos.
  10790. * src/message.h
  10791. * src/MetaFileUtil.cc
  10792. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10793. Added "Status Legend" label to the explanation text of 'stat' in
  10794. download result and moved it to the last. BUG#1848214
  10795. * src/RequestGroupMan.cc
  10796. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10798. * src/Makefie.am
  10799. * test/Makefile.am
  10800. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10801. Fixed the bug that prevents aria2 from loading cookie file when expire
  10802. value is greater than 2^31-1. BUG#1851066
  10803. * src/CookieBoxFactory.cc
  10804. * test/CookieBoxFactoryTest.cc
  10805. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Fixed possible memory leak when an exception is thrown.
  10807. * src/XML2SAXMetalinkProcessor.cc
  10808. Added Expat support. If both libxml2 and Expat are installed, then
  10809. libxml2 is used by default.
  10810. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10811. ExpatMetalinkProcessor according to the configuration.
  10812. * src/ExpatMetalinkProcessor.{h, cc}
  10813. * src/main.cc: Removed libxml2 specific header and init/free function.
  10814. * src/MetalinkProcessorFactory.{h, cc}
  10815. * src/MetalinkHelper.cc
  10816. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10817. * src/MetalinkProcessor.h
  10818. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10819. MetalinkProcessorTest is used instead.
  10820. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10821. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10822. MetalinkProcessorFactory::newInstance().
  10823. * m4/libexpat.m4
  10824. * configure.ac: Added configuration options for libexpat.
  10825. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Disabled -s option in metalink download.
  10827. * src/Metalink2RequestGroup.cc
  10828. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10829. If several protocols are available for a mirror in metalink file,
  10830. aria2 now use one of them. --metalink-preferred-protocol option was
  10831. added to specify the preference of protocol.
  10832. * src/AbstractCommand.cc
  10833. * src/OptionHandlerFactory.cc
  10834. * src/ServerHost.{h, cc}
  10835. * src/Metalink2RequestGroup.cc
  10836. * src/RequestGroup.{h, cc}
  10837. * test/RequestGroupTest.cc
  10838. * src/option_processing.cc
  10839. * src/prefs.h
  10840. * src/HttpResponseCommand.cc
  10841. * src/MetalinkResource.{h, cc}
  10842. * src/FtpNegotiationCommand.cc
  10843. * src/MetalinkEntry.{h, cc}
  10844. * src/MetalinkEntryTest.cc
  10845. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Code cleanup and added debug log.
  10847. * src/PeerConnection.cc
  10848. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Compiler error fix: applied the patch by Tiziano Mueller
  10850. * src/RequestGroup.cc
  10851. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10853. in stopped and completed event.
  10854. * src/AnnounceList.{h, cc}
  10855. * test/AnnounceListTest.cc
  10856. * src/DefaultBtAnnounce.cc
  10857. * test/DefaultBtAnnounceTest.cc
  10858. Sorted URLs.
  10859. * test/Metalink2RequestGroupTest.cc
  10860. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Removed unnecessary string copy. Updated doc and corrected indentation.
  10862. * src/Base64.cc
  10863. Fixed compilation warnings
  10864. * test/DataTest.cc
  10865. * test/HttpRequestTest.cc
  10866. * test/MetaFileUtilTest.cc
  10867. * test/RequestTest.cc
  10868. * Release 0.12.0
  10869. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Updated translations
  10871. * po/{de,fr,ja,nl,ru}.po
  10872. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10873. translations. Many thanks to translators.
  10874. * po/{ca,es,it,pt_BR,sv}.po
  10875. * po/LINGUAS
  10876. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. Added a notice about URL
  10878. * src/version_usage.cc
  10879. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10880. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10881. aria2 repeatedly sends stopped request when tracker returns error code.
  10882. * src/AnnounceList.cc
  10883. * test/AnnounceListTest.cc
  10884. * src/AnnounceTier.h
  10885. Added a message when ctrl-c is hit.
  10886. Now second ctrl-c is also handled in signal handler.
  10887. * src/RequestGroupMan.{h, cc}
  10888. * src/RequestGroup.{h, cc}
  10889. * src/MultiUrlRequestInfo.cc
  10890. * src/DownloadEngine.cc
  10891. * src/TrackerWatcherCommand.cc
  10892. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Code cleanup
  10894. * src/Base64.cc (encode)
  10895. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10896. Changed Direct/IO enable/disable procesure in file allocation routine.
  10897. * src/SingleFileAllocationIterator.cc
  10898. (SingleFileAllocationIterator):
  10899. Disable directIO if offset is not multiple of 512.
  10900. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10901. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10902. Enable created SingleFileAllocationIterator's directIO.
  10903. * src/FileAllocationEntry.cc
  10904. (FileAllocationEntry): Enable directIO here.
  10905. (~FileAllocationEntry): Disable directIO here.
  10906. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10908. * src/Peer.{h, cc}
  10909. * src/DefaultPieceStorage.cc
  10910. * test/DefaultPieceStorageTest.cc
  10911. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Rewritten direct I/O support routine
  10913. * src/SingleFileAllocationIterator.cc
  10914. * src/MultiDiskAdaptor.{h, cc}
  10915. * src/ByteArrayDiskWriter.h
  10916. * src/AbstractSingleDiskAdaptor.h
  10917. * src/AbstractDiskWriter.cc
  10918. * src/DefaultPieceStorage.cc
  10919. * src/DiskWriter.h
  10920. * src/BinaryStream.h
  10921. * src/IteratableChunkChecksumValidator.cc
  10922. * src/IteratableChecksumValidator.cc
  10923. * src/CheckIntegrityEntry.cc
  10924. * src/FileAllocationEntry.cc
  10925. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Fixed typo
  10927. * src/version_usage.cc
  10928. Updated doc
  10929. * doc/aria2c.1.txt
  10930. * doc/aria2c.1
  10931. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. Fixed compile error without message digest support.
  10933. * src/FileMetalinkParserState.cc
  10934. * src/MetalinkParserController.{h, cc}
  10935. * test/XML2SAXMetalinkProcessorTest.cc
  10936. * test/MetalinkParserControllerTest.cc
  10937. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. Enable direct I/O support in checksum checking.
  10939. * src/IteratableChunkChecksumValidator.{h, cc}
  10940. * test/IteratableChunkChecksumValidatorTest.cc
  10941. * src/CheckIntegrityEntry.cc
  10942. * src/PieceHashCheckIntegrityEntry.cc
  10943. * src/IteratableChecksumValidator.{h, cc}
  10944. * src/BtCheckIntegrityEntry.cc: Added doc.
  10945. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Added --allow-piece-length-change option.
  10947. * src/DefaultBtProgressInfoFile.cc
  10948. * test/DefaultBtProgressInfoFileTest.cc
  10949. * src/OptionHandlerFactory.cc
  10950. * src/option_processing.cc
  10951. * src/prefs.h
  10952. * src/version_usage.cc
  10953. * doc/aria2c.1.txt
  10954. * doc/aria2c.1
  10955. Fixed: duplicated result entry appears when exception is thrown in
  10956. RequestGroup::createInitiateConnectionCommand().
  10957. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10958. Add RequestGroup to _requestGroup after RequetGroup::
  10959. createInitiateConnectionCommand() succeeds.
  10960. Externalized message
  10961. * src/XML2SAXMetalinkProcessor.cc
  10962. * src/message.h
  10963. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Forced download abort when received negative response from http/ftp
  10965. server.
  10966. * src/HttpResponseCommand.cc
  10967. * src/FtpNegotiationCommand.cc
  10968. * src/HttpResponse.cc
  10969. * src/FtpConnection.cc
  10970. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10971. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10972. the predecessor, Xml2MetalinkParser class.
  10973. I tested them against 94KB metalink file with 1234 chunk checksums.
  10974. The new one parsed it in 22msec, while it took 6000msec with old one.
  10975. * src/XML2SAXMetalinkProcessor.{h, cc}
  10976. * test/XML2SAXMetalinkProcessorTest.cc
  10977. * src/MetalinkParserController.{h, cc}
  10978. * test/MetalinkParserControllerTest.cc
  10979. * src/MetalinkParserState.h: Also added 16 subclasses.
  10980. * src/main.cc
  10981. * src/Metalink2RequestGroup.cc
  10982. * src/MetalinkHelper.cc
  10983. * src/MetalinkEntry.cc
  10984. * src/ChunkChecksum.h
  10985. Rewritten Base64 class for better performance.
  10986. * src/Base64.{h, cc}
  10987. * test/Base64Test.cc
  10988. * src/HttpRequest.cc
  10989. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. Fixed the bug#1841757: aria2 will connect to server to only get
  10991. file size.
  10992. * src/StreamFileAllocationEntry.cc
  10993. * src/option_processing.cc
  10994. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10995. downloads.
  10996. * src/FtpNegotiationCommand.cc
  10997. Suppressed wrong message when finding PreDownloadHandler
  10998. * src/RequestGroup.cc
  10999. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Updated usage
  11001. * src/version_usage.cc
  11002. Updated man page
  11003. * doc/aria2c.1.txt
  11004. * doc/aria2c.1
  11005. Updated po files
  11006. * po/aria2c.pot
  11007. * po/*.po
  11008. * po/*.gmo
  11009. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Eliminated g++-4.2 warning
  11011. * src/DownloadHandlerConstants.{h, cc}
  11012. * src/Util.cc
  11013. * test/MetaFileUtilTest.cc
  11014. * test/PStringBuildVisitorTest.cc
  11015. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11016. * src/RequestGroup.cc
  11017. * src/BtCheckIntegrityEntry.cc
  11018. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Fixed a2io.h
  11020. * src/a2io.h
  11021. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11022. Added direct I/O support. The current implementation uses O_DIRECT,
  11023. which is not posix standard and is tested on linux 2.6.21.
  11024. Currently only file allocation uses direct I/O.
  11025. * src/SingleFileAllocationIterator.{h, cc}
  11026. * test/SingleFileAllocationIteratorTest.cc
  11027. * src/MultiFileAllocationIterator.{h, cc}
  11028. * test/MultiFileAllocationIteratorTest.cc
  11029. * src/BinaryStream.h
  11030. * src/DiskWriter.h
  11031. * src/AbstractDiskWriter.{h, cc}
  11032. * src/ByteArrayDiskWriter.h
  11033. * src/DiskAdaptor.h
  11034. * src/AbstractSingleDiskAdaptor.{h, cc}
  11035. * src/MultiDiskAdaptor.{h, cc}
  11036. * src/FileAllocationEntry.cc
  11037. * src/Util.{h, cc}
  11038. * src/OptionHandlerFactory.cc
  11039. * src/prefs.h
  11040. * src/version_usage.cc
  11041. * src/option_processing.cc
  11042. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11043. handleException.
  11044. * src/MultiFileAllocationIterator.cc
  11045. Added EINTR handling
  11046. * src/SocketCore.cc
  11047. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Updated usage
  11049. * src/version_usage.cc
  11050. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. Applied Ross's patch for MinGW port.
  11052. * src/DownloadEngine.h
  11053. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11054. Set Content-Type to SingleFileDownloadContext when http response is
  11055. received.
  11056. * src/HttpResponseCommand.cc
  11057. * src/HttpResponse.{h, cc}
  11058. * test/HttpResponseTest.cc
  11059. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Rewritten to add content-type support.
  11061. * src/DownloadHandler.{h, cc}
  11062. * src/BtPostDownloadHandler.{h, cc}
  11063. * test/BtPostDownloadHandlerTest.cc
  11064. * src/MetalinkPostDownloadHandler.{h, cc}
  11065. * test/MetalinkPostDownloadHandlerTest.cc
  11066. * src/PostDownloadHandler.{h, cc}
  11067. * src/DownloadHandlerConstants.{h, cc}
  11068. * src/RequestGroup.cc
  11069. * src/HttpResponseCommand.cc
  11070. * src/FtpNegotiationCommand.cc
  11071. * src/SingleFileDownloadContext.{h, cc}
  11072. * src/RequestGroup.h
  11073. * src/RequestGroupCriteria.h
  11074. * src/ContentTypeRequestGroupCriteria.h
  11075. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11076. If it is give, metalink/torrent file is not written to the disk, but
  11077. just is kept in memory. Parsing is occurred on memory.
  11078. * src/MetalinkHelper.{h, cc}
  11079. * src/MetalinkProcessor.h
  11080. * src/Xml2MetalinkProcessor.{h, cc}
  11081. * test/Xml2MetalinkProcessorTest.cc
  11082. * src/DownloadHandlerFactory.{h, cc}
  11083. * test/DownloadHandlerFactoryTest.cc
  11084. * src/PreDownloadHandler.{h, cc}
  11085. * src/OptionHandlerFactory.cc
  11086. * src/DefaultBtContext.{h, cc}
  11087. * test/DefaultBtContextTest.cc
  11088. * src/version_usage.cc
  11089. * src/Metalink2RequestGroup.{h, cc}
  11090. * src/RequestGroup.{h, cc}
  11091. * src/a2functional.h
  11092. * test/a2functionalTest.cc
  11093. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11094. * src/OptionHandlerImpl.h
  11095. * src/prefs.h
  11096. * src/Util.{h, cc}
  11097. * test/UtilTest.cc
  11098. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11099. memory usage.
  11100. * src/RequestGroupMan.{h, cc}
  11101. * src/DownloadEngine.cc
  11102. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11103. WeakHandle to SharedHandle because WeakHandle could be null.
  11104. * src/RequestGroup.{h, cc}
  11105. * src/DownloadEngineFactory.cc
  11106. * src/DownloadResult.h
  11107. Set totalLength after download finished
  11108. * src/UnknownLengthPieceStorage.{h, cc}
  11109. Keep torrent file specified in metalink in memory.
  11110. * src/Metalink2RequestGroup.cc
  11111. * src/BtDependency.cc
  11112. * src/TrueRequestGroupCriteria.h
  11113. Fixed the bug: seekg is used where seekp should be used.
  11114. * src/ByteArrayDiskWriter.cc
  11115. * test/ByteArraydiskWriterTest.cc
  11116. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Fixed syntax error
  11118. * test/SequenceTest.cc
  11119. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11121. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11122. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11123. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11124. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Added the check to see whether ares_host_callback accepts timeouts
  11126. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11127. * src/NameResolver.{h, cc}
  11128. * m4/libcares.m4
  11129. * configure.ac: Set C++ for language choice.
  11130. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Fixed: compilation fails without c-ares/ares
  11132. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11133. Generate http/ftp commands only when download is incomplete.
  11134. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11135. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Corrected typo. Examples are removed since they are available in man
  11137. page.
  11138. * src/version_usage.cc
  11139. Updated man page.
  11140. * doc/aria2c.1
  11141. * doc/aria2c.1.txt
  11142. * doc/makeman: Commented out sed command.
  11143. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11144. Throw DlAbortEx when a remote file is not found.
  11145. * src/HttpResponse.cc
  11146. * src/FtpNegotiationCommand.cc
  11147. * src/message.h
  11148. Overwrite an existing file if --allow-overwrite=true is given.
  11149. * src/RequestGroup.cc
  11150. Removed unused functions
  11151. * src/AbstractCommand.h
  11152. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. Removed 'extern' from 'extern typedef ...' in src/*.h
  11154. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Updated usage
  11156. * src/version_usage.cc
  11157. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Trim announce URL
  11159. * src/DefaultBtContext.cc
  11160. * test/ShaVisitorTest.cc
  11161. Trim argument s. Give trimed s to exception constructor.
  11162. * src/Util.cc (parseInt)(parseLLInt)
  11163. * test/UtilTest.cc
  11164. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Set precision back to 1.
  11166. * src/ConsoleStatCalc.cc (calculateStat)
  11167. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Replaced strtol with Util::parseInt
  11169. * src/ChunkedEncoding.cc
  11170. * src/HttpConnection.cc
  11171. * src/CookieBoxFactory.cc
  11172. * src/ParameterizedStringParser.cc
  11173. * src/Util.cc
  11174. * test/UtilTest.cc
  11175. * test/OptionHandlerTest.cc
  11176. * src/Request.cc
  11177. Throw exception when empty string is given. The message for exception
  11178. changed.
  11179. * src/Util.cc (parseInt)(parseLLInt)
  11180. * src/message.h
  11181. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11183. set to 1.
  11184. * src/ConsoleStatCalc.cc (calculateStat)
  11185. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. Preallocate non-requested file which is adjacent forward to requested
  11187. file('requested' files means the files given in --select-file option)
  11188. if they share a same piece.
  11189. This fixes long pause in the file system which doesn't support sparse
  11190. files like FAT32 while downloading.
  11191. * src/MultiFileAllocationIterator.{h, cc}
  11192. * test/MultiFileAllocationIteratorTest.cc
  11193. * src/FileEntry.{h, cc}
  11194. Removed unused _option.
  11195. * src/MultiDiskAdaptor.h
  11196. * test/MultiDiskAdaptorTest.cc
  11197. * src/DefaultPieceStorage.cc
  11198. Set the default value of --seed-ratio to 1.0.
  11199. If 0.0 is given, then seeding continues regardless of share ratio.
  11200. * src/version_usage.cc
  11201. * src/option_processing.cc
  11202. * src/BtSetup.cc
  11203. * doc/aria2c.1.txt
  11204. * doc/aria2c.1
  11205. Fixed: Selective download is not working in BitTorrent
  11206. * src/RequestGroup.cc
  11207. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11208. * src/PieceStorage.h
  11209. * test/MockPieceStorage.h
  11210. * src/UnknownLengthPieceStorage.h
  11211. * src/DefaultPieceStorage.{h, cc}
  11212. * src/Metalink2RequestGroup.cc
  11213. * src/RequestGroup.cc
  11214. * src/Sequence.h
  11215. * test/SequenceTest.cc
  11216. * src/IntSequence.h
  11217. * src/message.h
  11218. * src/Util.{h, cc}
  11219. * test/UtilTest.cc
  11220. Added new function 'parse' to catch exception thrown by subclass's
  11221. parseArg
  11222. * src/OptionHandler.h
  11223. * src/OptionParser.cc
  11224. * src/NameMatchOptionHandler.h
  11225. * src/OptionHandlerImpl.h
  11226. * test/OptionHandlerTest.cc
  11227. Added IntegerRangeOptionHandler. Used for --listen-port and
  11228. --select-file. Now --listen-port accepts range of port.
  11229. * src/OptionHandlerFactory.cc
  11230. * src/version_usage.cc
  11231. * src/OptionHandlerImpl.h
  11232. * src/option_processing.cc
  11233. * src/BtSetup.cc
  11234. * src/PeerListenCommand.{h, cc}
  11235. * doc/aria2c.1.txt
  11236. * doc/aria2c.1
  11237. Implemented operator< for Exception class to provide easy way to print
  11238. exception stack trace.
  11239. * src/Exception.{h, cc}
  11240. * src/main.cc
  11241. * src/option_processing.cc
  11242. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11243. * src/version_usage.cc
  11244. (showVersion): Reworked.
  11245. (showUsage): Added examples.
  11246. Removed Hint for total length and file name.
  11247. * src/Metalink2RequestGroup.cc
  11248. * src/RequestGroup.{h, cc}
  11249. * src/HttpResponseCommand.cc
  11250. * src/FtpNegotiationCommand.cc
  11251. Now --follow-torrent and --follow-metalink option work properly.
  11252. * src/RequestGroup.cc
  11253. Updated man page
  11254. * doc/aria2c.1.txt
  11255. * doc/aria2c.1
  11256. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Removed.
  11258. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11259. Use Segment::operator==()
  11260. * src/HttpConnection.cc
  11261. * src/Segment.h
  11262. Updated usage
  11263. * src/version_usage.cc
  11264. Added EINTR treatment.
  11265. * src/SocketCore.cc
  11266. * src/AbstractDiskWriter.cc
  11267. Rewritten.
  11268. * src/Util.cc (rangedFileCopy)
  11269. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. Fixed typo.
  11271. * src/version_usage.cc
  11272. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Implemented. Now -c option works fine.
  11274. * src/DefaultPieceStorage.cc (markPiecesDone)
  11275. * test/DefaultPieceStorageTest.cc
  11276. Removed.
  11277. * src/SegmentMan.{h, cc}
  11278. (markAllPiecesDone)
  11279. (markPieceDone)
  11280. Synchronized po files with
  11281. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11282. * src/fr.po
  11283. * src/ru.po
  11284. * src/de.po
  11285. * src/ja.po
  11286. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11287. Added ifdef and some modifications to compile without BitTorrent,
  11288. Metalink, MessageDigest
  11289. support.
  11290. * src/PieceHashCheckIntegrityEntry.cc
  11291. * src/MetalinkEntry.h
  11292. * src/version_usage.cc
  11293. * src/main.cc
  11294. * src/DownloadEngine.{h, cc}
  11295. * src/Metalink2RequestGroup.cc
  11296. * src/Peer.cc
  11297. * src/RequestGroup.cc
  11298. * src/MetalinkHelper.cc
  11299. * test/DefaultPieceStorageTest.cc
  11300. * test/MetalinkPostDownloadHandlerTest.cc
  11301. * test/Metalink2RequestGroupTest.cc
  11302. Hide TOTAL SPD when all downloads complete.
  11303. * src/ConsoleStatCalc.cc
  11304. Log target system information.
  11305. * src/main.cc
  11306. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11307. Now --metalink-location accepts a comma-deliminated list of locations.
  11308. * src/MetalinkEntry.{h, cc}
  11309. * test/MetalinkEntryTest.cc
  11310. * src/version_usage.cc
  11311. * src/Metalink2RequestGroup.cc
  11312. * src/Xml2MetalinkProcessor.cc
  11313. * test/Xml2MetalinkProcessorTest.cc
  11314. * doc/aria2c.1.txt
  11315. * doc/aria2c.1
  11316. * src/Util.cc (toUpper)(toLower): Rewritten.
  11317. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Added the ability to detect duplicate download entry which is about to
  11319. download the same file other RequestGroup is downloading.
  11320. * src/RequestGroup.cc
  11321. * src/HttpResponseCommand.cc
  11322. * src/FtpNegotiationCommand.cc
  11323. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. Recalculates download progress when loading a control file,
  11325. if the piece length of DownloadContext is different from the one saved
  11326. in the control file. Currently in-flight pieces are ignored.
  11327. * src/DefaultBtProgressInfoFile.cc
  11328. * test/DefaultBtProgressInfoFileTest.cc
  11329. * src/Util.{h, cc}
  11330. * test/UtilTest.cc
  11331. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11332. Do not rotate tiers in announce-list.
  11333. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11334. AnnounceList::allTiersFailed() used instead to detect whether all
  11335. tiers are tried and failed.
  11336. * test/DefaultBtAnnounceTest.cc
  11337. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11338. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11339. * test/AnnounceListTest.cc
  11340. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11341. clause. Catch RecoverableException instead of DlRetryEx instead.
  11342. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Implemented checksum validation feature(1 checksum for each file)
  11344. The validation takes place after the download.
  11345. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11346. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11347. * src/CheckIntegrityCommand.cc: Changed log message.
  11348. * src/Metalink2RequestGroup.cc: Set checksum to
  11349. SingleFileDownloadContext.
  11350. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11351. PieceHashCheckIntegrity class.
  11352. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11353. PieceHashCheckIntegrity class.
  11354. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11355. * src/IteratableValidator.h: New class.
  11356. * src/message.h
  11357. * src/CheckIntegrityEntry.{h, cc}
  11358. * src/IteratableChunkChecksumValidator.{h, cc}
  11359. * src/SingleFileDownloadContext.h
  11360. * src/DownloadCommand.cc
  11361. --allow-overwrite=true is no longer needed to check file integrity
  11362. before download in BitTorrent download.
  11363. * src/RequestGroup.cc (getInitialCommand)
  11364. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11365. throws exception.
  11366. * src/RequestGroupMan.cc (getInitialCommands)
  11367. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. urlencode the given url inside Request::parseUrl(...)
  11369. * src/Request.{h, cc}
  11370. * src/Util.{h, cc}
  11371. * test/RequestTest.cc
  11372. Removed #!metalink3! notation support because it is deleted from
  11373. the metalink specification.
  11374. * src/Request.{h, cc}
  11375. * test/RequestTest.cc
  11376. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Don't connect server before checking file integrity at startup, if
  11378. filesize and output file path are known.
  11379. * src/AbstractCommand.cc
  11380. * src/StreamFileAllocationEntry.cc
  11381. * src/Metalink2RequestGroup.cc
  11382. * src/RequestGroup.{h, cc}
  11383. * src/HttpResponseCommand.cc
  11384. * src/FtpNegotiationCommand.cc
  11385. Added DownloadFailureException. If it is thrown, RequestGroup should
  11386. halt.
  11387. * src/AbstractCommand.cc
  11388. * src/DownloadFailureException.h
  11389. * src/RequestGroup.cc
  11390. Catch RecoverableException, instead of DlAbortEx.
  11391. * src/RequestGroupMan.cc
  11392. * src/FillRequestGroupCommand.cc
  11393. * src/MetaFileUtil.cc
  11394. * src/IteratableChunkChecksumValidator.cc
  11395. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11396. getGID())
  11397. * src/CheckIntegrityCommand.cc
  11398. * src/message.h
  11399. Print gid instead of idx.
  11400. * src/RequestGroupMan.cc
  11401. Removed exception throwers declaration.
  11402. * src/DirectDiskAdaptor.{h, cc}
  11403. * src/SocketCore.{h, cc}
  11404. * src/MultiDiskAdaptor.{h, cc}
  11405. * src/HttpConnection.{h, cc}
  11406. * src/HttpResponse.{h, cc}
  11407. * src/DiskAdaptor.{h, cc}
  11408. * src/CopyDiskAdaptor.{h, cc}
  11409. * src/MultiDiskAdaptor.{h, cc}
  11410. * src/HttpHeaderProcessor.{h, cc}
  11411. * src/AbstractSingleDiskAdaptor.{h, cc}
  11412. * src/Util.{h, cc}
  11413. * test/UtilTest.cc
  11414. * src/DefaultDiskWriter.{h, cc}
  11415. * src/FtpConnection.{h, cc}
  11416. * src/AbstractDiskWriter.{h, cc}
  11417. Removed duplicate code.
  11418. * src/StreamCheckIntegrityEntry.cc
  11419. Removed unnecessary include.
  11420. * src/DiskWriter.h
  11421. Included Exception.h
  11422. * src/option_processing.cc
  11423. Included 2 files and added doc
  11424. * src/TrackerWatcherCommand.cc
  11425. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11426. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. Changed CheckIntegrityEntry interface so that it can define
  11428. the action when all the chunk checksums are valid.
  11429. * src/CheckIntegrityEntry.h
  11430. * src/StreamCheckIntegrityEntry.{h, cc}
  11431. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11432. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11433. to exit rather than doing seeding. So, it would be good to toggle this
  11434. behavior.
  11435. * src/CheckIntegrityCommand.cc
  11436. * src/AbstractCommand.cc
  11437. * src/RequestGroup.cc
  11438. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11439. Reflect the download length of in-flight pieces.
  11440. It makes the download length readout more precise.
  11441. * src/DefaultPieceStorage.{h, cc}
  11442. * test/DefaultPieceStorageTest.cc
  11443. * src/a2functional.h
  11444. * test/a2functionalTest.cc
  11445. Lower CPU load when --max-download-limit is used.
  11446. There is up and down in speed indicator when enabling
  11447. http-pipelining but a download goes well. I think the problem is that
  11448. because http-pipelining is enabled, DownloadCommand is created for
  11449. each segment and in its constructor, PeerStat::downloadStart() is
  11450. called. In PeerStat::downloadStart(), speed calculation object is
  11451. reseted, which makes download speed zero.
  11452. * src/DownloadCommand.cc
  11453. Rewritten using accumulate.
  11454. * src/RequestGroupMan.cc (calculateStat)
  11455. Code clearnup.
  11456. * src/FtpNegotiationCommand.cc
  11457. * src/HttpResponseCommand.cc
  11458. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11459. Fixed: Can not resume: aria2 reports download already finished.
  11460. * src/AbstractCommand.{h, cc}
  11461. * src/HttpResponseCommand.cc
  11462. * src/FtpNegotiateCommand.cc
  11463. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Now a file is stored in the directory specified in .metalnk file
  11465. (file[@name]).
  11466. * src/Metalink2RequestGroup.cc
  11467. Create the directory structure when opening the file if it doesn't
  11468. exist.
  11469. * src/AbstractDiskWriter.cc
  11470. * src/Util.{h, cc}
  11471. * src/File.h
  11472. * test/UtilTest.cc
  11473. Removed file name comparison
  11474. * src/Metalink2RequestGroup.cc
  11475. * src/HttpResponseCommand.cc
  11476. Rewritten using Util::mkdirs()
  11477. * src/FileEntry.cc (setupDir)
  11478. * test/FileEntryTest.cc
  11479. Updated doc
  11480. * src/SingleFileDownloadContext.h
  11481. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Now SleepCommand dispatches nextCommand when halt is requested.
  11483. It avoids a possible long wait after hitting CTRL-C.
  11484. * src/SleepCommand.{h, cc}
  11485. * src/RequestGroupAware.{h, cc}
  11486. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11488. to open listen port, then remove the port number from the tracker
  11489. request.
  11490. * src/DefaultBtAnnounce.cc
  11491. * test/DefaultBtAnnounceTest.cc
  11492. * test/MockPieceStorage.h
  11493. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11494. them more testable.
  11495. * src/DefaultBtAnnounce.{h, cc}
  11496. * src/DefaultBtContext.{h, cc}
  11497. * src/Util.{h, cc}
  11498. * test/DefaultBtAnnounceTest.cc
  11499. * test/DefaultBtContextTest.cc
  11500. * test/UtilTest.cc
  11501. Added 'B' to upload bytes readout.
  11502. * src/ConsoleStatCalc.cc
  11503. Now the listen port for BitTorrent download is opened when it is
  11504. needed.
  11505. * src/DownloadEngineFactory.cc
  11506. * src/BtSetup.{h, cc}
  11507. * src/PeerListenCommand.{h, cc}
  11508. Now an exception thrown while parsing tracker response is now logged.
  11509. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11510. called, which means no retry is made in this case, assuming a tracker
  11511. has a problem.
  11512. * src/TrackerWatcherCommand.cc
  11513. Fixed: downloading a file whose length is unkown fails.
  11514. * src/DownloadCommand.cc
  11515. Simplified prepareForNextSegment()
  11516. * src/DownloadCommand.cc
  11517. Updated
  11518. * po/POTFILES.in
  11519. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11520. Re-implemented a file listing for Metalink, which was dropped while
  11521. http/ftp/torrent integration was being implemented.
  11522. * src/MetalinkHelper.{h, cc}: New class.
  11523. * test/MetalinkHelperTest.cc
  11524. * src/main.cc
  11525. * src/Metalink2RequestGroup.cc
  11526. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Added the ability to display the detailed torrent file information.
  11528. Now -S option gives not only a file listing, but also total download
  11529. length, info hash, announce URI, piece length, the number of pieces,
  11530. and mode(single or multi-torrent).
  11531. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11532. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11533. KiB)
  11534. * test/UtilTest.cc
  11535. * src/main.cc
  11536. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Added ftp://USER:PASSWD@Servername automatic parsing.
  11538. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11539. _password. Recognize username and password in URI.
  11540. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11541. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11542. * src/RequestFactory.{h, cc}: Removed.
  11543. * src/AuthConfigFactory.{h, cc}: New class.
  11544. * src/FtpConnection.cc: Use AuthConfigFactory.
  11545. * src/HttpRequest.cc: Use AuthConfigFactory.
  11546. * test/HttpRequestTest.cc: Updated.
  11547. * test/RequestTest.cc: Updated.
  11548. * test/AuthConfigFactoryTest.cc: New class.
  11549. * test/RequestFactoryTest.cc: Removed.
  11550. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Use RequestGroup::allDownloadFinished() to decide whether the control
  11552. file should be removed or saved.
  11553. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11554. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11555. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. Use File::renameTo()
  11557. * src/DefaultBtProgressInfoFile.cc
  11558. Added --no-file-allocation-limit command-line option.
  11559. * src/version_usage.cc
  11560. * src/option_processing.cc
  11561. * src/OptionHandlerFactory.cc
  11562. * src/RequestGroup.{h, cc}
  11563. * src/BtCheckIntegrityEntry.cc
  11564. * src/StreamCheckIntegrityEntry.cc
  11565. * src/prefs.h
  11566. * doc/aria2c.1.txt
  11567. * doc/aria2c.1
  11568. Now prealloc is the default value for --file-allocation option.
  11569. * src/version_usage.cc
  11570. * src/option_processing.cc
  11571. * doc/aria2c.1.txt
  11572. * doc/aria2c.1
  11573. Don't URL-encode user-agent.
  11574. * src/HttpRequest.cc
  11575. Updated translations
  11576. * po/LINGUAS: Added nl for Dutch translation.
  11577. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11578. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11579. * po/POTFILES.in: Updated.
  11580. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Added the ability to recognize url-list in a torrent file.
  11582. The retrieved URLs are attached to the corresponding FileEntry.
  11583. * src/DefaultBtContext.{h, cc}
  11584. * src/FileEntry.{h, cc}
  11585. * test/DefaultBtContextTest.cc
  11586. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11587. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11588. after the download finishes.
  11589. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11591. the data smaller than block length.
  11592. A block length can be specified by constructor's argument.
  11593. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11594. Get a missing piece in the range of given FileEntry. This function is
  11595. not used in the program yet.
  11596. * src/Util.h: Added some macros.
  11597. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11598. Added HTTP/1.1 keep alive and pipelining support.
  11599. See --enable-http-keep-alive and --enable-http-pipelining option.
  11600. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11601. Segment.
  11602. * src/HttpDownloadCommand.{h, cc}
  11603. * src/OptionHandlerFactory.cc
  11604. * src/HttpConnection.{h, cc}
  11605. * src/version_usage.cc
  11606. * src/HttpInitiateConnectionCommand.cc
  11607. * src/FtpInitiateConnectionCommand.cc
  11608. * src/Segment.h
  11609. * src/HttpRequestCommand.{h, cc}
  11610. * src/option_processing.cc
  11611. * src/prefs.h
  11612. * src/HttpResponseCommand.cc
  11613. * src/SegmentMan.{h, cc}
  11614. * src/FtpNegotiateCommand.cc
  11615. * src/HttpProxyResponseCommand.cc
  11616. * src/Request.cc
  11617. * src/HttpRequest.cc
  11618. * src/DownloadCommand.cc
  11619. * test/HttpRequestTest.cc
  11620. * test/RequestTest.cc
  11621. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11622. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11623. finished.
  11624. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11626. catching it inside the method.
  11627. When no file entry is found in a metalink without querying user
  11628. preferences, throw the exception with the error message that suggests
  11629. metalink file is probably broken.
  11630. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11631. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11633. processed.
  11634. * src/RequestGroupMan.cc (removeStoppedGroup)
  11635. Added debug message.
  11636. * src/BtPostDownloadHandler.cc
  11637. * src/MetalinkPostDownloadHandler.cc
  11638. * src/PostDownloadHandler.{h, cc}
  11639. * src/RequestGroup.cc
  11640. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11642. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11644. stops and there are any unfinished or in-progress downloads.
  11645. Added the legend of "stat".
  11646. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11647. Throw exception when chunck checksum verification fails.
  11648. * src/DownloadCommand.cc (validatePieceHash): New function.
  11649. * src/PiecedSegment.{h, cc} (clear): New function.
  11650. * src/GrowSegment.{h, cc} (clear): New function.
  11651. * src/Segment.h (clear): New function.
  11652. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11653. * test/SegmentTest.cc
  11654. * test/GrowSegmentTest.cc
  11655. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Do not send referer when redirected.
  11657. * src/Request.cc (redirectUrl)
  11658. * test/RequestTest.cc
  11659. * test/HttpRequestTest.cc
  11660. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Implemented BitTorrent/http/ftp integrated download.
  11662. I've rewritten lots of files and now some headers have forward
  11663. class declarations to reduce compile time.
  11664. The implementation is extremely alpha stage, I recommend to use this
  11665. for testing purpose only.
  11666. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11667. Fixed the compilation error on 64bit platform.
  11668. * test/HttpHeaderProcessorTest.cc
  11669. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Merged Ross's patch that fixes compilation problem in MinGW
  11671. * test/DefaultBtProgressInfoFileTest.cc
  11672. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Updated fr.po by sebone
  11674. * po/fr.po
  11675. Updated man page.
  11676. * doc/aria2c.1.txt
  11677. * Release 0.11.3
  11678. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11680. failure in Metalink.
  11681. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Automatically save *.aria2 control file of http/ftp download in every
  11683. 60 seconds.
  11684. * src/AutoSaveCommand.{h, cc}: New class.
  11685. * src/TimeBasedCommand.{h, cc}: New class.
  11686. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11687. Disable parameterized URI support by default. Added -P option to
  11688. enable the feature.
  11689. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11690. * src/OptionHandlerFactory.cc
  11691. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11692. Updated Japanese translation.
  11693. * po/ja.po
  11694. Updated man page.
  11695. * doc/aria2c.1.txt
  11696. * Release 0.11.3-rc
  11697. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11698. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11699. it is successful, then renamed to *.aria2.
  11700. This prevents *.aria2 file from being truncated or corrupted when
  11701. file system becomes out of space.
  11702. * src/DefaultBtProgressInfoFile.cc (save)
  11703. * src/SegmentMan.cc (save)
  11704. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11705. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11706. Reduced the fragmentation of bitfield in http/ftp download.
  11707. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11708. * test/BitfieldManTest.cc
  11709. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11710. Added the ability to disable segmented download in .metalink.
  11711. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11712. 'url' tag.
  11713. * src/MetalinkEntry.{h, cc}
  11714. * src/RequestResource.{h, cc}
  11715. * src/MetalinkRequestInfo.cc
  11716. * src/Xml2MetalinkProcessor.cc
  11717. * test/Xml2MetalinkProcessorTest.cc
  11718. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. Added parameterized URI support.
  11720. * src/main.cc: -Z option added.
  11721. * src/OptionHandlerFactory.cc
  11722. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11723. * src/PStringDatum.h: New class.
  11724. * src/PStringSegment.{h,cc}: New class.
  11725. * src/PStringNumLoop.h: New class.
  11726. * src/PStringSelect.h: New class.
  11727. * src/NumberDecorator.h: New class.
  11728. * src/FixedWidthNumberDecorator.h: New class.
  11729. * src/AlphaNumberDecorator.h: New class.
  11730. * src/PStringVisitor.h: New class.
  11731. * src/PStringBuildVisitor.{h,cc}: New class.
  11732. * src/ParameterizedStringParser.{h,cc}: New class.
  11733. * src/Util.{h,cc}
  11734. (isNumber): New function.
  11735. (isLowercase): New function.
  11736. (isUppercase): New function.
  11737. (alphaToNum): New function.
  11738. * test/ParameterizedStringParserTest.cc: New class.
  11739. * test/AlphaNumberDecoratorTest.cc: New class.
  11740. * test/PStringBuildVisitorTest.cc: New class.
  11741. * test/UtilTest.cc
  11742. (testIsNumber): New function.
  11743. (testIsLowercase): New function.
  11744. (testIsUppercase): New function.
  11745. (testAlphaToNum): New function.
  11746. Added '\n' after the error message
  11747. * src/RequestInfo.h (printDownloadAbortMessage)
  11748. Added auto file renaming feature in http(s)/ftp download.
  11749. * src/main.cc: Added --auto-file-renaming command-line option.
  11750. * src/OptionHandlerFactory.cc
  11751. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11752. * src/RequestGroup.{h, cc}
  11753. (shouldCancelDownloadForSafety): Rewritten
  11754. (tryAutoFileRenaming): New function.
  11755. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11756. * src/HttpResponseCommand.cc
  11757. (executeInternal): Removed the call to RequestGroupMan::
  11758. isSameFileBeingDownloaded()
  11759. * src/FtpNegotiateCommand.cc
  11760. (recvSize): Removed the call to RequestGroupMan::
  11761. isSameFileBeingDownloaded()
  11762. * test/RequestGroupTest.cc: New class.
  11763. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11765. IO.
  11766. * src/DefaultBtProgressInfoFile.cc
  11767. * src/MetaFileUtil.cc
  11768. * src/SimpleLogger.cc
  11769. * src/SegmentMan.cc
  11770. * src/Util.cc
  11771. * src/Platform.cc
  11772. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11773. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11774. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11776. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11777. Fixed the bug that prevents file allocation is not done when
  11778. dowloading multi-torrent file.
  11779. * src/AbstractDiskWriter.cc (openFile)
  11780. Increase the maximum number of -j option from 15 to 45.
  11781. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11782. Added fr.po, thanks to Charles Landemaine.
  11783. * po/fr.po
  11784. * po/LINGUAS
  11785. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11786. gcc 3.4.4 support:
  11787. * src/DefaultBtContext.cc: int32_t -> int
  11788. * src/main.cc: int -> int32_t, int32_t -> int
  11789. * src/messageDigest.h: uint32_t -> unsigned int
  11790. * src/NameResolver.h: int32_t -> int
  11791. * src/PeerConnection.cc: int -> int32_t
  11792. * src/SpeedCalc.cc: int32_t -> int
  11793. * src/TrackerUpdateCommand.h: int -> int32_t
  11794. * src/Util.cc: int32_t -> int
  11795. * src/Util.h: int32_t -> int
  11796. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11797. * test/AnnounceListTest.cc: int -> int32_t
  11798. * test/ChunkedEncodingTest.cc: int -> int32_t
  11799. * test/DataTest.cc: int -> int32_t
  11800. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11801. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11802. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11803. * test/FeatureConfigTest.cc: int -> int32_t
  11804. * test/MetalinkEntryTest.cc: int -> int32_t
  11805. * test/MockBtRequestFactory.h: int -> int32_t
  11806. * test/MockPieceStorage.h: int -> int32_t
  11807. * test/OptionTest.cc: int -> int32_t
  11808. * test/RequestTest.cc: int -> int32_t
  11809. * test/SegmentManTest.cc: int -> int32_t
  11810. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11811. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11812. Move sleep functions to Util class:
  11813. * src/Util.cc
  11814. (sleep): New function.
  11815. (usleep): New function.
  11816. * src/DownloadCommand.cc: sleep -> Util::sleep
  11817. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11818. MinGW build enhancements. The following files are added:
  11819. * src/timegm.{c,h}
  11820. Changes to support the above new files:
  11821. * configure.ac
  11822. * src/Makefile.am
  11823. * src/a2time.h
  11824. * src/Util.cc:
  11825. * src/strptime.c: Added support for %Z option.
  11826. Fixed MinGW non-blocking bug.
  11827. * src/SocketCore.cc
  11828. * src/HttpRequestCommand.cc
  11829. Miscellenous build fixes/enhancements.
  11830. * configure.ac: Added summary report.
  11831. * src/Platform.h: Tweaked #include's.
  11832. * src/a2netcompat.h: Tweaked #include's.
  11833. * src/strptime.h: Tweaked #include's.
  11834. * src/gai_strerror.c: Tweaked #include's.
  11835. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11836. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11837. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11838. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Increased the initial connection size in BitTorrent download to 40.
  11840. * src/BtRuntime.h
  11841. Added the usage message of --peer-id-prefix option.
  11842. * src/main.cc
  11843. * Release 0.11.2
  11844. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. MessageDigestHelper is introduced in order to simplify the use
  11846. of message digest. Removed repeated code.
  11847. The message digest algorithm is now specified by string, like "sha1",
  11848. "md5".
  11849. * src/messageDigest.{h, cc}
  11850. * src/MessageDigestHelper.{h, cc}: New class.
  11851. * src/DefaultPieceStorage.cc
  11852. * src/DefaultBtContext.{h, cc}
  11853. (computeFastSet): New function.
  11854. (setInfoHash): Added for unit testing.
  11855. (setNumPieces): Added for unit testing.
  11856. * src/DefaultBtInteractive.cc
  11857. * src/BtPieceMessage.cc
  11858. * src/Peer.cc
  11859. * src/Checksum.h
  11860. * src/message.h
  11861. * src/IteratableChecksumValidator.h
  11862. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11863. inside it.
  11864. * src/SegmentMan.{h, cc}
  11865. (checkIntegrity): Removed.
  11866. * src/IteratableChunkChecksumValidator.{h, cc}
  11867. * src/Util.h
  11868. (sha1Sum): Removed.
  11869. (simpleMessageDigest): Removed.
  11870. (fileChecksum): Removed.
  11871. (computeFastSet): Removed.
  11872. * src/ShaVisitor.cc
  11873. * src/ChunkChecksum.h
  11874. * src/DownloadCommand.cc
  11875. Removed messageDigest virtual functions.
  11876. * src/MultiDiskAdaptor.{h, cc}
  11877. * src/DiskAdaptor.h
  11878. * src/ByteArrayDiskWriter.h
  11879. * src/DiskWriter.h
  11880. * src/DiskAdaptorWriter.h
  11881. * src/AbstractSingleDiskAdaptor.{h, cc}
  11882. * src/AbstractDiskWriter.{h, cc}
  11883. Fixed comilation error when message digest is disabled.
  11884. * src/MetalinkEntry.{h, cc}
  11885. * src/MetalinkRequestInfo.cc
  11886. Removed srandom and random.
  11887. * src/SimpleRandomizer.h
  11888. Added size() virtual function to DiskAdaptor
  11889. * src/MultiDiskAdaptor.h
  11890. Fixed the bug that causes that files are not opened correctly in
  11891. multi-file torrent.
  11892. * src/TorrentRequestInfo.cc
  11893. * src/MultiDiskAdaptor.cc
  11894. Added SHA256 support
  11895. * src/messageDigest.cc
  11896. * src/Xml2MetalinkProcessor.cc
  11897. Show supported message digest algorithms
  11898. * src/main.cc
  11899. Updated contact info.
  11900. * src/main.cc
  11901. Applied Ross's patch
  11902. * src/a2netcompat.h
  11903. * src/main.cc
  11904. Fixed the bug that prevents a remote metalink from not being processed
  11905. even if '-o foo.metalink' is specified.
  11906. * src/MetalinkRequestInfo.cc
  11907. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11908. Merged Dan's patch:
  11909. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11910. Use va_copy to avoid core dump on amd64:
  11911. * src/SimpleLogger.cc
  11912. Updated contact info.
  11913. * src/main.cc
  11914. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11915. digest is not available.
  11916. * src/MetalinkEntry.h
  11917. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11918. Make a2netcompat.h include a2io.h to fix compilation error:
  11919. * src/a2netcompat.h
  11920. * src/SocketCore.cc: Removed include of a2io.h
  11921. * src/Util.cc: Removed include of a2io.h
  11922. Gather time related functions to a2time.h:
  11923. * src/a2time.h: New file.
  11924. * src/DefaultPeerStorage.cc
  11925. * src/SimpleLogger.cc
  11926. * src/Util.{h, cc}
  11927. * src/SimpleRandomizer.h
  11928. * src/TimeA2.{h,cc}
  11929. * src/DownloadCommand.cc
  11930. * src/main.cc
  11931. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11932. a2netcompat.h:
  11933. * src/NameResolver.cc
  11934. Fixed compilation error without openssl:
  11935. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11936. Added default block to suppress compiler warnings:
  11937. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11938. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11939. MinGW build enhancements. The following files are added:
  11940. * src/gai_strerror.{c,h}
  11941. * src/gettimeofday.{c,h}
  11942. Changes to support the above new files:
  11943. * configure.ac
  11944. * src/Makefile.am
  11945. * src/a2netcompat.h
  11946. * src/TimeA2.cc
  11947. * src/DefaultPeerStorage.cc
  11948. * src/NameResolver.cc: removed mingw_strerror() function.
  11949. * src/SocketCore.cc: removed mingw_strerror() function.
  11950. Miscellaneous MinGW build fixes.
  11951. * src/a2io.h: Use _lseeki64() instead of lseek()
  11952. * src/common.h
  11953. * src/DefaultFileAllocator.cc
  11954. * src/GlowFileAllocator.cc
  11955. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11956. * src/NameResolver.cc
  11957. (callback): Changed int32_t to int.
  11958. (resolve): Changed int32_t to int.
  11959. * src/Platform.cc
  11960. * src/Platform.h
  11961. * test/MultiDiskWriterTest.cc
  11962. * test/PeerMessageUtilTest.cc
  11963. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11964. Other enhancements and fixes.
  11965. * src/HttpRequestCommand.cc
  11966. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11967. * src/SocketCore.cc:
  11968. (error): New function to abstract errno/WSAGetLastError().
  11969. (errorMsg): New function to abstract errno/WSAGetLastError().
  11970. (initiateSecureConnection): Added more detailed error reporting.
  11971. * src/SocketCore.h: Added private variable blocking, to allow
  11972. proper handling of OpenSSL psuedo-errors.
  11973. * src/message.h
  11974. (EX_SSL_INIT_FAILURE)
  11975. (EX_SSL_IO_ERROR)
  11976. (EX_SSL_PROTOCOL_ERROR)
  11977. (EX_SSL_UNKNOWN_ERROR)
  11978. (EX_SSL_CONNECT_ERROR)
  11979. (EX_SOCKET_BLOCKING)
  11980. (EX_SOCKET_NONBLOCKING)
  11981. (EX_SOCKET_UNKNOWN_ERROR)
  11982. * src/Util.cc
  11983. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11984. reserved name.
  11985. (httpGMT): Fixed typo.
  11986. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. Merged Ross's win32 patch(manually)
  11988. In the course of merging, following files are added.
  11989. * src/strptime.{h,c}
  11990. * src/libgen.{h,c}
  11991. * src/inet_aton.{h,c}
  11992. * src/Platform.{h,cc}
  11993. * src/localtime_r.{h,c}
  11994. * src/getaddrinfo.{h,c}
  11995. I've gethered network related things, and put them to following file:
  11996. * src/a2netcompat.h
  11997. Also io related things are put to following file:
  11998. * src/a2io.h
  11999. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12000. * src/message.h
  12001. (MSG_ALLOCATION_COMPLETED)
  12002. (EX_TOO_LARGE_FILE)
  12003. (EX_SIZE_MISMATCH)
  12004. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12005. (EX_INVALID_CHUNK_CHECKSUM)
  12006. (EX_INVALID_RANGE_HEADER)
  12007. * src/FileAllocationCommand.cc
  12008. * src/HttpResponse.cc
  12009. * src/RequestGroup.cc
  12010. * src/MultiDiskAdaptor.cc
  12011. * src/OptionHandlerImpl.h
  12012. * src/HttpResponseCommand.cc
  12013. * src/FtpNegotiateCommand.cc
  12014. * src/IteratableChecksumValidator.cc
  12015. * src/SegmentMan.cc
  12016. * src/ChunkChecksumValidator.cc
  12017. Added Randomizer::getRandomNumber(long int)
  12018. * src/Randomizer.h (getRandomNumber)
  12019. * src/SimpleRandomizer.h (getRandomNumber)
  12020. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12021. * src/Util.cc (randomAlpha): Use this new function.
  12022. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. Converted int's to in32_t. long long int's are also converted to
  12024. int64_t
  12025. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. Fixed the bug that prevents cookies from being sent to the server
  12027. if the domain of cookie is FQDN and starts with ".".
  12028. * src/Cookie.cc (match)
  12029. To add the ability to change peer id.
  12030. * src/DefaultBtContext.h
  12031. (_peerIdPrefix): New variable
  12032. (setPeerIdPrefix): New function.
  12033. * src/torrentRequestInfo.cc
  12034. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12035. DefaultBtContext.
  12036. * src/main.cc (main): Added peer-id-prefix command-line option.
  12037. The usage message is not added yet.
  12038. * src/DefaultBtContext.cc
  12039. (generatePeerId): Use _peerIdPrefix.
  12040. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12041. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Fixed the bug that prevents filename in content-disposition from
  12043. being retrieved when filename is not quoted.
  12044. * src/Util.cc (getContentDispositionFilename)
  12045. Fixed the bug that causes infinate loop and memory leak when file open
  12046. operation failed.
  12047. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12048. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12049. Fixed the bug that causes segfault when all URIs specified are
  12050. unsupported.
  12051. * src/RequestGroupMan.cc (getInitialCommands)
  12052. Check if RequestGroup::createNextCommand() returns empty list of
  12053. commands.
  12054. * src/RequestGroup.cc (createNextCommand)
  12055. Change log level from info to error so that users can notice that
  12056. an error occurred.
  12057. Fixed the bug that causes segfault when a zero-sized file is
  12058. downloaded.
  12059. * src/BitfieldMan.cc (isAllBitSet)
  12060. Return true if bitfieldLength is 0.
  12061. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12062. * src/main.cc
  12063. (showUsage): Added 3 usage examples for metalink download.
  12064. Replace MetalinkChunkChecksum with ChunkChecksum.
  12065. * src/MetalinkChunkChecksum.h: Removed.
  12066. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12067. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12068. * src/Xml2MetalinkProcessor.cc
  12069. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12070. * src/MetalinkRequestInfo.cc (execute)
  12071. * Release 0.11.1
  12072. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. Reads URIs from stdin when "-i -" is specified.
  12074. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12075. * src/UriListParser.h, src/UriListParser.cc: New class.
  12076. * src/StreamUriListParser.h: New class.
  12077. * src/FileUriListParser.h: New class.
  12078. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12079. instead of UriFileListParser.
  12080. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12081. Made console readout more readable.
  12082. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12083. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12084. Fix the bug that causes -s option not to work.
  12085. * src/main.cc (main)
  12086. * src/a2algo.h: New file.
  12087. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. Create directory structure specified in metalink file.
  12089. * src/RequestGroup.h, src/RequestGroup.cc
  12090. (initAndOpenFile): Create a directory to store files if it does not
  12091. exist.
  12092. (getDir): New function.
  12093. Added ETA and download speed for an individual file to readout.
  12094. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12095. * src/RequestGroup.h
  12096. (calculateDownloadSpeed): New function.
  12097. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. Made -S option work with metalink file and provided selective download
  12099. to metalink.
  12100. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12101. (filename): Removed.
  12102. (file): New variable.
  12103. (size): Removed.
  12104. (operator=): Updated.
  12105. (getPath): New function.
  12106. (getLength): New function.
  12107. (toFileEntry): New function.
  12108. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12109. (execute): Use toStream.
  12110. (showFileEntry): Removed.
  12111. * src/MetalinkRequestInfo.h
  12112. (targetFiles): New variable.
  12113. (setTargetFiles): New variable.
  12114. * src/MetalinkRequestInfo.cc
  12115. (execute): Added the ability to print file information included in
  12116. a metalink file.
  12117. Added selective download mode to metalink.
  12118. * src/main.cc
  12119. (showUsage): Updated to denote that -S and --select-file options are
  12120. applicable to metalink.
  12121. * src/FileEntry.h
  12122. (operator=): New function.
  12123. (getBasename): New function.
  12124. (getDirname): New function.
  12125. * src/Util.h, src/Util.cc
  12126. (toStream): New function.
  12127. * src/Xml2MetalinkProcessor.cc: Updated.
  12128. Made aria2 work with metalink with directory structure.
  12129. * src/File.h, src/File.cc
  12130. (getBasename): New function.
  12131. (getDirname): New function.
  12132. * src/RequestGroup.h, src/RequestGroup.cc
  12133. (_topDir): New variable.
  12134. (setTopDir): New function.
  12135. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12136. Rewrote HTTP header parsing with stringstream.
  12137. * src/HttpConnection.h, src/HttpConnection.cc
  12138. (HttpRequestEntry): New class.
  12139. (headerBuf): Removed.
  12140. (headerBufLength): Removed.
  12141. (outstandingHttpRequests): Now its element type is
  12142. HttpRequestEntryHandle.
  12143. (findEndOfHeader): Removed.
  12144. (receiveResponse): Rewritten.
  12145. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12146. Updated doc for -j option to notice that it should be used with -i
  12147. option.
  12148. * src/main.cc (showUsage)
  12149. Removed unused classes.
  12150. * src/RequestInfo.h
  12151. (FileInfo): Removed.
  12152. (checksum): Removed.
  12153. (fileInfo): Removed.
  12154. (setChecksum): Removed.
  12155. (getChecksum): Removed.
  12156. (getFileInfo): Removed.
  12157. Use ISO units.
  12158. * src/ConsoleDownloadEngine.cc
  12159. * src/TorrentConsoleDownloadEngine.cc
  12160. * src/Util.cc (abbrevSize)
  12161. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12162. Added the default listening ports to the help message.
  12163. * src/main.cc (showUsage)
  12164. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12165. Reduce the number of calls to gettimeofday to lower CPU load.
  12166. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12167. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12168. * src/Peer.h (calculateUploadSpeed): New function.
  12169. (calculateDownloadSpeed): New function.
  12170. * src/DefaultPeerStorage.cc
  12171. (CalculateStat): Added _now variable.
  12172. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12173. and Peer::calculateUploadSpeed(const struct timeval&)
  12174. Drop connection if no request or piece message is exchanged in
  12175. a certain interval.
  12176. * src/DefaultBtInteractive.h
  12177. (btRuntime): New variable.
  12178. (inactiveCheckPoint): New variable.
  12179. (checkActiveInteraction): New function.
  12180. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12181. request or piece message is received.
  12182. (checkActiveInteraction): New function.
  12183. (doInteractionProcessing): Call checkActiveInteraction.
  12184. Fixed the bug that causes remote Metalink and Torrent files are not
  12185. processed.
  12186. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12187. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Changed format of log file.
  12189. * src/SimpleLogger.cc
  12190. * Release 0.11.0
  12191. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12192. * src/AbstractCommand.cc
  12193. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12194. MSG_MAX_TRY from error to info.
  12195. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12196. * src/message.h
  12197. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12198. (MSG_DOWNLOAD_ABORTED): Added %s.
  12199. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12200. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12201. * src/PeerAbstractCommand.cc
  12202. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12203. * src/Request.h
  12204. (cookieBox): Made ShardHandle.
  12205. * src/RequestGroup.h, src/RequestGroup.cc
  12206. (createNextCommandWithAdj): New function.
  12207. * src/FileAllocationCommand.cc
  12208. (executeInternal): Use createNextCommandWithAdj().
  12209. * src/CheckIntegrityCommand.cc
  12210. (executeInternal): Use createNextCommandWithAdj().
  12211. Added --load-cookies command-option.
  12212. * src/OptionHandlerFactory.cc
  12213. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12214. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12215. Now aria2 can handle cookie's expiration date.
  12216. * src/Cookie.h (expires): Changed its type to time_t.
  12217. * src/main.cc: Added --load-cookies command-line option.
  12218. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12219. * src/Util.h, src/Util.cc (httpGMT): New function.
  12220. * src/Request.cc (Request): Initialize cookieBox using
  12221. CookieBoxFactory.
  12222. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12223. * src/CookieParser.h, src/CookieParser.cc: New class.
  12224. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12225. * src/HttpResponseCommand.cc
  12226. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12227. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12228. download.
  12229. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. Added -j command-line option.
  12231. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12232. * src/main.cc
  12233. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12234. Rewritten using stringstream.
  12235. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12236. Rewritten using stringstream.
  12237. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12238. Make download size shown in MB, KB.
  12239. * src/ConsoleDownloadEngine.h (sendStatistics)
  12240. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12241. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Accept incoming connections if download rate is low.
  12243. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12244. (_lowestSpeedLimit): New variable.
  12245. (setLowestSpeedLimit): New function.
  12246. (execute): Accept incoming connections if download rate is low.
  12247. MAX_PEERS is ignored in this case.
  12248. Disable PREF_OUT in multiple concurrent download:
  12249. * src/RequestGroup.h, src/RequestGroup.cc
  12250. (setUserDefinedFilename): New function.
  12251. * src/DownloadEngineFactory.cc
  12252. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12253. concurrent download.
  12254. * src/DefaultSegmentManFactory.cc
  12255. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12256. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12257. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12258. Added its overloaded method.
  12259. * src/RequestGroup.h
  12260. (_numConcurrentCommand): New variable.
  12261. (setNumConcurrentCommand): New function.
  12262. * src/RequestGroup.cc
  12263. Abort download if same file is being downloaded concurrently.
  12264. * src/RequestGroup.h, src/RequestGroupMan.cc
  12265. (isSameFileBeingDownloaded): New function.
  12266. * src/HttpResponseCommand.cc (executeInternal)
  12267. * src/FtpNegotiateCommand.cc (recvSize)
  12268. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12269. * main.cc: Added help message for -i option.
  12270. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12271. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12272. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12273. * src/MetalinkEntry.h
  12274. (checksum): Changed to ChecksumHandle
  12275. * src/MetalinkRequestInfo.cc
  12276. (checksum): Changed to ChecksumHandle
  12277. * src/File.cc
  12278. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12279. * src/common.h
  12280. (DIR_OPEN_MODE): New definition
  12281. * src/RequestGroup.cc
  12282. (prepareForNextAction): Added an argument.
  12283. * src/message.h
  12284. (MSG_GOOD_CHECKSUM): New definition
  12285. (MSG_BAD_CHECKSUM): New definition
  12286. * src/HttpResponseCommand.cc
  12287. (handleDefaultEncoding): Continue download sequence in new
  12288. non-segmented download.
  12289. * src/FileAllocationEntry.h
  12290. (_nextDownloadCommand): New variable.
  12291. * src/DownloadCommand.cc
  12292. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12293. available.
  12294. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12295. * src/IteratableChecksumValidator.h,
  12296. src/IteratableChecksumValidator.cc: New class.
  12297. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12298. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12299. Change file mode to 666:
  12300. * src/common.h (OPEN_MODE): New definition.
  12301. * src/File.cc
  12302. * src/Util.cc
  12303. * src/Directry.cc
  12304. * src/AbstractDiskWriter.cc
  12305. Change the level of log message "download aborted" to debug:
  12306. * src/PeerAbstractCommand.cc (execute)
  12307. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12308. * src/TrackerWatcherCommand.cc
  12309. (createCommand): Sleep some seconds after request failed.
  12310. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12311. then abort tracker request.
  12312. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. * Added the simultaneous download feature.
  12314. * src/main.cc: Print "Exception caught: " when exception is caught.
  12315. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12316. * src/ActivePeerConnectionCommand.cc
  12317. * src/PeerInteractionCommand.cc
  12318. * src/BtRuntime.h
  12319. (cuidCounter): Removed.
  12320. (getNewCuid): Removed.
  12321. * src/DownloadEngineFactory.cc
  12322. * src/PeerListenCommand.cc
  12323. * src/TrackerUpdateCommand.cc
  12324. * src/PeerInitiateConnectionCommand.cc
  12325. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12326. * src/PeerAbstractCommand.cc
  12327. (onAbort): Call PeerStorage::returnPeer()
  12328. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12329. (incomingPeers): New variable.
  12330. (addIncomingPeer): New function.
  12331. (returnPeer): New function.
  12332. (onErasingPeer): New function.
  12333. (addPeer): push_back -> push_front
  12334. (getActivePeers): Rewritten.
  12335. (calculateStat): Rewritten.
  12336. * src/PeerStorage.h
  12337. (TransferStat::copy): New function.
  12338. (TransferStat::TransferStat): New function.
  12339. (TransferStat::operator=): New function.
  12340. (addIncomingPeer): New function.
  12341. (returnPeer): New function.
  12342. * src/PeerListenCommand.cc
  12343. (execute): Use PeerStorage::addIncomingPeer() instead of
  12344. Peer::addPeer().
  12345. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12346. Connect to a peer actively when download speed is lower than specified
  12347. speed in torrent download:
  12348. * src/ActivePeerConnectionCommand.h: New class.
  12349. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12350. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12351. * src/main.cc: Fixed the bug that prevents download if .netrc
  12352. doesn't exist.
  12353. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. To cache resolved hostname:
  12355. * src/AbstractCommand.h, src/AbstractCommand.cc
  12356. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12357. Added dns cache.
  12358. * src/FtpInitiateConnectionCommand.cc
  12359. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12360. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12361. NameResolver working without ares.
  12362. * src/TorrentRequestInfo.cc
  12363. (execute): Don't cache dns in torrent download.
  12364. * src/HttpInitiateConnectionCommand.cc
  12365. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12366. * src/DNSCache.h: New class.
  12367. * src/UrlRequestInfo.cc
  12368. (execute): Use dns cache.
  12369. In http request, suppress port number in http request header if port
  12370. is 80 or 443:
  12371. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12372. request header if port is 80 or 443.
  12373. (createProxyRequest): Allways send port number.
  12374. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12375. To add the command-line option which disables netrc support:
  12376. * src/OptionHandlerFactory.cc
  12377. (createOptionHandlers): Added PREF_NO_NETRC.
  12378. * src/main.cc: Added -n option.
  12379. * src/prefs.h (PREF_NO_NETRC): New definition.
  12380. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12381. V_TRUE.
  12382. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12383. is V_FALSE. This may get configurable in the future release.
  12384. To clear peer's error status by time basis:
  12385. * src/PeerAbstractCommand.cc
  12386. (onAbort): Call Peer::startBadCondition().
  12387. * src/Peer.h, src/Peer.cc
  12388. (error): Removed.
  12389. (_badConditionStartTime): New variable.
  12390. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12391. (startBadCondition): New function.
  12392. (isGood): New function.
  12393. * src/DefaultPeerStorage.cc
  12394. (addPeer): Use Peer::isGood().
  12395. (FindFinePeer): Use Peer::isGood().
  12396. Always include port number in http request header:
  12397. * src/HttpRequest.cc (getHostText): Always include port number in
  12398. http request header.
  12399. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. To the ability to read options from a config file:
  12401. * src/main.cc: Command-line parameter validation is delegated to
  12402. OptionHandler class.
  12403. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12404. * src/Option.h, src/Option.cc (clear): New function.
  12405. * src/OptionParser.h, src/OptionParser.cc: New class.
  12406. * src/OptionHandler.h: New class.
  12407. * src/NameMatchOptionHandler.h: New class.
  12408. * src/OptionHandlerImpl.h: New classes.
  12409. * src/prefs.h: '_' -> '-'
  12410. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12411. (FTP_PASV): New definition.
  12412. * src/Util.h, src/Util.cc (getRealSize): New function.
  12413. To disable netrc support if .netrc file does not have correct
  12414. permissions:
  12415. * src/File.h, src/File.cc (mode): New function.
  12416. To prevent confidential information to be logged:
  12417. * src/HttpConnection.h, src/HttpConnection.cc
  12418. (eraseConfidentialInfo): New function.
  12419. (sendRequest): Call eraseConfidentialInfo().
  12420. (sendProxyRequest): Call eraseConfidentialInfo().
  12421. * src/main.cc: Validate permissions of .netrc file.
  12422. To add --user-agent command-line option:
  12423. * src/main.cc: Added new command line option: --user-agent
  12424. * src/prefs.h (PREF_USER_AGENT): New definition.
  12425. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12426. parameter to HttpRequest object.
  12427. * src/AbstractProxyRequestCommand.cc
  12428. (executeInternal): Set user-agent option parameter to HttpRequest
  12429. object.
  12430. Marged the patches from Dan Fandrich.
  12431. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Use filename and size from Metalink file instead of sending HEAD
  12433. request:
  12434. * src/UrlRequestInfo.h
  12435. (_filename): New variable.
  12436. (_totalLength): New variable.
  12437. (setTotalLength): New variable.
  12438. (setFilename): New variable.
  12439. * src/MetalinkRequestInfo.cc
  12440. (execute): Set filename and size to UrlRequestInfo
  12441. * src/UrlRequestInfo.cc
  12442. (execute): Use filename and size from Metalink instead of seding
  12443. HEAD request to servers.
  12444. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12445. To add the ability to resume downloading a partially downloaded file
  12446. which is downloaded from the beginning:
  12447. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12448. takes this role.
  12449. * src/main.cc: Added -c option.
  12450. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12451. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12452. * src/prefs.h (PREF_CONTINUE): New definition.
  12453. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12454. * src/DefaultDiskWriter.cc
  12455. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12456. * src/AbstractDiskWriter.h
  12457. (glowFileAllocator): New variable.
  12458. * src/AbstractDiskWriter.cc
  12459. (openExistingFile): Now preallocate file space from the end of the
  12460. existing file if totalLength argument is specified and grater than 0.
  12461. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12462. to download exists in local, continue the download of the file.
  12463. --allow-overwrite=true is assumed in this context.
  12464. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12465. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12466. Throw exception if --check-integrity=true is specified but chunk
  12467. checksums are not provided:
  12468. * src/UrlRequestInfo.cc
  12469. Do not print URLs to stdout:
  12470. * src/UrlRequestInfo.cc
  12471. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12472. * src/Request.h: Use AuthResolver to get authentication information.
  12473. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12474. set to RequestFactory object.
  12475. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12476. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12477. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12478. create Request object.
  12479. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12480. To integrate Netrc into exsiting classes:
  12481. * src/Request.h
  12482. (_userDefinedAuthConfig): New variable.
  12483. (findNetrcAuthenticator): New function.
  12484. (segment): Removed.
  12485. (setUserDefinedAuthConfig): New function.
  12486. (resolveHttpAuthConfigItem): New function.
  12487. (resolveFtpAuthConfigItem): New function.
  12488. (resolveHttpProxyAuthConfigItem): New function.
  12489. * src/HttpRequest.h
  12490. (authConfig): Removed.
  12491. (proxyAuthConfig): Removed.
  12492. (setAuthConfig): Removed.
  12493. (setProxyAuthConfig): Removed.
  12494. * src/UrlRequest.h
  12495. (getHeadResult): Added a parameter: authConfigHandle
  12496. * src/common.h
  12497. (SingletonHolder.h): New include.
  12498. * src/main.cc
  12499. (Netrc.h): New include.
  12500. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12501. Added initial value of PREF_NETRC_PATH.
  12502. Added the initialization of netrc.
  12503. * src/AuthConfig.h: New class.
  12504. * src/prefs.h
  12505. (PREF_NETRC_PATH): New definition.
  12506. * src/HttpAuthConfig.h: Removed.
  12507. * src/Netrc.cc
  12508. (getRequiredNextToken): New function.
  12509. (skipMacdef): New function.
  12510. (parse): Rewritten.
  12511. * src/Netrc.h
  12512. (getRequiredNextToken): New function.
  12513. (skipMacdef): New function.
  12514. * src/Util.h, src/Util.cc
  12515. (getHomeDir): New function.
  12516. * src/TrackerWatcherComand.cc
  12517. (createRequestCommand): Use AuthConfig.
  12518. * src/FtpConnection.cc
  12519. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12520. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12521. * src/Request.cc
  12522. (findNetrcAuthenticator): New function.
  12523. (resolveHttpAuthConfigItem): New function.
  12524. (resolveFtpAuthConfigItem): New function.
  12525. (resolveHttpProxyAuthConfigItem): New function.
  12526. * src/UrlRequestInfo.cc: Use AuthConfig.
  12527. * src/HttpRequest.cc
  12528. (createRequest): Use authConfig.
  12529. (getProxyAuthString): Use authConfig.
  12530. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12531. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12532. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12533. To reduce overhead to find commands whose socket is either
  12534. readable or writable in the download engine loop:
  12535. * src/Command.h, src/Command.cc
  12536. (STATUS): New enum.
  12537. (status): New variable.
  12538. (statusMatch): New function.
  12539. (setStatusActive): New function.
  12540. (setStatusInactive): New function.
  12541. * src/DownloadEngine.h, src/DownloadEngine.cc
  12542. (executeCommand): New function.
  12543. (run): Simplified.
  12544. (waitData): Call Command::setStatusActive() when command's socket is
  12545. readable or writable.
  12546. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12547. To handle Segment as SegmentHandle:
  12548. * src/AbstractCommand.cc (execute): Rewritten.
  12549. * src/SegmentMan.h: Segment -> SegmentHandle
  12550. Introducded HttpResponse class, HttpRequest class to improve code
  12551. extensiveness and make it clear:
  12552. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12553. HttpResponse class.
  12554. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12555. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12556. * src/HttpConnection.cc: Contruction of http request were moved to
  12557. HttpRequest class.
  12558. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12559. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12560. * src/HttpAuthConfig.h: New class.
  12561. * src/Range.h: New class.
  12562. To make FtpTunnel{Request, Response}Command and
  12563. HttpProxy{Request, Response}Command derived from
  12564. AbstractProxy{Request, Response}Command:
  12565. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12566. Derived from AbstractProxyRequestCommand class.
  12567. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12568. Derived from AbstractProxyResponseCommand class.
  12569. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12570. Derived from AbstractProxyRequestCommand class.
  12571. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12572. Derived from AbstractProxyResponseCommand class.
  12573. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12574. : New class.
  12575. * src/AbstractProxyResponseCommand.h,
  12576. src/AbstractProxyResponseCommand.cc: New class.
  12577. To add netrc support:
  12578. * src/Netrc.h, src/Netrc.cc: New class.
  12579. * src/Util.h, src/Util.cc (split): New function.
  12580. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12581. "Content-Range" header instead of "Range" header.
  12582. * src/HttpHeader.h
  12583. (getStatus): Removed.
  12584. (setStatus): Removed.
  12585. * src/Segment.h
  12586. (getPositionToWrite): New function.
  12587. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12588. * src/HttpHeader.h
  12589. (Range.h): New include.
  12590. (status): New variable.
  12591. (HttpHeader): Initialized status with 0.
  12592. (getStatus): New function.
  12593. (setStatus): New function.
  12594. (getRange): New function.
  12595. (HttpHeaderHandle): New function.
  12596. * src/HttpHeader.cc
  12597. (getRange): New function.
  12598. * src/Request.h
  12599. (RequestWeakHandle): New definition.
  12600. * src/HttpConnection.h
  12601. (HttpConnectionHandle): New type definition.
  12602. * src/HttpConnection.cc
  12603. (receiveResponse): Set HTTP status to headers.
  12604. * src/main.cc
  12605. (showUsage): Fixed typo.
  12606. * src/Segment.h
  12607. (SegmentHandle): New type definition.
  12608. * src/BitfieldMan.h
  12609. (getMissingUnusedLength): New function.
  12610. * src/BitfieldMan.cc
  12611. (getMissingUnusedLength): New function.
  12612. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. To fix static initialization order problem:
  12614. * src/BitfieldManFactory.h
  12615. (defaultRandomizer): Removed.
  12616. (factory): New variable.
  12617. (getNewFactory): Removed.
  12618. (getFactoryInstance): New function.
  12619. (setDefaultRandomizer): Rewritten.
  12620. (getDefaultRandomizer): Rewritten.
  12621. * src/BitfieldManFactory.cc
  12622. (defaultRandomizer): Removed.
  12623. (factory): Initialized to 0.
  12624. (BitfieldManFactory): Initialized randomizer to 0.
  12625. * src/DefaultPieceStorage.cc
  12626. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12627. * src/Peer.cc
  12628. (Peer): getNewFactory() -> getFactoryInstance()
  12629. * src/SegmentMan.cc
  12630. (initBitfield): getNewFactory() -> getFactoryInstance()
  12631. * src/Piece.cc
  12632. (Piece): getNewFactory() -> getFactoryInstance()
  12633. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12634. To fix the bug that causes crash on Max OS X:
  12635. * src/SimpleRandomizer.h
  12636. (getInstance): Create new instance if the static variable is null.
  12637. * src/SimpleRandomizer.cc
  12638. (randomizer): Initialized to 0.
  12639. * src/BitfieldManFactory.h
  12640. (getNewFactory): Removed the call to setRandomizer().
  12641. To fix the miscalculation of the range of checksum:
  12642. * src/BitfieldMan.h
  12643. (isBitSetOffsetRange): New function.
  12644. * src/BitfieldMan.cc
  12645. (isBitSetOffsetRange): New function.
  12646. * src/SegmentMan.cc
  12647. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12648. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12649. * Release 0.10.1
  12650. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. To lower CPU usage in BitTorrent download when --max-upload-limit
  12652. command-line option specified:
  12653. * src/DefaultBtMessageDispatcher.cc
  12654. (sendMessages): Calculate uploading speed only when current message
  12655. is uploading data and is not sent yet.
  12656. * src/DefaultPeerStorage.h
  12657. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12658. * src/HttpResponseCommand.cc
  12659. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12660. This fixes compile error in Soralis 10.
  12661. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12662. To fix segfault in Metalink download:
  12663. * src/UrlRequestInfo.h
  12664. (filename): Removed.
  12665. (totalLength): Removed.
  12666. (setTotalLength): Removed.
  12667. (setFilename): Removed.
  12668. * src/MetalinkRequestInfo.cc
  12669. (execute): Do not set filename and totalLength to reqInfo.
  12670. Set chunk checksum to reqInfo if it is not null.
  12671. * src/HttpResponseCommand.cc
  12672. (executeInternal): Fixed filename in log.
  12673. (handleDefaultEncoding): Removed the call to initBitfield() and
  12674. markAllPiecesDone().
  12675. (handleOtherEncoding): Added HEAD method handling.
  12676. * src/FtpNegotiateCommand.cc
  12677. (executeInternal): Added SEQ_HEAD_OK handling.
  12678. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12679. return false.
  12680. * src/FtpNegotiateCommand.h
  12681. (SEQ_HEAD_OK): New definition.
  12682. * src/SegmentMan.cc
  12683. (initBitfield): Delete bitfield.
  12684. (isChunkChecksumValidationReady): Fixed the condition.
  12685. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12686. works fine.
  12687. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. * src/Xml2MetalinkProcessor.h
  12689. (xpathExists): New function.
  12690. * src/Xml2MetalinkProcessor.cc
  12691. (xpathExists): New function.
  12692. Not to send HEAD request if filename and size are available in Metalink
  12693. file:
  12694. * src/UrlRequestInfo.h
  12695. (filename): New variable.
  12696. (totalLength): New variable.
  12697. (setTotalLength): New function.
  12698. (setFilename): New function.
  12699. * src/MetalinkRequestInfo.cc
  12700. (execute): Set filename and size to UrlRequestInfo.
  12701. * src/MetalinkEntry.cc
  12702. (MetalinkEntry): Initialize size with 0.
  12703. * src/UrlRequestInfo.cc
  12704. (execute): Set filename and size to SegmentMan.
  12705. Not to download rest of the files after selected files are downloaded
  12706. in BitTorrent:
  12707. * src/PieceStorage.h
  12708. (allDownloadFinished): New function.
  12709. * src/DefaultBtAnnounce.cc
  12710. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12711. downloadFinished.
  12712. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12713. * src/DefaultPieceStorage.cc
  12714. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12715. Commented out the call to finishSelectiveDownloadingMode().
  12716. (downloadFinished): Call isFilteredAllBitSet() instead of
  12717. isAllBitSet().
  12718. (allDownloadFinished): New function.
  12719. * src/DefaultBtInteractive.cc
  12720. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12721. downloadFinished().
  12722. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12723. * src/TorrentDownloadEngine.cc
  12724. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12725. * src/BitfieldMan.h
  12726. (isFilteredAllBitSet): New function.
  12727. * src/ShareRatioSeedCriteria.h
  12728. (PieceStorage.h): New include.
  12729. (pieceStorage): New variable.
  12730. (evaluate):
  12731. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12732. * src/BitfieldMan.cc
  12733. (isFilteredAllBitSet): New function.
  12734. (isAllBitSet): Filter is not took into account.
  12735. Rename --force-truncate as --allow-overwrite:
  12736. * src/TorrentRequestInfo.cc
  12737. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12738. * src/main.cc
  12739. (showUsage): --force-truncate -> --allow-overwrite
  12740. * src/message.h
  12741. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12742. * src/prefs.h
  12743. (PREF_FORCE_TRUNCATE): Removed.
  12744. (PREF_ALLOW_OVERWRITE): New definition.
  12745. * src/SegmentMan.cc
  12746. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12747. * src/MetalinkRequestInfo.cc
  12748. (execute): Queueing message are now logged in info level.
  12749. * src/common.h
  12750. (LONG_LONG_MAX): Removed.
  12751. (LONG_LONG_MIN): Removed.
  12752. * src/HttpResponseCommand.cc
  12753. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12754. * src/FtpNegotiateCommand.cc
  12755. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12756. * src/main.cc
  12757. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12758. command-line option.
  12759. (main): Added --check-integriy and --realtime-chunk-checksum
  12760. command-line option.
  12761. --force-truncate -> --allow-overwrite
  12762. Set initial value of --check-integrity option to false.
  12763. Don't show usage when error occurs while persing command-line options.
  12764. Removed deprecated --upload-limit option.
  12765. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12766. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12767. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12768. * src/BtAllowedFastMessage.cc:
  12769. * src/BtBitfieldMessage.cc
  12770. * src/BtCancelMessage.cc
  12771. * src/BtChokeMessage.cc
  12772. * src/BtHaveAllMessage.cc
  12773. * src/BtHaveMessage.cc
  12774. * src/BtHaveNoneMessage.cc
  12775. * src/BtInterestedMessage.cc
  12776. * src/BtNotInterestedMessage.cc
  12777. * src/BtPieceMessage.cc
  12778. * src/BtPortMessage.cc
  12779. * src/BtRejectMessage.cc
  12780. * src/BtRequestMessage.cc
  12781. * src/BtSuggestPieceMessage.cc
  12782. * src/BtUnchokeMessage.cc
  12783. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12784. files are affected.
  12785. * src/ChunkChecksumValidator.cc
  12786. * src/SegmentMan.cc
  12787. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12788. To add chunk checksum validation:
  12789. * src/MetalinkEntry.h
  12790. (MetalinkChunkChecksum.h): New include.
  12791. (chunkChecksum): New variable.
  12792. * src/Request.h
  12793. (method): New variable.
  12794. (setMethod): New function.
  12795. (getMethod): New function.
  12796. (METHOD_GET): New static constant.
  12797. (METHOD_HEAD): New static constant.
  12798. * src/Xml2MetalinkProcessor.h
  12799. (getPieceHash): New function.
  12800. * src/PieceStorage.h
  12801. (markAllPiecesDone): New function.
  12802. (checkIntegrity): New function.
  12803. * src/FileAllocator.h
  12804. (NullFileAllocationMonitor.h): New include.
  12805. (FileAllocator): Initialize fileAllocationMonitor with new
  12806. NullFileAllocationMonitor().
  12807. * src/MultiDiskAdaptor.h
  12808. (messageDigest.h): Remove include.
  12809. (ctx): Removed.
  12810. (hashUpdate): Added ctx.
  12811. (MultiDiskAdaptor): Removed ctx.
  12812. (sha1Sum): Renamed as messageDigest.
  12813. (messageDigest): New function.
  12814. * src/UrlRequestInfo.h
  12815. (HeadResult): New class.
  12816. (digestAlgo): New variable.
  12817. (chunkChecksumLength): New variable.
  12818. (chunkChecksums): New variable.
  12819. (getHeadResult): New function.
  12820. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12821. (setDigestAlgo): New function.
  12822. (setChunkChecksumLength): New function.
  12823. (setChunkChecksums): New function.
  12824. * src/DefaultPieceStorage.cc
  12825. (DiskAdaptorWriter.h): New include.
  12826. (ChunkChecksumValidator.h): New include.
  12827. (markAllPiecesDone): New function.
  12828. (checkIntegrity): New function.
  12829. * src/DefaultBtContext.h
  12830. (getPieceHashes): New function.
  12831. * src/TorrentRequestInfo.cc
  12832. (execute): Try to validate chunk checksum if file already exists and
  12833. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12834. * src/messageDigest.h
  12835. (~MessageDigestContext): Added digestFree().
  12836. * src/MetalinkRequestInfo.cc
  12837. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12838. * src/DiskAdaptor.h
  12839. (messageDigest.h): New include.
  12840. (sha1Sum): Renamed as messageDigest.
  12841. (messageDigest): New function.
  12842. * src/DownloadCommand.h
  12843. (PeerStat.h): New include.
  12844. (maxDownloadSpeedLimit): New variable.
  12845. (startupIdleTime): New variable.
  12846. (lowestDownloadSpeedLimit): New variable.
  12847. (peerStat): New variable.
  12848. (setMaxDownloadSpeedLimit): New function.
  12849. (setStartupIdleTime): New function.
  12850. (setLowestDownloadSPeedLimit): New function.
  12851. * src/BtContext.h
  12852. (getPieceHashes): New function.
  12853. * src/main.cc
  12854. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12855. option to true for testing purpose.
  12856. * src/BtPieceMessage.cc
  12857. (checkPieceHash): Use messageDigest
  12858. * src/DownloadEngine.cc
  12859. (SetDescriptor): Removed.
  12860. (AccumulateActiveCommand): Removed.
  12861. (waitData): Rewritten.
  12862. (updateFdSet): Rewritten.
  12863. * src/MultiDiskAdaptor.cc
  12864. (hashUpdate): Added ctx.
  12865. (sha1Sum): Renamed as messageDigest.
  12866. (messageDigest): New function.
  12867. * src/BitfieldMan.h
  12868. (isBitRangeSet): New function.
  12869. (unsetBitRange): New function.
  12870. * src/ByteArrayDiskWriter.h
  12871. (sha1Sum): Renamed as messageDigest.
  12872. (messageDigest): New function.
  12873. * src/ConsoleDownloadEngine.cc
  12874. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12875. * src/DiskWriter.h
  12876. (messageDigest.h): New include.
  12877. (sha1Sum): Renamed as messageDigest.
  12878. (messageDigest): New function.
  12879. * src/ChunkChecksumValidator.h: New class.
  12880. * src/DiskAdaptorWriter.h: New class.
  12881. * src/prefs.h
  12882. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12883. (PREF_CHECK_INTEGRITY): New definition.
  12884. * src/HttpResponseCommand.cc
  12885. (handleDefaultEncoding): Added method "HEAD" handling.
  12886. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12887. (handleOtherEncoding):
  12888. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12889. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12890. startupIdleTime, lowestDownloadSpeedLimit to command.
  12891. * src/SegmentMan.h
  12892. (getSegmentEntryByIndex): New function.
  12893. (getSegmentEntryByCuid): New function.
  12894. (getSegmentEntryIteratorByCuid): New function.
  12895. (diskWriter): DiskWriter -> DiskWriterHandle
  12896. (pieceHashes): New variable.
  12897. (chunkHashLength): New variable.
  12898. (digestAlgo): New variable.
  12899. (FindPeerStat): Removed.
  12900. (getPeerStat): Rewritten.
  12901. (markAllPiecesDone): New function.
  12902. (checkIntegrity): New function.
  12903. (tryChunkChecksumValidation): New function.
  12904. (isChunkChecksumValidationReady): New function.
  12905. * src/BitfieldMan.cc
  12906. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12907. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12908. blocks to 0.
  12909. (isBitRangeSet): New function.
  12910. (unsetBitRange): New function.
  12911. * src/FtpNegotiateCommand.cc
  12912. (executeInternal): Set maxDownloadSpeedLimit,
  12913. startupIdleTime, lowestDownloadSpeedLimit to command.
  12914. (recvSize): Added method "HEAD" handling.
  12915. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12916. * src/AbstractSingleDiskAdaptor.cc
  12917. (sha1Sum): Renamed as messageDigest.
  12918. (messageDigest): New function.
  12919. * src/AbstractSingleDiskAdaptor.h
  12920. (sha1Sum): Renamed as messageDigest.
  12921. (messageDigest): New function.
  12922. * src/Util.h
  12923. (indexRange): New function.
  12924. * src/MetalinkEntry.cc
  12925. (MetalinkEntry): Initialized chunkChecksum to 0.
  12926. * src/ShaVisitor.cc
  12927. (~ShaVisitor): Removed the call to ctx.digestFree().
  12928. * src/SegmentMan.cc
  12929. (ChunkChecksumValidator.h): New include.
  12930. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12931. to DIGEST_ALGO_SHA1.
  12932. (~SegmentMan): Removed diskWriter.
  12933. (FindSegmentEntryByIndex): Removed.
  12934. (FindSegmentEntryByCuid): Removed.
  12935. (checkoutSegment): Rewritten.
  12936. (findSlowerSegmentEntry): Rewritten.
  12937. (getSegment): Rewritten.
  12938. (updateSegment): Rewritten.
  12939. (completeSegment): Rewritten.
  12940. (markAllPiecesDone): New function.
  12941. (checkIntegrity): New function.
  12942. (isChunkChecksumValidationReady): New function.
  12943. (tryChunkChecksumValidation): New function.
  12944. * src/Xml2MetalinkProcessor.cc
  12945. (getEntry): Get size and set it to entry.
  12946. Get chunk checksum and set it to entry.
  12947. (getPieceHash): New function.
  12948. * src/Util.cc
  12949. (sha1Sum): Removed ctx.digestFree()
  12950. (fileChecksum): Removed ctx.digestFree()
  12951. (indexRange): New function.
  12952. * src/Request.cc
  12953. (METHOD_GET): New variable.
  12954. (METHOD_HEAD): New variable.
  12955. (Request): Added method.
  12956. * src/UrlRequestInfo.cc
  12957. (FatalException.h): New include.
  12958. (message.h): New include.
  12959. (operator<<): Added operator<< for class HeadResult.
  12960. (getHeadResult): New function.
  12961. (execute): Get filename and size in separate download engine.
  12962. * src/ChunkChecksumValidator.cc: New class.
  12963. * src/DownloadCommand.cc:
  12964. (DownloadCommand): Added peerStat.
  12965. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12966. the value from Option.
  12967. The buffer size is now 16KB.
  12968. Use peerStat member instead of getting it from SegmentMan.
  12969. Use startupIdleTime member instead of gettingit from Option.
  12970. Added chunk checksum validation.
  12971. * src/AbstractDiskWriter.cc
  12972. (AbstractDiskWriter): Removed ctx.
  12973. (~AbstractDiskWriter): Removed ctx.digestFree()
  12974. (writeDataInternal): Returns the return value of write.
  12975. (readDataInternal): Returns the return value of read.
  12976. (sha1Sum): Renamed as messageDigest
  12977. (messageDigest): New function.
  12978. * src/AbstractDiwkWriter.h
  12979. (messageDigest.h): Removed include.
  12980. (ctx): Removed.
  12981. (sha1Sum): Renamed as messageDigest
  12982. (messageDigest): New function.
  12983. * src/DefaultPieceStorage.h
  12984. (markAllPiecesDone): New function.
  12985. (checkIntegrity): New function.
  12986. * src/NullFileAllocationMonitor.h: New class.
  12987. * src/MetalinkChunkChecksum.h: New class.
  12988. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12989. To decrease CPU usage in bittorrent download, calculation results in
  12990. BitfieldMan were cached and realtime fetching PeerObject was removed
  12991. with WeakHandle introduced. Option values are set to the objects
  12992. by setter before download begins.
  12993. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12994. * src/DefaultBtRequestFactory.h
  12995. (dispatcher): BtMessageDispatcherHandle ->
  12996. BtMessageDispatcherWeakHandle.
  12997. (messageFactory): New variable.
  12998. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12999. BtMessageDispatcherWeakHandle.
  13000. (setBtMessageFactory): New function.
  13001. * src/DefaultBtMessageDispatcher.cc:
  13002. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13003. from Option.
  13004. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13005. feating the value from Option.
  13006. Use messageFactory member.
  13007. * src/PeerInteractionCommand.cc
  13008. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13009. Add reverse dependencies to factory object.
  13010. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13011. dispatcher.
  13012. Set messageFactory to receiver.
  13013. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13014. btInteractive.
  13015. Set receiver to peerObject.
  13016. Set maxDownloadSpeedLimit to this.
  13017. (executeInternal): Use maxDownloadSpeedLimit member.
  13018. * src/BtChokeMessage.cc
  13019. (doReceivedAction): Use dispatcher, requestFactory member.
  13020. (onSendComplete): Use dispatcher member.
  13021. * src/PeerInteractionCommand.h
  13022. (maxDownloadSpeedLimit): New variable.
  13023. * src/DefaultBtMessageReceiver.h
  13024. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13025. (dispatcher):
  13026. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13027. (messageFactory): New variable.
  13028. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13029. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13030. (setDispatcher):
  13031. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13032. (setBtMessageFactory): New function.
  13033. * src/DefaultBtInteractive.cc
  13034. (initiateHandshake): Use messageFactory member.
  13035. (addBitfieldMessageToQueue): Use messageFactory member.
  13036. (addAllowedFastMessageToQueue): Use messageFactory member.
  13037. (decideChoking): Use messageFactory member.
  13038. (checkHave): Use messageFactory member.
  13039. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13040. (receiveMessages): Use maxDownloadSpeedLimit member.
  13041. (decideInterest): Use messageFactory member.
  13042. * src/BtRequestMessage.cc
  13043. (doReceivedAction): Use messageFactory, dispatcher member.
  13044. (onQueued): Use dispatcher member.
  13045. * src/BtPieceMessage.cc
  13046. (doReceivedAction): Use dispatcher member.
  13047. (send): Use peerConnection member.
  13048. (onWrongPiece): Use requestFactory member.
  13049. (handleChokingEvent): Use messageFactory, dispatcher member.
  13050. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13051. * src/BtMessageDispatcher.h
  13052. (BtMessageDispatcherWeakHandle): New type definition.
  13053. * src/SimpleBtMessage.cc
  13054. (send): Use peerConnection member.
  13055. * src/BtRejectMessage.cc
  13056. (doReceivedAction): Use dispatcher member.
  13057. * src/DefaultBtMessageDispatcher.h
  13058. (Option.h): Removed include.
  13059. (messageFactory): New variable.
  13060. (option): Removed.
  13061. (maxUploadSpeedLimit): New variable.
  13062. (requestTimeout): New variable.
  13063. (DefaultBtMessageDispatcher): Removed option.
  13064. Added maxUploadSpeedLimit, requestTimeout.
  13065. (setOption): Removed.
  13066. (getOption): Removed.
  13067. (setMaxUploadSpeedLimit): New function.
  13068. (setRequestTimeout): New function.
  13069. (setBtMessageFactory): New function.
  13070. * src/DefaultBtInteractive.h
  13071. (btMessageReceiver):
  13072. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13073. (dispatcher):
  13074. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13075. (btRequestFactory):
  13076. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13077. (peerConnection):
  13078. PeerConnectionHandle -> PeerConnectionWeakHandle
  13079. (messageFactory): New variable.
  13080. (option): Removed.
  13081. (keepAliveInterval): New variable.
  13082. (maxDownloadSpeedLimit): New variable.
  13083. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13084. (setBtMessageReceiver):
  13085. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13086. (setDispatcher):
  13087. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13088. (setBtRequestFactory):
  13089. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13090. (setPeerConnection):
  13091. PeerConnectionHandle -> PeerConnectionWeakHandle
  13092. (setOption): Removed.
  13093. (setKeepAliveInterval): New function.
  13094. (setMaxDownloadSpeedLimit): New function.
  13095. (setBtMessageFactory): New function.
  13096. * src/BitfieldMan.h
  13097. (cachedNumMissingBlock): New variable.
  13098. (cachedNumFilteredBlock): New variable.
  13099. (cachedCompletedLength): New variable.
  13100. (cachedFilteredComletedLength): New variable.
  13101. (cachedFilteredTotalLength): New variable.
  13102. (countMissingBlockNow): New function.
  13103. (countFilteredBlockNow): New function.
  13104. (getFilteredTotalLengthNow): New function.
  13105. (getCompletedLengthNow): New function.
  13106. (getFilteredCompletedLengthNow): New function.
  13107. (updateCache): New function.
  13108. * src/AbstractBtMessage.h
  13109. (BtMessageDispatcher.h): New include.
  13110. (PeerConnection.h): New include.
  13111. (BtRequestFactory.h): New include
  13112. (BtMessageFactory.h): New include.
  13113. (dispatcher): New variable.
  13114. (messageFactory): New variable.
  13115. (peerConnection: New variable.
  13116. (setBtMessageDispatcher): New function.
  13117. (setPeerConnection): New function.
  13118. (setBtMessageFactory): New function.
  13119. (setBtRequestFactory): New function.
  13120. * src/DefaultBtMessageFactory.cc
  13121. (setCommonProperty): Set dispatcher, requestFactory, this,
  13122. peerConnection to msg.
  13123. * src/BtRegistry.h
  13124. (BT_MESSAGE_RECEIVER): New macro.
  13125. * src/PeerConnection.h
  13126. (PeerConnectionWeakHandle): New type definition.
  13127. * src/BtMessageFactory.h
  13128. (BtMessageFactoryWeakHandle): New type definition.
  13129. * src/BitfieldMan.cc
  13130. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13131. cachedCompletedLength, cachedFilteredComletedLength,
  13132. cachedFilteredTotalLength.
  13133. Call updateCache().
  13134. (countMissingBlock): Return cachedNumMissingBlock.
  13135. (countMissingBlockNow): New function.
  13136. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13137. (countFilteredBlockNow): New function.
  13138. (setBit): Call updateCache().
  13139. (unsetBit): Call updateCache().
  13140. (setBitfield): Call updateCache().
  13141. (clearAllBit): Call updateCache().
  13142. (setAllBit): Use setBitInternal instead of setBit.
  13143. Call updateCache().
  13144. (addFilter): Call updateCache().
  13145. (enableFilter): Call updateCache().
  13146. (disableFilter): Call updateCache().
  13147. (clearFilter): Call updateCache().
  13148. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13149. (getFilteredTotalLengthNow): New function.
  13150. (getCompletedLength): Return cachedCompletedLength.
  13151. (getCompletedLengthNow): New function.
  13152. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13153. (getFilteredCompletedLengthNow): New function.
  13154. (updateCache): New function.
  13155. * src/BtMessageReceiver.h
  13156. (BtMessageReceiverWeakHandle): New type definition.
  13157. * src/DefaultBtMessageReceiver.cc
  13158. (receiveHandshake): Use messageFactory member.
  13159. (sendHandshake): Use messageFactory member.
  13160. (receiveMessage): Use messageFactory member.
  13161. * src/DefaultBtMessageFactory.h
  13162. (dispatcher): New variable.
  13163. (requestFactory): New variable.
  13164. (peerConnection): New variablle.
  13165. (setBtMessageDispatcher): New function.
  13166. (setBtRequestFactory): New function.
  13167. (setPeerConnection): New function.
  13168. * src/SharedHandle.h
  13169. (RefCount): New class.
  13170. (WeakHandle): New class.
  13171. * src/PeerObject.h
  13172. (BtMessageReceiver.h): New include.
  13173. (PeerObject): Added btMessageReceiver.
  13174. (btMessageReceiver): New variable.
  13175. * src/Util.cc
  13176. (countBit): Simplified.
  13177. * src/BtCancelMessage.cc
  13178. (doReceivedAction): Use dispatcher member.
  13179. * src/BtRequestFactory.h
  13180. (BtRequestFactoryWeakHandle): New type definition.
  13181. * src/PeerStorage.h
  13182. (downloadSpeed): int -> uint32_t
  13183. (uploadSpeed): int -> uint32_t
  13184. (sessionDownloadLength): long long int -> uint64_t
  13185. (sessionUploadLength): long long int -> uint64_t
  13186. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13187. To add RecoverableException, FatalException:
  13188. * src/AbstractCommand.cc
  13189. (onAbort): Exception -> RecoverableException
  13190. * src/PeerAbstractCommand.h
  13191. (RecoverableException.h): New include.
  13192. (onAbort): Exception -> RecoverableException.
  13193. * src/PeerInteractionCommand.cc
  13194. (onAbort): Exception -> RecoverableException.
  13195. * src/PeerAbstractCommand.cc
  13196. (execute): Exception -> RecoverableException.
  13197. (onAbort): Exception -> RecoverableException.
  13198. * src/TorrentRequestInfo.cc
  13199. (execute): Exception -> RecoverableException.
  13200. * src/MetalinkRequestInfo.cc
  13201. (execute): Exception -> RecoverableException.
  13202. * src/MetaFileUtil.cc: RecoverableException.
  13203. * src/AbstractCommand.h
  13204. (onAbort): Exception -> RecoverableException.
  13205. * src/DlRetryEx.h: Exception -> RecoverableException.
  13206. * src/DlAbortEx.h: Exception -> RecoverableException.
  13207. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13208. * src/Util.cc: Exception -> RecoverableException.
  13209. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13210. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13211. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13212. To make ID static const int
  13213. * src/BtInterestedMessage.h
  13214. (ID_t): Removed.
  13215. (ID): New variable.
  13216. (getId): Made non-const.
  13217. * src/BtPieceMessage.h
  13218. (ID_t): Removed.
  13219. (ID): New variable.
  13220. (getId): Made non-const.
  13221. * src/BtChokeMessage.h
  13222. (ID_t): Removed.
  13223. (ID): New variable.
  13224. (getId): Made non-const.
  13225. * src/BtHaveAllMessage.h
  13226. (ID_t): Removed.
  13227. (ID): New variable.
  13228. (getId): Made non-const.
  13229. * src/BtKeepAliveMessage.h
  13230. (ID_t): Removed.
  13231. (ID): New variable.
  13232. (getId): Made non-const.
  13233. * src/BtHandshakeMessage.h
  13234. (ID): New variable.
  13235. (getId): Made non-const.
  13236. * src/BtSuggestPieceMessage.h
  13237. (ID_t): Removed.
  13238. (ID): New variable.
  13239. (getId): Made non-const.
  13240. * src/BtPortMessage.h
  13241. (ID_t): Removed.
  13242. (ID): New variable.
  13243. (getId): Made non-const.
  13244. * src/AbstractBtMessage.h
  13245. (id): Removed.
  13246. (AbstractBtMessage): Removed id.
  13247. (getId): Removed.
  13248. * src/BtHaveMessage.h
  13249. (ID_t): Removed.
  13250. (ID): New variable.
  13251. (getId): Made non-const.
  13252. * src/BtAllowedFastMessage.h
  13253. (ID_t): Removed.
  13254. (ID): New variable.
  13255. (getId): Made non-const.
  13256. * src/BtCancelMessage.h
  13257. (ID_t): Removed.
  13258. (ID): New variable.
  13259. (getId): Made non-const.
  13260. * src/BtNotInterestedMessage.h
  13261. (ID_t): Removed.
  13262. (ID): New variable.
  13263. (getId): Made non-const.
  13264. * src/BtChokeMessage.h
  13265. (ID_t): Removed.
  13266. (ID): New variable.
  13267. (getId): Made non-const.
  13268. * src/BtRejectMessage.h
  13269. (ID_t): Removed.
  13270. (ID): New variable.
  13271. (getId): Made non-const.
  13272. * src/BtBitfieldMessage.h
  13273. (ID_t): Removed.
  13274. (ID): New variable.
  13275. (getId): Made non-const.
  13276. * src/BtUnchokeMessage.h
  13277. (ID_t): Removed.
  13278. (ID): New variable.
  13279. (getId): Made non-const.
  13280. * src/BtRequestMessage.h
  13281. (ID_t): Removed.
  13282. (ID): New variable.
  13283. (getId): Made non-const.
  13284. * src/BtHaveMessage.h
  13285. (ID_t): Removed.
  13286. (ID): New variable.
  13287. (getId): Made non-const.
  13288. To add --force-truncate command-line option and a check whether
  13289. the file already exists:
  13290. * src/DirectDiskAdaptor.h
  13291. (getFilePath): Made virtual public.
  13292. * src/MultiDiskAdaptor.h
  13293. (File.h): New include.
  13294. (DiskWriterEntry::fileEntry): Made private.
  13295. (DiskWriterEntry::fileExists): New function.
  13296. (DiskWriterEntry::getFileEntry): New function.
  13297. (fileExists): New function.
  13298. (getFilePath): New function.
  13299. * src/TorrentRequestInfo.cc
  13300. (FatalException.h): New include.
  13301. (message.h): New include.
  13302. (RecoverableException.h): New include.
  13303. (execute): Added a check whether file is already exists or not.
  13304. * src/DiskAdaptor.h
  13305. (fileExists): New function.
  13306. (getFilePath): New function.
  13307. * src/main.cc
  13308. (showUsage): Added an explanation of --force-truncate command-line
  13309. option.
  13310. (main): Added --force-truncate command-line option.
  13311. * src/Exception.h
  13312. (setMsg): buf[256] -> buf[1024]
  13313. * src/CopyDiskWriter.h
  13314. (getFilePath): Made public virtual.
  13315. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13316. (fileExists): New function.
  13317. * src/DownloadEngineFactory.cc
  13318. (newTorrentConsoleEngine): Don't open file here.
  13319. * src/message.h
  13320. (EX_FILE_ALREADY_EXISTS): New definition.
  13321. * src/prefs.h
  13322. (PREF_FOECE_TRUNCATE): New definition.
  13323. * src/HttpResponseCommand.cc
  13324. (handleDefaultEncoding): Added a check whether the file already exists.
  13325. * src/SegmentMan.h
  13326. (fileExists): New function.
  13327. (shouldCancelDownloadForSafety): New function.
  13328. * src/FtpNegotiateCommand.cc
  13329. (recvSize): Added a check whether the file already exists.
  13330. * src/AbstractSingleDiskAdaptor.cc
  13331. (File.h): New include.
  13332. (fileExists): New function.
  13333. * src/AbstractSingleDiskAdaptor.h
  13334. (getFilePath): Removed.
  13335. (fileExists): New function.
  13336. * src/SegmentMan.cc
  13337. (fileExists): New function.
  13338. (shouldCancelDownloadForSafety): New function.
  13339. To fix regression bug in torrent downloading:
  13340. * src/DefaultBtRequestFactory.cc
  13341. (doChokedAction): New function.
  13342. * src/DefaultBtRequestFactory.h
  13343. (doChokedAction): New function.
  13344. * src/DefaultBtMessageDispatcher.cc
  13345. (doChokedAction): Do not delete request if its target is in allowed
  13346. fast set.
  13347. * src/DefaultBtInteractive.cc
  13348. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13349. (sendKeepAlive): Send keep alive message even if the outgoing message
  13350. queue is not empty.
  13351. (decideInterest): Simplified the code.
  13352. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13353. it is already called when BtChokeMessage is received from a peer.
  13354. * src/BtRequestFactory.h
  13355. (doChokedAction): New function.
  13356. To clean up code:
  13357. * src/PeerInteractionCommand.h
  13358. (executeInternal): Added virtual keyword explicitly.
  13359. (prepareForRetry): Added virtual keyword explicitly.
  13360. (prepareForNextPeer): Added virtual keyword explicitly.
  13361. (onAbort): Added virtual keyword explicitly.
  13362. * src/RequestSlot.cc
  13363. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13364. * src/BtPieceMessage.cc
  13365. (doReceivedAction): Added a debug log of piece's bitfield.
  13366. * src/Piece.h
  13367. (getBitfieldLength): New function.
  13368. * src/ByteArrayDiskWriter.cc
  13369. (clear): Added buf = 0 to avoid double free corruption.
  13370. * src/FileAllocator.cc
  13371. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13372. Added cp.reset().
  13373. * src/BitfieldMan.h
  13374. (operator=): Rewritten.
  13375. * src/BitfieldMan.cc
  13376. (BitfieldMan): Initialized bitfield, useBitfield.
  13377. * src/PeerConnection.cc
  13378. (receiveMessage): Added a call to socket->readable() after getting
  13379. message length to avoid possible EOF.
  13380. * src/Util.cc
  13381. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13382. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13383. To add an ability to pre-allocate file space:
  13384. * src/DirectDiskAdaptor.h: Rewritten.
  13385. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13386. * src/MultiDiskAdaptor.h: Rewritten.
  13387. * src/DefaultPieceStorage.cc
  13388. (MultiDiskWriter.h): Removed include.
  13389. (PreAllocationDiskWriter.h): Removed include.
  13390. (FileAllocationMonitor.h): New include.
  13391. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13392. (initStorage): Rewritten.
  13393. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13394. * src/FileAllocator.h: New class.
  13395. * src/FileAllocator.cc: New class.
  13396. * src/FileAllocationMonitor.h: New class.
  13397. * src/FileAllocationMonitor.cc: New class.
  13398. * src/ConsoleFileAllocationMonitor.h: New class.
  13399. * src/ConsoleFileAllocationMonitor.cc: New class.
  13400. * src/AbstractSingleDiskAdaptor.h: New class.
  13401. * src/AbstractSingleDiskAdaptor.cc: New class.
  13402. * src/DiskAdaptor.h
  13403. (Directory.h): Removed include.
  13404. (DiskWriter.h): Removed include.
  13405. (FileEntry.h): Removed include.
  13406. (diskWriter): Removed.
  13407. (DiskAdaptor): Removed diskWriter.
  13408. (openFile): Made pure virtual.
  13409. (closeFile): Made pure virtual.
  13410. (openExistingFile): Made pure virtual.
  13411. (initAndOpenFile): Made pure virtual.
  13412. (writeData): Made pure virtual.
  13413. (readData): Made pure virtual.
  13414. (sha1Sum): Made pure virtual.
  13415. (getStoreDir): Returns const reference of storeDir.
  13416. (DiskAdaptorHandle): New type definition.
  13417. * src/main.cc
  13418. (ConsoleFileAllocationMonitor.h): New include.
  13419. (showUsage): Added default value description of -s option.
  13420. Added the description of --file-allocation option.
  13421. (main): Set default value of --file-allocation option to 'none'.
  13422. Added --file-allocation command-line option.
  13423. Setup FileAllocationMonitorFactory.
  13424. * src/FtpInitiateConnectionCommand.cc
  13425. (executeInternal): Removed diskWriter related processing, which was
  13426. moved to FtpNegotiationCommand.cc.
  13427. * src/DirectDiskAdaptor.cc
  13428. (getFilePath): Made non-const.
  13429. * src/CopyDiskAdaptor.h
  13430. (DiskAdaptor.h): Removed include.
  13431. (DiskWriter.h): Removed include.
  13432. (AbstractSingleDiskAdaptor.h): New include.
  13433. (getFilePath): Made non-const. Added virtual keyword.
  13434. (CopyDiskAdaptor): Removed diskWriter.
  13435. (getTempFile): Returns const reference.
  13436. (CopyDiskAdaptorHandle): New type definition.
  13437. * src/ByteArrayDiskWriter.cc
  13438. (clear): Simplified.
  13439. (initAndOpenFile): Rewritten.
  13440. (openFile): Call initAndOpenFile()
  13441. * src/MultiDiskAdaptor.cc: Rewritten.
  13442. * src/DownloadEngineFactory.cc
  13443. (FileAllocator.h): New include.
  13444. (FileAllocationMonitor.h): New include.
  13445. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13446. create DefaultDiskWriter with file allocator.
  13447. * src/DiskWriter.h
  13448. (initAndOpenFile): Added totalLength argument.
  13449. (openFile): Added totalLength argument.
  13450. * src/prefs.h
  13451. (PREF_FILE_ALLOCATION): New definition.
  13452. (V_PREALLOC): New definition.
  13453. (V_NONE): New definition.
  13454. * src/HttpResponseCommand.cc
  13455. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13456. size.
  13457. * src/FtpNegotiateCommand.cc
  13458. (Util.h): New include.
  13459. (recvSize): Open file here.
  13460. * src/Util.h
  13461. (ullitos): New function.
  13462. * src/CopyDiskWriter.h
  13463. (getFilePath): Made non-const.
  13464. * src/DefaultDiskWriter.h
  13465. (Option.h): New include.
  13466. (totalLength): Removed.
  13467. (DefaultDiskWriter): Removed totalLength.
  13468. (initAndOpenFile): Added totalLength argument.
  13469. (DefaultDiskWriterHandle): New type definition.
  13470. (createNewDiskWriter): New function.
  13471. * src/Util.cc
  13472. (ullitos): New function.
  13473. * src/DefaultDiskWriter.cc
  13474. (message.h): New include.
  13475. (FileAllocator.h): New include.
  13476. (prefs.h): New include.
  13477. (Util.h): New include.
  13478. (DefaultDiskWriter): Removed totalLength.
  13479. (initAndOpenFile): Added file allocation.
  13480. (createNewDiskWriter): New function. Just for temporary solution.
  13481. It will be rewritten later.
  13482. * src/DiskAdaptor.cc
  13483. (DiskAdaptor): Removed diskWriter.
  13484. * src/AbstractDiskWriter.cc
  13485. (LogFactory.h): New include.
  13486. (AbstractDiskWriter): Added fileAllocator, logger.
  13487. (openFile): Added totalLength argument.
  13488. * src/AbstractDiskWriter.h
  13489. (FileAllocator.h): New include.
  13490. (Logger.h): New include.
  13491. (fileAllocator): New variable.
  13492. (logger): New variable.
  13493. (openFile): Added totalLength argument. Added virtual keyword
  13494. explicitly.
  13495. (openExistingFile): Added totalLength argument. Added virtual keyword
  13496. explicitly.
  13497. (closeFile): Added virtual keyword explicitly.
  13498. (sha1Sum): Added virtual keyword explicitly.
  13499. (writeData): Added virtual keyword explicitly.
  13500. (readData): Added virtual keyword explicitly.
  13501. (setFileAllocator): New function.
  13502. * src/DefaultPieceStorage.h
  13503. (FileAllocator.h): New include.
  13504. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13505. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13506. * src/FileProgressMonitor.h: New class.
  13507. To compile aria2 on PC-BSD:
  13508. * src/DefaultBtContext.cc
  13509. (libgen.h): New include.
  13510. To fix memory leak:
  13511. * src/Exception.h
  13512. (~Exception): Delete cause. Fixed memory leak.
  13513. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13514. Rewritten a portion of bittorrent implementation:
  13515. * src/BtMessageValidator.h: New class.
  13516. * src/BtBitfieldMessageValidator.h: New class.
  13517. * src/BtHandshakeMessageValidator.h: New class.
  13518. * src/BtRequestMessageValidator.h: New class.
  13519. * src/BtSuggestPieceMessageValidator.h: New class.
  13520. * src/BtAllowedFastMessageValidator.h: New class.
  13521. * src/BtRejectMessageValidator.h: New class.
  13522. * src/BtCancelMessageValidator.h: New class.
  13523. * src/BtPieceMessageValidator.h: New class.
  13524. * src/BtHaveMessageValidator.h: New class.
  13525. * src/BtEventListener.h: New class.
  13526. * src/AbstractBtEventListener.h: New class.
  13527. * src/BtEvent.h: New class.
  13528. * src/BtChokingEvent.h: New class.
  13529. * src/BtChokedEvent.h: New class.
  13530. * src/BtCancelSendingPieceEvent.h: New class.
  13531. * src/BtAbortOutstandingRequestEvent.h: New class.
  13532. * src/Randomizer.h: New class.
  13533. * src/SimpleRandomizer.h: New class.
  13534. * src/BtMessage.h: New class.
  13535. * src/AbstractBtMessage.h: New class.
  13536. * src/SimpleBtMessage.h: New class.
  13537. * src/BtHaveMessage.h: New class.
  13538. * src/BtInterestedMessage.h: New class.
  13539. * src/BtAllowedFastMessage.h: New class.
  13540. * src/BtUnchokeMessage.h: New class.
  13541. * src/BtCancelMessage.h: New class.
  13542. * src/BtNotInterestedMessage.h: New class.
  13543. * src/BtChokeMessage.h: New class.
  13544. * src/BtHaveNoneMessage.h: New class.
  13545. * src/BtHandshakeMessage.h: New class.
  13546. * src/BtSuggestPieceMessage.h: New class.
  13547. * src/BtHaveMessage.h: New class.
  13548. * src/BtPieceMessage.h: New class.
  13549. * src/BtHaveAllMessage.h: New class.
  13550. * src/BtKeepAliveMessage.h: New class.
  13551. * src/BtPortMessage.h: New class.
  13552. * src/BtRejectMessage.h: New class.
  13553. * src/BtBitfieldMessage.h: New class.
  13554. * src/BtRequestMessage.h: New class.
  13555. * src/DefaultBtRequestFactory.h: New class.
  13556. * src/DefaultBtMessageReceiver.h: New class.
  13557. * src/BtInteractive.h: New class.
  13558. * src/BtMessageDispatcher.h: New class.
  13559. * src/DefaultBtMessageDispatcher.h: New class.
  13560. * src/DefaultBtInteractive.h: New class.
  13561. * src/BitfieldManFactory.h: New class.
  13562. * src/HandleRegistry.h: New class.
  13563. * src/BtMessageFactory.h: New class.
  13564. * src/BtMessageReceiver.h: New class.
  13565. * src/DefaultBtMessageFactory.h: New class.
  13566. * src/PeerObject.h: New class.
  13567. * src/BtRequestFactory.h: New class.
  13568. * src/SuggestPieceMessage.h: Removed.
  13569. * src/PortMessage.h: Removed.
  13570. * src/SuggestPieceMessage.h: Removed.
  13571. * src/KeepAliveMessage.h: Removed.
  13572. * src/HandshakeMessage.h: Removed.
  13573. * src/PeerInteraction.h: Removed.
  13574. * src/UnchokeMessage.h: Removed.
  13575. * src/PieceMessage.h: Removed.
  13576. * src/RequestMessage.h: Removed.
  13577. * src/InterestedMessage.h: Removed.
  13578. * src/HaveMessage.h: Removed.
  13579. * src/CancelMessage.h: Removed.
  13580. * src/RejectMessage.h: Removed.
  13581. * src/AllowedFastMessage.h: Removed.
  13582. * src/HaveNoneMessage.h: Removed.
  13583. * src/SimplePeerMessage.h: Removed.
  13584. * src/HaveAllMessage.h: Removed.
  13585. * src/BitfieldMessage.h: Removed.
  13586. * src/PeerMessageFactory.h: Removed.
  13587. * src/NotInterestedMessage.h: Removed.
  13588. * src/ChokeMessage.h: Removed.
  13589. * src/PeerMessage.h: Removed.
  13590. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13591. To know root cause of exception:
  13592. * src/Exception.h
  13593. (cause): New variable.
  13594. (Exception): Added a parameter.
  13595. (getMsg): Return const reference to msg.
  13596. (getCause): New function.
  13597. * src/DlRetryEx.h
  13598. (DlRetryEx): Added a parameter 'cause'.
  13599. Added an overloaded constructor.
  13600. (DlAbortEx): Added a parameter 'cause'.
  13601. Added an overloaded constructor.
  13602. * src/SimpleLogger.cc
  13603. (writeLog): Log nested exception messages recursively.
  13604. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13605. * src/DefaultBtProgressInfoFile.cc
  13606. (load): Fixed memory leak when the infohash doesn't match.
  13607. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13608. * src/DefaultPeerStorage.cc
  13609. (calculateStat): Simplified the code by combining 2 loops into 1.
  13610. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13611. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13612. for BitTorrent download:
  13613. * src/PeerAbstractCommand.cc
  13614. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13615. * src/main.cc:
  13616. (timeoutSpecified): Removed.
  13617. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13618. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13619. * src/TorrentRequestInfo.cc
  13620. (timeoutSpecified): Removed.
  13621. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13622. timeout value.
  13623. * src/prefs.h
  13624. (PREF_BT_TIMEOUT): New definition.
  13625. Delete unused variables:
  13626. * src/TorrentRequestInfo.cc
  13627. (requestInfo): Removed.
  13628. Move setSignalHander to Util::setGlobalSignalHandler:
  13629. * src/TorrentRequestInfo.cc:
  13630. setSignalHander -> Util::setGlobalSignalHandler
  13631. * src/main.cc
  13632. (setSignalHander): Removed.
  13633. (main): setSignalHander -> Util::setGlobalSignalHandler
  13634. * src/Util.h
  13635. (setGlobalSignalHandler): New function.
  13636. * src/Util.cc
  13637. (setGlobalSignalHandler): New function.
  13638. * src/UrlRequestInfo.cc:
  13639. setSignalHander -> Util::setGlobalSignalHandler
  13640. Reset peer status in order to exit gracefully:
  13641. * src/PeerAbstractCommand.cc
  13642. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13643. To fix the bug that causes the number of bytes uploaded is not saved
  13644. to .aria2 file:
  13645. * src/DefaultPeerStorage.h
  13646. (removedPeerSessionDownloadLength): New variable.
  13647. (removedPeerSessionUploadLength): New variable.
  13648. * src/DefaultPeerStorage.cc
  13649. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13650. removedPeerSessionUploadLength(0).
  13651. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13652. through all peers, and then add removedPeerSessionDownloadLength(
  13653. removedPeerSessionUploadLength) to it.
  13654. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13655. (to) the peer to removedPeerSessionDownloadLength
  13656. (removedPeerSessionUploadLength).
  13657. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13658. To add Metalink location option:
  13659. * src/MetalinkRequestInfo.cc
  13660. (execute): Call MetalinkEntry::setLocationPreference()
  13661. * src/main.cc
  13662. (showUsage): Added the help message for --metalink-location option.
  13663. (main): Added --metalink-location option.
  13664. * src/prefs.h
  13665. (PREF_METALINK_LOCATION): New definition.
  13666. * src/MetalinkEntry.cc
  13667. (AddLocationPreference): New function object.
  13668. (setLocationPreference): New function.
  13669. * src/Xml2MetalinkProcessor.cc
  13670. (getResource): Set location attribute to MetalinkResource
  13671. To show URLs to download
  13672. * src/UrlRequestInfo.h
  13673. (printUrls): New function.
  13674. To add multiple <file> Metalink support:
  13675. * src/MetalinkEntry.h
  13676. (MetalinkResources): Removed.
  13677. (setLocationPreference): New function.
  13678. (MetalinkEntryHandle): New type definition.
  13679. (MetalinkEntries): New type definition.
  13680. * src/Xml2MetalinkProcessor.h
  13681. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13682. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13683. (parseFile): Metalinker* -> MetalinkerHandle
  13684. * src/UrlRequestInfo.h
  13685. (execute): RequestInfo* -> RequestInfos
  13686. * src/MetalinkRequestInfo.cc
  13687. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13688. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13689. (execute): RequestInfo* -> RequestInfos
  13690. Added multiple <file> support. Print filename when it is queued.
  13691. * src/MetalinkRequestInfo.h
  13692. (execute): RequestInfo* -> RequestInfos
  13693. (getDownloadEngine): Removed.
  13694. * src/RequestInfo.h
  13695. (RequestInfoHandle): New type definition.
  13696. (RequestInfos): New type definition.
  13697. (execute): RequestInfo* -> RequestInfos
  13698. (getDownloadEngine): Removed.
  13699. * src/MetalinkResource.h
  13700. (MetalinkResourceHandle): New type definition.
  13701. (MetalinkResources): New type definition.
  13702. * src/MetalinkEntry.cc
  13703. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13704. because the element is now of type MetalinkResourceHandle.
  13705. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13706. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13707. (dropUnsupportedResource): Removed the deletion of the elements of
  13708. resources because the element is now of type MetalinkResourceHandle.
  13709. * src/Xml2MetalinkProcessor.cc
  13710. (parseFile): Metalinker* -> MetalinkerHandle
  13711. MetalinkEntry* -> MetalinkEntryHandle
  13712. Removed try-catch block.
  13713. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13714. MetalinkResource* -> MetalinkResourceHandle
  13715. Removed try-catch block.
  13716. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13717. Free result by using xmlXPathFreeObject()
  13718. * src/Metalinker.cc
  13719. (~Metalinker): Removed the deletion of entries.
  13720. MetalinkEntry* -> MetalinkEntryHandle
  13721. (queryEntry): Add multiple <file> Metalink support.
  13722. * src/Metalinker.h
  13723. (MetalinkEntries): Removed.
  13724. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13725. * src/MetalinkProcessor.h
  13726. (parseFile): Metalinker* -> MetalinkerHandle
  13727. Bug fixes:
  13728. * src/PeerChokeCommand.cc
  13729. (execute): cat01->cat02
  13730. * src/DefaultPieceStorage.cc
  13731. (DefaultPieceStorage): Added diskAdaptor(0)
  13732. * src/TrackerWatcherComand.cc:
  13733. (execute): Use btAnnounce->noMoreAnnounce()
  13734. to determin whether the function returns true or not.
  13735. * src/TrackerUpdateCommand.cc:
  13736. (execute): Use btAnnounce->noMoreAnnounce()
  13737. to determin whether the function returns true or not.
  13738. * src/FtpConnection.cc
  13739. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13740. This is the fix of the busy loop bug.
  13741. * src/DownloadCommand.cc
  13742. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13743. cached PeerStat.
  13744. The value of "name" entry in torrent file is now set by
  13745. *DiskAdaptor::setTopDir(...) methods.
  13746. * src/MultiDiskAdaptor.h
  13747. (topDir): New variable.
  13748. (setTopDir): New function.
  13749. (getTopDir): New function.
  13750. * src/MultiDiskAdaptor.cc
  13751. (getFilePath): Concat storDir, "/" and topDir.
  13752. (mkdir): Use getFilePath() to get the directory path for output.
  13753. * src/DefaultPieceStorage.cc
  13754. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13755. CopyDiskAdaptor.
  13756. * src/CopyDiskAdaptor.h
  13757. (topDir): New variable.
  13758. (setTopDir): New function.
  13759. (getTopDir): New function.
  13760. * src/CopyDiskAdaptor.cc
  13761. (fixFilename): Updated.
  13762. Misc
  13763. * src/UrlRequestInfo.h
  13764. (e): Removed.
  13765. (UrlRequestInfo): Removed e.
  13766. (getDownloadEngine): Removed.
  13767. * src/UrlRequestInfo.cc
  13768. (handler): Rewritten.
  13769. (printUrls): New function.
  13770. (execute): Call printUrls().
  13771. * src/HandshakeMessage.cc
  13772. (check): peerinteraction->getBtContext() -> btContext
  13773. * src/PeerInteraction.h
  13774. (getBtContext): Removed.
  13775. * src/TorrentRequestInfo.h
  13776. (execute): RequestInfo* -> RequestInfos
  13777. (getDownloadEngine): Removed.
  13778. * src/TorrentRequestInfo.cc
  13779. (haltRequested): Removed.
  13780. (btHaltRequested): New variable.
  13781. (torrentHandler): haltRequested -> btHaltRequested
  13782. (execute): RequestInfo* -> RequestInfos
  13783. * src/TorrentConsoleDownloadEngine.cc
  13784. (afterEachIteration): haltRequested -> btHaltRequested.
  13785. * src/ConsoleDownloadEngine.h
  13786. (initStatistics): Added virtual.
  13787. (calculateStatistics): Added virtual.
  13788. (onEndOfRun): Added virtual.
  13789. (afterEachIteration): Added virtual.
  13790. * src/ConsoleDownloadEngine.cc
  13791. (haltRequested): New variable.
  13792. (afterEachIteration): New function.
  13793. * src/main.cc
  13794. (requestInfo): Removed.
  13795. * src/SegmentMan.cc
  13796. (findSlowerSegmentEntry): Refactored.
  13797. * Release 0.9.0
  13798. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13799. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13800. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13801. * src/TorrentMan.h: Removed.
  13802. * src/TorrentMan.cc: Removed.
  13803. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13804. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13805. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13806. * src/PeerAbstractCommand.cc: Use btRuntime.
  13807. * src/BtContextAwareCommand.h: New class.
  13808. * src/FileEntry.h: Added accessor methods for following variables.
  13809. (path): Made private.
  13810. (length): Made private.
  13811. (offset): Made private.
  13812. (extracted): Made private.
  13813. (requested): Made private.
  13814. (FileEntries): New definition.
  13815. (FileEntryHandle): New definition.
  13816. * src/FileEntry.cc: New file.
  13817. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13818. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13819. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13820. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13821. * src/PieceStorage.h: New file.
  13822. * src/PeerInteractionCommand.h: Use btContext.
  13823. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13824. btRuntime.
  13825. * src/DefaultBtProgressInfoFile.h: New file.
  13826. * src/DefaultBtProgressInfoFile.cc: New file.
  13827. * src/File.cc
  13828. (Util.h): New include.
  13829. (mkdirs): New function.
  13830. * src/MultiDiskAdaptor.h
  13831. (mkdir): New function.
  13832. * src/PeerListProcessor.h
  13833. (Peers): Removed.
  13834. * src/PeerInteraction.h
  13835. (torrentMan): Removed.
  13836. (btContext): New variable.
  13837. (peerStorage): New variable.
  13838. (pieceStorage): New variable.
  13839. (btAnnounce): New variable.
  13840. (getTorrentMan): Removed.
  13841. (getBtContext): New function.
  13842. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13843. btAnnounce.
  13844. * src/HandshakeMessage.h
  13845. (TorrentMan.h): Removed.
  13846. * src/HandshakeMessage.cc: Use btContext.
  13847. * src/DefaultBtAnnounce.cc: New file.
  13848. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13849. * src/DefaultPieceStorage.cc: New file.
  13850. * src/DefaultBtContext.h: New file.
  13851. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13852. Use the accessor methods of FileEntry.
  13853. * src/CookieBox.cc: Updated to use Util::slice().
  13854. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13855. * src/common.h (SharedHandle.h): New include.
  13856. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13857. pieceStorage.
  13858. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13859. * src/DiskAdaptor.h
  13860. (topDir): Removed.
  13861. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13862. (setTopDir): Removed.
  13863. (getTopDir): Removed.
  13864. * src/BtContext.h: New file.
  13865. * src/DefaultPeerStorage.h: New file.
  13866. * src/PieceMessage.h (TorrentMan.h): Removed.
  13867. * src/RequestMessage.h (TorrentMan.h): Removed.
  13868. * src/TorrentDownloadEngine.h
  13869. (uploadLength): New variable.
  13870. (btContext): New variable.
  13871. (btRuntime): New variable.
  13872. (pieceStorage): New variable.
  13873. (peerStorage): New variable.
  13874. (btAnnounce): New variable.
  13875. (btProgressInfoFile): New variable.
  13876. (torrentMan): Removed.
  13877. (setBtContext): New function.
  13878. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13879. peerStorage, btAnnounce, btProgressInfoFile.
  13880. * src/Piece.h
  13881. (toString): New function.
  13882. (Pieces): New type definition.
  13883. * src/Peer.h
  13884. (active): New variable.
  13885. (Peer): Added active.
  13886. (activate): Set active to true.
  13887. (deactivate): Set active to false.
  13888. (isActive): New function.
  13889. (Peers): New type definition.
  13890. * src/DirectDiskAdaptor.cc
  13891. (getFilePath): Use the accessor methods of FileEntry.
  13892. * src/TorrentConsoleDownloadEngine.h
  13893. (afterEachIteration): New function.
  13894. * src/TorrentConsoleDownloadEngine.cc
  13895. (haltRequested): New variable.
  13896. (sendStatistics): Use pieceStorage, btRuntime.
  13897. (afterEachIteration): New function.
  13898. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13899. * src/Directry.h
  13900. (Directory): New function.
  13901. (DirectoryHandle): New type definition.
  13902. * src/BtProgressInfoFile.h: New file.
  13903. * src/RequestMessage.cc: Use pieceStorage.
  13904. * src/BtRuntime.h: New file.
  13905. * src/DefaultBtContext.cc: New file.
  13906. * src/BitfieldMan.h
  13907. (getCompletedLength): New function(private).
  13908. (getCompletedLength): New function.
  13909. (getFilteredCompletedLength): New function.
  13910. * src/BitfieldMan.h
  13911. (getCompletedLength): New function(private).
  13912. (getCompletedLength): New function.
  13913. (getFilteredCompletedLength): New function.
  13914. * src/MultiDiskAdaptor.cc
  13915. (mkdir): New function.
  13916. (openFile): Call mkdir().
  13917. (initAndOpenFile): Call mkdir().
  13918. * src/CancelMessage.h
  13919. (TorrentMan.h): Removed.
  13920. * src/RejectMessage.h
  13921. (TorrentMan.h): Removed.
  13922. * src/DownloadEngineFactory.cc
  13923. (DefaultPieceStorage.h): New include.
  13924. (DefaultPeerStorage.h): New include.
  13925. (DefaultBtAnnounce.h): New include.
  13926. (DefaultBtProgressInfoFile.h): New include.
  13927. (newTorrentConsoleEngine): Rewritten.
  13928. * src/ShareRatioSeedCriteria.h
  13929. (torrentMan): Removed.
  13930. (btContext): New variable.
  13931. (peerStorage): New variable.
  13932. (btRuntime): New variable.
  13933. (evaluate): Use btContext, btRuntime, peerStorage.
  13934. * src/AnnounceTier.h: New file.
  13935. * src/BtAnnounce.h: New file.
  13936. * src/BtRegistry.h: New file.
  13937. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13938. * src/PeerConnection.h (TorrentMan.h): Removed.
  13939. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13940. * src/Util.h
  13941. (slice): Added an argument.
  13942. * src/Util.cc
  13943. (slice): Added an argument to control whether trim is made or not.
  13944. * src/PeerStorage.h: New file.
  13945. * src/BtRegistry.cc: New file.
  13946. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13947. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13948. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13949. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13950. * src/TorrentRequestInfo.h
  13951. (e): Removed.
  13952. (showFileEntry): Added an argument.
  13953. (getDownloadEngine): Return 0.
  13954. * src/DefaultBtAnnounce.h: New file.
  13955. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13956. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13957. * src/PeerMessageFactory.h
  13958. (btContext): New variable.
  13959. (pieceStorage): New variable.
  13960. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13961. btAnnounce.
  13962. * src/DiskAdaptor.cc
  13963. (DiskAdaptor): Removed topDir.
  13964. (~DiskAdaptor): Removed topDir.
  13965. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13966. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13967. * src/File.h (mkdirs): New function.
  13968. * src/DefaultPeerStorage): New file.
  13969. * src/DownloadEngineFactory.h
  13970. (newTorrentConsoleEngine): Use btContext.
  13971. * src/BtContextAwareCommand.cc: New file.
  13972. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13973. * src/PeerMessage.h
  13974. (btContext): New variable.
  13975. (peerStorage): New variable.
  13976. (pieceStorage): New variable.
  13977. (setBtContext): New function.
  13978. * src/Directry.cc
  13979. (Directory): New function.
  13980. (createDir): Do nothing if name.size() == 0.
  13981. * src/AnnounceList.h
  13982. (AnnounceTier): Removed.
  13983. (AnnounceTiers): Removed.
  13984. * src/DefaultPieceStorage.h: New file.
  13985. * src/Piece.cc (toString): New function.
  13986. To fix typo:
  13987. * src/main.cc (showVersion): Fixed typo.
  13988. To fix compile warning:
  13989. * src/DelegatingPeerListProcessor.cc
  13990. (canHandle): Added "return false".
  13991. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13992. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13993. make the process of announce request testable.
  13994. * src/TrackerWatcherCommand.h
  13995. (TimeA2.h): Removed.
  13996. (interval): Removed.
  13997. (checkPoint): Removed.
  13998. (createRequestCommand): Added an argument 'url'.
  13999. (TrackerWatherCommand): Removed interval.
  14000. (createCommand): New function.
  14001. * src/DownloadEngineFactory.cc
  14002. (newTorrentConsoleEngine): Updated according to the changes in
  14003. TrackerWatherCommand.
  14004. * src/TorrentMan.cc
  14005. (DelegatingPeerListProcessor.h): New includes.
  14006. (TorrentMan): Added the initialization of announceInterval.
  14007. (isStoppedAnnounceReady): New function.
  14008. (isCompletedAnnounceReady): New function.
  14009. (isDefaultAnnounceReady): New function.
  14010. (isAnnounceReady): New function.
  14011. (getAnnounceUrl): New function.
  14012. (announceStart): New function.
  14013. (announceFailure): New function.
  14014. (announceSuccess): New function.
  14015. (isAllAnnounceFailed): New function.
  14016. (resetAnnounce): New function.
  14017. (processAnnounceResponse): New function.
  14018. (needMorePeerConnection): New function.
  14019. (noMoreAnnounce): New function.
  14020. * src/TrackerUpdateCommand.h
  14021. (getTrackerResponse): int->size_t
  14022. * src/TorrentMan.h
  14023. (isStoppedAnnounceReady): New function.
  14024. (isCompletedAnnounceReady): New function.
  14025. (isDefaultAnnounceReady): New function.
  14026. (announceInterval): New variable.
  14027. (isAnnounceReady): New function.
  14028. (getAnnounceUrl): New function.
  14029. (announceStart): New function.
  14030. (announceFailure): New function.
  14031. (announceSuccess): New function.
  14032. (isAllAnnounceFailed): New function.
  14033. (resetAnnounce): New function.
  14034. (processAnnounceResponse): New function.
  14035. (needMorePeerConnection): New function.
  14036. (noMoreAnnounce): New function.
  14037. * src/TrackerWatcherCommand.cc
  14038. (TrackerWatherCommand): Removed interval and checkPoint.
  14039. (execute): Rewritten.
  14040. (createCommand): New function.
  14041. (createRequestCommand): Rewritten.
  14042. * src/TrackerUpdateCommand.cc
  14043. (MetaFileUtil.h): Removed.
  14044. (DelegatingPeerListProcessor.h): Removed.
  14045. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14046. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14047. Request -> RequestHandle:
  14048. * src/HttpResponseCommand.h: Request->RequestHandle
  14049. * src/AbstractCommand.cc: Request->RequestHandle
  14050. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14051. * src/HttpRequestCommand.cc: Request->RequestHandle
  14052. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14053. * src/AbstractCommand.h: Request->RequestHandle
  14054. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14055. * src/HttpResponseCommand.cc: Request->RequestHandle
  14056. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14057. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14058. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14059. * src/HttpConnection.h: Request->RequestHandle
  14060. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14061. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14062. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14063. * src/DownloadCommand.h: Request->RequestHandle
  14064. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14065. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14066. * src/HttpRequestCommand.h: Request->RequestHandle
  14067. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14068. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14069. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14070. * src/HttpDownloadCommand.h: Request->RequestHandle
  14071. * src/FtpConnection.cc: Request->RequestHandle
  14072. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14073. * src/UrlRequestInfo.cc: Request->RequestHandle
  14074. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14075. * src/HttpConnection.h: Request->RequestHandle
  14076. * src/DownloadCommand.cc: Request->RequestHandle
  14077. * src/FtpConnection.h: Request->RequestHandle
  14078. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14079. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14080. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14081. * src/Request.h
  14082. (SharedHandle.h): New include.
  14083. (RequestHandle): New type definition.
  14084. (Requests): Redefined.
  14085. To add MULTITRACKER support:
  14086. * src/TrackerWatcherCommand.h
  14087. (createRequestCommand): New function.
  14088. * src/DownloadEngineFactory.cc
  14089. (newTorrentConsoleEngine): Removed req.
  14090. * src/prefs.h
  14091. (PREF_TRACKER_MAX_TRIES): New definition.
  14092. * src/TorrentMan.cc
  14093. (TorrentMan): Removed req. Added trackerNumTry.
  14094. (~TorrentMan): Removed req.
  14095. (setupInternal1): Added announceList.
  14096. * src/TorrentRequestInfo.cc
  14097. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14098. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14099. * src/main.cc
  14100. (main): Added PREF_TRACKER_MAX_TRIES.
  14101. * src/TorrentMan.h
  14102. (Request.h): Removed.
  14103. (AnnounceList.h): New include.
  14104. (trackerNumTry): New variable.
  14105. (req): Removed.
  14106. (announceList): New variable.
  14107. * src/TrackerWatcherCommand.cc
  14108. (execute): Rewritten.
  14109. (createRequestCommand): New function.
  14110. * src/TrackerUpdateCommand.cc
  14111. (execute): Updated with the use of AnnounceList.
  14112. * src/AnnounceList.cc: New class.
  14113. * src/AnnounceList.h: New class.
  14114. To fix typo:
  14115. * src/prefs.h
  14116. (PREF_MAX_TRIES): max_try->max_tries
  14117. To not to decode "+" as space in URL decode:
  14118. * src/Util.cc
  14119. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14120. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14121. To add timeout to async name resolution:
  14122. * src/AbstractCommand.h
  14123. (nameResolveFinished): New function. This is not elegant way. It needs
  14124. to be more refined.
  14125. (nameResolverCheck): New variable.
  14126. * src/AbstractCommand.cc
  14127. (AbstractCommand): Added nameResolverCheck.
  14128. (execute): Added the check whether the name resolution has finished.
  14129. (setNameResolverCheck): Set nameResolverCheck to true.
  14130. (disableNameResolverCheck): Set nameResolverCheck to false.
  14131. (nameResolverFinished): New function.
  14132. * src/FtpInitiateConnectionCommand.h
  14133. (nameResolverFinished): New function.
  14134. * src/FtpInitiateConnectionCommand.cc
  14135. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14136. * src/HttpInitiateConnectionCommand.h
  14137. (nameResolverFinished): New function.
  14138. * src/HttpInitiateConnectionCommand.cc
  14139. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14140. * src/prefs.h
  14141. (PREF_DNS_TIMEOUT): New definition.
  14142. * src/main.cc
  14143. (main): Added PREF_DNS_TIMEOUT.
  14144. To add the support for a non-compact response from a tracker:
  14145. * src/PeerListProcessor.h: New class.
  14146. * src/DefaultPeerListProcessor.h: New class.
  14147. * src/DefaultPeerListProcessor.cc: New class.
  14148. * src/CompactPeerListProcessor.h: New class.
  14149. * src/CompactPeerListProcessor.cc: New class.
  14150. * src/DelegatingPeerListProcessor.h: New class.
  14151. * src/DelegatingPeerListProcessor.cc: New class.
  14152. * src/TorrentMan.cc
  14153. (addPeer): New function(overload).
  14154. (addPeer): Delete unused peers only when new peer is added.
  14155. * src/TorrentMan.h
  14156. (PeerListProcessor.h): Included.
  14157. (Peers): Removed.
  14158. (addPeer): New function(overload).
  14159. * src/TrackerUpdateCommand.cc
  14160. (netinet/in.h): Removed.
  14161. (DelegatingPeerListProcessor.h): Included.
  14162. (execute): Updated to use DelegatingPeerListProcessor.
  14163. To fix the memory leak in TorrentMan::peers:
  14164. * src/PeerAbstractCommand.cc
  14165. (onAbort): Added peer->resetStatus().
  14166. * src/Peer.h
  14167. (resetStatus): Made public.
  14168. To improve the precision of the speed calculation:
  14169. * src/SpeedCalc.h
  14170. (nextInterval): New variable.
  14171. * src/SpeedCalc.cc
  14172. (reset): Added nextInterval.
  14173. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14174. (changeSw): Set nextInterval to 15 seconds relative to the current
  14175. instant time.
  14176. * src/main.cc
  14177. (showVersion): Updated.
  14178. (showUsage): Updated.
  14179. * Release 0.8.1
  14180. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14181. * src/main.cc
  14182. (showUsage): Commented out --min-segment-size option.
  14183. (main): Commented out --min-segment-size option.
  14184. * Release 0.8.0
  14185. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14186. * src/*.{h,cc}:
  14187. Added an exception to the license which allows linking with OpenSSL.
  14188. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14189. * src/AbstractCommand.cc
  14190. (execute): Check whether the download has finished before checking
  14191. socket status.
  14192. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14193. Do not exit even if no segment is available.
  14194. * src/prefs.h
  14195. (PREF_STARTUP_IDLE_TIME): New definition.
  14196. * src/PeerInteractionCommand.cc
  14197. (executeInternal): Removed max speed limit. Because it performs bad.
  14198. (receiveMessages): Added max speed limit. This was better than above,
  14199. but still a little bit to be desired. Sometimes the download speed
  14200. became much faster than I specified.
  14201. * src/SpeedCalc.h
  14202. (start): New variable.
  14203. (accumulatedLength): New variable.
  14204. (getAvgSpeed): New function.
  14205. * src/SpeedCalc.cc
  14206. (reset): Added start, accumulatedLength.
  14207. (update): Added calculation of an average speed.
  14208. (getAvgSpeed): New function.
  14209. * src/DownloadCommand.h
  14210. (sw): Removed.
  14211. * src/main.cc
  14212. (main): Added PREF_STARTUP_IDLE_TIME.
  14213. * src/PeerStat.h
  14214. (STATUS): Added REQUEST_IDLE.
  14215. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14216. (getAvgDownloadSpeed): New function
  14217. (requestIdle): New function.
  14218. * src/SegmentMan.h
  14219. (SegmentEntryHandle): New type definition.
  14220. (SegmentEntries): Now holds SegmentEntryHandle.
  14221. (findSlowerSegmentEntry): New funtion.
  14222. * src/SegmentMan.cc
  14223. (save): Updated according to the changes in SegmentEntries.
  14224. (read): Updated according to the changes in SegmentEntries.
  14225. (FindSegmentEntryByIndex): Updated according to the changes in
  14226. SegmentEntries.
  14227. (FindSegmentEntryByCuid): Updated according to the changes in
  14228. SegmentEntries.
  14229. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14230. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14231. Renamed uitr as itr.
  14232. (findSlowerSegmentEntry): New function.
  14233. (getSegment): Updated according to the changes in SegmentEntries.
  14234. Added the feature that cancels the segment with slow server and fast
  14235. one takes it over.
  14236. (cancelSegment): Updated according to the changes in SegmentEntries.
  14237. (getDownloadLength): Updated according to the changes in
  14238. SegmentEntries.
  14239. (init): Assigned 0 to bitfield after deleting it.
  14240. * src/DownloadCommand.cc
  14241. (STARTUP_IDLE_TIME): Removed.
  14242. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14243. * src/PeerChokeCommand.cc
  14244. (optUnchokingPeer): Updated according to the changes in Peer.
  14245. (ResetDelta): Removed.
  14246. (UploadFaster): Updated according to the changes in Peer.
  14247. (DownloadFaster): Updated according to the changes in Peer.
  14248. (execute): I clarify the meaning of "upload" and "download" here.
  14249. "upload" means the transfer from localhost to remote host.
  14250. "download" means the transfer from remote host to localhost.
  14251. Based on this rule, I swapped orderByUploadRate and
  14252. orderByDownloadRate.
  14253. * src/PeerInteractionCommand.cc
  14254. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14255. (executeInternal): Removed the argument of
  14256. peerInteraction->sendMessages().
  14257. (receiveMessages): Rewritten download speed limit.
  14258. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14259. * src/HttpResponseCommand.cc
  14260. (handleDefaultEncoding): If file size is unknown in torrent request,
  14261. do not call segmentMan->initBitfield() here.
  14262. Disabled persistent connection feature in torrent request.
  14263. * src/UrlRequestInfo.h
  14264. (UrlRequestInfo): Removed const qualifier from option.
  14265. * src/TorrentMan.h
  14266. (TransferStat): New class.
  14267. (deltaDownloadLength): Removed.
  14268. (deltaUploadLength): Removed.
  14269. (addDeltaDownloadLength): Removed.
  14270. (getDeltaDownloadLength): Removed.
  14271. (resetDeltaDownloadLength): Removed.
  14272. (addDeltaUploadLength): Removed.
  14273. (getDeltaUploadLength): Removed.
  14274. (resetDeltaUploadLength): Removed.
  14275. (addActivePeer): Added peer->activate().
  14276. (deleteActivePeer): Added peer->deactivate().
  14277. (calculateStat): New function.
  14278. * src/TorrentMan.cc
  14279. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14280. (calculateStat): New function.
  14281. * src/PeerInteraction.h
  14282. (uploadLimit): Removed.
  14283. (option): New variable.
  14284. (setUploadLimit): Removed.
  14285. (getUploadSpeed): Removed.
  14286. (sendMessages): Removed the argument "currentUploadSpeed".
  14287. * src/PeerInteraction.cc
  14288. (prefs.h): Included.
  14289. (PeerInteraction): Removed uploadLimit. Added option.
  14290. (sendMessages): Rewritten upload speed limit.
  14291. (sendHandshake): Removed the argument from sendMessages().
  14292. (sendBitfield): Removed the argument from sendMessages().
  14293. * src/PeerAbstractCommand.cc
  14294. (execute): Commented out the portion of upload limit.
  14295. (onAbort): Removed peer->resetStatus().
  14296. * src/TorrentRequestInfo.cc
  14297. (timeoutSpecified): Declared extern.
  14298. (execute): Set timeout to 180 if timeout is not specified by.
  14299. command-line.
  14300. * src/PieceMessage.cc
  14301. (receivedAction): Added peer->updateDownloadLength().
  14302. Removed peer->addPeerUpload().
  14303. Removed torrentMan->addDeltaDownloadLength().
  14304. (send): Added peer->updateUploadLength().
  14305. Removed peer->addPeerDownload().
  14306. Removed torrentMan->addDeltaUploadLength().
  14307. * src/main.cc
  14308. (timeoutSpecified): New variable.
  14309. (main): Set timeoutSpecified to false.
  14310. If the command-line option "--upload-limit" is specified, then
  14311. timeoutSpecified is set to true. This option will remain in the next
  14312. release, but be deprecated in the future release.
  14313. * src/TorrentRequestInfo.h
  14314. (TorrentRequestInfo): Removed const qualifier from op.
  14315. * src/PeerStat.h
  14316. (uploadSpeed): New variable.
  14317. (PeerStat): Added default value to cuid.
  14318. (calculateUploadSpeed): New function.
  14319. (updateUploadLength): New function.
  14320. (getMaxUploadSpeed): New function.
  14321. (getAvgUploadSpeed): New function.
  14322. (reset): Added uploadSpeed. Set status to IDLE.
  14323. * src/TorrentDownloadEngine.h
  14324. (cp): Declared as Time.
  14325. (sessionDownloadLengthArray): Removed.
  14326. (sessionUploadLengthArray): Removed.
  14327. (currentCp): Removed.
  14328. (lastCalcStat): New variable
  14329. (lastElapsed): Removed.
  14330. (sessionDownloadLength): Removed.
  14331. (calculateStat): New function.
  14332. * src/TorrentDownloadEngine.cc
  14333. (initStatistics): Removed lastElapsed, cp[],
  14334. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14335. currentCp, sessionDownloadLength.
  14336. Added cp.reset() and lastCalcStat.reset().
  14337. (calculateSpeed): Changed the name of the argument.
  14338. (calculateStatistics): Rewritten.
  14339. (calculateStat): New function.
  14340. * src/Peer.h
  14341. (PeerStat.h): Included.
  14342. (peerUpload): Removed.
  14343. (peerDownload): Removed.
  14344. (peerStat): New variable.
  14345. (sessionUploadLength): New variable.
  14346. (sessionDownloadLength): New variable.
  14347. (deltaUpload): Removed.
  14348. (deltaDownload): Removed.
  14349. (resetStatus): Made private.
  14350. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14351. Removed peerUpload, peerDownload.
  14352. (updateUploadLength): New function.
  14353. (addDeltaUpload): Removed.
  14354. (updateDownloadLength): New function.
  14355. (resetDeltaUpload): Removed.
  14356. (getDeltaUpload): Removed.
  14357. (addDeltaDownload): Removed.
  14358. (calculateUploadSpeed): New function.
  14359. (resetDeltaDownload): Removed.
  14360. (getDeltaDownload): Removed.
  14361. (calculateDownloadSpeed): New function.
  14362. (getSessionUploadLength): New function.
  14363. (getSessionDownloadLength): New function.
  14364. (activate): New function.
  14365. (deactivate): New function.
  14366. (addPeerUpload): Removed.
  14367. (setPeerUpload): Removed.
  14368. (getPeerUpload): Removed.
  14369. (addPeerDownload): Removed.
  14370. (setPeerDownload): Removed.
  14371. (getPeerDownload): Removed.
  14372. * src/Peer.cc
  14373. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14374. * src/MetalinkRequestInfo.h
  14375. (MetalinkRequestInfo): Removed const qualifier from op.
  14376. * src/RequestInfo.h
  14377. (op): Removed const qualifier.
  14378. (RequestInfo): Removed const qualifier from op.
  14379. * src/prefs.h
  14380. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14381. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14382. * src/PeerInteractionCommand.cc
  14383. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14384. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14385. * src/PeerInteraction.cc
  14386. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14387. * src/main.cc
  14388. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14389. Added the description of "--max-download-limit" option.
  14390. Removed the description of "--upload-limit" option.
  14391. Added the description of "--max-upload-limit" option.
  14392. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14393. Added "--max-download-limit" option and "--max-upload-limit" option.
  14394. Added the warning message if "--upload-limit" option is used.
  14395. * src/DownloadCommand.cc
  14396. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14397. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14398. To rewrite segment download mechanism for HTTP/FTP download.
  14399. Use BitfieldMan to manage segment download.
  14400. * src/HttpResponseCommand.h
  14401. (executeInternal): Pass the reference of segment.
  14402. * src/AbstractCommand.cc
  14403. (prepareForRetry): Call segmentMan->cancelSegment here.
  14404. (onAbort): Call segmentMan->cancelSegment here.
  14405. * src/HttpDownloadCommand.cc
  14406. (prepareForNextSegment): New function.
  14407. * src/DownloadEngineFactory.cc
  14408. (newConsoleEngine): Removed splitter.
  14409. (newTorrentConsoleEngine): Removed splitter.
  14410. * src/Request.h
  14411. (segment): Renamed from seg.
  14412. * src/FtpInitiateConnectionCommand.h
  14413. (executeInternal): Pass the reference of segment.
  14414. * src/AbstractCommand.h
  14415. (executeInternal): Pass the reference of segment.
  14416. * src/pref.h
  14417. (PREF_SEGMENT_SIZE): New definition.
  14418. * src/HttpProxyRequestCommand.h
  14419. (executeInternal): Pass the reference of segment.
  14420. * src/HttpResponseCommand.cc
  14421. (checkResponse): Allowed status 206 when a request range starts 0.
  14422. (handleDefaultEncoding): Rewritten the code related to Segment.
  14423. (handleOtherEncoding): Rewritten the code related to Segment.
  14424. * src/SegmentMan.h
  14425. (SegmentEntry): New class.
  14426. (SegmentEntries): New type definition.
  14427. (bitfield): New variable.
  14428. (usedSegmentEntries): New variable.
  14429. (onNullBitfield): New function.
  14430. (checkoutSegment): New function.
  14431. (segments): Removed.
  14432. (splitter): Removed.
  14433. (unregisterId): Removed.
  14434. (getSegment): New function(overload)
  14435. (getDownloadedSize): Removed.
  14436. (cancelSegment): New function.
  14437. (completeSegment): New function.
  14438. (initBitfield): New function.
  14439. (hasSegment): New function.
  14440. (getDownloadLength): New function.
  14441. * src/BitfieldMan.h
  14442. (getStartIndex): New function.
  14443. (getEndIndex): New function.
  14444. (getMissingUnusedIndex): New function(overload).
  14445. (getSparseMissingUnusedIndex): New function.
  14446. * src/BitfieldMan.cc
  14447. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14448. (getMissingUnusedIndex): New function(overload).
  14449. (Range): New class.
  14450. (getStartIndex): New function.
  14451. (getEndIndex): New function.
  14452. (getSparseMissingUnusedIndex): New function.
  14453. (isBitSetInternal): Return false if the given index is less than 0.
  14454. * src/HttpInitiateConnectionCommand.h
  14455. (executeInternal): Pass the reference of segment.
  14456. * src/FtpNegotiateCommand.h
  14457. (executeInternal): Pass the reference of segment.
  14458. * src/FtpNegotiateCommand.cc
  14459. (recvSize): Initialize bitfield here.
  14460. * src/FtpTunnelResponseCommand.h
  14461. (executeInternal): Pass the reference of segment.
  14462. * src/HttpConnection.cc
  14463. (createRequest): Rewritten range header processing.
  14464. * src/DownloadCommand.h
  14465. (executeInternal): Pass the reference of segment.
  14466. (prepareForRetry): Removed.
  14467. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14468. function.
  14469. * src/main.cc
  14470. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14471. * src/SegmentMan.cc
  14472. (SegmentMan): Added bitfield. Removed splitter.
  14473. (~SegmentMan): Added bitfield. Removed splitter.
  14474. (unregisterId): Removed.
  14475. (getSegment): Rewritten.
  14476. (updateSegment): Rewritten.
  14477. (save): Rewritten.
  14478. (read): Rewritten.
  14479. (finished): Rewritten.
  14480. (getDownloadedSize): Removed.
  14481. (initBitfield): New function.
  14482. (FindSegmentEntryByIndex): New function object.
  14483. (FindSegmentEntryByCuid): New function object.
  14484. (checkoutSegment): New function.
  14485. (onNullBitfield): New function.
  14486. (getSegment): New function(overload).
  14487. (CancelSegment): New function object.
  14488. (cancelSegment): New function.
  14489. (completeSegment): New function.
  14490. (hasSegment): New function.
  14491. (getDownloadLength): New function.
  14492. * src/FtpInitiateConnectionCommand.cc
  14493. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14494. * src/Segment.h: Rewritten.
  14495. * src/Segment.cc (operator<<): New function.
  14496. * src/HttpDownloadCommand.h
  14497. (prepareForNextSegment): New function.
  14498. * src/Request.cc
  14499. (resetUrl): Made segment null.
  14500. * src/DownloadEngine.cc
  14501. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14502. * src/HttpProxyRequestCommand.h
  14503. (executeInternal): Pass the reference of segment.
  14504. * src/DownloadCommand.cc
  14505. (executeInternal): Rewritten the code related to Segment.
  14506. (prepareForRetry): Removed.
  14507. (prepareForNextSegment): Rewritten.
  14508. * src/FtpTunnelResponseCommand.h
  14509. (executeInternal): Pass the reference of segment.
  14510. To add HTTP 1.1 persistent connection support(experimental)
  14511. * src/HttpRequestCommand.cc
  14512. (executeInternal): Disable keep alive if it is disabled by
  14513. configuration.
  14514. * src/Request.h
  14515. (keepAlive): New variable.
  14516. (isKeepAlive): New function.
  14517. (setKeepAlive): New function.
  14518. * src/pref.h
  14519. (PREF_HTTP_KEEP_ALIVE): New definition.
  14520. * src/HttpResponseCommand.cc
  14521. (executeInternal): Check the remote server supports keep alive.
  14522. * src/HttpConnection.cc
  14523. (createRequest): Send "Connection: close" only if keep alive is
  14524. disabled.
  14525. * src/main.cc
  14526. (main):
  14527. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14528. To add max download speed limit:
  14529. * src/pref.h
  14530. (PREF_MAX_SPEED_LIMIT): New definition.
  14531. * src/PeerInteractionCommand.cc
  14532. (executeInternal): Added max download speed limit. Not tested yet.
  14533. * src/SegmentMan.h
  14534. (PeerStats): New type definition.
  14535. (peerStats): New variable.
  14536. (registerPeerStat): New function.
  14537. (FindPeerStat): New function object.
  14538. (getPeerStat): New function.
  14539. (calculateDownloadSpeed): New function.
  14540. * src/SpeedCalc.h: New class.
  14541. * src/SpeedCalc.cc: New class.
  14542. * src/main.cc
  14543. (main):
  14544. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14545. download speed is not restricted).
  14546. * src/PeerStat.h: New class.
  14547. * src/SegmentMan.cc
  14548. (registerPeerStat): New function.
  14549. (calculateDownloadSpeed): New function.
  14550. * src/DownloadCommand.cc
  14551. (STARTUP_IDLE_TIME): New definition.
  14552. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14553. downloadStart.
  14554. (~DownloadCommand): Call peerStat->downloadStop.
  14555. (executeInternal): Added download speed limitter. Rewritten lowest
  14556. speed limitter.
  14557. * src/HttpConnection.cc
  14558. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14559. * src/AbstractCommand.cc
  14560. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14561. Added hostname to the error message.
  14562. * src/ConsoleDownloadEngine.cc
  14563. (calculateStatistics): Initialize psize with dlSize.
  14564. * src/PieceMessage.cc
  14565. (receivedAction): Do not call peerInteraction->abortPiece here.
  14566. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14567. * src/BitfieldMan.h
  14568. (clearAllUseBit): New function.
  14569. (setAllUseBit): New function.
  14570. * src/BitfieldMan.cc
  14571. (clearAllBit): Do not clear useBitfield here.
  14572. (clearAllUseBit): New function.
  14573. (setAllUseBit): New function.
  14574. * src/Piece.cc
  14575. (clearAllBlock): Call bitfield->clearAllUseBit().
  14576. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14577. To make filename URL-decoded:
  14578. * src/HttpResponseCommand.h: Updated doc.
  14579. * src/HttpResponseCommand.cc
  14580. (determinFilename): Made filename URL-decoded.
  14581. * src/FtpInitiateConnectionCommand.cc
  14582. (executeInternal): Made filename URL-decoded.
  14583. * src/Util.h (urldecode): New function.
  14584. * src/Util.cc (urldecode): New function.
  14585. To fix a bug that caused assertion failure in ares_strerror:
  14586. * src/NameResolver.cc (callback): Fixed the bug.
  14587. * Release 0.7.3
  14588. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14589. To add --seed-time and --seed-ratio command-line option:
  14590. * src/Option.h (getAsDouble): New function.
  14591. * src/Option.cc (getAsDouble): New function.
  14592. * src/SeedCheckCommand.h: New class.
  14593. * src/SeedCheckCommand.cc: New class.
  14594. * src/DownloadEngineFactory.cc
  14595. (SeedCheckCommand.h): Included.
  14596. (UnionSeedCriteria.h): Included.
  14597. (TimeSeedCriteria.h): Included.
  14598. (ShareRatioSeedCriteria.h): Included.
  14599. (newTorrentConsoleEngine): Added the processing of seed option.
  14600. * src/SeedCriteria.h: New class.
  14601. * src/ShareRatioSeedCriteria.h: New class.
  14602. * src/TimeSeedCriteria.h: New class.
  14603. * src/UnionSeedCriteria.h: New class.
  14604. * src/prefs.h
  14605. (PREF_SEED_TIME): New definition.
  14606. (PREF_SEED_RATIO): New definition.
  14607. * src/main.cc
  14608. (showUsage): Added --seed-time and --seed-ratio option.
  14609. (main): Added --seed-time and --seed-ratio option.
  14610. Made default log file name "/dev/null".
  14611. * src/SharedHandle.h
  14612. (SharedHandle): Copy constructor. Made it assignable from the
  14613. SharedHandle of the subclasses.
  14614. (operator=): Made it assignable from the SharedHandle of the
  14615. subclasses.
  14616. (getRefCount): New function.
  14617. To add notice log level and the switch to write log to stdout. This
  14618. switch is configurable per log level.
  14619. * src/Logger.h
  14620. (notice): New function.
  14621. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14622. constant.
  14623. * src/LogFactory.cc
  14624. (getInstance): The use of NullLogger was removed. A log message with
  14625. notice log level was made written to stdout along with log file.
  14626. * src/NullLogger.h
  14627. (notice): New function.
  14628. * src/SimpleLogger.h
  14629. (writeHeader): Added the 'file' argument.
  14630. (writeLog): Added the 'file' argument.
  14631. (writeFile): New function.
  14632. (stdoutField): New variable.
  14633. (SimpleLogger): Removed the default constructor.
  14634. (SimpleLogger): Made the default value of logfile 0.
  14635. (debug): Added 'virtual' keyword.
  14636. (info): Added 'virtual' keyword.
  14637. (warn): Added 'virtual' keyword.
  14638. (error): Added 'virtual' keyword.
  14639. (notice): New function.
  14640. (setStdout): New function.
  14641. * src/SimpleLogger.cc
  14642. (WRITE_LOG): Replaced writeLog with writeFile.
  14643. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14644. (SimpleLogger): Removed the default constructor.
  14645. (setStdout): New function.
  14646. (writeLog): Added the handling of NOTICE log level.
  14647. (writeFile): New function.
  14648. (notice): New function.
  14649. * src/TorrentMan.h: Updated doc.
  14650. * src/BitfieldMan.h: Updated doc.
  14651. * src/TrackerWatcherCommand.cc
  14652. (execute): Return true if error occurred in the request to the tracker
  14653. and halt is requested.
  14654. * src/TrackerUpdateCommand.cc
  14655. (execute): Return true if error occurred in the request to the tracker
  14656. and halt is requested.
  14657. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14658. DownloadEngine:
  14659. * src/TorrentConsoleDownloadEngine.h
  14660. (onSelectiveDownloadingCompletes): Removed.
  14661. * src/TorrentConsoleDownloadEngine.cc
  14662. (onSelectiveDownloadingCompletes): Removed.
  14663. * src/TorrentDownloadEngine.h
  14664. (onEndOfRun): Added 'virtual' keyword.
  14665. (afterEachIteration): Removed.
  14666. (onSelectiveDownloadingCompletes): Removed.
  14667. * src/TorrentDownloadEngine.cc
  14668. (onEndOfRun): Removed filenameFixed.
  14669. (afterEachIteration): Removed.
  14670. * src/TorrentMan.cc
  14671. (completePiece): Call onDownloadComplete here.
  14672. (onDownloadComplete): Added 2 log messages.
  14673. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14674. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14675. * src/NameResolver.h: Added the prototype declaration of callback().
  14676. To support c-ares library:
  14677. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14678. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14679. * src/FtpInitiateConnectionCommand.h:
  14680. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14681. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14682. * src/HttpInitiateConnectionCommand.h:
  14683. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14684. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14685. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14686. #1542285 by tizianomueller)
  14687. * src/HttpInitiateConnectionCommand.cc:
  14688. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14689. * src/FtpInitiateConnectionCommand.cc:
  14690. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14691. * src/DownloadEngine.h:
  14692. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14693. * src/DownloadEngine.cc:
  14694. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14695. To fix the bug that causes compilation failure with metalink-support
  14696. disabled(bug#1543587):
  14697. * src/main.cc: Fixed with the patch by tizianomueller.
  14698. * Release 0.7.2
  14699. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14700. * src/main.cc
  14701. (main): Added a message to inform users that aria2 is starting to
  14702. verify checksum.
  14703. * src/RequestInfo.cc
  14704. (printDownloadAbortMessage): Added a message to inform users that
  14705. transfer can be resumed.
  14706. * src/FeatureConfig.cc
  14707. (FEATURE_ASYNC_DNS): New definition.
  14708. (FeatureConfig): Added aysnc DNS entry.
  14709. To replace CommandUuid with Command* in SocketEntry and
  14710. NameResolverEntry:
  14711. * src/DownloadEngine.h
  14712. (CommandUuids): Removed.
  14713. (SocketEntry::commandUuid): Removed.
  14714. (SocketEntry::command): New variable.
  14715. (SocketEntry::SocketEntry): Updated.
  14716. (SocketEntry::operator==): Updated.
  14717. (NameResolverEntry::commandUuid): Removed.
  14718. (NameResolverEntry::command): New variable.
  14719. (NameResolverEntry::NameResolverEntry): Updated.
  14720. (NameResolverEntry::operator==): Updated.
  14721. (waitData): Changed the argument type.
  14722. (addSocketForReadCheck): Changed the argument type.
  14723. (deleteSocketForReadCheck): Changed the argument type.
  14724. (addSocketForWriteCheck): Changed the argument type.
  14725. (deleteSocketForWriteCheck): Changed the argument type.
  14726. (addNameResolverCheck): Changed the argument type.
  14727. (deleteNameResolverCheck): Changed the argument type.
  14728. * src/DownloadEngine.cc
  14729. (FindCommand): Removed.
  14730. (run): Removed activeUuid. Added activeCommands instead.
  14731. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14732. (AccumulateActiveCommand): New function object.
  14733. (waitData): Use AccumulateActiveCommand.
  14734. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14735. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14736. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14737. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14738. (addNameResolverCheck): Use Command instead of CommandUuid.
  14739. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14740. * src/AbstractCommand.cc
  14741. (disableReadCheckSocket): Updated according to the changes in
  14742. DownloadEngine.
  14743. (setReadCheckSocket): Updated according to the changes in
  14744. DownloadEngine.
  14745. (disableWriteCheckSocket): Updated according to the changes in
  14746. DownloadEngine.
  14747. (setWriteCheckSocket): Updated according to the changes in
  14748. DownloadEngine.
  14749. (setNameResolverCheck): Updated according to the changes in
  14750. DownloadEngine.
  14751. (disableNameResolverCheck): Updated according to the changes in
  14752. DownloadEngine.
  14753. * src/AbstractCommand.cc
  14754. (disableReadCheckSocket): Updated according to the changes in
  14755. DownloadEngine.
  14756. (setReadCheckSocket): Updated according to the changes in
  14757. DownloadEngine.
  14758. (disableWriteCheckSocket): Updated according to the changes in
  14759. DownloadEngine.
  14760. (setWriteCheckSocket): Updated according to the changes in
  14761. DownloadEngine.
  14762. * release 0.7.1
  14763. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14764. To handle the case where some BitTorrent tracker requires all letters
  14765. except for [A-Za-z0-9] is URL encoded.
  14766. * src/Util.h
  14767. (torrentUrlencode): New function.
  14768. * src/Util.cc
  14769. (ctype.h): Included.
  14770. (torrentUrlencode): New function.
  14771. * src/TrackerWatcherCommand.cc
  14772. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14773. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14774. To add asynchronous DNS support(libares):
  14775. * src/AbstractCommand.h
  14776. (setNameResolverCheck): New function.
  14777. (disableNameResolverCheck): New function
  14778. (resolveHostname): New function.
  14779. * src/AbstractCommand.cc
  14780. (setNameResolverCheck): New function.
  14781. (disableNameResolverCheck): New function
  14782. (resolveHostname): New function.
  14783. * src/FtpInitiateConnectionCommand.h
  14784. (nameResolver): New function.
  14785. * src/FtpInitiateConnectionCommand.cc
  14786. (Util.h): Included.
  14787. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14788. disableWriteCheckSocket.
  14789. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14790. (executeInternal): Added async DNS support.
  14791. * src/HttpInitiateConnectionCommand.h
  14792. (nameResolver): New function.
  14793. * src/HttpInitiateConnectionCommand.cc
  14794. (DlRetryEx.h): Included.
  14795. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14796. disableWriteCheckSocket.
  14797. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14798. (executeInternal): Added async DNS support.
  14799. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14800. by extern "C" declaration.
  14801. * src/NameResolver.cc: New class.
  14802. * src/Util.h:
  14803. (isNumberAndDotsNotation): New function
  14804. * src/Util.cc
  14805. (isNumberAndDotsNotation): New function.
  14806. * src/DownloadEngine.h
  14807. (NameResolver.h): Included.
  14808. (NameResolverEntry): New class.
  14809. (NameResolverEntries): New type definition.
  14810. (addNameResolverCheck): New function.
  14811. (deleteNameResolverCheck): New function.
  14812. * src/DownloadEngine.cc
  14813. (run): Initialize cp with 0.
  14814. (SetDescriptor::operator()): Added for NameResolverEntry.
  14815. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14816. (waitData): Check nameResolver entries.
  14817. (updateFdSet): Update fds in nameResolver entries.
  14818. (addNameResolverCheck): New function.
  14819. (deleteNameResolverCheck): new function.
  14820. * src/PeerInteractionCommand.cc
  14821. (executeInternal): Fixed wrong socket handling.
  14822. * src/main.cc
  14823. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14824. * src/Util.cc
  14825. (fileChecksum): Removed the call to ctx.digestReset().
  14826. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14827. * po/ru.po: Azamat sent me Russian translation.
  14828. * src/FtpNegotiateCommand.cc
  14829. (recvGreeting): Call disableWriteCheckSocket just after
  14830. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14831. (recvRetr): Recognized status code 125 as a acceptable response code.
  14832. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14833. case-insesitive filesystem(BUG#1531057).
  14834. * src/Time.h: Renamed as TimeA2.h.
  14835. * src/Time.cc: Renamed as TimeA2.cc.
  14836. * src/TimeA2.h: New class.
  14837. * src/TimeA2.cc: New class.
  14838. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14839. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14840. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14841. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14842. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14843. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14844. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14845. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14846. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14847. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14848. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14849. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14850. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14851. * release 0.7.0
  14852. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14853. * src/PeerChokeCommand.h
  14854. (PeerChokeCommand): Rearranged the arguments.
  14855. * src/PeerChokeCommand.cc
  14856. (PeerChokeCommand): Rearranged the arguments.
  14857. * src/MetalinkEntry.h
  14858. (Checksum.h): Included.
  14859. (md5): Removed.
  14860. (sha1): Removed.
  14861. (checksum): New variable.
  14862. (operator=): Updated.
  14863. (check): Removed.
  14864. * src/prefs.h
  14865. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14866. (PREF_FOLLOW_TORRENT): New definition.
  14867. (PREF_SELECT_FILE): New definition.
  14868. (PREF_FOLLOW_METALINK): New definition.
  14869. * src/MetalinkResource.h
  14870. (TYPE_HTTPS): Added to enum TYPE.
  14871. * src/TorrentMan.cc
  14872. (~TorrentMan): Rewritten.
  14873. * src/MultiDiskWriter.cc
  14874. (MultiDiskAdaptor): Updated according to the changes in
  14875. MessageDigestContext.
  14876. (~MultiDiskAdaptor): Updated according to the changes in
  14877. MessageDigestContext.
  14878. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14879. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14880. * src/Util.h
  14881. (fileChecksum): Updated according to the changes in
  14882. MessageDigestContext.
  14883. * src/Util.cc
  14884. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14885. (fileChecksum): Updated according to the changes in
  14886. MessageDigestContext.
  14887. * src/messageDigest.h: Rewritten.
  14888. * src/MetalinkEntry.cc
  14889. (check): Removed.
  14890. (Supported): Updated.
  14891. (dropUnsupportedResource): Fixed a memory leak.
  14892. * src/ShaVisitor.cc
  14893. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14894. (~ShaVisitor): Updated according to the changes in
  14895. MessageDigestContext.
  14896. (visit): Updated according to the changes in MessageDigestContext.
  14897. * src/main.cc
  14898. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14899. command-line option added.
  14900. * src/DownloadEngine.h
  14901. (SocketEntry): New class.
  14902. (SocketEntries): New definition.
  14903. (PairFind): Removed.
  14904. (SockCmdMap): Removed.
  14905. * src/DownloadEngine.cc
  14906. (DownloadEngine): Rewritten.
  14907. (~DownloadEngine): Rewritten.
  14908. (run): Renamed activeCommandUuids as activeUuids.
  14909. (SetDescriptor): Rewritten.
  14910. (AccumulateActiveCommandUuid): Removed.
  14911. (AccumulateActiveUuid): New function object.
  14912. (waitData): Rewritten.
  14913. (updateFdSet): Rewritten.
  14914. (addSocket): Rewritten.
  14915. (deleteSocket): Rewritten.
  14916. (addSocketForReadCheck): Rewritten.
  14917. (deleteSocketForReadCheck): Rewritten.
  14918. (addSocketForWriteCheck): Rewritten.
  14919. (deleteSocketForWriteCheck): Rewritten.
  14920. * src/Xml2MetalinkProcessor.cc
  14921. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14922. * src/DownloadCommand.cc
  14923. (executeInternal): Added the check routine for lowest speed limit.
  14924. * src/AbstractDiskWriter.cc
  14925. (AbstractDiskWriter): Updated according to the changes in
  14926. MessageDigestContext.
  14927. (~AbstractDiskWriter): Updated according to the changes in
  14928. MessageDigestContext.
  14929. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14930. * src/RequestInfo.h: New class.
  14931. * src/UrlRequestInfo.h: New class.
  14932. * src/UrlRequestInfo.cc: New class.
  14933. * src/TorrentRequestInfo.h: New class.
  14934. * src/TorrentRequestInfo.cc: New class.
  14935. * src/MetalinkRequestInfo.h: New class.
  14936. * src/MetalinkRequestInfo.cc: New class.
  14937. * src/Checksum.h: New class.
  14938. * src/DownloadEngineFactory.h: New class.
  14939. * src/DownloadEngineFactory.cc: New class.
  14940. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14941. * src/Option.h
  14942. (getAsBool): New function.
  14943. * src/Option.cc
  14944. (prefs.h): Included.
  14945. (defined): 0-length value is now recognized as undefined.
  14946. (getAsInt): Rewritten.
  14947. (getAsLLInt): Rewritten.
  14948. (getAsBool): New function.
  14949. * src/FeatureConfig.h: Rewritten.
  14950. * src/FeatureConfig.cc: Rewritten.
  14951. * src/prefs.h
  14952. (PREF_STDOUT_LOG): New definition.
  14953. (PREF_LOG): New definition.
  14954. (PREF_DIR): New definition.
  14955. (PREF_OUT): New definition.
  14956. (PREF_SPLIT): New definition.
  14957. (PREF_DAEMON): New definition.
  14958. (PREF_REFERER): New definition.
  14959. (PREF_TORRENT_FILE): New definition.
  14960. (PREF_LISTEN_PORT): New definition.
  14961. (PREF_METALINK_FILE): New definition.
  14962. (PREF_METALINK_VERSION): New definition.
  14963. (PREF_METALINK_LANGUAGE): New definition.
  14964. (PREF_METALINK_OS): New definition.
  14965. (PREF_METALINK_SERVERS): New definition.
  14966. * src/main.cc
  14967. (main): Following command-line parameters are now put into Option
  14968. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14969. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14970. metalinkLanguage, metalinkOs, metalinkServers
  14971. To fix the bug that aria2 can not handle http response header properly.
  14972. * src/HttpHeader.cc
  14973. (put): Made name lowercased.
  14974. (defined): Made name lowercased.
  14975. (getFirst): Made name lowercased.
  14976. (get): Made name lowercased.
  14977. (getFirstAsInt): Rewritten.
  14978. (getFirstAsLLInt): Rewritten.
  14979. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14980. * src/TorrentMan.h:
  14981. (advertisePiece): Updated doc.
  14982. (getAdvertisedPieceIndexes): Updated doc.
  14983. (removeAdvertisedPiece); New function.
  14984. * src/TorrentMan.cc
  14985. (FindElapsedHave): New function object.
  14986. (removeAdvertisedPiece): New function.
  14987. * src/HaveEraseCommand.h: New class.
  14988. * src/HaveEraseCommand.cc: New class.
  14989. * src/FeatureConfig.h: New class.
  14990. * src/FeatureConfig.cc: New class.
  14991. * src/Request.h
  14992. (defaultPorts): Removed.
  14993. * src/Request.cc
  14994. (FeatureConfig.h): Included.
  14995. (Request): Removed the statements related to defaultPorts.
  14996. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14997. A default port number is now retrieved from FeatureConfig.
  14998. * src/main.cc
  14999. (HaveEraseCommand.h): Included.
  15000. (showVersion): Added the output of feature list.
  15001. (main): Added HaveEraseCommand to command queue in BitTorrent
  15002. downloading.
  15003. * src/PeerInteractionCommand.h
  15004. (chokeCheckPoint): Commented out.
  15005. (periodicExecPoint): New variable.
  15006. * src/PeerInteractionCommand.cc
  15007. (executeInternal): Following methods are now called in at least every
  15008. 0.5 seconds to reduce CPU usage:
  15009. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15010. checkHave(), sendKeepAlive().
  15011. (checkLongTimePeerChoking): Commented out.
  15012. * src/BitfieldMan.h
  15013. (getNthBitIndex): Changed the method signature.
  15014. (getMissingIndexRandomly): Changed the method signature.
  15015. * src/BitfieldMan.cc
  15016. (getNthBitIndex): Rewritten
  15017. (getMissingIndexRandomly): Rewritten.
  15018. (hasMissingPiece): Rewritten.
  15019. (getMissingIndex): Refactored.
  15020. (getMissingUnusedIndex); Refactored.
  15021. (getMissingIndex): Refactored.
  15022. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15023. * src/PeerMessage.h
  15024. (Piece.h): Included.
  15025. (SharedHandle.h): Included.
  15026. (invalidate): New variable.
  15027. (uploading): New variable.
  15028. (isInvalidate): New function.
  15029. (isUploading): New function.
  15030. (onPush): New function.
  15031. (onChoked): New function.
  15032. (onCanceled): New function.
  15033. (onAbortPiece): New function.
  15034. (PeerMessageHandle): New type definition.
  15035. * src/PeerMessage.cc
  15036. (PeerMessage): Added the initialization for invalidate and uploading.
  15037. * src/CancelMessage.h
  15038. (CancelMessage): Rewritten.
  15039. * src/RejectMessage.h
  15040. (RejectMessage): Rewritten.
  15041. * src/Metalinker.h
  15042. (operator=): Defined.
  15043. * src/MetaEntry.h
  15044. (operator=): Defined.
  15045. * src/MetalinkResource.h
  15046. (operator=): Defined.
  15047. * src/AllowedFastMessage.h
  15048. (AllowedFastMessage): Rewritten.
  15049. * src/HandshakeMessage.h
  15050. (HandshakeMessage): New function(overload).
  15051. * src/HandshakeMessage.cc
  15052. (HandshakeMessage): Rewritten.
  15053. (init): New function.
  15054. * src/HaveMessage.h
  15055. (HaveMessage): Rewritten.
  15056. * src/Time.h
  15057. (operator=): Defined the function body here.
  15058. * src/Time.cc
  15059. (operator=): Removed.
  15060. * src/SocketCore.h
  15061. (operator==): Defined here.
  15062. (operator!=): Defined here.
  15063. (operator<): Defined here.
  15064. * src/SocketCore.cc
  15065. (operator==): Removed.
  15066. (operator<): Removed.
  15067. * src/BitfieldMan.h
  15068. (operator=): Defined the function body here.
  15069. * src/BitfieldMan.cc
  15070. (operator=): Removed.
  15071. * src/TorrentMan.h
  15072. (deleteErrorPeer): Removed.
  15073. (deleteUnusedPeer); New function.
  15074. * src/TorrentMan.cc
  15075. (addPeer): Call deleteUnusedPeer.
  15076. (deleteErrorPeer): Removed.
  15077. (deleteUnusedPeer): New function.
  15078. * src/PeerAbstractCommand.h
  15079. (setNoCheck): New function.
  15080. (noCheck): New variable.
  15081. * src/PeerAbstractCommand.cc
  15082. (PeerAbstractCommand): Added the initialization of noCheck.
  15083. (execute): Added a check for noCheck.
  15084. (setNoCheck): New function.
  15085. * src/Util.h
  15086. (stdio.h): Included.
  15087. * src/Util.cc
  15088. (unistd.h): Included.
  15089. * src/DefaultDiskWriter.cc
  15090. (unistd.h): Included.
  15091. * src/Peer.h
  15092. (operator==): Defined the function body here.
  15093. (operator!=): Defined the function body here.
  15094. * src/Peer.cc
  15095. (operator==): Removed.
  15096. (operator!=): Removed.
  15097. * src/Piece.h
  15098. (Piece): Defined the function body here(copy constructor).
  15099. (operator=): Defined the function body here.
  15100. (operator==): Defined the function body here.
  15101. * src/Piece.cc
  15102. (Piece): Removed(copy constructor).
  15103. (operator=): Removed.
  15104. (operator==): Removed.
  15105. * src/PeerMessageUtil.h
  15106. (ChokeMessage.h): Removed.
  15107. (UnchokeMessage.h): Removed.
  15108. (InterestedMessage.h): Removed.
  15109. (NotInterestedMessage.h): Removed.
  15110. (HaveMessage.h): Removed.
  15111. (BitfieldMessage.h): Removed.
  15112. (RequestMessage.h): Removed.
  15113. (CancelMessage.h): Removed.
  15114. (PieceMessage.h): Removed.
  15115. (HandshakeMessage.h): Removed.
  15116. (KeepAliveMessage.h): Removed.
  15117. (PortMessage.h): Removed.
  15118. (HaveAllMessage.h): Removed.
  15119. (HaveNoneMessage.h): Removed.
  15120. (PeerConnection.h): Removed.
  15121. (HandshakeMessage.h): Included.
  15122. * src/BitfieldMessage.h
  15123. (init): New function.
  15124. (BitfieldMessage): Rewritten.
  15125. (BitfieldMessage): New function(overload).
  15126. * src/RequestSlot.h
  15127. (operator=): Defined the function body here.
  15128. (operator==): Defined the function body here.
  15129. * src/RequestSlot.cc
  15130. (operator=): Removed.
  15131. (operator==): Removed.
  15132. To remove the dependency on the PeerMessage subclass from
  15133. PeerInteraction:
  15134. * src/PeerMessageFactory.h: New class.
  15135. * src/PeerMessageFactory.cc: New class.
  15136. * src/SimplePeerMessage.cc
  15137. (send): If invalidate is true then do nothing.
  15138. * src/PeerInteractionCommand.cc
  15139. (HandshakeMessage.h): Included.
  15140. (KeepAliveMessage.h): Included.
  15141. (ChokeMessage.h): Included.
  15142. (UnchokeMessage.h): Included.
  15143. (HaveMessage.h): Included.
  15144. (executeInternal): Call setNoCheck().
  15145. Removed setWriteCheckSocket(socket).
  15146. * src/PeerInteraction.h
  15147. (ChokeMessage.h): Removed.
  15148. (UnchokeMessage.h): Removed.
  15149. (InterestedMessage.h): Removed.
  15150. (NotInterestedMessage.h): Removed.
  15151. (HaveMessage.h): Removed.
  15152. (BitfieldMessage.h): Removed.
  15153. (RequestMessage.h): Removed.
  15154. (CancelMessage.h): Removed.
  15155. (PieceMessage.h): Removed.
  15156. (HandshakeMessage.h): Removed.
  15157. (KeepAliveMessage.h): Removed.
  15158. (PortMessage.h): Removed.
  15159. (HaveAllMessage.h): Removed.
  15160. (HaveNoneMessage.h): Removed.
  15161. (RejectMessage.h): Removed.
  15162. (AllowedFastMessage.h): Removed.
  15163. (SuggestPieceMessage.h): Removed.
  15164. (PeerMessageFactory.h): Included.
  15165. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15166. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15167. (PeerMessageFactory): New variable.
  15168. (createPeerMessage): Removed.
  15169. (createHandshakeMessage): Removed.
  15170. (setPeerMessageCommonProperty): Removed.
  15171. (addRequestSlot): New function.
  15172. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15173. (getPeerMessageFactory): New function.
  15174. (createRequestMessage): Removed.
  15175. (createCancelMessage): Removed.
  15176. (createPieceMessage): Removed.
  15177. (createHaveMessage): Removed.
  15178. (createChokeMessage): Removed.
  15179. (createUnchokeMessage): Removed.
  15180. (createInterestedMessage): Removed.
  15181. (createNotInterestedMessage): Removed.
  15182. (createBitfieldMessage): Removed.
  15183. (createKeepAliveMessage): Removed.
  15184. (createHaveAllMessage): Removed.
  15185. (createHaveNoneMessage): Removed.
  15186. (createRejectMessage): Removed.
  15187. (createAllowedFastMessage): Removed.
  15188. * src/PeerInteraction.cc
  15189. (PeerInteraction): Allocate PeerMessageFactory here.
  15190. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15191. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15192. PieceMessage::ID.
  15193. (addMessage): Simplified by using PeerMessage::onPush().
  15194. (addRequestSlot): New function.
  15195. (rejectAllPieceMessageInQueue): Simplified by using
  15196. PeerMessage::onChoked().
  15197. (rejectPieceMessageInQueue): Simplified by using
  15198. PeerMessage::onCanceled().
  15199. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15200. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15201. (createHandshakeMessage): Removed.
  15202. (createPeerMessage): Removed.
  15203. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15204. (setPeerMessageCommonProperty): Removed.
  15205. (createRequestMessage): Removed.
  15206. (createCancelMessage): Removed.
  15207. (createPieceMessage): Removed.
  15208. (createHaveMessage): Removed.
  15209. (createChokeMessage): Removed.
  15210. (createUnchokeMessage): Removed.
  15211. (createInterestedMessage): Removed.
  15212. (createNotInterestedMessage): Removed.
  15213. (createBitfieldMessage): Removed.
  15214. (createKeepAliveMessage): Removed.
  15215. (createHaveAllMessage): Removed.
  15216. (createHaveNoneMessage): Removed.
  15217. (createRejectMessage): Removed.
  15218. (createAllowedFastMessage): Removed.
  15219. * src/PieceMessage.h
  15220. (createRejectMessage): New function.
  15221. (PieceMessage): Rewritten.
  15222. (onChoked): New function.
  15223. (onCanceled): New function.
  15224. * src/PieceMessage.cc
  15225. (send): If invalidate is true then do nothing, just return.
  15226. (createRejectMessage): New function.
  15227. (onChoked): New function.
  15228. (onCanceled): New function.
  15229. * src/RequestMessage.h
  15230. (RequestMessage): Rewritten.
  15231. (onPush): New function.
  15232. (onAbortPiece): New function.
  15233. * src/RequestMessage.cc
  15234. (onPush): New function.
  15235. (onAbortPiece): New function.
  15236. Update fd_set when a socket is added or deleted in order to improve
  15237. performance:
  15238. * src/DownloadEngine.h
  15239. (rfdset): New variable.
  15240. (wfdset): New variable.
  15241. (updateFdSet): New function.
  15242. * src/DownloadEngine.cc
  15243. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15244. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15245. (waitData): Copy rfdset and wfdset.
  15246. (updateFdSet): New function.
  15247. (addSocket): Call updateFdSet.
  15248. (deleteSocket): Call updateFdSet.
  15249. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15250. To add the support for Metalink3.0 backward compatible links:
  15251. * src/Request.h
  15252. (SAFE_CHARS): Added '#'.
  15253. (METALINK_MARK): New definition.
  15254. * src/Request.cc
  15255. (parseUrl): Added the support for Metalink3.0 backward compatible
  15256. links.
  15257. etc
  15258. * src/PeerInteraction.cc
  15259. (MsgPushBack): Removed.
  15260. (sendMessages): Use STL copy and back_inserter.
  15261. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15262. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15263. * src/TorrentMan.h
  15264. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15265. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15266. * src/SharedHandle.h: New class.
  15267. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15268. * src/HttpResponseCommand.h
  15269. (HttpResponseCommand): Wrapped Socket.
  15270. * src/SocketCore.h
  15271. (operator==): New function.
  15272. (operator!=): New function.
  15273. (operator<): New function.
  15274. (getSockfd): New function.
  15275. (isOpen): New function.
  15276. (writeData): New function.
  15277. * src/SocketCore.cc
  15278. (operator==): New function.
  15279. (operator!=): New function.
  15280. (operator<): New function.
  15281. * src/AbstractCommand.h
  15282. (socket): Changed its type to SocketHandle.
  15283. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15284. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15285. (disableReadCheckSocket): New function.
  15286. (disableWriteCheckSocket): New function.
  15287. (readCheckTarget): Changed its type to SocketHandle.
  15288. (writeCheckTarget): Changed its type to SocketHandle.
  15289. (AbstractCommand): Replaced Socket with SocketHandle.
  15290. * src/AbstractCommand.cc
  15291. (AbstractCommand): Replaced Socket with SocketHandle.
  15292. (~AbstractCommand): Removed the deallocation for Socket object.
  15293. (disableReadCheckSocket): New function.
  15294. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15295. (disableWriteCheckSocket): New function.
  15296. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15297. * src/HttpDownloadCommand.cc
  15298. (DownloadCommand): Replaced Socket with SocketHandle.
  15299. * src/PeerAbstractCommand.h
  15300. (socket): Changed its type to SocketHandle.
  15301. (peer): Changed its type to PeerHandle.
  15302. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15303. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15304. (disableReadCheckSocket): New function.
  15305. (disableWriteCheckSocket): New function.
  15306. (readCheckTarget): Changed its type to SocketHandle.
  15307. (writeCheckTarget): Changed its type to SocketHandle.
  15308. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15309. Replaced Peer with PeerHandle.
  15310. * src/HttpRequestCommand.cc
  15311. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15312. Use disableReadCheckSocket.
  15313. * src/PeerInitiateConnectionCommand.h
  15314. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15315. * src/PeerChokeCommand.cc
  15316. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15317. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15318. (execute): Use PeerHandle.
  15319. * src/PeerConnection.h
  15320. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15321. (socket): Changed its type to SocketHandle.
  15322. (PeerConnection): Replaced Socket with SocketHandle.
  15323. * src/PeerConnection.cc
  15324. (PeerConnection): Replaced Socket with SocketHandle.
  15325. * src/PeerInteractionCommand.h
  15326. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15327. Replaced Peer with PeerHandle.
  15328. * src/PeerInteractionCommand.cc
  15329. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15330. Replaced Peer with PeerHandle.
  15331. (executeInternal): Use disableWriteCheckSocket.
  15332. Use HandshakeMessageHandle.
  15333. (receiveMessages): Use PeerMessageHandle.
  15334. (prepareForNextPeer): Use PeerHandle.
  15335. * src/HttpProxyRequestCommand.h
  15336. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15337. * src/HttpResponseCommand.cc
  15338. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15339. * src/TorrentMan.cc
  15340. (nullPeer): Added external reference.
  15341. (~TorrentMan): Removed the deallocation of the elements of peers.
  15342. (addPeer): Rewritten.
  15343. (isPeerAvailable): Use nullPeer.
  15344. (deleteOldpeers): Replaced with deleteErrorPeer.
  15345. (deleteErrorPeer): New function.
  15346. (getPeer): Use PeerHandle and nullPeer.
  15347. (hasMissingPiece): Replaced Peer with PeerHandle.
  15348. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15349. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15350. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15351. (getMissingPiece): Replaced Peer with PeerHandle.
  15352. * src/FtpNegotiateCommand.cc
  15353. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15354. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15355. (recvGreeting): Use disableWriteCheckSocket.
  15356. (recvPasv): Removed the allocation of Socket.
  15357. Use disableReadCheckSocket.
  15358. (sendRestPasv): Use disableWriteCheckSocket.
  15359. (recvRetr): Changed assertion.
  15360. * src/PeerInteraction.h
  15361. (SharedHandle.h): Included SharedHandle.h.
  15362. (PeerMessageHandle): New type definition.
  15363. (HandshakeMessageHandle): New type definition.
  15364. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15365. (peer): Changed its type to PeerHandle.
  15366. (createHandshakeMessage): Replaced HandshakeMessage with
  15367. HandshakeMessageHandle.
  15368. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15369. (PeerInteraction): Replaced Peer with PeerHandle.
  15370. Replaced Socket with SocketHandle.
  15371. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15372. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15373. (receiveHandshake): Replaced HandshakeMessage with
  15374. HandshakeMessageHandle.
  15375. * src/PeerInteraction.cc
  15376. (PeerInteraction): Replaced Peer with PeerHandle.
  15377. Replaced Socket with SocketHandle.
  15378. (~PeerInteraction): Removed the deallocation of the elements of
  15379. messageQueue.
  15380. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15381. (isSendingMessageInProgress): Replaced PeerMessage with
  15382. PeerMessageHandle.
  15383. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15384. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15385. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15386. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15387. (abortPiece): Use PeerMessageHandle.
  15388. (receiveHandshake): Replaced HandshakeMessage with
  15389. HandshakeMessageHandle. Removed try-catch block.
  15390. (createHandshakeMessage): Replaced HandshakeMessage with
  15391. HandshakeMessageHandle.
  15392. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15393. Removed try-catch block.
  15394. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15395. * src/HttpProxyResponseCommand.cc
  15396. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15397. * src/FtpTunnelResponseCommand.h
  15398. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15399. * src/HttpConnection.cc
  15400. (HttpConnection): Replaced Socket with SocketHandle.
  15401. * src/PeerAbstractCommand.cc
  15402. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15403. (~PeerAbstractCommand): Removed the deallocation of socket.
  15404. Use disableReadCheckSocket, disableWriteCheckSocket.
  15405. (disableReadCheckSocket): New function.
  15406. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15407. (disableWriteCheckSocket): New function.
  15408. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15409. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15410. * src/FtpTunnelRequestCommand.cc
  15411. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15412. (~FtpTunnelRequestCommand): Corrected indentation.
  15413. * src/DownloadCommand.h
  15414. (DownloadCommand): Replaced Socket with SocketHandle.
  15415. * src/PeerListenCommand.cc
  15416. (PeerListenCommand): Removed the initialization of socket.
  15417. (~PeerListenCommand): Removed the deallocation of socket.
  15418. (bindPort): Use SocketHandle.
  15419. (execute): Use SocketHandle and PeerHandle.
  15420. * src/FtpDowndloadCommand.cc
  15421. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15422. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15423. * src/main.cc
  15424. (main): Corrected indentation.
  15425. * src/HttpInitiateConnectionCommand.cc
  15426. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15427. (executeInternal): Removed the allocation of socket.
  15428. * src/HttpRequestCommand.h
  15429. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15430. * src/FtpNegotiationCommand.h
  15431. (dataSocket): Changed its type to SocketHandle.
  15432. (serverSocket): Changed its type to SocketHandle.
  15433. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15434. * src/TorrentMan.h
  15435. (MAX_PEER_UPDATE): Removed.
  15436. (MAX_PEERS): New definition.
  15437. (Peers): The element is now of type PeerHandle.
  15438. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15439. (getPeer): Replaced Peer with PeerHandle.
  15440. (deleteOldErrorPeers): Removed.
  15441. (deleteErrorPeer): New function.
  15442. (hasMissingPiece): Replaced Peer with PeerHandle.
  15443. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15444. (getMissingPiece): Replaced Peer with PeerHandle.
  15445. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15446. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15447. (addActivePeer): Replaced Peer with PeerHandle.
  15448. (deleteActivePeer): Replaced Peer with PeerHandle.
  15449. Added a check for the return value of find.
  15450. * src/FtpTunnelResponseCommand.cc
  15451. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15452. * src/FtpInitiateConnectionCommand.cc
  15453. (executeInternal): Removed the allocation of socket.
  15454. * src/DownloadEngine.h
  15455. (Sockets): An element is now of type SocketHandle.
  15456. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15457. (CommandUuids): New type definition.
  15458. (rsockets): Changed its type to SockCmdMap.
  15459. (wsockets): Changed its type to SockCmdMap.
  15460. (addSocket): Rewritten.
  15461. (deleteSocket): Rewritten.
  15462. (addSocketForReadCheck): Rewritten.
  15463. (deleteSocketForReadCheck): Rewritten.
  15464. (addSocketForWriteCheck): Rewritten.
  15465. (deleteSocketForWriteCheck): Rewritten.
  15466. (PairFind): New template class.
  15467. * src/HttpDownloadCommand.h
  15468. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15469. * src/FtpConnection.cc
  15470. (FtpConnection): Replaced Socket with SocketHandle.
  15471. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15472. block.
  15473. * src/InitiateConnectionCommandFactory.cc
  15474. (DlAbortEx.h): Included DlAbortEx.h.
  15475. (createInitiateConnectionCommand): Throw exception if the protocol of
  15476. requested URI is not supported.
  15477. * src/Peer.cc
  15478. (nullPeer): Changed its type to PeerHandle.
  15479. (operator==): New function.
  15480. (operator!=): New function.
  15481. * src/Peer.h
  15482. (SharedHandle.h): Included SharedHandle.h.
  15483. (operator==): New function.
  15484. (operator!=): New function.
  15485. (Peer): Added the default constructor.
  15486. Use resetStatus() to initialize member variables.
  15487. (nullPeer): Removed.
  15488. * src/TrackerUpdateCommand.cc
  15489. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15490. with MIN_PEERS.
  15491. * src/PeerListenCommand.h
  15492. (socket): Changed its type to SocketHandle.
  15493. * src/Command.h
  15494. (CommandUuid): New type definition.
  15495. (uuid): New variable.
  15496. (uuidGen): New variable.
  15497. (Command): Added the initialization of uuid.
  15498. (getUuid): New function.
  15499. * src/Socket.h
  15500. (Socket): Removed.
  15501. (SocketHandle): New type definition.
  15502. * src/DownloadEngine.h
  15503. (FindCommand): New function object.
  15504. (run): The portion of socket check was rewritten.
  15505. (SetDescriptor): New function object.
  15506. (AccumulateActiveCommandUuid): New function object.
  15507. (waitData): Rewritten.
  15508. (addSocket): Rewritten.
  15509. (deleteSocket): Rewritten.
  15510. (addSocketForReadCheck): Rewritten.
  15511. (addSocketForWriteCheck): Rewritten.
  15512. (deleteSocketForReadCheck): Rewritten.
  15513. (deleteSocketForWriteCheck): Rewritten.
  15514. * src/HttpProxyResponseCommand.h
  15515. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15516. * src/HttpConnection.h
  15517. (socket): Changed its type to SocketHandle.
  15518. (HttpConnection): Replaced Socket with SocketHandle.
  15519. * src/PeerInitiateConnectionCommand.cc
  15520. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15521. (executeInternal): Removed the allocation of socket.
  15522. (prepareForNextPeer): Use PeerHandle.
  15523. * src/PeerMessage.h
  15524. (peer): Changed its type to PeerHandle.
  15525. (getPeer): Replaced Peer with PeerHandle.
  15526. (setPeer): Replaced Peer with PeerHandle.
  15527. * src/DownloadCommand.cc
  15528. (DownloadCommand): Replaced Socket with SocketHandle.
  15529. * src/FtpConnection.h
  15530. (socket): Changed its type to SocketHandle.
  15531. (FtpConnection): Replaced Socket with SocketHandle.
  15532. (sendPort); Replaced Socket with SocketHandle.
  15533. * src/FtpDowndloadCommand.h
  15534. (ctrlSocket): Changed its type to SocketHandle.
  15535. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15536. * src/HttpProxyRequestCommand.cc
  15537. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15538. * src/FtpTunnelRequestCommand.h
  15539. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15540. etc
  15541. * src/PeerChokeCommand.h
  15542. (setAllPeerChoked): Removed.
  15543. (setAllPeerResetDelta): Removed.
  15544. * src/PeerChokeCommand.cc
  15545. (setAllPeerChoked): Removed.
  15546. (ChokePeer): New function object.
  15547. (setAllPeerResetDelta): Removed.
  15548. (ResetDelta): New function object.
  15549. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15550. (execute): Show download speed when the local node is a seeder.
  15551. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15552. using STL.
  15553. * src/TrackerWatcherCommand.h
  15554. (MIN_PEERS): Removed.
  15555. * src/TorrentMan.cc
  15556. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15557. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15558. To fix the bug that .aria2 file is not saved if downloading is stopped
  15559. by the errors:it results that aria2 can not resume downloading:
  15560. * src/main.cc
  15561. (normalDownload): Added the call to save().
  15562. (main): Added the deletion of the elements in 'reserved'.
  15563. To fix log:
  15564. * src/PeerInteraction.cc
  15565. (receiveHandshake): Fixed log.
  15566. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15567. To improve download performance in BitTorrent:
  15568. * src/TorrentMan.cc
  15569. (getPeer): Check the number of connections. Return nullPeer if
  15570. it is greater than MAX_PEER_UPDATE.
  15571. This code was originally here, but was removed in 0.5.1.
  15572. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15573. To improve the conditional compilation:
  15574. * src/MultiDiskWriter.h:
  15575. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15576. * src/MultiDiskWriter.cc:
  15577. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15578. * src/Util.h:
  15579. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15580. Added ENABLE_BITTORRENT around computeFastSet().
  15581. * src/Util.cc:
  15582. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15583. Added ENABLE_BITTORRENT around computeFastSet().
  15584. * src/messageDigest.h:
  15585. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15586. * src/ShaVisitor.h:
  15587. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15588. * src/ShaVisitor.cc:
  15589. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15590. * src/main.cc:
  15591. Added ENABLE_BITTORRENT around includes and blocks related to
  15592. BitTorrent.
  15593. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15594. digest support is not available.
  15595. * src/AbstractDiskWriter.h:
  15596. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15597. * src/AbstractDiskWriter.cc:
  15598. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15599. * src/MetalinkEntry.cc
  15600. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15601. support is not available.
  15602. To add command-line options for Metalink:
  15603. * src/main.cc:
  15604. Added metalink-version, metalink-language, metalink-os,
  15605. follow-metalink.
  15606. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15607. * src/main.cc: Use these definition.
  15608. * Release 0.6.0
  15609. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15610. To add Metalink support(http/ftp only):
  15611. * src/AbstractCommand.h
  15612. (tryReserved): New function.
  15613. * src/AbstractCommand.cc
  15614. (execute): Call tryReserved().
  15615. (tryReserved): New function.
  15616. * src/Request.h
  15617. (Requests): New type definition.
  15618. * src/SegmentMan.h
  15619. (reserved): New variable.
  15620. * src/Util.h
  15621. (fileChecksum): New function.
  15622. (toUpper): New function.
  15623. (toLower): New function.
  15624. * src/Util.cc
  15625. (messageDigest.h): Included.
  15626. (trim): Trim \r\n\t.
  15627. (fileChecksum): New function.
  15628. (toUpper): New function.
  15629. (toLower): New function.
  15630. * src/main.cc
  15631. (normalDownload): New function.
  15632. (main): Added 2 command-line options: metalink-file,
  15633. metalink-connection. Their usage has not been written yet.
  15634. * src/MetalinkProcessor.h: New class.
  15635. * src/Xml2MetalinkProcessor.h: New class.
  15636. * src/Xml2MetalinkProcessor.cc: New class.
  15637. * src/MetalinkEntry.h: New class.
  15638. * src/MetalinkEntry.cc: New class.
  15639. * src/MetalinkResource.h: New class.
  15640. * src/MetalinkResource.cc: New class.
  15641. To add md5 message digest checking:
  15642. * src/messageDigest.h: Rewritten.
  15643. * src/MultiDiskWriter.cc: Updated according to the changes in
  15644. messageDigest.h.
  15645. * src/ShaVisitor.cc: Updated according to the changes in
  15646. messageDigest.h.
  15647. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15648. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15649. messageDigest.h.
  15650. To fix a bug that causes segfault when the payload length in peer
  15651. message is less than 0:
  15652. * src/PeerConnection.cc:
  15653. (receiveMessage): Fixed the bug.
  15654. * src/PeerMessageUtil.cc
  15655. (checkLength): Throw an exception if length is less than or equals to
  15656. 0.
  15657. To add new interfaces to Base64 encoding/decoding:
  15658. * src/Base64.h
  15659. (part_encode): Changed the method signature.
  15660. (encode): New function(overload).
  15661. (decode): New function(overload).
  15662. * src/Base64.cc
  15663. (part_encode): Rewritten.
  15664. (encode): Rewritten.
  15665. (encode): New function(overload).
  15666. To prevent a peer to download same piece if there is an error in
  15667. checksum:
  15668. * src/PieceMessage.cc
  15669. (receivedAction): Call peerInteraction->abortPiece().
  15670. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15671. To fix the bug that causes same have message is sent many times to
  15672. a single peer.
  15673. * src/Time.cc
  15674. (isNewer): Use Util::difftv().
  15675. * src/Util.cc
  15676. (difftv): Added a cast to (long long int).
  15677. * src/TorrentMan.cc
  15678. (advertisePiece): Use push_front.
  15679. (getAdvertisedPieceIndexes): A performance improvement was made.
  15680. To fix the bug that sends tracker requests without a sleep interval
  15681. when the number of connections is less than 15.
  15682. * src/TrackerWatcherCommand.cc
  15683. (execute): Now the number of connections is not a factor to decide
  15684. whether or not a tracker request should be sent or not.
  15685. * src/Time.h
  15686. (setTimeInSec): New function.
  15687. * src/Time.cc
  15688. (setTimeInSec): New function.
  15689. etc.
  15690. * src/ChokeMessage.cc
  15691. (receivedAction): Removed peer->snubbing = false
  15692. * src/PeerConnection.h
  15693. (receiveHandshake): Updated doc.
  15694. * src/TorrentMan.h
  15695. (getAdvertisedPieceIndexes): Updated the method signature.
  15696. * src/TorrentMan.cc
  15697. (getAdvertisedPieceIndexes): Updated the method signature.
  15698. * src/Time.h
  15699. (getTimeInMicros): Added a cast to (long long int).
  15700. (getTimeInMillis): Added a cast to (long long int).
  15701. * Release 0.5.2
  15702. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15703. To make a listening socket non-block:
  15704. * src/SocketCore.h
  15705. (setNonBlockingMode): New function.
  15706. * src/SocketCore.cc
  15707. (setNonBlockingMode): New function.
  15708. (beginListen): Added a call to setNonBlockingMode().
  15709. (acceptConnection): Call setNonBlockingMode().
  15710. (setBlockingMode): Updated.
  15711. To handle tracker's NAT-checking:
  15712. * src/PeerConnection.cc
  15713. (receiveHandshake): 'msg' param is filled with received data and
  15714. its length is assigned to 'length' param, even if all handshake
  15715. message is not yet received.
  15716. * src/PeerInteractionCommand.cc
  15717. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15718. a new peer connects to localhost.
  15719. A call to peerInteraction->sendHandshake() was removed because
  15720. it is called from peerInteraction->receiveHandshake(true).
  15721. * src/PeerInteraction.h
  15722. (quickReplied): New variable.
  15723. (receiveHandshake): Added an argument.
  15724. * src/PeerInteraction.cc
  15725. (PeerInteraction): Added the initialization of quickReplied.
  15726. (receiveHandshake): Send handshake message as soon as the info hash
  15727. in a handshake message from a peer is correct.
  15728. To change the random part of peer id and key parameter:
  15729. * src/TorrentMan.h
  15730. (key): New variable.
  15731. * src/TorrentMan.cc
  15732. (setupInternal1): Use Util::randomAlpha() to generate random part
  15733. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15734. key is also generated by Util::randomAlpha() and it is now 8 character
  15735. long.
  15736. * src/Util.h
  15737. (randomAlpha): New function.
  15738. * src/Util.cc
  15739. (randomAlpha): New function.
  15740. * src/TrackerWatcherCommand.cc
  15741. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15742. Added no_peer_id=1.
  15743. Set snubbing flag to false when a choke message is received from a
  15744. snubbed peer.
  15745. * src/ChokeMessage.cc
  15746. (receivedAction): Set snubbing flag to false.
  15747. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15748. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15749. * src/SimpleLogger.h (writeHeader): New function.
  15750. * src/SimpleLogger.cc (writeHeader): New function.
  15751. (writeLog): Fixed the bug that causes segfaults if exception message
  15752. contains an unescaped "%" character.
  15753. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15754. when a tracker request fails.
  15755. * src/Request.cc (parseUrl): Query string is now handled properly.
  15756. * Release 0.5.1
  15757. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15758. To add Time class which represents a specific instant in time and
  15759. its precision is microseconds. Time checking procedures were rewritten
  15760. using this object.
  15761. * src/Time.h: New class.
  15762. * src/Time.cc: New class.
  15763. * src/AbstractCommand.h
  15764. (updateCheckPoint): Removed.
  15765. (isTimeoutDetected): Removed.
  15766. (checkPoint): Changed the type to Time.
  15767. (timeout): New variable.
  15768. (setTimeout): New function.
  15769. * src/AbstractCommand.cc
  15770. (AbstractCommand): Removed the initialization of checkPoint.
  15771. Added the initialization of timeout.
  15772. (updateCheckPoint): Removed.
  15773. (isTimeoutDetected): Removed.
  15774. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15775. * src/PeerChokeCommand.h
  15776. (checkPoint): Changed the type to Time.
  15777. * src/PeerChokeCommand.cc
  15778. (PeerChokeCommand): Removed the initialization of checkPoint.
  15779. (execute): Rewritten using Time object.
  15780. * src/TrackerWatcherCommand.h
  15781. (checkPoint): Changed the type to Time.
  15782. * src/TrackerWatcherCommand.cc
  15783. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15784. (execute): Rewritten.
  15785. * src/ConsoleDownloadEngine.h
  15786. (cp): Changed the type to Time.
  15787. (startup): Changed the type to Time.
  15788. * src/ConsoleDownloadEngine.cc
  15789. (initStatistics): Use cp.reset(), startup.reset().
  15790. (calculateStatistics): Rewritten using Time object.
  15791. * src/PeerAbstractCommand.h
  15792. (updateCheckPoint): Removed.
  15793. (isTimeoutDetected): Removed.
  15794. (checkPoint): Changed the type to Time.
  15795. * src/PeerAbstractCommand.cc
  15796. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15797. (updateCheckPoint): Removed.
  15798. (isTimeoutDetected): Removed.
  15799. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15800. * src/PeerInteractionCommand.cc
  15801. (PeerInteractionCommand): Removed the initializations of struct
  15802. timeval variables.
  15803. * src/PeerInteractionCommand.h
  15804. (keepAliveCheckPoint): Changed the type to Time.
  15805. (chokeCheckPoint): Changed the type to Time.
  15806. (freqCheckPoint): Changed the type to Time.
  15807. (haveCheckTime): Changed the type to Time.
  15808. * src/PeerInteractionCommand.cc
  15809. (executeInternal): Rewritten using Time object.
  15810. (detectMessageFlooding): Rewritten using Time object.
  15811. (checkLongTimePeerChoking): Rewritten using Time object.
  15812. (sendKeepAlive): Rewritten using Time object.
  15813. (checkHave): Rewritten using Time object.
  15814. * src/SleepCommand.h
  15815. (checkPoint): Changed the type to Time.
  15816. * src/SleepCommand.cc
  15817. (SleepCommand): Removed the initialization of checkPoint.
  15818. (execute): Rewritten using Time object.
  15819. * src/TorrentAutoSaveCommand.h
  15820. (checkPoint): Changed the type to Time.
  15821. * src/TorrentAutoSaveCommand.cc
  15822. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15823. (execute): Rewritten.
  15824. * src/DownloadCommand.h
  15825. (sw): Changed the type to Time.
  15826. * src/DownloadCommand.cc
  15827. (DownloadCommand): Removed the initialization of sw.
  15828. (executeInternal): Rewritten.
  15829. * src/RequestSlot.h
  15830. (dispatchedTime): Changed the type to Time.
  15831. * src/RequestSlot.cc
  15832. (RequestSlot): Removed the call to setDispatchedTime().
  15833. (setDispatchedTime): Rewirtten.
  15834. (isTimeout): Rewritten.
  15835. (getLatencyInMillis): Rewritten.
  15836. * src/TorrentDownloadEngine.h
  15837. (cp): Changed the type to Time[2].
  15838. (startup): Changed the type to Time.
  15839. * src/TorrentDownloadEngine.cc
  15840. (initStatistics): Rewritten.
  15841. (calculateStatistics): Rewritten.
  15842. * src/DownloadEngine.cc
  15843. (run): Rewritten.
  15844. To detect all attempts to connect to the tracker are failed:
  15845. * src/AbstractCommand.cc
  15846. (execute): Increment e->segmentMan->errors if a command aborted.
  15847. * src/SegmentMan.h
  15848. (errors): New variable.
  15849. * src/SegmentMan.cc
  15850. (SegmentMan): Added the initialization of errors.
  15851. (init): Added the initialization of errors.
  15852. * src/TrackerWatcherCommand.cc
  15853. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15854. request was failed.
  15855. To handle snubbed peers:
  15856. * src/PeerChokeCommand.cc
  15857. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15858. (execute): Snubbed peers don't get unchoked.
  15859. * src/PeerInteraction.h
  15860. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15861. * src/PeerInteraction.cc
  15862. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15863. back the requested 16k block in 60 seconds.
  15864. * src/PieceMessage.cc
  15865. (receivedAction): A peer's snubbed state is cleard if it sends
  15866. the requested 16k block in 60 seconds.
  15867. * src/Peer.h
  15868. (snubbing): New variable.
  15869. * src/Peer.cc
  15870. (resetStatus): Added snubbed = false.
  15871. To fix the bug that causes have message is not sent:
  15872. * src/PeerInteractionCommand.cc
  15873. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15874. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15875. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15876. * src/TorrentMan.h
  15877. (HaveEntry): New class.
  15878. (advertisePiece): Rewritten.
  15879. (getAdvertisedPieceIndexes): Rewritten.
  15880. (Haves): Changed the type.
  15881. (getAdvertisedPieceIndexes): Added an argument.
  15882. Others:
  15883. * src/TorrentMan.h
  15884. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15885. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15886. * src/TorrentMan.cc
  15887. (getPeer): Don't check the number of connections here.
  15888. (setupInternal1): Changed peerId.
  15889. * src/PeerInteractionCommand.h
  15890. (KEEP_ALIVE_INTERVAL): New definition.
  15891. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15892. * src/main.cc
  15893. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15894. * src/DownloadEngine.h: Removed unnecessary header includes.
  15895. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15896. To fix the bug that causes segfaults if a tracker returns a zero-length
  15897. list as "peers":
  15898. * src/TrackerUpdateCommand.cc
  15899. (execute): Added a check to see wether the type of peers is Data*.
  15900. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15901. * Release 0.5.0
  15902. To fix compile issue with gcc3:
  15903. * src/CancelMessage.h
  15904. (ID): Renamed as ID_t
  15905. (ID_t): New enum.
  15906. * src/RejectMessage.h
  15907. (ID): Renamed as ID_t
  15908. (ID_t): New enum.
  15909. * src/SuggestPieceMessage.h
  15910. (ID): Renamed as ID_t
  15911. (ID_t): New enum.
  15912. * src/AllowedFastMessage.h
  15913. (ID): Renamed as ID_t
  15914. (ID_t): New enum.
  15915. * src/PortMessage.h
  15916. (ID): Renamed as ID_t
  15917. (ID_t): New enum.
  15918. * src/HaveNoneMessage.h
  15919. (ID): Renamed as ID_t
  15920. (ID_t): New enum.
  15921. * src/KeepAliveMessage.h
  15922. (ID): Renamed as ID_t
  15923. (ID_t): New enum.
  15924. * src/HaveAllMessage.h
  15925. (ID): Renamed as ID_t
  15926. (ID_t): New enum.
  15927. * src/UnchokeMessage.h
  15928. (ID): Renamed as ID_t
  15929. (ID_t): New enum.
  15930. * src/BitfieldMessage.h
  15931. (ID): Renamed as ID_t
  15932. (ID_t): New enum.
  15933. * src/PieceMessage.h
  15934. (ID): Renamed as ID_t
  15935. (ID_t): New enum.
  15936. * src/RequestMessage.h
  15937. (ID): Renamed as ID_t
  15938. (ID_t): New enum.
  15939. * src/NotInterestedMessage.h
  15940. (ID): Renamed as ID_t
  15941. (ID_t): New enum.
  15942. * src/ChokeMessage.h
  15943. (ID): Renamed as ID_t
  15944. (ID_t): New enum.
  15945. * src/InterestedMessage.h
  15946. (ID): Renamed as ID_t
  15947. (ID_t): New enum.
  15948. * src/HaveMessage.h
  15949. (ID): Renamed as ID_t
  15950. (ID_t): New enum.
  15951. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15952. * src/PeerAbstractCommand.h
  15953. (beforeSocketCheck): Removed.
  15954. * src/PeerAbstractCommand.cc
  15955. Modified in order to call executeInternal() even if socket check
  15956. and upload limit check fail.
  15957. * src/PeerInteractionCommand.h
  15958. (keepAlive): Removed.
  15959. (sendKeepAlive): New function.
  15960. (checkHave): New function.
  15961. (beforeSocketCheck): Removed.
  15962. * src/PeerInteractionCommand.cc
  15963. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15964. calls to checkHave() and sendKeepAlive().
  15965. (keepAlive): Renamed to sendKeepAlive().
  15966. (sendKeepAlive): New function.
  15967. (beforeSocketCheck): Removed.
  15968. (checkHave): New function.
  15969. * src/BitfieldMan.cc
  15970. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15971. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15972. 0.
  15973. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15974. * src/TorrentMan.h
  15975. (UsedPieces): Removed.
  15976. (Pieces): New type definition.
  15977. * src/Piece.h: Updated doc.
  15978. * src/Peer.h
  15979. (totalLength): Removed.
  15980. * src/Peer.cc
  15981. (updateLatency): Fixed the latency calculation.
  15982. * src/TorrentMan.cc
  15983. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15984. than or equal to MAX_PEER_LIST_SIZE.
  15985. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15986. then return false.
  15987. (deleteOldErrorPeers): Rewritten.
  15988. (deleteUsedPiece): Fixed the miss use of STL remove.
  15989. * src/PeerInteraction.h
  15990. (Pieces): Removed.
  15991. (deleteTimeoutRequestSlot): Removed.
  15992. (deleteCompletedRequestSlot): Removed.
  15993. (checkRequestSlot): New function.
  15994. * src/PeerInteraction.cc
  15995. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15996. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15997. (checkRequestSlot): New function.
  15998. * src/DownloadEngine.cc
  15999. (run): Clear activeSockets before calling waitData().
  16000. (waitData): Removed a call to activeSockets.clear().
  16001. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16002. To attempt to handle EINTR:
  16003. * src/SocketCore.cc
  16004. (isReadable): Added EINTR handling.
  16005. (isWritable): Added EINTR handling.
  16006. To improve the performance:
  16007. * src/AbstractCommand.cc
  16008. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16009. * src/PeerInteractionCommand.h
  16010. (receiveMessage): Renamed as receiveMessages().
  16011. (receiveMessages): New function.
  16012. * src/PeerInteractionCommand.cc
  16013. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16014. () function. detectMessageFlooding() is moved here.
  16015. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16016. (). The flooding detection for have message is comment out.
  16017. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16018. Util::difftv().
  16019. (receiveMessage): Renamed as receiveMessages().
  16020. (receiveMessages): New function.
  16021. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16022. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16023. * src/SleepCommand.cc
  16024. (execute): Use Util::difftvsec() instead of Util::difftv().
  16025. * src/BitfieldMan.h
  16026. (getNthBitIndex): New function.
  16027. (hasMissingPiece): New function.
  16028. (getAllMissingIndexes): New function.
  16029. * src/BitfieldMan.cc
  16030. (countSetBit): Rewritten.
  16031. (getNthBitIndex): New function.
  16032. (getMissingIndexRandomly): Rewritten.
  16033. (hasMissingPiece): New function.
  16034. (getAllMissingIndexes): New function.
  16035. * src/TorrentMan.cc
  16036. (hasMissingPiece): New function.
  16037. (deleteUsedPiece): Rewritten using STL.
  16038. * src/PeerInteraction.cc
  16039. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16040. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16041. (addRequests): Updated the number of pending requests.
  16042. * src/PeerAbstractCommand.cc
  16043. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16044. (execute): Returns true if TorrentMan::isHalt() is true.
  16045. Corrected the condition of upload limit checking.
  16046. * src/Util.h
  16047. (countBit): New function.
  16048. * src/Util.cc
  16049. (nbits): New variable.
  16050. (countBit): New function.
  16051. * src/DownloadEngine.h
  16052. (SockCmdMap): New type definition.
  16053. (waitData): Added an argument.
  16054. (addSocket): Added an argument.
  16055. (addSocketForReadCheck): Added an argument.
  16056. (addSocketForWriteCheck): Added an argument.
  16057. * src/DownloadEngine.cc
  16058. (run): Executes only commands whose sockets are ready to read or write.
  16059. All commands are executed in every 1 second.
  16060. (waitData): Calls select() again if it returned
  16061. EINTR.
  16062. (addSocket): Saves socket and command object pair to the map.
  16063. (deleteSocket): Deletes socket and command object pair from the map.
  16064. (addSocketForReadCheck): Added an argument.
  16065. (addSocketForWriteCheck): Added an argument.
  16066. * src/DownloadCommand.cc
  16067. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16068. To send "event=stopped" to the tracker when the application finishes:
  16069. * src/PeerChokeCommand.h
  16070. (checkPoint): New variable.
  16071. * src/PeerChokeCommand.cc
  16072. (PeerChokeCommand): Added the initialization of checkPoint.
  16073. (execute): The interval check is now done by checkPoint, not
  16074. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16075. * src/TorrentMan.h
  16076. (halt): New function.
  16077. (hasMissingPiece): New function.
  16078. (isHalt): New function.
  16079. (setHalt): New function.
  16080. * src/TorrentMan.cc
  16081. (TorrentMan): Added the initialization of halt.
  16082. * src/TorrentAutoSaveCommand.h
  16083. (checkPoint): New variable.
  16084. * src/PeerListenCommand.cc
  16085. (execute): Returns true if TorrentMan::isHalt() is true.
  16086. * src/main.cc
  16087. (setSignalHander): Added flags argument.
  16088. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16089. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16090. Removed printDownloadAbortMessage() after torrent downloading loop.
  16091. * src/TorrentAutoSaveCommand.cc
  16092. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16093. (execute): Returns true if TorrentMan::isHalt() is true.
  16094. The interval check is now done by checkPoint, not SleepCommand.
  16095. * src/TrackerWatcherCommand.cc
  16096. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16097. event=stopped.
  16098. * src/TrackerUpdateCommand.cc
  16099. (prepareForRetry): Do not use SleepCommand here.
  16100. (execute): Returns true if TorrentMan::isHalt() is true.
  16101. Others:
  16102. * src/TorrentMan.cc
  16103. (getMissingPieceIndex): Updated log message.
  16104. * src/PeerInteraction.cc
  16105. (createPeerMessag): Updated log message.
  16106. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16107. To add the ability to download several pieces in mix in a command and
  16108. increase the number of request slots according to request-cancel
  16109. latency:
  16110. * src/PeerInteractionCommand.cc
  16111. (executeInternal): The number of messages to be received at a time
  16112. is increased from 10 to 50.
  16113. * src/LogFactory
  16114. (getInstance): Added NullLogger.
  16115. * src/NullLogger.h: New class.
  16116. * src/BitfieldMan.h
  16117. (getMissingIndex): New function.
  16118. * src/BitfieldMan.cc
  16119. (getMissingIndex): New function.
  16120. * src/TorrentMan.h
  16121. (checkOutPiece): New function.
  16122. (getMissingPieceIndex): New function.
  16123. (getMissingFastPieceIndex): New function.
  16124. (getMissingFastPiece): New function.
  16125. * src/TorrentMan.cc
  16126. (updatePiece): Rewritten using STL.
  16127. (syncPiece): Rewritten using STL.
  16128. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16129. checkOutPiece().
  16130. (getMissingPieceIndex): New function.
  16131. (getMissingFastPieceIndex): New function.
  16132. (getMissingFastPiece): New function.
  16133. (checkOutPiece): New function.
  16134. * src/PeerInteraction.h
  16135. (Pieces): New type definition.
  16136. (piece): Removed.
  16137. (pieces): New variable.
  16138. (getNewPieceAndSendInterest): Added the "piece" argument.
  16139. (abortPiece): Added the "piece" argument.
  16140. (abortAllPieces): New function.
  16141. (isInRequestSlot): New function.
  16142. (hasDownloadPiece): Added the "index" argument.
  16143. (setDownloadPiece): Removed.
  16144. (getDownloadPiece): Added the "index" argument.
  16145. (updatePiece): New function.
  16146. (createRequestMessage): Added the "index" argument.
  16147. * src/PeerInteraction.cc
  16148. (onChoked): Rewritten.
  16149. (abortPiece): Rewirtten.
  16150. (abortAllPieces): New function.
  16151. (deleteTimeoutRequestSlot): Rewritten.
  16152. Clarified code a little bit.
  16153. (deleteCompletedRequestSlot): Rewritten.
  16154. (isInRequestSlot): New function.
  16155. (syncPiece): Rewritten.
  16156. (updatePiece): New function.
  16157. (getNewPieceAndSendInterest): Rewritten.
  16158. (addRequests): Rewritten.
  16159. (getDownloadPiece): Rewritten.
  16160. (hasDownloadPiece): Rewritten.
  16161. (createRequestMessage): Added the "index" argument.
  16162. * src/common.h
  16163. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16164. (DIV_FLOOR): New definition.
  16165. * src/PieceMessage.cc
  16166. (receivedAction): Update request-piece latency here.
  16167. * src/RequestSlot.h
  16168. (getLatencyInMillis): New function.
  16169. * src/RequestSlot.cc
  16170. (isTimeout): Rewritten using getLatencyInMillis.
  16171. (getLatencyInMillis): New function.
  16172. * src/Piece.h
  16173. (operator==): New function.
  16174. (getMissingBlockIndex): New function.
  16175. * src/Piece.cc
  16176. (operator==): New function.
  16177. (getMissingBlockIndex): New function.
  16178. * src/Peer.h
  16179. (DEFAULT_LATENCY): New definition.
  16180. (latency): New variable.
  16181. (updateLatency): New function.
  16182. (getLatency): New function.
  16183. * src/Peer.cc
  16184. (resetStatus): Reset latecy.
  16185. (updateLatency): New function.
  16186. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16187. * src/SocketCore.cc
  16188. (isReadable): Added secure to the condition.
  16189. * src/HttpConnection.cc
  16190. (receiveResponse): Fixed a bug that causes no response header
  16191. exception.
  16192. * src/Peer.h
  16193. (getFastSet): Fixed the return value type.
  16194. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16195. To remove a wait from download loop:
  16196. * src/DownloadEngine.cc
  16197. (run): Comment out shortSleep.
  16198. To rewrite the message handling:
  16199. * src/SimplePeerMessage.h: New class.
  16200. * src/SimplePeerMessage.cc: New class.
  16201. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16202. (msg): New variable.
  16203. (create): New function.
  16204. (send): Removed.
  16205. (getMessage): New function.
  16206. (getMessageLength): New function.
  16207. * src/CancelMessage.cc
  16208. (create): New function.
  16209. (receivedAction): Replaced deleteRequestMessageInQueue with
  16210. rejectPieceMessageInQueue.
  16211. (send): Removed.
  16212. (getMessage): New function.
  16213. (getMessageLength): New function.
  16214. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16215. (msg): New variable.
  16216. (msgLength): New variable.
  16217. (~BitfieldMessage): Deleted msg.
  16218. (send): Removed.
  16219. (getMessage): New function.
  16220. (getMessageLength): New function.
  16221. * src/BitfieldMessage.cc
  16222. (create): New function.
  16223. (send): Removed.
  16224. (getMessage): New function.
  16225. (getMessageLength): New function.
  16226. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16227. (msg): New variable.
  16228. (sendPredicate): New function.
  16229. (onSendComplete): New function.
  16230. (send): Removed.
  16231. (getMessage): New function.
  16232. (getMessageLength): New function.
  16233. (create): New function.
  16234. * src/ChokeMessage.cc
  16235. (create): New function.
  16236. (send): Removed.
  16237. (sendPredicate): New function.
  16238. (getMessage): New function.
  16239. (getMessageLength): New function.
  16240. (onSendComplete): New function.
  16241. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16242. (msg): New variable.
  16243. (send): Removed.
  16244. (getMessage): New function.
  16245. (getMessageLength): New function.
  16246. * src/KeepAliveMessage.cc
  16247. (send): Removed.
  16248. (getMessage): New function.
  16249. (getMessageLength): New function.
  16250. * src/PortMessage.h
  16251. (create): New function.
  16252. (receivedAction): Updated log message.
  16253. * src/PortMessage.cc: New file.
  16254. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16255. (msg): New variable.
  16256. (sendPredicate): New function.
  16257. (onSendComplete): New function.
  16258. (create): New function.
  16259. (send): Removed.
  16260. (getMessage): New function.
  16261. (getMessageLength): New function.
  16262. * src/UnchokeMessage.cc
  16263. (create): New function.
  16264. (send): Removed.
  16265. (sendPredicate): New function.
  16266. (getMessage): New function.
  16267. (getMessageLength): New function.
  16268. (onSendComplete): New function.
  16269. * src/PieceMessage.h
  16270. (leftPieceDataLength): Removed.
  16271. (leftDataLength): New variable.
  16272. (headerSend): New variable.
  16273. (pendingCount): New variable.
  16274. (msgHeader): New variable.
  16275. (sendPieceData): New function.
  16276. (incrementPendingCount): New function.
  16277. (isPendingCountMax): New function.
  16278. (create): New function.
  16279. (getMessageHeader): New function.
  16280. (getMessageHeaderLength): New function.
  16281. * src/PieceMessage.cc
  16282. (create): New function.
  16283. (getMessageHeader): New function.
  16284. (getMessageHeaderLength): New function.
  16285. (send): Rewritten.
  16286. (sendPieceData): New function.
  16287. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16288. (msg): New variable.
  16289. (create): New function.
  16290. (getMessage): New function.
  16291. (getMessageLength): New function.
  16292. * src/HaveMessage.cc
  16293. (create): New function.
  16294. (send): Removed.
  16295. (sendPieceData): New function.
  16296. (getMessage): New function.
  16297. (getMessageLength): New function.
  16298. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16299. (msg): New variable.
  16300. (create): New function.
  16301. (send): Removed.
  16302. (getMessage): New function.
  16303. (getMessageLength): New function.
  16304. * src/RequestMessage.cc
  16305. (create): New function.
  16306. (receivedAction): Added the handling of fast extension.
  16307. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16308. (send): Removed.
  16309. (getMessage): New function.
  16310. (getMessageLength): New function.
  16311. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16312. (msg): New variable.
  16313. (sendPredicate): New function.
  16314. (onSendComplete): New function.
  16315. (create): New function.
  16316. (getMessage): New function.
  16317. (getMessageLength): New function.
  16318. * src/InterestedMessage.cc
  16319. (create): New function.
  16320. (send): Removed.
  16321. (sendPieceData): New function.
  16322. (getMessage): New function.
  16323. (getMessageLength): New function.
  16324. (onSendComplete): New function.
  16325. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16326. (msg): New variable.
  16327. (sendPieceData): New function.
  16328. (onSendComplete): New function.
  16329. (create): New function.
  16330. (send): Removed.
  16331. (getMessage): New function.
  16332. (getMessageLength): New function.
  16333. * src/NotInterestedMessage.cc
  16334. (create): New function.
  16335. (send): Removed.
  16336. (sendPredicate): New function.
  16337. (getMessage): New function.
  16338. (getMessageLength): New function.
  16339. (onSendComplete): New function.
  16340. * src/AllowedFastMessage.h: New class.
  16341. * src/AllowedFastMessage.cc: New class.
  16342. * src/RejectMessage.h: New class.
  16343. * src/RejectMessage.cc: New class.
  16344. * src/SuggestPieceMessage.h: New class.
  16345. * src/SuggestPieceMessage.cc: New class.
  16346. * src/HaveAllMessage.h: New class.
  16347. * src/HaveAllMessage.cc: New class.
  16348. * src/HaveNoneMessage.h: New class.
  16349. * src/HaveNoneMessage.cc: New class.
  16350. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16351. (msg): New variable.
  16352. (reserved): New variable.
  16353. (create): New function.
  16354. (getId): New function.
  16355. (receivedAction): New function.
  16356. (getMessage): New function.
  16357. (getMessageLength): New function.
  16358. (isFastExtensionSupported): New function.
  16359. * src/HandshakeMessage.cc
  16360. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16361. (create): New function.
  16362. (getMessage): New function.
  16363. (getMessageLength): New function.
  16364. (toString): Added the output of reserved field.
  16365. (check): Added const qualifier.
  16366. (isFastExtensionSupported): New function.
  16367. * src/PeerMessageUtil.h
  16368. (createChokeMessage): Removed.
  16369. (createUnchokeMessage): Removed.
  16370. (createInterestedMessage): Removed.
  16371. (createNotInterestedMessage): Removed.
  16372. (createHaveMessage): Removed.
  16373. (createBitfieldMessage): Removed.
  16374. (createRequestMessage): Removed.
  16375. (createCancelMessage): Removed.
  16376. (createPieceMessage): Removed.
  16377. (createPortMessage): Removed.
  16378. (createChokeMessage): Removed.
  16379. (createUnchokeMessage): Removed.
  16380. (createInterestedMessage): Removed.
  16381. (createNotInterestedMessage): Removed.
  16382. (createHaveMessage): Removed.
  16383. (createBitfieldMessage): Removed.
  16384. (createRequestMessage): Removed.
  16385. (createCancelMessage): Removed.
  16386. (createPieceMessage): Removed.
  16387. (createKeepAliveMessage): Removed.
  16388. (createHandshakeMessage): Removed.
  16389. (setIntParam): New function.
  16390. (createPeerMessageString): New function.
  16391. * src/PeerMessageUtil.cc
  16392. (createChokeMessage): Removed.
  16393. (createUnchokeMessage): Removed.
  16394. (createInterestedMessage): Removed.
  16395. (createNotInterestedMessage): Removed.
  16396. (createHaveMessage): Removed.
  16397. (createBitfieldMessage): Removed.
  16398. (createRequestMessage): Removed.
  16399. (createCancelMessage): Removed.
  16400. (createPieceMessage): Removed.
  16401. (createPortMessage): Removed.
  16402. (createRequestMessage): Removed.
  16403. (createCancelMessage): Removed.
  16404. (createPieceMessage): Removed.
  16405. (createHaveMessage): Removed.
  16406. (createChokeMessage): Removed.
  16407. (createUnchokeMessage): Removed.
  16408. (createInterestedMessage): Removed.
  16409. (createNotInterestedMessage): Removed.
  16410. (createBitfieldMessage): Removed.
  16411. (createKeepAliveMessage): Removed.
  16412. (createHandshakeMessage): Removed.
  16413. (setIntParam): New function.
  16414. (createPeerMessageString): New function.
  16415. * src/PeerConnection.h
  16416. (peer): Removed.
  16417. (torrentMan): Removed.
  16418. (createNLengthMessage): Removed.
  16419. (setIntParam): Removed.
  16420. (writeOutgoingMessageLog): Removed all overloaded functions.
  16421. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16422. (sendMessage): New function.
  16423. (sendHandshake): Removed.
  16424. (sendKeepAlive): Removed.
  16425. (sendChoke): Removed.
  16426. (sendUnchoke): Removed.
  16427. (sendInterested): Removed.
  16428. (sendNotInterested): Removed.
  16429. (sendHave): Removed.
  16430. (sendBitfield): Removed.
  16431. (sendRequest): Removed.
  16432. (sendPiece): Removed.
  16433. (sendPieceHeader): Removed.
  16434. (sendPieceData): Removed.
  16435. (sendCancel): Removed.
  16436. (getPeer): Removed.
  16437. * src/PeerConnection.cc
  16438. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16439. (sendHandshake): Removed.
  16440. (sendKeepAlive): Removed.
  16441. (createNLengthMessage): Removed.
  16442. (setIntParam): Removed.
  16443. (writeOutgoingMessageLog): Removed all overloaded functions.
  16444. (sendChoke): Removed.
  16445. (sendUnchoke): Removed.
  16446. (sendInterested): Removed.
  16447. (sendNotInterested): Removed.
  16448. (sendHave): Removed.
  16449. (sendBitfield): Removed.
  16450. (sendRequest): Removed.
  16451. (sendPiece): Removed.
  16452. (sendPieceHeader): Removed.
  16453. (sendPieceData): Removed.
  16454. (sendMessage): New function.
  16455. (sendCancel): Removed.
  16456. * src/PeerInteractionCommand.cc
  16457. (PeerInteractionCommand): Call setUploadLimit.
  16458. (executeInternal): Call setUploadLimit.
  16459. Added the handling of "inProgress" state of handshake message.
  16460. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16461. sendNow().
  16462. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16463. sendNow().
  16464. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16465. * src/TorrentMan.h
  16466. (PEER_ID_LENGTH): New definition.
  16467. (hasAllPieces): New function.
  16468. * src/TorrentMan.cc
  16469. (getMissingPiece): Added the handling of fast extension.
  16470. (cancelPiece): Call updatePiece().
  16471. (hasAllPieces): New function.
  16472. * src/PeerInteraction.h
  16473. (fastSet): New variable.
  16474. (getNewPieceAndSendInterest): Changed the return type to void.
  16475. (send): Renamed as sendMessages.
  16476. (deleteAllRequestSlot): Removed.
  16477. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16478. (cancelAllRequest): Removed all overloaded functions.
  16479. (deleteAllRequestSlot): Removed.
  16480. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16481. (rejectPieceMessageInQueue): New function.
  16482. (rejectAllPieceMessageInQueue): New function.
  16483. (onChoked): New function.
  16484. (isSendingMessageInProgress): New function.
  16485. (getCorrespondingRequestSlot): Changed its arguments.
  16486. (isInFastSet): New function.
  16487. (addFastSetIndex): New function.
  16488. (addRequests): New function.
  16489. (sendNow): Removed.
  16490. (trySendNow): Removed.
  16491. (sendBitfield): New function.
  16492. (sendAllowdFast): New function.
  16493. (createHaveAllMessage): New function.
  16494. (createHaveNoneMessage): New function.
  16495. (createRejectMessage): New function.
  16496. (createAllowedFastMessage): New function.
  16497. * src/PeerInteraction.cc
  16498. (send): Renamed as sendMessages.
  16499. (sendMessages): New function.
  16500. (MsgPushBack): New class.
  16501. (isSendingMessageInProgress): New function.
  16502. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16503. (rejectAllPieceMessageInQueue): New function.
  16504. Added the handling of fast extension.
  16505. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16506. (rejectPieceMessageInQueue): New function.
  16507. Added the handling of fast extension.
  16508. (deleteRequestSlot): Replaced for loop with std::find.
  16509. (onChoked): New function.
  16510. (deleteAllRequestSlot): Removed.
  16511. (abortPiece): Rewirtten.
  16512. (deleteTimeoutRequestSlot): Updated log messages.
  16513. (getCorrespondingRequestSlot): Changed its arguments.
  16514. (cancelAllRequest): Removed all overloaded functions.
  16515. (receiveHandshake): Added the check to see whether an incoming peer
  16516. supports fast extension.
  16517. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16518. PeerMessageUtil.
  16519. (createPeerMessage): Use create() of each message class instead of
  16520. PeerMessageUtil.
  16521. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16522. AllowedFastMessage were added.
  16523. (getNewPieceAndSendInterest): Changed its return value type to void.
  16524. Added the handling of fast extension.
  16525. (addRequests): New function.
  16526. (sendNow): Removed.
  16527. (sendHandshake): Rewritten.
  16528. (trySendNow): Removed.
  16529. (sendBitfield): New function.
  16530. (sendAllowdFast): New function.
  16531. (isInFastSet): New function.
  16532. (addFastSetIndex): New function.
  16533. (createRequestMessage): Use RequestMessage::create instead of
  16534. PeerMessageUtil.
  16535. (createCancelMessage): Use CancelMessage::create instead of
  16536. PeerMessageUtil.
  16537. (createPieceMessage): Use PieceMessage::create instead of
  16538. PeerMessageUtil.
  16539. (createHaveMessage): Use HaveMessage::create instead of
  16540. PeerMessageUtil.
  16541. (createChokeMessage): Use ChokeMessage::create instead of
  16542. PeerMessageUtil.
  16543. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16544. PeerMessageUtil.
  16545. (createInterestedMessage): Use InterestedMessage::create instead of
  16546. PeerMessageUtil.
  16547. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16548. of PeerMessageUtil.
  16549. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16550. PeerMessageUtil.
  16551. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16552. PeerMessageUtil.
  16553. (createHaveAllMessage): New function.
  16554. (createHaveNoneMessage): New function.
  16555. (createRejectMessage): New function.
  16556. (createAllowedFastMessage: New function.
  16557. * src/Util.h
  16558. (sha1Sum): New function.
  16559. (computeFastSet): New function.
  16560. * src/Util.cc
  16561. (sha1Sum): New function.
  16562. (computeFastSet): New function.
  16563. * src/Peer.h
  16564. (fastExtensionEnabled): New variable.
  16565. (fastSet): New variable.
  16566. (setAllBitfield): New function.
  16567. (setFastExtensionEnabled): New function.
  16568. (isFastExtensionEnabled): New function.
  16569. (addFastSetIndex): New function.
  16570. (getFastSet): New function.
  16571. (isInFastSet): New function.
  16572. (countFastSet): New function.
  16573. * src/Peer.cc
  16574. (isInFastSet): New function.
  16575. (addFastSetIndex): New function.
  16576. (setAllBitfield): New function.
  16577. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16578. sockets.
  16579. * src/PeerAbstractCommand.cc
  16580. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16581. and uploadLimit.
  16582. (execute): Changed the procedure of checking sockets. The upload speed
  16583. checking were added.
  16584. (setUploadLimit): New function.
  16585. (setUploadLimitCheck): New function.
  16586. * src/PeerAbstractCommand.h
  16587. (setUploadLimit): New function.
  16588. (setUploadLimitCheck): New function.
  16589. (uploadLimit): New variable.
  16590. (uploadLimitCheck): New variable.
  16591. To contact a tracker regularly:
  16592. * src/TrackerWatcherCommand.h (interval): New variable.
  16593. (checkPoint): New variable.
  16594. (TrackerWatcherCommand): Added interval argument.
  16595. * src/TrackerWatcherCommand.cc
  16596. (TrackerWatcherCommand): Initialized checkPoint.
  16597. (execute): Now a tracker is contacted in every specified period.
  16598. If peer list is not needed, send request with numwant=0.
  16599. * src/TrackerUpdateCommand.cc
  16600. (execute): Updated log messages.
  16601. * src/DownloadEngine.cc
  16602. (~DownloadEngine): Removed two asserts.
  16603. (waitData): Uncommented wfds. May be a bug fix.
  16604. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16605. * src/PeerInteractionCommand.h
  16606. (checkInactiveConnection): Removed.
  16607. * src/PeerInteractionCommand.cc
  16608. (executeInternal): Removed following function calls:
  16609. detectMessageFlooding(), checkLongTimePeerChoking and
  16610. checkInactiveConnection().
  16611. (checkInactiveConnection): Removed.
  16612. (detectMessageFlooding): Removed function call to
  16613. checkInactiveConnection().
  16614. * src/PeerMessageUtil.h
  16615. (createChokeMessage): New function. Overload.
  16616. (createUnchokeMessage): New function. Overload.
  16617. (createInterestedMessage): New function. Overload.
  16618. (createNotInterestedMessage): New function. Overload.
  16619. (createHaveMessage): New function. Overload.
  16620. (createBitfieldMessage): New function. Overload.
  16621. (createRequestMessage): New function. Overload.
  16622. (createCancelMessage): New function. Overload.
  16623. (createPieceMessage): New function. Overload.
  16624. (createKeepAliveMessage): New function. Overload.
  16625. * src/PeerMessageUtil.cc
  16626. (createChokeMessage): New function. Overload.
  16627. (createUnchokeMessage): New function. Overload.
  16628. (createInterestedMessage): New function. Overload.
  16629. (createNotInterestedMessage): New function. Overload.
  16630. (createHaveMessage): New function. Overload.
  16631. (createBitfieldMessage): New function. Overload.
  16632. (createRequestMessage): New function. Overload.
  16633. (createCancelMessage): New function. Overload.
  16634. (createPieceMessage): New function. Overload.
  16635. (createKeepAliveMessage): New function. Overload.
  16636. * src/SendMessageQueue.cc
  16637. (createRequestMessage): Use PeerMessageUtil.
  16638. (createCancelMessage): Use PeerMessageUtil.
  16639. (createPieceMessage): Use PeerMessageUtil.
  16640. (createHaveMessage): Use PeerMessageUtil.
  16641. (createChokeMessage): Use PeerMessageUtil.
  16642. (createUnchokeMessage): Use PeerMessageUtil.
  16643. (createInterestedMessage): Use PeerMessageUtil.
  16644. (createNotInterestedMessage): Use PeerMessageUtil.
  16645. (createBitfieldMessage): Use PeerMessageUtil.
  16646. (createKeepAliveMessage): Use PeerMessageUtil.
  16647. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16648. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16649. * src/PeerInteraction.h: New class.
  16650. * src/PeerInteraction.cc: New class.
  16651. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16652. Each peer message has its own class.
  16653. * src/PendingMessages.h: Removed.
  16654. * src/PendingMessages.cc: Removed. The sending process was moved to
  16655. each message class.
  16656. * src/RequestSlotMan.h: Removed.
  16657. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16658. SendMessageQueue.
  16659. * src/RequestMessage.h: New class.
  16660. * src/RequestMessage.cc: New class.
  16661. * src/CancelMessage.h: New class.
  16662. * src/CancelMessage.cc: New class.
  16663. * src/BitfieldMessage.h: New class.
  16664. * src/BitfieldMessage.cc: New class.
  16665. * src/ChokeMessage.h: New class.
  16666. * src/ChokeMessage.cc: New class.
  16667. * src/KeepAliveMessage.h: New class.
  16668. * src/KeepAliveMessage.cc: New class.
  16669. * src/PortMessage.h: New class.
  16670. * src/UnchokeMessage.h: New class.
  16671. * src/UnchokeMessage.cc: New class.
  16672. * src/PieceMessage.h: New class.
  16673. * src/PieceMessage.cc: New class.
  16674. * src/HaveMessage.h: New class.
  16675. * src/HaveMessage.cc: New class.
  16676. * src/BitfieldMessage.h: New class.
  16677. * src/BitfieldMessage.cc: New class.
  16678. * src/NotInterestedMessage.h: New class.
  16679. * src/NotInterestedMessage.cc: New class.
  16680. * src/InterestedMessage.h: New class.
  16681. * src/InterestedMessage.cc: New class.
  16682. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16683. (getSendMessageQueue): New function.
  16684. (setSendMessageQueue): New function.
  16685. * src/HandshakeMessage.cc: New class.
  16686. * src/PeerConnection.h (receiveMessage): Changed return value and
  16687. arguments.
  16688. (receiveHandshake): Changed return value and arguments.
  16689. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16690. here.
  16691. (receiveHandshake): Do not create handshake class here.
  16692. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16693. (piece): Removed.
  16694. (syncPiece): Removed.
  16695. (sendInterest): Removed.
  16696. (sendMessages): Removed.
  16697. (createRequestPendingMessage): Removed.
  16698. (checkPieceHash): Removed.
  16699. (erasePieceOnDisk): Removed.
  16700. (getNewPieceAndSendInterest): Removed.
  16701. (onGotNewPice): Removed.
  16702. (onGotWrongPiece): Removed.
  16703. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16704. Removed peerConnection, piece.
  16705. (~PeerInteractionCommand): Removed peerConnection.
  16706. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16707. (syncPiece): Moved to SendMessageQueue.
  16708. (decideChoking): Removed PendingMessage.
  16709. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16710. The action after receiving peer message was moved to each message
  16711. class.
  16712. (onGotNewPice): Moved to SendMessageQueue.
  16713. (onGotWrongPiece): Moved to SendMessageQueue.
  16714. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16715. (sendInterest): Moved to SendMessageQueue.
  16716. (createRequestPendingMessage): Removed.
  16717. (sendMessages): Moved to SendMessageQueue.
  16718. (onAbort): Use SendMessageQueue::abortPiece()
  16719. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16720. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16721. (checkPieceHash): Moved to SendMessageQueue.
  16722. (erasePieceOnDisk): Moved to SendMessageQueue.
  16723. * src/PeerMessageUtil.h
  16724. (createBitfieldMessage): Removed.
  16725. (createHaveMessage): Changed return value and arguments.
  16726. (createBitfieldMessage): Changed return value and arguments.
  16727. (createRequestCancelMessage): Removed.
  16728. (createPieceMessage): Changed return value and arguments.
  16729. (getShortIntParam): New function.
  16730. (checkIndex): Changed arguments.
  16731. (checkBegin): Changed arguments.
  16732. (checkLength): Changed arguments.
  16733. (checkPieceOffset): Removed.
  16734. (checkRange): New function.
  16735. (checkBitfield): Changed arguments.
  16736. (createPeerMessage): Removed.
  16737. (checkIntegrity): Removed.
  16738. (createHandshakeMessage): Changed arguments.
  16739. (createChokeMessage): New function.
  16740. (createUnchokeMessage): New function.
  16741. (createInterestedMessage): New function.
  16742. (createNotInterestedMessage): New function.
  16743. (createRequestMessage): New function.
  16744. (createCancelMessage): New function.
  16745. (createPortMessage): New function.
  16746. * src/PeerMessageUtil.cc
  16747. (createBitfieldMessage): Removed.
  16748. (createHaveMessage): Changed return value and arguments.
  16749. (createBitfieldMessage): Changed return value and arguments.
  16750. (createRequestCancelMessage): Removed.
  16751. (createPieceMessage): Changed return value and arguments.
  16752. (getShortIntParam): New function.
  16753. (checkIndex): Changed arguments.
  16754. (checkBegin): Changed arguments.
  16755. (checkLength): Changed arguments.
  16756. (checkPieceOffset): Removed.
  16757. (checkRange): New function.
  16758. (checkBitfield): Changed arguments.
  16759. (createPeerMessage): Removed.
  16760. (checkIntegrity): Removed.
  16761. (createHandshakeMessage): Changed arguments.
  16762. (createChokeMessage): New function.
  16763. (createUnchokeMessage): New function.
  16764. (createInterestedMessage): New function.
  16765. (createNotInterestedMessage): New function.
  16766. (createRequestMessage): New function.
  16767. (createCancelMessage): New function.
  16768. (createPortMessage): New function.
  16769. * src/PeerMessage.h
  16770. (id): Removed.
  16771. (index): Removed.
  16772. (begin): Removed.
  16773. (length): Removed.
  16774. (bitfield): Removed.
  16775. (bitfieldLength): Removed.
  16776. (block): Removed.
  16777. (blockLength): Removed.
  16778. (inProgress): New variable.
  16779. (cuid): New variable.
  16780. (peer): New variable.
  16781. (sendMessageQueue): New variable.
  16782. (logger): New variable.
  16783. (setBitfield): Removed.
  16784. (getBitfield): Removed.
  16785. (setBlock): Removed.
  16786. (getBlock): Removed.
  16787. (getBitfieldLength): Removed.
  16788. (getBlockLength): Removed.
  16789. (isInProgress): New function.
  16790. (toString): Made pure virtual.
  16791. (check): New function.
  16792. (send): New function.
  16793. (receivedAction): New function.
  16794. (getId): Made pure virtual.
  16795. (setId): Removed.
  16796. (getIndex): Removed.
  16797. (setIndex): Removed.
  16798. (getBegin): Removed.
  16799. (setBegin): Removed.
  16800. (getLength): Removed.
  16801. (setLength): Removed.
  16802. (getCuid): New function.
  16803. (setCuid): New function.
  16804. (getPeer): New function.
  16805. (setPeer): New function.
  16806. (getSendMessageQueue): New function.
  16807. (setSendMessageQueue): New function.
  16808. (ID): Removed.
  16809. * src/PeerMessage.cc
  16810. (setBitfield): Removed.
  16811. (setBlock): Removed.
  16812. (toString): Removed.
  16813. * src/TorrentMan.h
  16814. (getPieceLength): New function.
  16815. (getPieceLength): New function.
  16816. * src/SendMessageQueue.h
  16817. (REQUEST_TIME_OUT): New definition.
  16818. (RequestSlots): New definition.
  16819. (MessageQueue): New definition.
  16820. (requestSlotMan): Removed.
  16821. (pendingMessages): Removed.
  16822. (requestSlots): New variable.
  16823. (messageQueue): New variable.
  16824. (torrentMan): New variable.
  16825. (peerConnection): New variable.
  16826. (peer): New variable.
  16827. (piece): New variable.
  16828. (getNewPieceAndSendInterest): New function.
  16829. (createPeerMessage): New function.
  16830. (createHandshakeMessage): New function.
  16831. (send): Made private.
  16832. (setPeerMessageCommonProperty): New function.
  16833. (deleteAllRequestSlot): New function.
  16834. (deleteRequestMessageInQueue): New function.
  16835. (cancelAllRequest): Made private.
  16836. (cancelAllRequest): Made private.
  16837. (countRequestSlot): Made private.
  16838. (addPendingMessage): Removed.
  16839. (deletePendingPieceMessage): Removed.
  16840. (deletePendingRequestMessage): Removed.
  16841. (addMessage): New function.
  16842. (deletePieceMessageInQueue): New function.
  16843. (deleteTimeoutRequestSlot): Changed argument.
  16844. (deleteCompletedRequestSlot): Changed argument.
  16845. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16846. (getCorrespondingRequestSlot): New function.
  16847. (countPendingMessage): Removed.
  16848. (countMessageInQueue): New function.
  16849. (getTorrentMan): New function.
  16850. (getPeerConnection): New function.
  16851. (hasDownloadPiece): New function.
  16852. (getDownloadPiece): New function.
  16853. (setDownloadPiece): New function.
  16854. (syncPiece): New function.
  16855. (sendMessages): New function.
  16856. (sendNow): New function.
  16857. (trySendNow): New function.
  16858. (abortPiece): New function.
  16859. (sendHandshake): New function.
  16860. (receiveMessage): New function.
  16861. (receiveHandshake): New function.
  16862. (createRequestMessage): New function.
  16863. (createCancelMessage): New function.
  16864. (createPieceMessage): New function.
  16865. (createHaveMessage): New function.
  16866. (createChokeMessage): New function.
  16867. (createUnchokeMessage): New function.
  16868. (createInterestedMessage): New function.
  16869. (createNotInterestedMessage): New function.
  16870. (createBitfieldMessage): New function.
  16871. (createKeepAliveMessage): New function.
  16872. * src/SendMessageQueue.cc
  16873. (SendMessageQueue): Removed requestSlotMan.
  16874. Instantiated peerConnection here.
  16875. (~SendMessageQueue): Removed requestSlotMan.
  16876. Added deletion of peerConnection and the contents of messageQueue.
  16877. (send): Updated according to the change of messageQueue.
  16878. (addPendingMessage): Renamed to addMessage.
  16879. (addMessage): New function.
  16880. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16881. (deletePieceMessageInQueue): New function.
  16882. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16883. (deleteRequestMessageInQueue): New function.
  16884. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16885. here.
  16886. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16887. (...) was moved here.
  16888. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16889. moved here.
  16890. (deleteCompletedRequestSlot):
  16891. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16892. (getCorrespondingRequestSlot):
  16893. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16894. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16895. (countPendingMessage): Renamed to countMessageInQueue.
  16896. (countMessageInQueue): New function.
  16897. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16898. (receiveHandshake): New function.
  16899. (createHandshakeMessage): New function.
  16900. (receiveMessage): New function.
  16901. (createPeerMessage): New function.
  16902. (syncPiece): New function.
  16903. (getNewPieceAndSendInterest): New function.
  16904. (sendMessages): New function.
  16905. (sendNow): New function.
  16906. (trySendNow): New function.
  16907. (sendHandshake): New function.
  16908. (abortPiece): New function.
  16909. (getDownloadPiece): New function.
  16910. (getPeerMessageCommonProperty): New function.
  16911. (createRequestMessage): New function.
  16912. (createCancelMessage): New function.
  16913. (createPieceMessage): New function.
  16914. (createHaveMessage): New function.
  16915. (createChokeMessage): New function.
  16916. (createUnchokeMessage): New function.
  16917. (createInterestedMessage): New function.
  16918. (createNotInterestedMessage): New function.
  16919. (createBitfieldMessage): New function.
  16920. (createKeepAliveMessage): New function.
  16921. To add simple Content-Disposition support:
  16922. * src/HttpResponseCommand.h (determinFilename): New function.
  16923. * src/HttpResponseCommand.cc (executeInternal):
  16924. Use determinFilename(headers) instead of req->getFile() when comparing
  16925. filename.
  16926. (determinFilename): New function.
  16927. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16928. req->getFile().
  16929. (handleOtherEncoding): Use determinFilename(headers) instead of
  16930. req->getFile().
  16931. * src/Util.h (getContentDispositionFilename): New function.
  16932. * src/Util.cc (getContentDispositionFilename): New function.
  16933. * src/LogFactory.h (release): New function.
  16934. * src/LogFactory.cc (release): New function.
  16935. To fix a bug that causes out-of-bound exception when HTTP status
  16936. line is wrong:
  16937. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16938. size.
  16939. * src/common.h (Deleter): New class.
  16940. * src/SegmentMan.cc
  16941. (~SegmentMan): Added deletion of splitter and diskWriter.
  16942. * src/DownloadEngine.h
  16943. (Commands): Use deque.
  16944. (clearQueue): New function.
  16945. * src/DownloadEngine.cc
  16946. (~DownloadEngine): Added deletion of segmentMan.
  16947. (cleanQueue): New function.
  16948. * src/TorrentDownloadEngine.h
  16949. (TorrentDownloadEngine): The implementation was moved to
  16950. TorrentDownloadEngine.cc.
  16951. (~TorrentDownloadEngine): The implementation was moved to
  16952. TorrentDownloadEngine.cc.
  16953. * src/TorrentDownloadEngine.cc
  16954. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16955. * src/main.cc
  16956. (clearRequest): Removed.
  16957. (handler): Added deletion of e.
  16958. (torrentHandler): Added deletion of te.
  16959. (main): Do not share splitter.
  16960. Use Deleter instead of clearRequest.
  16961. Deletion of classes were updated.
  16962. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16963. * src/main.cc (main): Fixed typo.
  16964. * src/message.h: Fixed typo.
  16965. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16966. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16967. To add --select-file command-line option:
  16968. * src/Util.cc
  16969. (unfoldRange): New function.
  16970. (getNum): New function.
  16971. (unfoldSubRange): New function
  16972. * src/main.cc
  16973. (showUsage): Added help message.
  16974. (main): Added --select-file command-line option. Updated the layout of
  16975. file listing.
  16976. * src/common.h
  16977. (Integers): New definition.
  16978. * src/SocketCore.cc
  16979. (writeData): Removed timeout argument.
  16980. (readData): Removed timeout argument.
  16981. (peekData): Removed timeout argument.
  16982. * src/Socket.cc
  16983. (writeData): Removed timeout argument.
  16984. (readData): Removed timeout argument.
  16985. (peekData): Removed timeout argument.
  16986. * Release 0.4.1
  16987. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16988. To deploy upload rate based choking algorithm:
  16989. * src/PeerInteractionCommand.cc
  16990. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16991. peer currently used.
  16992. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16993. download completes. Simplified.
  16994. (receiveMessage): Updated.
  16995. * src/TorrentMan.h
  16996. (activePeers): New variable.
  16997. (addActivePeer): New function.
  16998. (getActivePeers): New function.
  16999. (deleteActivePeer): New function.
  17000. * src/TorrentMan.cc
  17001. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17002. * src/PeerAbstractCommand.cc
  17003. (onAbort): Use peer->resetStatus().
  17004. * src/main.cc
  17005. (PeerChokeCommand.h): Included.
  17006. (main): Added the instance of ChokingCommand to the command queue.
  17007. * src/Peer.h
  17008. (amChoking): Renamed from amChocking
  17009. (chokingRequired): New variable.
  17010. (optUnchoking): New variable.
  17011. (deltaUpload): New variable.
  17012. (deltaDownload): New variable.
  17013. (addDeltaUpload): New function.
  17014. (resetDeltaUpload): New function.
  17015. (addDeltaDownload): New function.
  17016. (resetDeltaDownload): New function.
  17017. (addPeerUpload): Added a call to addDeltaUpload.
  17018. (addPeerDownload): Added a call to addDeltaDownload.
  17019. * src/Peer.cc
  17020. (shouldBeChoking): Renamed from shouldChoke.
  17021. (resetStatus): New function.
  17022. * src/PeerChokeCommand.h: New class.
  17023. * src/PeerChokeCommand.cc: New class.
  17024. To add lazy upload speed limiter:
  17025. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17026. statistics calculation to TorrentDownloadEngine.
  17027. * src/TorrentConsoleDownloadEngine.cc
  17028. (sendStatistics): Renamed from printStatistics.
  17029. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17030. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17031. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17032. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17033. calculation.
  17034. (sendStatistics): New function as pure virtual function.
  17035. (getUploadSpeed): New function.
  17036. * src/TorrentDownloadEngine.cc
  17037. (initStatistics): New function.
  17038. (calculateSpeed): New function.
  17039. (calculateStatistics): New function.
  17040. * src/SendMessageQueue.h
  17041. (uploadLength): New variable.
  17042. (send): Added an argument.
  17043. (setUploadLimit): New function.
  17044. (getUploadLimit): New function.
  17045. * src/SendMessageQueue.cc
  17046. (send): Added upload speed limiter.
  17047. * src/prefs.h
  17048. (PREF_UPLOAD_LIMIT): New definition.
  17049. * src/PeerInteractionCommand.cc
  17050. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17051. * src/main.cc
  17052. (main): Added --upload-limit option
  17053. For bug fixes:
  17054. * src/main.cc
  17055. (showUsage): Corrected --listen-port help
  17056. Other changes:
  17057. * src/TorrentMan.cc
  17058. (getPeer): Return nullPeer if connection is grather than
  17059. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17060. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17061. To add some useful information to the exception message:
  17062. * src/SocketCore.cc : Updated messages.
  17063. * src/SegmentMan.cc :
  17064. * src/TorrentMan.cc : Updated messages.
  17065. * src/MultiDiskWriter.cc : Updated messages.
  17066. * src/Util.cc : Updated messages.
  17067. * src/AbstractDiskWriter.cc : Updated messages.
  17068. * src/PreAllocationDiskWriter.cc : Updated messages.
  17069. * src/message.cc : Added new messages. Updated some messages.
  17070. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17071. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17072. Updated threshold from 30 to 15.
  17073. * src/AbstractDiskWriter.h (filename): New variable.
  17074. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17075. (createFile): Assigned filename.
  17076. * src/main.cc: Updated the help message for http-auth-scheme.
  17077. * Release 0.4.0
  17078. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17079. To add TrackerUpdateCommand with which replaces
  17080. CompactTrackerResponseProcessor:
  17081. * src/TrackerWatcherCommand.h (req): Removed.
  17082. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17083. if the number of peer connections are less than 30.
  17084. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17085. * src/SegmentMan.h (diskWriter): New function.
  17086. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17087. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17088. (main): Use TrackerUpdateCommand.
  17089. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17090. (req): New variable.
  17091. (setTrackerResponseProcessor): Removed.
  17092. (getTrackerResponseProcessor): Removed.
  17093. (processTrackerResponse): Removed.
  17094. * src/DownloadEngine.h (diskWriter): Removed.
  17095. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17096. to torrentMan->processTrackerResponse().
  17097. To add Util::expandBuffer:
  17098. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17099. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17100. * src/Util.h (expandBuffer): New function.
  17101. To fix the bug that causes segmentation fault when "-l ." is specified
  17102. in command-line option:
  17103. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17104. (openFile): New function.
  17105. (closeFile): New function.
  17106. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17107. (~SimpleLogger): Call closeFile();
  17108. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17109. * src/main.cc (main): Added a check to see logger is configured
  17110. properly.
  17111. To enable HTTP authentication without specifying "--http-auth-scheme"
  17112. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17113. * src/HttpConnection.cc (createRequest): Send Authorization header
  17114. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17115. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17116. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17117. * src/Peer.cc (shouldChoke): Updated algorithm.
  17118. * src/message.h (EX_AUTH_FAILED): New definition.
  17119. (EX_FILE_OPEN): New definition.
  17120. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17121. if status == 401.
  17122. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17123. if req->isTorrent == true.
  17124. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17125. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17126. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17127. (createFile): Updated message.
  17128. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17129. To add a readout of estimated remaining time to normal HTTP/FTP
  17130. downloads:
  17131. * src/ConsoleDownloadEngine.h (startup): New variable.
  17132. (startupLength): New variable.
  17133. (isStartupLengthSet): New variable.
  17134. (avgSpeed): New variable.
  17135. (eta): New variable.
  17136. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17137. estimated remaining time.
  17138. (initStatistics): Initialized newly added variables.
  17139. (calculateStatistics): Calculate average speed and estimated remaining
  17140. time.
  17141. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17142. * src/TrackerDownloadCommand.h: Removed.
  17143. * src/TrackerDownloadCommand.cc: Removed.
  17144. * src/TrackerInitCommand.h: Removed.
  17145. * src/TrackerInitCommand.cc: Removed.
  17146. * src/TrackerUpdateCommand.h: Removed.
  17147. * src/TrackerUpdateCommand.cc: Removed.
  17148. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17149. url written in TrackerInitCommand was moved here. Do not create
  17150. tracker request command if torrentMan->trackers != 0.
  17151. * src/CompactTrackerResponseProcessor.h: New class.
  17152. * src/CompactTrackerResponseProcessor.cc: New class.
  17153. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17154. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17155. Decoupled TorrentDownloadEngine from this.
  17156. * src/SegmentMan.h (init): New function.
  17157. * src/SegmentMan.cc (init): New function.
  17158. * src/TorrentMan.h (responseProcessor): New variable.
  17159. (trackers): New variable.
  17160. (setTrackerResponseProcessor): New function.
  17161. (getTrackerResponseProcessor): New function.
  17162. (processTrackerResponse): New function.
  17163. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17164. (processTrackerResponse): New function.
  17165. * src/main.cc (main): Use ByteArrayDiskWriter and
  17166. CompactTrackerResponseProcessor.
  17167. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17168. processTrackerResponse().
  17169. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17170. readout.
  17171. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17172. which indicates download has completed.
  17173. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17174. (closeFile): fd >= 0, not fd > 0
  17175. * src/main.cc (main): Added short cut for show-files.
  17176. Added short cut for torrent-file.
  17177. Added new command-line option listen-port.
  17178. Updated i18n messages.
  17179. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17180. To add LogFactory which creates singleton logger:
  17181. * src/LogFactory.h: New class.
  17182. * src/LogFactory.cc: New class.
  17183. * src/Command.h (logger): New variable.
  17184. (Constructor): Use LogFactory.
  17185. * src/AbstractCommand.cc: Use Command::logger
  17186. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17187. Use LogFactory.
  17188. * src/SegmentSplitter.h : Made logger protected.
  17189. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17190. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17191. * src/DownloadEngine.h : Made logger protected.
  17192. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17193. * src/PeerInteractionCommand.cc : Use Command::logger.
  17194. * src/HttpResponseCommand.cc : Use Command::logger.
  17195. * src/SegmentMan.h : Made logger private.
  17196. * src/TorrentMan.h : Made logger private.
  17197. * src/TorrentMan.cc : Use LogFactory.
  17198. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17199. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17200. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17201. Use LogFactory.
  17202. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17203. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17204. Use LogFactory.
  17205. * src/DownloadCommand.cc : Use Command::logger.
  17206. * src/PeerAbstractCommand.cc : Use Command::logger.
  17207. * src/PeerListenCommand.cc : Use Command::logger.
  17208. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17209. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17210. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17211. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17212. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17213. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17214. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17215. Use LogFactory.
  17216. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17217. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17218. Use LogFactory.
  17219. * src/main.cc (main): Use LogFactory.
  17220. * src/DiskAdaptor.h (logger): New variable.
  17221. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17222. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17223. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17224. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17225. parameter to a tracker request.
  17226. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17227. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17228. * src/main.cc (setSignalHander): New function.
  17229. (main): Added a handler for SIGTERM.
  17230. (handler): Updated message.
  17231. (torrentHandler): Updated message.
  17232. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17233. * src/TorrentConsoleDownloadEngine.cc
  17234. (onPartialDownloadingCompletes): Renamed as
  17235. onSelectiveDownloadingCompletes.
  17236. (onSelectiveDownloadingCompletes): Updated message.
  17237. To add DiskAdaptor which abstract DiskWriter family:
  17238. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17239. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17240. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17241. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17242. MultiDiskAdaptor.h.
  17243. (readFileEntry): Changed its arguments.
  17244. (setup): setupDiskWriter is merged into this function.
  17245. (setupDiskWriter): Removed.
  17246. (setFileFilter): New function.
  17247. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17248. made in readFileEntry.
  17249. (getFilePath): Removed.
  17250. (getTempFilePath): Removed.
  17251. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17252. (fixFilename): Removed.
  17253. (copySingleFile): Removed.
  17254. (splitMultiFile): Removed.
  17255. (deleteTempFile): Removed.
  17256. (setFileEntriesToDownload): Removed.
  17257. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17258. (isSelectiveDownloadingMode): New function.
  17259. (setAllMultiFileRequestedState): Removed.
  17260. (finishPartialDownloadingMode): Renamed as
  17261. finishSelectiveDownloadingMode.
  17262. (finishSelectiveDownloadingMode): New function.
  17263. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17264. (getSelectedTotalLength): New function.
  17265. (onDownloadComplete): Use diskAdaptor.
  17266. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17267. (Range): Removed.
  17268. (setMultiFileEntries): Renamed as setFileEntries.
  17269. (setFileEntries): New function.
  17270. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17271. (pieceLength): New variable.
  17272. * src/main.cc (printDownloadCompeleteMessage): New function.
  17273. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17274. (main): Renamed torrent-show-files to show-files.
  17275. Rewritten file contents listing.
  17276. * src/TorrentMan.h (FileEntry): Removed.
  17277. (multiFileTopDir): Removed.
  17278. (multiFileEntries): Removed.
  17279. (diskWriter): Removed.
  17280. (diskAdaptor): New variable.
  17281. * src/DefaultDiskWriter.h (totalLength): New variable.
  17282. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17283. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17284. diskWriter.
  17285. * src/TorrentConsoleDownloadEngine.h
  17286. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17287. (partialTotalLength): Renamed as selectedTotalLength.
  17288. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17289. openExistingFile, otherwise call initAndOpenFile.
  17290. (closeFile): fd > 0, not fd != 0.
  17291. * src/DirectDiskAdaptor.h: New class.
  17292. * src/DirectDiskAdaptor.cc: New class.
  17293. * src/MultiDiskAdaptor.h: New class.
  17294. * src/MultiDiskAdaptor.cc: New class.
  17295. * src/CopyDiskAdaptor.h: New class.
  17296. * src/CopyDiskAdaptor.cc: New class.
  17297. * src/DiskAdaptor.h: New class.
  17298. * src/DiskAdaptor.cc: New class.
  17299. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17300. (PREF_SHOW_FILES): New definition.
  17301. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17302. To add the ability to download multi torrent into respective files
  17303. directly:
  17304. * src/DiskWriter.h (openFile): New function.
  17305. (seek): Removed.
  17306. * src/MultiDiskWriter.h: New class.
  17307. * src/MultiDiskWriter.cc: New class.
  17308. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17309. protected.
  17310. (openFile): New function.
  17311. * src/AbstractDiskWriter.cc (openFile): New function.
  17312. * src/prefs.h (V_FALSE): New definition.
  17313. (PREF_DIRECT_FILE_MAPPING): New definition.
  17314. * src/TorrentMan.h (setupDiskWriter): New function.
  17315. (setAllMultiFileRequestedState): New function.
  17316. (onDownloadComplete): New function.
  17317. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17318. (setupDiskWriter): New function.
  17319. (getFilePath): Updated.
  17320. (getTempFilePath): Updated.
  17321. (getSegmentFilePath): Updated.
  17322. (fixFilename): Updated.
  17323. (deleteTempFile): Updated.
  17324. (setAllMultiFileRequestedState): New function.
  17325. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17326. (finishPartialDownloadingMode): Reset requested flags.
  17327. (onDownloadComplete): New function.
  17328. * src/main.cc: Added --direct-file-mapping option.
  17329. Use TorrentMan::setupDiskWriter().
  17330. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17331. onDownloadComplete().
  17332. To fix ETA bug:
  17333. * src/Util.h (difftvsec): New function.
  17334. * src/Util.cc (difftvsec): New function.
  17335. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17336. type of "elapsed" instead of long long int.
  17337. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17338. The updates of statistics takes place every 1 seconds.
  17339. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17340. (calculateSpeed): Changed its argument signature.
  17341. * src/PeerMessage.cc (toString): Fixed message.
  17342. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17343. To print ETA:
  17344. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17345. completion handling when dealing with
  17346. TorrentMan::isPartialDownloadingMode() == true.
  17347. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17348. New function.
  17349. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17350. (sessionDownloadLength): New variable.
  17351. (avgSpeed): New variable.
  17352. (eta): New variable.
  17353. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17354. new variables: eta, avgSpeed, startup.
  17355. (calculateSpeed): Calculate average speed and ETA.
  17356. (printStatistics): Added ETA.
  17357. * src/Util.h (secfmt): New function.
  17358. * src/Util.cc (secfmt): New function.
  17359. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17360. To detect "keep alive" flooding:
  17361. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17362. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17363. variable: keepAliveCount.
  17364. (detectMessageFlooding): Added "keep alive" flooding detection.
  17365. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17366. received.
  17367. To add the ability to download only specified files in multi-file
  17368. torrent:
  17369. * src/BitfieldMan.h (filterBitfield): New variable.
  17370. (filterEnabled): New variable.
  17371. (setFilterBit): New function.
  17372. (enableFilter): New function.
  17373. (disableFilter): New function.
  17374. (isFilterEnabled): New function.
  17375. (getFilteredTotalLength): New function.
  17376. (getCompletedLength): New function.
  17377. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17378. filterBitfield, filterEnabled.
  17379. (CopyConstructor): Added filterBitfield and filterEnabled.
  17380. (operator==): Added filterBitfield and filterEnabled.
  17381. (Destructor): Added filterBitfield.
  17382. (getMissingIndex): Use filterBitfield.
  17383. (getMissingUnusedIndex): Use filterBitfield.
  17384. (getFirstMissingUnusedIndex): Use filterBitfield.
  17385. (getFirstMissingUnusedIndex): Use filterBitfield.
  17386. (getAllMissingIndexes): Use filterBitfield.
  17387. (countMissingBlock): Use filterBitfield.
  17388. (countBlock): Use filterBitfield.
  17389. (setBitInternal): Added new argument on.
  17390. (setUseBit): Use setBitInternal.
  17391. (unsetUseBit): Use setBitInternal.
  17392. (setBit): Use setBitInternal.
  17393. (unsetBit): Use setBitInternal.
  17394. (isAllBitSet): Use filterBitfield.
  17395. (setFilterBit): New function.
  17396. (addFilter): New function.
  17397. (enableFilter): New function.
  17398. (disableFilter): New function.
  17399. (clearFilter): New function.
  17400. (isFilterEnabled): New function.
  17401. (getFilteredTotalLength): New function.
  17402. (getCompletedLength): New function.
  17403. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17404. Initalized newly added variables.
  17405. [FileEntry](offset): New variable.
  17406. [FileEntry](extracted): New variable.
  17407. [FileEntry](requested): New variable.
  17408. (readFileEntry): New function.
  17409. (option): New variable.
  17410. (splitMultiFile): Removed const qualifier.
  17411. (fixFilename): Removed const qualifier.
  17412. (readFileEntryFromMetaInfoFile): New function.
  17413. (finishPartialDownloadingMode): New function.
  17414. (isPartialDownloadingMode): New function.
  17415. (setFileEntriesToDownload): New function.
  17416. (getCompletedLength): New function.
  17417. (getPartialTotalLength): New function.
  17418. * src/TorrentMan.cc (readFileEntry): New function.
  17419. (setup): Use readFileEntry. If no-preallocation option is specified,
  17420. use DefaultDiskWriter.
  17421. (readFileEntryFromMetaInfoFile): New function.
  17422. (fixFilename): Removed const qualifier.
  17423. (splitMultiFile): Removed const qualifier.
  17424. (setFileEntriesToDownload): New function.
  17425. (isPartialDownloadingMode): New function.
  17426. (finishPartialDownloadingMode): New function.
  17427. (getCompletedLength): New function.
  17428. (getPartialTotalLength): New function.
  17429. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17430. New variable.
  17431. (partialTotalLength): New variable.
  17432. (downloadLength): New variable.
  17433. (totalLength): New variable.
  17434. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17435. Added log.
  17436. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17437. partialTotalLength, downloadLength, totalLength.
  17438. (calculate): Calculate downloadLength and totalLength.
  17439. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17440. * src/main.cc (addCommand): Changed argument signature.
  17441. (main): Added new variable: args. Added new option "torrent-show-files"
  17442. "no-preallocation". Usage is not updated yet.
  17443. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17444. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17445. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17446. Attempt to add the ability to listing file entries in a .torrent file.
  17447. This feature is not yet complete.
  17448. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17449. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17450. (getName): New function.
  17451. * src/TorrentMan.h (getMultiFileEntries): New function.
  17452. (getName): New function.
  17453. * src/main.cc (main): Use above 2 funtion.
  17454. * Release 0.3.2
  17455. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17456. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17457. (detectMessageFlooding): Updated threshold value.
  17458. (checkLongTimePeerChoking): Updated timeout value.
  17459. (getNewPieceAndSendInterest): Added debug log.
  17460. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17461. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17462. (getPeer): Updated.
  17463. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17464. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17465. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17466. is localhost.
  17467. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17468. * src/PendingMessage.cc (processMessage): Not to send piece message
  17469. if peer is not interested in the pieces localhost has.
  17470. * src/Peer.cc (shouldChoke): Updated.
  17471. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17472. * src/Util.cc (isPowerOf): New function.
  17473. * src/Util.h (isPowerOf): New function.
  17474. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17475. whether or not it is power of 2.
  17476. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17477. Added new class SendMessageQueue that includes PendingMessages and
  17478. RequestSlotMan.
  17479. * src/SendMessageQueue.h: New class.
  17480. * src/SendMessageQueue.cc: New class.
  17481. * src/PendingMessage.h: Added new member variable blockIndex and its
  17482. accessors.
  17483. (createRequestMessage): Updated.
  17484. * src/PendingMessage.cc (createRequestMessage): Updated.
  17485. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17486. SendMessageQueue.
  17487. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17488. (receiveMessage): Updated with SendMessageQueue.
  17489. (deletePendingPieceMessage): Removed.
  17490. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17491. (sendInterest): Updated with SendMessageQueue.
  17492. (createRequestPendingMessage): Updated with SendMessageQueue.
  17493. (sendMessages): Updated with SendMessageQueue.
  17494. (onAbort): Updated with SendMessageQueue.
  17495. (keepAlive): Updated with SendMessageQueue.
  17496. (beforeSocketCheck): Updated SendMessageQueue.
  17497. * src/PeerInteractionCommand (sendMessages): Shuffle
  17498. missingBLockIndexes before using it.
  17499. Added its own timeout for peer connection.
  17500. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17501. setter.
  17502. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17503. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17504. Added setTimeout() call.
  17505. (executeInternal): Added setTimeout() call.
  17506. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17507. Added timeout.
  17508. (isTimeoutDetected): Updated.
  17509. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17510. option.
  17511. Added *simple* message flooding checker.
  17512. * src/PeerInteractionCommand.cc (executeInternal):
  17513. Added detectMessageFlooding() call.
  17514. (detectMessageFlooding): New function.
  17515. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17516. (beforeSocketCheck): Added detectMessageFlooding() call.
  17517. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17518. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17519. Removed deletePendingPieceMessage(), getRequestSlot(),
  17520. deleteRequestSlot(), deleteAllRequestSlot().
  17521. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17522. Added checkLongTimePeerChoking() call.
  17523. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17524. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17525. if duplicate == false.
  17526. The parameter "uploaded" and "downloaded" in the tracker request are
  17527. the size since the client sent the "started" event to the tracker.
  17528. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17529. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17530. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17531. getSessionDownloadedSize(), getSessionUploadedSize().
  17532. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17533. getSessionUploadedSize() instead of getDownloadedSize(),
  17534. getUploadedSize().
  17535. * src/PendingMessage.cc (processMessage): Do not send request message
  17536. if the peer is choking the client.
  17537. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17538. less than interval.
  17539. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17540. * configure.in: Added gnutls support. Added several CPP macros.
  17541. * m4/openssl.m4: Added.
  17542. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17543. readData(), peekData(). Added gnutls support.
  17544. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17545. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17546. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17547. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17548. Instead, added a check for whether setup method has executed
  17549. successfully.
  17550. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17551. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17552. * src/Makefile.am: Updated.
  17553. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17554. using whether OpenSSL or gcrypt, depending on the result of configure
  17555. script.
  17556. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17557. messageDigest.h.
  17558. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17559. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17560. Fixed memory leak.
  17561. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17562. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17563. Removed instantiation of TrackerInitCommand. Instead,
  17564. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17565. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17566. ENABLE_SSL.
  17567. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17568. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17569. If a piece is already acquired by another command, delete the request
  17570. slots for the piece.
  17571. * src/TrackerUpdateCommand.cc (execute):
  17572. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17573. Added a check whether peer list is null.
  17574. Fixed the bug that causes sending completed event to the tracker
  17575. several times.
  17576. * src/TrackerInitCommand.cc (execute):
  17577. Fixed the bug that causes sending completed event to the tracker
  17578. several times.
  17579. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17580. by using messageDigest.h.
  17581. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17582. * PeerConnection.cc: Replaced log message "keep-alive" with
  17583. "keep alive".
  17584. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17585. localhost long time.
  17586. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17587. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17588. at most 100 failure entry from the list. If with duplicate = false,
  17589. MAX_PEER_LIST is not checked.
  17590. * PeerListenCommand.cc: Fixed the argument order of log message.
  17591. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17592. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17593. Added warn().
  17594. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17595. Implemented warn().
  17596. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17597. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17598. * Request.h: Added AFTER_COMPLETED event.
  17599. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17600. instead of downloaded size and progress(%) after download completes.
  17601. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17602. message to the peer if it is interested in what localhost has
  17603. downloaded.
  17604. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17605. destination instead of just renaming it.
  17606. * TorrentMan.cc: Added deleteTempFile().
  17607. * PeerAbstractCommand.cc: do not stop execution after download
  17608. completes. This makes localhost a seeder.
  17609. * Util.{h,cc}: Added fileCopy().
  17610. * PeerListenCommand.cc: do not stop execution after download completes.
  17611. This makes localhost a seeder.
  17612. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17613. Added TorrentMan::deleteTempFile() to torrentHandler.
  17614. Initialized the variable dir as ".".
  17615. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17616. Deleted renameSingleFile().
  17617. Added copySingleFile(), deleteTempFile().
  17618. * DownloadEngine.h: Added virtual function afterEachIteration().
  17619. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17620. in onEndOfRun() to afterEachIteration().
  17621. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17622. true.
  17623. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17624. In rangedFileCopy(), added try-catch block to properly close file
  17625. descriptors.
  17626. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17627. Added afterEachIteration(), isFilenameFixed().
  17628. * Peer.cc: Changed choking strategy.
  17629. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17630. * TrackerInitCommand.cc: Send completed event only once.
  17631. * DownloadEngine.cc: Added a call to afterEachIteration().
  17632. * TrackerUpdateCommand.cc: Do not stop execution after download
  17633. completes.
  17634. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17635. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17636. received from a tracker.
  17637. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17638. Decreased the number of failure peers to delete to 0(just comment out
  17639. the line).
  17640. * Release 0.3.1
  17641. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17642. * PeerInteractionCommand.cc: added a call to
  17643. TorrentMan::unadvertisePiece in Destructor.
  17644. * PeerInteractionCommand.cc: make have message sent immediately
  17645. if the size of pending message queue is zero.
  17646. * TorrentMan.cc: set the maximum size of peer list to 250.
  17647. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17648. to deque.
  17649. * Util.cc: fixed rangedFileCopy.
  17650. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17651. to Constructor. Also, moved digest cleanup to Destructor.
  17652. * MetaFileUtil.cc: fixed memory leak
  17653. * replaced std::vector with std::deque.
  17654. * AbstractCommand.cc: casted timeout value to long long int.
  17655. * ChunkedEncoding.cc: fixed memory leak.
  17656. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17657. * SleepCommand.cc: casted timeout value to long long int.
  17658. * Data.cc: fixed memory leak.
  17659. * Data.cc: fixed toLLInt().
  17660. * BitfieldMan.cc: fixed memory leak.
  17661. * TorrentMan.cc: initialized storeDir to ".".
  17662. * TorrentMan.cc: fixed memory leak.
  17663. * TorrentMan.cc: corrected file paths of splitted files.
  17664. * PeerAbstractCommand.cc: casted timeout to long long int.
  17665. * main.cc: added delete(req) and delete(te->diskWriter).
  17666. * RequestSlot.cc: casted timeout value to long long int.
  17667. * Request.cc: fixed memory leak.
  17668. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17669. have the piece.
  17670. * Peer.{h,cc}: added hasPiece(int index).
  17671. * main.cc: corrected addCommand.
  17672. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17673. * BitTorrent protocol support added.
  17674. * Release 0.3.0
  17675. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17676. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17677. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17678. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17679. decoding did not work properly.
  17680. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17681. * DownloadEngine.h: included sys/time.h
  17682. * DownloadEngine.cc: remove sys/time.h
  17683. * Makefile.am (SUBDIRS): Add intl.
  17684. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17685. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17686. * main.cc: correct help message for --http-auth-scheme.
  17687. * main.cc: changed e-mail address for bug reports.
  17688. * ja.po: added japanese translation.
  17689. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17690. * SimpleLogger.cc: flush log file instead of stdout.
  17691. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17692. * main.cc: Fixed command-line option: max-tries
  17693. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17694. does not equal to seg.sp.
  17695. * DownloadCommand.cc: If EOF is got from the server and the total size
  17696. of file is not zero, then throw DlRetryEx.
  17697. * main.cc: Set the minium value of min-segment-size to 1024.
  17698. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17699. fails because of a regression since 0.2.0 release.
  17700. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17701. * HttpConnection.cc:
  17702. * common.h: defined the user agent name as macro
  17703. * DownloadEngine.{h, cc}:
  17704. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17705. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17706. * main.cc: Download complete/abort message is now generated by main.
  17707. * Makefile.am (SUBDIRS): Add m4.
  17708. (ACLOCAL_AMFLAGS): New variable.
  17709. (EXTRA_DIST): New variable.
  17710. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17711. * gettext: added gettext functionality
  17712. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17713. * AbstractCommand.cc:
  17714. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17715. unregister its cuid from SegmentMan.
  17716. * DownloadEngine.cc: .aria2 file was written when a downloading
  17717. failed with errors.
  17718. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17719. Added "User-Agent" header to CONNECT proxy request.
  17720. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17721. properly.
  17722. * Logger.h:
  17723. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17724. * ChunkedEncoding.cc: Added #include directive for strings.h
  17725. * Release 0.2.1
  17726. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17727. * Util.{h,cc}: added startsWith().
  17728. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17729. Util::endsWith().
  17730. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17731. * common.h: added #include directive of limit.h.
  17732. * DownloadEngine.cc: added #include directive of sys/time.h and
  17733. algorithm.
  17734. * Exception.h: added #include directive of stdio.h.
  17735. * AbstractCommand.h: added #include directive of sys/time.h.
  17736. * DownloadCommand.h: added #include directive of sys/time.h.
  17737. * *.h: added #include directive of common.h to all base classes.
  17738. subclasses' one was removed.
  17739. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17740. does not define these macros.
  17741. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17742. * Release 0.2.0
  17743. * main.cc:
  17744. * HttpInitiateConnectionCommand.{h,cc}:
  17745. * prefs.h:
  17746. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17747. We can now use GET command in http proxy.
  17748. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17749. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17750. that splits slowest segment of SegmentMan::commands vector.
  17751. This is the default split algorithm of aria2.
  17752. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17753. that splits first segment of SegmentMan::commands vector.
  17754. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17755. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17756. * Segment.h:
  17757. * SegmentMan.cc: Added speed field to Segment.h
  17758. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17759. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17760. * message.h: Change file size related %d to %lld.
  17761. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17762. * FtpInitiateConnectionCommand.{h,cc}:
  17763. * FtpNegotiationCommand.{h,cc}:
  17764. * FtpDownloadCommand.{h,cc}:
  17765. * FtpConnection.{h,cc}: Added FTP support
  17766. * SimpleLogger.cc: Log message now includes time information.
  17767. * main.cc: The value of --http-auth-scheme option is chagned from
  17768. 'BASIC' to 'basic'
  17769. * main.cc: Added --timeout command-line option.
  17770. * main.cc: Added --min-segment-size command-line option.
  17771. * main.cc: Added --max-retries command-line option.
  17772. * prefs.h: option string constants are now defined in prefs.h
  17773. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17774. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17775. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17776. with version 0.1.0's one.
  17777. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17778. * configure.in: Added --enable-ssl option to configure script.
  17779. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17780. cannot permit absoluteURI as Request-URI.
  17781. * HttpConnection.cc: Added Referer support.
  17782. * main.cc: Added referer command-line option.
  17783. * main.cc: Added rety-wait command-line option.
  17784. * Exception.h: Fixed formating bug in Exception::setMsg()
  17785. * SocketCore.{h,cc}:
  17786. * Socket.{h, cc}:
  17787. * Request.cc:
  17788. * InitiateConnectionCommandFactory.cc:
  17789. * HttpRequestCommand.cc: Added HTTPS support.
  17790. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17791. for SocketCore.
  17792. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17793. size is wrong
  17794. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17795. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17796. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17797. * Release 0.1.0