ChangeLog 695 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436
  1. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  3. is bad in LpdMessageReceiver.
  4. * src/LpdMessage.h
  5. * src/LpdMessageReceiver.cc
  6. * src/LpdMessageReceiver.h
  7. * src/LpdReceiveMessageCommand.cc
  8. * test/LpdMessageReceiverTest.cc
  9. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Added --bt-lpd-interface option to specify the interface to use
  11. for Local Peer Discovery. LpdMessageDispatcher object now has its
  12. own socket. LpdMessageReceiver's socket is binded to multicast
  13. address to only receive multicast packets.
  14. * src/BtSetup.cc
  15. * src/LpdMessageDispatcher.cc
  16. * src/LpdMessageDispatcher.h
  17. * src/LpdMessageReceiver.cc
  18. * src/LpdMessageReceiver.h
  19. * src/LpdReceiveMessageCommand.cc
  20. * src/LpdReceiveMessageCommand.h
  21. * src/OptionHandlerFactory.cc
  22. * src/SocketCore.cc
  23. * src/SocketCore.h
  24. * src/prefs.cc
  25. * src/prefs.h
  26. * src/usage_text.h
  27. * test/LpdMessageDispatcherTest.cc
  28. * test/LpdMessageReceiverTest.cc
  29. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Put the portion of code to get interface addresses in
  31. SocketCore::bindAddress() into newly added getInterfaceAddress().
  32. * src/SocketCore.cc
  33. * src/SocketCore.h
  34. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Rewritten util::parseInt() and parseUInt()
  36. * src/util.cc
  37. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed compile error with mingw32 cross compiler. Defined
  39. a2_sockopt_t as void* for the target systems other than mingw32.
  40. * src/SocketCore.cc
  41. * src/a2netcompat.h
  42. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Removed 'always true' condition
  44. * src/util.cc
  45. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Documented --bt-enable-lpd option in man page.
  47. * doc/aria2c.1.txt
  48. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Added Local Peer Discovery. It is disabled by default. Use
  50. --bt-enable-lpd to enable the function.
  51. * src/BtConstants.h
  52. * src/BtSetup.cc
  53. * src/LpdDispatchMessageCommand.cc
  54. * src/LpdDispatchMessageCommand.h
  55. * src/LpdMessage.h
  56. * src/LpdMessageDispatcher.cc
  57. * src/LpdMessageDispatcher.h
  58. * src/LpdMessageReceiver.cc
  59. * src/LpdMessageReceiver.h
  60. * src/LpdReceiveMessageCommand.cc
  61. * src/LpdReceiveMessageCommand.h
  62. * src/Makefile.am
  63. * src/OptionHandlerFactory.cc
  64. * src/Peer.cc
  65. * src/Peer.h
  66. * src/PeerInteractionCommand.cc
  67. * src/SocketCore.cc
  68. * src/SocketCore.h
  69. * src/prefs.cc
  70. * src/prefs.h
  71. * src/usage_text.h
  72. * src/util.cc
  73. * src/util.h
  74. * test/LpdMessageDispatcherTest.cc
  75. * test/LpdMessageReceiverTest.cc
  76. * test/Makefile.am
  77. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. User-defined custom request headers specified by --header option
  79. now override builtin headers if they have same name.
  80. * src/HttpRequest.cc
  81. * src/HttpRequest.h
  82. * test/HttpRequestTest.cc
  83. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Rewirtten util::isNumber()
  85. * src/util.cc
  86. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  88. because without it localized error messages are not printed
  89. correctly.
  90. * src/Platform.cc
  91. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Added unit tests for util::getContentDispositionFilename() from
  93. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  94. tests are passed.
  95. * src/util.cc
  96. * test/UtilTest.cc
  97. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  99. util.cc
  100. * src/Platform.cc
  101. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Support RFC2231 "Parameter Value Character Set and Language
  103. Information" in Content-Disposition header.
  104. * src/HttpResponse.cc
  105. * src/util.cc
  106. * src/util.h
  107. * test/UtilTest.cc
  108. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Print CXXFLAGS
  110. * configure.ac
  111. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Small optimization for A2_WOULDBLOCK(e)
  113. * src/SocketCore.cc
  114. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Removed test file
  116. * test/CookieStorageTest.cc
  117. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Check both EAGAIN and EWOULDBLOCK
  119. * src/SocketCore.cc
  120. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Removed ret == 0 checking for SSL_read(), SSL_write() and
  122. SSL_peek() because the checks are done in the caller. In
  123. SocketBuffer::send(), throw exception if nothing could be written
  124. and socket error was not EWOULDBLOCK
  125. * src/SocketBuffer.cc
  126. * src/SocketCore.cc
  127. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Fixed error code handling so that it can handle Winsock2 error
  129. code.
  130. * src/SocketCore.cc
  131. * src/SocketCore.h
  132. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Bump up version number to 1.9.0a
  134. * configure.ac
  135. * doc/aria2c.1.txt
  136. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Fixed the bug that aria2 doesn't handle return value if error
  138. occurred before download begins.
  139. * src/MultiUrlRequestInfo.cc
  140. * src/main.cc
  141. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Removed SegmentManFactory class.
  143. * src/AbstractSegmentManFactory.h
  144. * src/DefaultSegmentManFactory.cc
  145. * src/DefaultSegmentManFactory.h
  146. * src/Makefile.am
  147. * src/RequestGroup.cc
  148. * src/RequestGroup.h
  149. * src/SegmentManFactory.h
  150. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Destroyed digest context after getting calculated hash.
  152. * src/Piece.cc
  153. * src/Piece.h
  154. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Removed BitfieldManFactory class.
  156. * src/BitfieldManFactory.cc
  157. * src/BitfieldManFactory.h
  158. * src/DefaultPieceStorage.cc
  159. * src/Makefile.am
  160. * src/PeerSessionResource.cc
  161. * src/Piece.cc
  162. * src/main.cc
  163. * test/DefaultPieceStorageTest.cc
  164. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Removed unused methods from BitfieldMan class. Moved
  166. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  167. class.
  168. * src/BitfieldMan.cc
  169. * src/BitfieldMan.h
  170. * src/BitfieldManFactory.cc
  171. * src/BitfieldManFactory.h
  172. * src/bitfield.h
  173. * src/main.cc
  174. * test/BitfieldManTest.cc
  175. * test/DefaultPieceStorageTest.cc
  176. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Moved getFirstNMissingIndex to bitfield.h and made it return the
  178. number of appended indexes.
  179. * src/BitfieldMan.cc
  180. * src/BitfieldMan.h
  181. * src/Piece.cc
  182. * src/Piece.h
  183. * src/bitfield.h
  184. * test/BitfieldManTest.cc
  185. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Added more tests.
  187. * test/BitfieldManTest.cc
  188. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  190. unused block indexes at once instead of calling
  191. getFirstMissingUnusedIndex() multiple times. Made use of it in
  192. Piece class and DefaultBtRequestFactory class via Piece class.
  193. * src/BitfieldMan.cc
  194. * src/BitfieldMan.h
  195. * src/DefaultBtRequestFactory.cc
  196. * src/Piece.cc
  197. * src/Piece.h
  198. * test/BitfieldManTest.cc
  199. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Use std::make_pair(...)
  201. * src/DHTMessageTracker.cc
  202. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Use std::make_pair(...)
  204. * src/bittorrent_helper.cc
  205. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. urlencode(removeFragment(...)) in parseUrl(...)
  207. * src/Request.cc
  208. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  210. * src/AbstractCommand.cc
  211. * src/AdaptiveURISelector.cc
  212. * src/BtPieceMessage.cc
  213. * src/BtPortMessage.cc
  214. * src/CreateRequestCommand.cc
  215. * src/DHTAbstractNodeLookupTask.cc
  216. * src/DHTBucket.cc
  217. * src/DHTGetPeersCommand.cc
  218. * src/DHTMessageDispatcherImpl.cc
  219. * src/DHTMessageFactoryImpl.cc
  220. * src/DHTMessageTracker.cc
  221. * src/DHTPeerAnnounceStorage.cc
  222. * src/DHTRoutingTable.cc
  223. * src/DHTSetup.cc
  224. * src/DefaultBtAnnounce.cc
  225. * src/DefaultBtInteractive.cc
  226. * src/DefaultBtMessageDispatcher.cc
  227. * src/DefaultBtMessageReceiver.cc
  228. * src/DefaultBtProgressInfoFile.cc
  229. * src/DefaultBtRequestFactory.cc
  230. * src/DefaultPeerStorage.cc
  231. * src/DefaultPieceStorage.cc
  232. * src/DownloadCommand.cc
  233. * src/DownloadEngine.cc
  234. * src/EpollEventPoll.cc
  235. * src/FileAllocationCommand.cc
  236. * src/FileEntry.cc
  237. * src/FtpNegotiationCommand.cc
  238. * src/HandshakeExtensionMessage.cc
  239. * src/HttpListenCommand.cc
  240. * src/HttpServer.cc
  241. * src/HttpSkipResponseCommand.cc
  242. * src/IteratableChunkChecksumValidator.cc
  243. * src/Logger.h
  244. * src/MSEHandshake.cc
  245. * src/MetalinkPostDownloadHandler.cc
  246. * src/MultiDiskAdaptor.cc
  247. * src/PeerAbstractCommand.cc
  248. * src/PeerConnection.cc
  249. * src/PeerListenCommand.cc
  250. * src/PeerReceiveHandshakeCommand.cc
  251. * src/RequestGroup.cc
  252. * src/RequestGroupMan.cc
  253. * src/SegmentMan.cc
  254. * src/SelectEventPoll.cc
  255. * src/ServerStat.cc
  256. * src/SimpleBtMessage.cc
  257. * src/SocketCore.cc
  258. * src/TrackerWatcherCommand.cc
  259. * src/UTMetadataDataExtensionMessage.cc
  260. * src/UTMetadataRequestFactory.cc
  261. * src/UTMetadataRequestTracker.cc
  262. * src/XmlRpcMethod.cc
  263. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Changed log level from debug to info
  265. * src/BtDependency.cc
  266. * src/BtPostDownloadHandler.cc
  267. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed unused PeerSessionResource::_latency.
  269. * src/BtConstants.h
  270. * src/BtPieceMessage.cc
  271. * src/Peer.cc
  272. * src/Peer.h
  273. * src/PeerSessionResource.cc
  274. * src/PeerSessionResource.h
  275. * test/PeerSessionResourceTest.cc
  276. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Fixed the bug that --file-allocation=falloc doesn't work with
  278. single file download.
  279. * src/AbstractSingleDiskAdaptor.cc
  280. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Release 1.8.2
  282. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Added Portuguese translation. Updated Ukrainian and Spanish
  284. translation. Thanks to all translators.
  285. * po/LINGUAS
  286. * po/es.po
  287. * po/pt.po
  288. * po/uk.po
  289. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Remove fragment from redirected URI.
  291. * src/Request.cc
  292. * test/RequestTest.cc
  293. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Updated po templates.
  295. * po/aria2.pot
  296. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Drop legacy ifdef for ares support and code cleanup.
  298. * src/AsyncNameResolver.cc
  299. * src/AsyncNameResolver.h
  300. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Call ares_library_init and ares_library_cleanup if they are
  302. available. Some code cleanups.
  303. * src/Platform.cc
  304. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Call ares_process_fd() each time after epoll to handle timeout.
  306. * src/EpollEventPoll.cc
  307. * src/EpollEventPoll.h
  308. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Suppressed type-cast compiler warning
  310. * src/CookieStorage.cc
  311. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Fixed compile error on Mac OS X.
  313. * src/CookieStorage.h
  314. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Removed cookietest.txt from Makefile.am
  316. * test/Makefile.am
  317. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Updated version number in man page.
  319. * doc/aria2c.1.txt
  320. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Rewritten help message for --allow-overwrite option.
  322. * doc/aria2c.1.txt
  323. * src/usage_text.h
  324. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Added bittorrent key to the response of tellStatus XML-RPC method.
  326. The associated value of the key is a struct and contains data
  327. retrieved from .torrent file, such as name, announce-list,
  328. comment, etc.
  329. * doc/aria2c.1.txt
  330. * src/XmlRpcMethodImpl.cc
  331. * src/XmlRpcMethodImpl.h
  332. * test/XmlRpcMethodTest.cc
  333. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Removed parse(std::istream&) and parse(const std::string&) from
  335. CookieParser.
  336. * src/CookieParser.cc
  337. * src/CookieParser.h
  338. * test/CookieParserTest.cc
  339. * test/cookietest.txt: Removed
  340. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Fixed the bug that cookie for domain a.b.c is not sent to the host
  342. a.b.c if no other cookies are stored. Fixed the bug that
  343. Cookie::markOriginServerOnly() is not called when cookies are
  344. loaded from file/sqlite3 database.
  345. * src/Cookie.h
  346. * src/CookieStorage.cc
  347. * src/NsCookieParser.cc
  348. * src/Sqlite3MozCookieParser.cc
  349. * test/CookieStorageTest.cc
  350. * test/NsCookieParserTest.cc
  351. * test/Sqlite3MozCookieParserTest.cc
  352. * test/cookies.sqlite
  353. * test/nscookietest.txt
  354. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  356. both _pieceStorage and _segmentMan are initialized or they are
  357. not.
  358. * src/RequestGroup.cc
  359. * src/RequestGroup.h
  360. * test/BtDependencyTest.cc
  361. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Bump up version number to 1.8.2
  363. * configure.ac
  364. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Replaced "." with A2STR::DOT_C
  366. * src/AbstractCommand.cc
  367. * src/Cookie.cc
  368. * src/DownloadContext.cc
  369. * src/FtpConnection.cc
  370. * src/RequestGroup.cc
  371. * src/util.cc
  372. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Replaced isNumberAndDotsNotation() with isNumericHost().
  374. isNumericHost() can handle IPv6 address.
  375. * src/Cookie.cc
  376. * src/CookieStorage.cc
  377. * src/util.cc
  378. * src/util.h
  379. * test/CookieTest.cc
  380. * test/UtilTest.cc
  381. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Included A2STR.h
  383. * src/CookieStorage.cc
  384. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Rewritten Cookie storage.
  386. * src/Cookie.cc
  387. * src/Cookie.h
  388. * src/CookieParser.cc
  389. * src/CookieStorage.cc
  390. * src/CookieStorage.h
  391. * src/a2functional.h
  392. * test/CookieParserTest.cc
  393. * test/CookieStorageTest.cc
  394. * test/CookieTest.cc
  395. * test/HttpResponseTest.cc
  396. * test/TestUtil.h
  397. * test/a2functionalTest.cc
  398. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Handle redirected URI which is not properly percent encoded.
  400. * src/Request.cc
  401. * test/RequestTest.cc
  402. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  404. not found' in the N times(N is where --max-file-not-found=N, N>0)
  405. in a row without single '200 OK' response.
  406. * src/RequestGroup.cc.
  407. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  409. readout by 80 characters in mingw32 build. Catch exception in
  410. DHTMessageReceiver::receiveMessage().
  411. * src/AbstractDiskWriter.cc
  412. * src/ConsoleStatCalc.cc
  413. * src/DHTMessageReceiver.cc
  414. * src/File.cc
  415. * src/RequestGroupMan.cc
  416. * src/a2io.h
  417. * test/FileTest.cc
  418. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Fixed compile error with intel compiler
  420. * src/XmlRpcMethodImpl.cc
  421. * src/XmlRpcMethodImpl.h
  422. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Release 1.8.1
  424. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Updated Swedish, Russian and Italian translations. Thanks to all
  426. translators.
  427. * po/it.po
  428. * po/ru.po
  429. * po/sv.po
  430. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Fixed broken OptionParser::findByName().
  432. * src/OptionParser.cc
  433. * test/OptionParserTest.cc
  434. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Fixed test error without BitTorrent support.
  436. * test/XmlRpcMethodTest.cc
  437. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Fixed compile error without GNUTLS/OpenSSL.
  439. * src/util.cc
  440. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Changed compression level to Z_DEFAULT_COMPRESSION.
  442. * src/GZipEncoder.cc
  443. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added missing command line options: --http-no-cache,
  445. --bt-save-metadata and --bt-metadata-only.
  446. * doc/xmlrpc/aria2rpc
  447. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  449. client accepts gzip content encoding.
  450. * src/A2STR.cc
  451. * src/A2STR.h
  452. * src/GZipEncoder.cc
  453. * src/GZipEncoder.h
  454. * src/HttpHeader.cc
  455. * src/HttpHeader.h
  456. * src/HttpServer.cc
  457. * src/HttpServer.h
  458. * src/HttpServerBodyCommand.cc
  459. * src/HttpServerCommand.cc
  460. * src/Makefile.am
  461. * src/XmlRpcResponse.cc
  462. * src/XmlRpcResponse.h
  463. * test/GZipEncoderTest.cc
  464. * test/Makefile.am
  465. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Added XML-RPC client sample code in Python.
  467. * doc/aria2c.1.txt
  468. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Updated po templates.
  470. * po/aria2.pot
  471. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Bump up version number to 1.8.1
  473. * configure.ac
  474. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Added version number to man page. Updated copyright year in man
  476. page.
  477. * doc/aria2c.1.txt
  478. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Rewritten toTagString
  480. * src/NameMatchOptionHandler.cc
  481. * test/OptionHandlerTest.cc
  482. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Added dir and files key to the response struct of aria2.tellStatus
  484. XML-RPC method. The value associated with files key is the list
  485. of files. Its element is the same struct used in aria2.getFiles
  486. XML-RPC method. Added uris key to the response struct of
  487. aria2.getFiles XML-RPC method. The value associated with uris key
  488. is the list of URIs. Its element is the same struct used in
  489. aria2.getUris XML-RPC method.
  490. * doc/aria2c.1.txt
  491. * src/XmlRpcMethodImpl.cc
  492. * test/XmlRpcMethodTest.cc
  493. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Added aria2.getSessionInfo XML-RPC method. This method returns a
  495. struct containing Session ID, which is generated each time when
  496. aria2 is invoked.
  497. * doc/aria2c.1.txt
  498. * doc/xmlrpc/aria2rpc
  499. * src/DownloadEngine.cc
  500. * src/DownloadEngine.h
  501. * src/XmlRpcMethodFactory.cc
  502. * src/XmlRpcMethodImpl.cc
  503. * src/XmlRpcMethodImpl.h
  504. * test/XmlRpcMethodTest.cc
  505. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Moved generateRandomKey() from bittorrent_helper to util.
  507. * src/DHTBucket.cc
  508. * src/DHTNode.cc
  509. * src/bittorrent_helper.cc
  510. * src/bittorrent_helper.h
  511. * src/util.cc
  512. * src/util.h
  513. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Updated doc about GID.
  515. * doc/aria2c.1.txt
  516. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  518. accepts a negative integer. 'offset' == -1 points last download
  519. in the waiting queue and 'offset' == -2 points the download before
  520. the last download, and so on. The downloads in the response are in
  521. reversed order.
  522. * doc/aria2c.1.txt
  523. * src/XmlRpcMethodImpl.cc
  524. * src/XmlRpcMethodImpl.h
  525. * test/XmlRpcMethodTest.cc
  526. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Added --human-readable option. This option, when true is given,
  528. prints sizes and speed in human readable format(e.g., 1.2Ki,
  529. 3.4Mi) in the console readout. The default value is true and it
  530. looks exactly the same as aria2-1.8.0. So the 'new feature'
  531. appears when false is given. In this case, sizes and speed are
  532. printed without in bytes. No Ki, Mi units conversion is used.
  533. This may be useful for a program to parse the output of aria2.
  534. * doc/aria2c.1.txt
  535. * src/ConsoleStatCalc.cc
  536. * src/ConsoleStatCalc.h
  537. * src/OptionHandlerFactory.cc
  538. * src/main.cc
  539. * src/prefs.cc
  540. * src/prefs.h
  541. * src/usage_text.h
  542. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  544. option accepts empty string "". When "" is given, it erases
  545. previously defined proxy.
  546. * doc/aria2c.1.txt
  547. * src/OptionHandlerImpl.h
  548. * src/usage_text.h
  549. * test/OptionHandlerTest.cc
  550. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Code cleanup for proxy URI handling.
  552. * src/AbstractCommand.cc
  553. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Added --bt-metadata-only option. If true is given to this option,
  555. aria2 downloads metadata only. The file(s) described in metadata
  556. will not be downloaded. This option has effect only when
  557. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  558. * doc/aria2c.1.txt
  559. * src/OptionHandlerFactory.cc
  560. * src/UTMetadataPostDownloadHandler.cc
  561. * src/download_helper.cc
  562. * src/prefs.cc
  563. * src/prefs.h
  564. * src/usage_text.h
  565. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Fixed memory leak. Commands stored in std::deque<Command*> are not
  567. deleted when exception is thrown. Make sure that when passing
  568. std::deque<Command*> to function to store Commands, handle
  569. exception and delete these Commands.
  570. * src/AbstractCommand.cc
  571. * src/CheckIntegrityCommand.cc
  572. * src/FileAllocationCommand.cc
  573. * src/RequestGroup.cc
  574. * src/TrackerWatcherCommand.cc
  575. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  577. * src/A2STR.cc
  578. * src/A2STR.h
  579. * src/FtpNegotiationCommand.cc
  580. * src/HttpResponseCommand.cc
  581. * src/util.cc
  582. * src/util.h
  583. * test/UtilTest.cc
  584. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Treat --dir="" as --dir="."
  586. * src/FtpNegotiationCommand.cc
  587. * src/HttpResponseCommand.cc
  588. * src/Metalink2RequestGroup.cc
  589. * src/UTMetadataPostDownloadHandler.cc
  590. * src/bittorrent_helper.cc
  591. * src/download_helper.cc
  592. * src/util.cc
  593. * src/util.h
  594. * test/UtilTest.cc
  595. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Code clean up.
  597. * src/main.cc
  598. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Reset GID to 1 when they reach maximum value. Rewritten
  600. CUIDCounter::newID()
  601. * src/CUIDCounter.h
  602. * src/RequestGroup.cc
  603. * src/RequestGroup.h
  604. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Documented --http-no-cache option in man page.
  606. * doc/aria2c.1.txt
  607. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Added --http-no-cache option. When true is given, aria2 sends
  609. Cache-Control: no-cache and Pragma: no-cache header to avoid
  610. cached content. If false is given , these headers are not sent
  611. and you can add Cache-Control header with a directive you like
  612. using --header option.
  613. * src/HttpRequest.cc
  614. * src/HttpRequest.h
  615. * src/HttpRequestCommand.cc
  616. * src/OptionHandlerFactory.cc
  617. * src/download_helper.cc
  618. * src/prefs.cc
  619. * src/prefs.h
  620. * src/usage_text.h
  621. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Removed Logger from OptionParser. When OptionParser is used to
  623. parse options at bootstrap, LogFactory is not configured yet
  624. properly. When LogFactory is used in OptionParser, it initializes
  625. itself to return a logger which has no ability to write log to the
  626. disk.
  627. * src/OptionParser.cc
  628. * src/OptionParser.h
  629. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Added following sentance to the help message of --out option:
  631. --out option is ignored when -Z is used.
  632. * doc/aria2c.1.txt
  633. * src/usage_text.h
  634. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Added --bt-save-metadata option to -i list options.
  636. * doc/aria2c.1.txt
  637. * src/download_helper.cc
  638. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  640. additional libraries.
  641. * src/MultiUrlRequestInfo.cc
  642. * src/NameResolver.cc
  643. * src/SelectEventPoll.cc
  644. * src/SelectEventPoll.h
  645. * src/SocketCore.cc
  646. * src/SocketCore.h
  647. * src/a2netcompat.h
  648. * src/daemon.cc
  649. * src/main.cc
  650. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed typo.
  652. * src/DHTMessageReceiver.cc
  653. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Fixed the bug that causes segmentation fault if unknown option is
  655. put in aria2.conf file. BUG#2928303
  656. * src/OptionParser.cc
  657. * src/OptionParser.h
  658. * src/option_processing.cc
  659. * test/OptionParserTest.cc
  660. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Ignore port message with port=0.
  662. * src/BtPortMessage.cc
  663. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Run autoupdate
  665. * configure.ac
  666. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Updated autoconf/automake auxiliary files.
  668. * INSTALL
  669. * config.guess
  670. * config.sub
  671. * depcomp
  672. * install-sh
  673. * m4/intldir.m4
  674. * missing
  675. * mkinstalldirs
  676. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Removed unused function.
  678. * src/SharedHandle.h
  679. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Find pooled socket using all cached addresses.
  681. * src/DNSCache.h
  682. * src/DownloadEngine.cc
  683. * src/DownloadEngine.h
  684. * src/InitiateConnectionCommand.cc
  685. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Updated copyright year.
  687. * src/version_usage.cc
  688. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Pool connection if _contentEncodingDecoder is used and server
  690. supports persistent connection.
  691. * src/HttpDownloadCommand.cc
  692. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Updated doc.
  694. * src/DownloadCommand.cc
  695. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Untabify. Fixed one line in copyright which is longer than 80
  697. columns.
  698. * src
  699. * test
  700. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Release 1.8.0
  702. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Updated po templates.
  704. * po/aria2.pot
  705. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Documented --bt-save-metadata option in man page.
  707. * doc/aria2c.1.txt
  708. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Fixed usage of --bt-save-metadata option.
  710. * src/usage_text.h
  711. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Updated po templates.
  713. * po/aria2.pot
  714. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  716. causes name resolution error when none of network interface has
  717. IPv4 address.
  718. * src/main.cc
  719. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Bump up version number to 1.8.0.
  721. * configure.ac
  722. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Use info hash as a filename when saving BitTorrent metadata.
  724. * src/UTMetadataPostDownloadHandler.cc
  725. * test/UTMetadataPostDownloadHandlerTest.cc
  726. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Documented system.multicall XML-RPC method in man page.
  728. * doc/aria2c.1.txt
  729. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added signal handler for SIGHUP to save .aria2 file when terminal
  731. is closed. The handler is the same one for SIGINT and SIGTERM.
  732. * src/MultiUrlRequestInfo.cc
  733. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Defined method name in XmlRpcMethod subclasses.
  735. * src/XmlRpcMethodFactory.cc
  736. * src/XmlRpcMethodImpl.cc
  737. * src/XmlRpcMethodImpl.h
  738. * test/XmlRpcMethodTest.cc
  739. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Added system.multicall XML-RPC method.
  741. * src/XmlRpcMethod.cc
  742. * src/XmlRpcMethod.h
  743. * src/XmlRpcMethodFactory.cc
  744. * src/XmlRpcMethodImpl.cc
  745. * src/XmlRpcMethodImpl.h
  746. * test/XmlRpcMethodTest.cc
  747. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Check structure depth when decoding.
  749. * src/bencode.cc
  750. * src/bencode.h
  751. * test/BencodeTest.cc
  752. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Documented tellStopped XML-RPC method in man page.
  754. * doc/aria2c.1.txt
  755. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Added tellStopped XML-RPC method to aria2rpc.
  757. * doc/xmlrpc/aria2rpc
  758. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Added tellStopped XML-RPC method. This method returns stopped
  760. download in the specified range. It takes same parameters with
  761. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  762. * src/XmlRpcMethodFactory.cc
  763. * src/XmlRpcMethodImpl.cc
  764. * src/XmlRpcMethodImpl.h
  765. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  767. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  768. when conducting unit tests because they fail if networking
  769. interface is not configured with IPv4 address.
  770. * src/NameResolver.cc
  771. * src/SocketCore.cc
  772. * src/SocketCore.h
  773. * src/a2netcompat.h
  774. * test/AllTest.cc
  775. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Fixed unit test error
  777. * test/UTMetadataPostDownloadHandlerTest.cc
  778. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Defined static string constants for efficiency.
  780. * src/XmlRpcMethodImpl.cc
  781. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Added --bt-save-metadata option. When true is given, it saves
  783. metadata as .torrent file. This option has effect only when
  784. BitTorrent Magnet URI is used. The filename is name in metadata
  785. with suffix .torrent. The directory to be saved is the same
  786. directory where download file is saved. If the same file already
  787. exists, metdata is not saved.
  788. * src/OptionHandlerFactory.cc
  789. * src/UTMetadataPostDownloadHandler.cc
  790. * src/UTMetadataPostDownloadHandler.h
  791. * src/message.h
  792. * src/prefs.cc
  793. * src/prefs.h
  794. * src/usage_text.h
  795. * test/UTMetadataDataExtensionMessageTest.cc
  796. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Added util::saveAs() function. Use it in Signature::save().
  798. * src/Signature.cc
  799. * src/util.cc
  800. * src/util.h
  801. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Upcase info hash in Magnet URI.
  803. * doc/aria2c.1.txt
  804. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Refactored RequestGroupMan::changeReservedGroupPosition()
  806. * src/RequestGroupMan.cc
  807. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Updated the description for aria2.addTorrent XML-RPC method.
  809. * doc/aria2c.1.txt
  810. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Added changePosition to aria2rpc.
  812. * doc/xmlrpc/aria2rpc
  813. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Documented changePosition XML-RPC method in man page.
  815. * doc/aria2c.1.txt
  816. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  818. pos and how. This method changes the position of download denoted
  819. by gid. If how is POS_SET, it moves the download to a position
  820. relative to the beginning of the queue. If how is POS_CUR, it
  821. moves the download to a position relative to the current
  822. position. If how is POS_END, it moves the download to a position
  823. relative to the end of the queue. If the destination position is
  824. less than 0 or beyond the end of the queue, it moves the download
  825. to the beginning or the end of the queue respectively. Returns
  826. the destination position.
  827. * src/RequestGroupMan.cc
  828. * src/RequestGroupMan.h
  829. * src/XmlRpcMethodFactory.cc
  830. * src/XmlRpcMethodImpl.cc
  831. * src/XmlRpcMethodImpl.h
  832. * test/RequestGroupManTest.cc
  833. * test/XmlRpcMethodTest.cc
  834. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Added getOption and getGlobalOption to aria2rpc.
  836. * doc/xmlrpc/aria2rpc
  837. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Documented getOption and getGlobalOption XML-RPC method in man
  839. page
  840. * doc/aria2c.1.txt
  841. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Added getOption and getGlobalOption XML-RPC method. getOption
  843. takes GID as a parameter and returns its options as struct.
  844. getGlobalOption takes no parameter and returns global
  845. options. Because global option is used as a template for the
  846. option of newly added downloads, it includes options returned by
  847. getOption.
  848. * src/Option.h
  849. * src/XmlRpcMethodFactory.cc
  850. * src/XmlRpcMethodImpl.cc
  851. * src/XmlRpcMethodImpl.h
  852. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Sort _optionHandlers in OptionParser by name in ascending order.
  854. Use vector instead of deque for efficiency.
  855. * src/OptionHandler.h
  856. * src/OptionHandlerFactory.h
  857. * src/OptionParser.cc
  858. * src/OptionParser.h
  859. * src/version_usage.cc
  860. * test/OptionParserTest.cc
  861. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Code cleanup
  863. * src/XmlRpcMethod.cc
  864. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Documented about followedBy and belongsTo in man page.
  866. * doc/aria2c.1.txt
  867. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Added following 2 keys, followedBy and belongsTo, to the response
  869. of tellStatus.
  870. followedBy: List of GIDs which are generated by the consequence of
  871. this download. For example, when aria2 downloaded Metalink file,
  872. it generates downloads described in it(see *--follow-metalink*
  873. option). This value is useful to track these auto generated
  874. downloads. If there is no such downloads, this key will not be
  875. included in the response.
  876. belongsTo: GID of a parent download. Some downloads are a part of
  877. another download. For example, if a file in Metalink has
  878. BitTorrent resource, the download of .torrent is a part of that
  879. file. If this download has no parent, this key will not be
  880. included in the response.
  881. * src/BtPostDownloadHandler.cc
  882. * src/DownloadResult.h
  883. * src/Metalink2RequestGroup.cc
  884. * src/MetalinkPostDownloadHandler.cc
  885. * src/RequestGroup.cc
  886. * src/RequestGroup.h
  887. * src/UTMetadataPostDownloadHandler.cc
  888. * src/XmlRpcMethodImpl.cc
  889. * src/XmlRpcMethodImpl.h
  890. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Assigned BObject in BDE() to avoid segmentation fault when calling
  892. methods of BDE::none().
  893. * src/BDE.cc
  894. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Show info hash in Magnet URI in upper case letters in -S output.
  896. * src/bittorrent_helper.cc
  897. * test/BittorrentHelperTest.cc
  898. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Removed old useless comment
  900. * src/MultiUrlRequestInfo.cc
  901. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  903. not properly used in configure script and failed to detect gnutls.
  904. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  905. and the initialization of pkg-config is done in first occurrence
  906. of PKG_CHECK_MODULES which is not executed because it is inside of
  907. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  908. * configure.ac
  909. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Release 1.7.2
  911. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Fixed the bug that RequestGroupMan::downloadFinished() returns
  913. true even if all downloads haven't finished, especially when
  914. PostDownloadHandler is involved. Changed the condition so that it
  915. only returns true if both _requestGroups and _reservedGroups are
  916. empty.
  917. * src/RequestGroupMan.cc
  918. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Log listening port for BitTorrent/DHT in notice level.
  920. * src/DHTConnectionImpl.cc
  921. * src/PeerListenCommand.cc
  922. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Updated po templates.
  924. * po/aria2.pot
  925. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Bump up version number to 1.7.2
  927. * configure.ac
  928. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Changed default value of --enable-dht from 'false' to 'true'.
  930. * doc/aria2c.1.txt
  931. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Enabled DHT by default because of Magnet URI support. To disable
  933. DHT, use --enable-dht=false
  934. * src/OptionHandlerFactory.cc
  935. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Print Magnet URI in -S output.
  937. * src/AnnounceList.cc
  938. * src/bittorrent_helper.cc
  939. * src/bittorrent_helper.h
  940. * test/BittorrentHelperTest.cc
  941. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Added --bt-prioritize-piece option to aria2rpc.
  943. * doc/xmlrpc/aria2rpc
  944. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Refer Magnet URI in --help. Made some cosmetic changes.
  946. * src/version_usage.cc
  947. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Updated -T and -M option.
  949. * doc/aria2c.1.txt
  950. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Fixed typo
  952. * doc/aria2c.1.txt
  953. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Fixed the bug that line separator is missing in horizontal bar.
  955. * doc/xmlrpc/aria2mon
  956. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Updated usage text for --metalink-file option.
  958. * src/usage_text.h
  959. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. If '-' is given as an argument to --metalink-file option, aria2
  961. reads Metalink file from stdin.
  962. * src/OptionHandlerFactory.cc
  963. * src/OptionHandlerImpl.h
  964. * src/a2io.h
  965. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Fixed the bug that aria2 listens wrong port if --interface option
  967. is used.
  968. * src/SocketCore.cc
  969. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Fixed the bug that query parameter in magnet URI is not decoded.
  971. * src/magnet.cc
  972. * test/MagnetTest.cc
  973. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Specified defaultSize as an argument for easy testing.
  975. * src/util.cc
  976. * src/util.h
  977. * test/UtilTest.cc
  978. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Release 1.7.1
  980. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Bump up version number to 1.7.1
  982. * configure.ac
  983. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Fixed the bug --bt-prioritize-piece=tail is not working.
  985. * src/util.cc
  986. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Release 1.7.0
  988. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Updated po templates.
  990. * po/aria2.pot
  991. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Updated help message for --bt-prioritize-piece. Some cosmetic
  993. changes.
  994. * doc/aria2c.1.txt
  995. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  997. * src/usage_text.h
  998. * src/util.cc
  999. * test/UtilTest.cc
  1000. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Updated Russian, Ukrainian, German and French translations.
  1002. Thanks to all translators involved.
  1003. * po/de.po
  1004. * po/fr.po
  1005. * po/ru.po
  1006. * po/uk.po
  1007. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Mentioned about pkg-config
  1009. * README
  1010. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Fixed typo. Referred --index-out option in BitTorrent notes.
  1012. * README
  1013. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1015. bind, try all addresses until success
  1016. * src/SocketCore.cc
  1017. * src/SocketCore.h
  1018. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Updated po templates.
  1020. * po/aria2.pot
  1021. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Bump up version number to 1.7.0
  1023. * configure.ac
  1024. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1026. * src/DefaultPieceStorage.cc
  1027. * src/DefaultPieceStorage.h
  1028. * src/PieceStorage.h
  1029. * src/UnknownLengthPieceStorage.cc
  1030. * src/UnknownLengthPieceStorage.h
  1031. * test/MockPieceStorage.h
  1032. * test/ProtocolDetectorTest.cc
  1033. * test/XmlRpcMethodTest.cc
  1034. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Documented in man page that if getifaddrs() is missing,
  1036. --interface option doesn't accept interface name.
  1037. * doc/aria2c.1.txt
  1038. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1040. * src/DefaultBtAnnounce.cc
  1041. * src/DefaultBtAnnounce.h
  1042. * test/DefaultBtAnnounceTest.cc
  1043. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Fixed the bug that connection is always dropped if handshake
  1045. message in extension protocol don't have metadata_size.
  1046. src/HandshakeExtensionMessage.cc
  1047. * src/HandshakeExtensionMessage.cc
  1048. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1050. text saying DHT is recommended when Magnet URI is provided.
  1051. * doc/aria2c.1.txt
  1052. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1054. URI is supplied. Notify user that they should consider enabling
  1055. DHT if they use Magnet URI.
  1056. * src/RequestGroup.cc
  1057. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Added --disable-ipv6 option to disable IPv6.
  1059. * doc/aria2c.1.txt
  1060. * src/InitiateConnectionCommand.cc
  1061. * src/NameResolver.cc
  1062. * src/NameResolver.h
  1063. * src/OptionHandlerFactory.cc
  1064. * src/main.cc
  1065. * src/prefs.cc
  1066. * src/prefs.h
  1067. * src/usage_text.h
  1068. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Updated usage text for --bt-prioritize-piece option.
  1070. * doc/aria2c.1.txt
  1071. * src/usage_text.h
  1072. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1074. given and PACKAGE is missing in the system or FEATURE cannot be
  1075. enabled, print error message and stop the script.
  1076. * configure.ac
  1077. * m4/aria2_arg.m4
  1078. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Halt metadata download immediately when metadata download is done.
  1080. Don't wait unresponsive tracker.
  1081. * src/ByteArrayDiskWriter.h
  1082. * src/DefaultBtInteractive.cc
  1083. * src/DefaultExtensionMessageFactory.cc
  1084. * src/DefaultExtensionMessageFactory.h
  1085. * src/PeerInteractionCommand.cc
  1086. * src/UTMetadataDataExtensionMessage.cc
  1087. * src/UTMetadataDataExtensionMessage.h
  1088. * src/UTMetadataRequestExtensionMessage.cc
  1089. * test/UTMetadataDataExtensionMessageTest.cc
  1090. * test/UTMetadataRequestExtensionMessageTest.cc
  1091. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Documented --interface option in man page.
  1093. * doc/aria2c.1.txt
  1094. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Try resolved address in the order received from the resolver.
  1096. * src/DNSCache.h
  1097. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Added debug logs.
  1099. * src/SocketCore.cc
  1100. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Fixed type of tail to uint64_t
  1102. * src/util.cc
  1103. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Added --interface option. This feature binds sockets to given
  1105. interface. You can specify interface name, IP address and
  1106. hostname.
  1107. * configure.ac
  1108. * src/OptionHandlerFactory.cc
  1109. * src/SocketCore.cc
  1110. * src/SocketCore.h
  1111. * src/main.cc
  1112. * src/message.h
  1113. * src/prefs.cc
  1114. * src/prefs.h
  1115. * src/usage_text.h
  1116. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Updated man page for bt-prioritize-piece option in -i list.
  1118. * doc/aria2c.1.txt
  1119. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Added bt-prioritize-piece option to -i list.
  1121. * src/download_helper.cc
  1122. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Removed --http-auth-scheme option from man page.
  1124. * doc/aria2c.1.txt
  1125. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Removed --http-auth-scheme option since it doesn't do nothing.
  1127. * src/OptionHandlerFactory.cc
  1128. * src/prefs.cc
  1129. * src/prefs.h
  1130. * src/usage_text.h
  1131. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Adjusted the number of peer info which get_peers reply message can
  1133. carry.
  1134. * src/DHTGetPeersReplyMessage.cc
  1135. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Added extension_message_test_helper.h to aria2c_SOURCES.
  1137. * test/Makefile.am
  1138. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Documented --bt-prioritize-piece option in man page.
  1140. * doc/aria2c.1.txt
  1141. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Added option --bt-prioritize-piece. This option instruct aria2 to
  1143. try to download first and last pieces of each file first. The
  1144. argument can contain 2 keywords:head and tail. To include both
  1145. keywords, they must be separated by comma. These keywords can take
  1146. one parameter, SIZE. For example , if head=SIZE is specified,
  1147. pieces in the range of first SIZE bytes of each file get higher
  1148. priority. tail=SIZE means the range of last SIZE bytes of each
  1149. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1150. * src/DefaultPieceStorage.h
  1151. * src/Makefile.am
  1152. * src/OptionHandlerFactory.cc
  1153. * src/OptionHandlerImpl.h
  1154. * src/PriorityPieceSelector.cc
  1155. * src/PriorityPieceSelector.h
  1156. * src/RequestGroup.cc
  1157. * src/prefs.cc
  1158. * src/prefs.h
  1159. * src/usage_text.h
  1160. * src/util.cc
  1161. * src/util.h
  1162. * test/Makefile.am
  1163. * test/MockPieceSelector.h
  1164. * test/PriorityPieceSelectorTest.cc
  1165. * test/UtilTest.cc
  1166. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Fixed typo
  1168. * src/HttpRequest.h
  1169. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. In Magnet URI with tr parameter, put each announce URI in separate
  1171. tier.
  1172. * src/bittorrent_helper.cc
  1173. * test/BittorrentHelperTest.cc
  1174. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Renamed ExtensionMessage::getBencodedData() as
  1176. ExtensionMessage::getPayload()
  1177. * src/BtExtendedMessage.cc
  1178. * src/ExtensionMessage.h
  1179. * src/HandshakeExtensionMessage.cc
  1180. * src/HandshakeExtensionMessage.h
  1181. * src/UTMetadataDataExtensionMessage.cc
  1182. * src/UTMetadataDataExtensionMessage.h
  1183. * src/UTMetadataRejectExtensionMessage.cc
  1184. * src/UTMetadataRejectExtensionMessage.h
  1185. * src/UTMetadataRequestExtensionMessage.cc
  1186. * src/UTMetadataRequestExtensionMessage.h
  1187. * src/UTPexExtensionMessage.cc
  1188. * src/UTPexExtensionMessage.h
  1189. * test/HandshakeExtensionMessageTest.cc
  1190. * test/MockExtensionMessage.h
  1191. * test/UTMetadataDataExtensionMessageTest.cc
  1192. * test/UTMetadataRejectExtensionMessageTest.cc
  1193. * test/UTMetadataRequestExtensionMessageTest.cc
  1194. * test/UTPexExtensionMessageTest.cc
  1195. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Updated man page for BitTorrent Magnet URI.
  1197. * doc/aria2c.1.txt
  1198. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Call DownloadContext::setOwnerRequestGroup() in
  1200. RequestGroup::setDownloadContext().
  1201. * src/BtDependency.cc
  1202. * src/RequestGroup.cc
  1203. * src/RequestGroup.h
  1204. * src/download_helper.cc
  1205. * test/DefaultBtMessageDispatcherTest.cc
  1206. * test/DefaultExtensionMessageFactoryTest.cc
  1207. * test/HandshakeExtensionMessageTest.cc
  1208. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1210. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1211. from metadata, use new metadata2Torrent() function.
  1212. * src/BtDependency.cc
  1213. * src/UTMetadataPostDownloadHandler.cc
  1214. * src/bittorrent_helper.cc
  1215. * src/bittorrent_helper.h
  1216. * test/BittorrentHelperTest.cc
  1217. * test/BtDependencyTest.cc
  1218. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Use createRequestGroupForUri to create the download for torrent
  1220. file.
  1221. * src/Metalink2RequestGroup.cc
  1222. * test/Metalink2RequestGroupTest.cc
  1223. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Fixed typo
  1225. * src/DownloadContext.h
  1226. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Use createRequestGroupForBitTorrent()
  1228. * src/BtPostDownloadHandler.cc
  1229. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Added remove().
  1231. * src/Option.cc
  1232. * src/Option.h
  1233. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Removed options which is only valid for URIs specified in
  1235. command-line. If they are left, because op is used as a template
  1236. for new RequestGroup(such as created in XML-RPC command,
  1237. BtPostDownloadHandler etc), they causes unintentional effect.
  1238. * src/main.cc
  1239. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Refer to option value of PREF_OUT only in download_helper.
  1241. * src/FtpNegotiationCommand.cc
  1242. * src/HttpResponseCommand.cc
  1243. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1245. * src/download_helper.cc
  1246. * src/download_helper.h
  1247. * src/XmlRpcMethodImpl.cc
  1248. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Updated man page for changeOption XML-RPC method.
  1250. * doc/aria2c.1.txt
  1251. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Added --bt-max-peers option to changeOption XML-RPC method.
  1253. * src/XmlRpcMethod.cc
  1254. * src/XmlRpcMethodImpl.cc
  1255. * test/XmlRpcMethodTest.cc
  1256. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1257. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1258. * test/XmlRpcMethodTest.cc
  1259. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Removed redundant DownloadContext::hasAttribute(...) calls.
  1261. * src/ConsoleStatCalc.cc
  1262. * src/RequestGroup.cc
  1263. * src/XmlRpcMethodImpl.cc
  1264. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Changed the number of tracker request attempt from 5 to 2.
  1266. * src/TrackerWatcherCommand.cc
  1267. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Use host and protocol in original URI, because URI selector
  1269. selects URI based on original URI, not redirected one.
  1270. * src/Request.cc
  1271. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Fixed the bug which causes segmentation fault with tellWaiting
  1273. XML-RPC method when BitTorrent download is waiting. The key of
  1274. BtRegistry is changed from info hash to GID, because it is
  1275. registered per RequestGroup, not info hash.
  1276. * src/BtRegistry.cc
  1277. * src/BtRegistry.h
  1278. * src/BtSetup.cc
  1279. * src/ConsoleStatCalc.cc
  1280. * src/InitiatorMSEHandshakeCommand.cc
  1281. * src/PeerInitiateConnectionCommand.cc
  1282. * src/PeerInteractionCommand.cc
  1283. * src/PeerInteractionCommand.h
  1284. * src/PeerReceiveHandshakeCommand.cc
  1285. * src/RequestGroup.cc
  1286. * src/XmlRpcMethodImpl.cc
  1287. * test/BtRegistryTest.cc
  1288. * test/XmlRpcMethodTest.cc
  1289. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Updated man page for changeOption XML-RPC method.
  1291. * doc/aria2c.1.txt
  1292. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1294. method.
  1295. * src/XmlRpcMethod.cc
  1296. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Documented about BitTorrent Magnet URI in man page.
  1298. * doc/aria2c.1.txt
  1299. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1301. inherited to generated RequestGroup.
  1302. * src/UTMetadataPostDownloadHandler.cc
  1303. * test/UTMetadataPostDownloadHandlerTest.cc
  1304. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Prepended "[METADATA]" before dn.
  1306. * src/bittorrent_helper.cc
  1307. * test/BittorrentHelperTest.cc
  1308. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Rewritten Magnet URI parser.
  1310. * src/Makefile.am
  1311. * src/ProtocolDetector.cc
  1312. * src/bittorrent_helper.cc
  1313. * src/bittorrent_helper.h
  1314. * src/download_helper.cc
  1315. * src/magnet.cc
  1316. * src/magnet.h
  1317. * test/BittorrentHelperTest.cc
  1318. * test/MagnetTest.cc
  1319. * test/Makefile.am
  1320. * test/ProtocolDetectorTest.cc
  1321. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Use hton64
  1323. * src/base32.cc
  1324. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Added Base32 encoded BitTorrent Magnet Link support.
  1326. * src/Makefile.am
  1327. * src/base32.cc
  1328. * src/base32.h
  1329. * src/bittorrent_helper.cc
  1330. * test/Base32Test.cc
  1331. * test/BittorrentHelperTest.cc
  1332. * test/Makefile.am
  1333. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1335. supported yet. Fixed typo in method name in RequestGroup. In
  1336. metadataGetMode, don't show "Your share ratio was ..." message.
  1337. * src/DefaultBtInteractive.cc
  1338. * src/DefaultBtInteractive.h
  1339. * src/DownloadHandlerFactory.cc
  1340. * src/DownloadHandlerFactory.h
  1341. * src/HandshakeExtensionMessage.cc
  1342. * src/Makefile.am
  1343. * src/Metalink2RequestGroup.cc
  1344. * src/PeerInteractionCommand.cc
  1345. * src/RequestGroup.cc
  1346. * src/RequestGroup.h
  1347. * src/UTMetadataPostDownloadHandler.cc
  1348. * src/UTMetadataPostDownloadHandler.h
  1349. * src/download_helper.cc
  1350. * test/HandshakeExtensionMessageTest.cc
  1351. * test/Makefile.am
  1352. * test/UTMetadataPostDownloadHandlerTest.cc
  1353. * test/UTMetadataRejectExtensionMessageTest.cc
  1354. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. In metadataGetMode, don't show SEEDING.
  1356. * src/ConsoleStatCalc.cc
  1357. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed ut_metadata data handling. Implemented
  1359. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1360. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1361. metadata_size is received.
  1362. * src/DefaultExtensionMessageFactory.cc
  1363. * src/DefaultExtensionMessageFactory.h
  1364. * src/HandshakeExtensionMessage.cc
  1365. * src/HandshakeExtensionMessage.h
  1366. * src/UTMetadataDataExtensionMessage.cc
  1367. * src/UTMetadataDataExtensionMessage.h
  1368. * src/UTMetadataRequestExtensionMessage.cc
  1369. * src/UTMetadataRequestFactory.cc
  1370. * src/UTMetadataRequestFactory.h
  1371. * src/UTMetadataRequestTracker.cc
  1372. * src/UTMetadataRequestTracker.h
  1373. * test/DefaultExtensionMessageFactoryTest.cc
  1374. * test/HandshakeExtensionMessageTest.cc
  1375. * test/MockBtMessage.h
  1376. * test/UTMetadataDataExtensionMessageTest.cc
  1377. * test/UTMetadataRequestExtensionMessageTest.cc
  1378. * test/UTMetadataRequestFactoryTest.cc
  1379. * test/UTMetadataRequestTrackerTest.cc
  1380. * test/extension_message_test_helper.h
  1381. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Drop connection if ut_metadata reject message is received.
  1383. * src/UTMetadataRejectExtensionMessage.cc
  1384. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1386. get high enough in that mode.
  1387. * src/ActivePeerConnectionCommand.cc
  1388. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Added BitTorrent magnet link support to ProtocolDetector.
  1390. * src/ProtocolDetector.cc
  1391. * src/ProtocolDetector.h
  1392. * test/ProtocolDetectorTest.cc
  1393. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Don't inject validator into BtMessage in metadataGetMode because
  1395. most of the checks depends on the total length of download but it
  1396. is unknown. Delegate metadataGetMode to BtMessage.
  1397. * src/DefaultBtMessageFactory.cc
  1398. * src/DefaultBtMessageFactory.h
  1399. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1401. * src/DefaultPieceStorage.h
  1402. * src/PieceStorage.h
  1403. * src/UnknownLengthPieceStorage.h
  1404. * test/MockPieceStorage.h
  1405. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Added markTotalLengthIsKnown().
  1407. * src/DownloadContext.h
  1408. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1410. missing. If metadata is missing, always use DHT when it is ready.
  1411. * src/BtSetup.cc
  1412. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Added parseMagnetLink(). Hex encoded info hash is supported.
  1414. Base32 encoded info hash is not supported yet.
  1415. * src/bittorrent_helper.cc
  1416. * src/bittorrent_helper.h
  1417. * test/BittorrentHelperTest.cc
  1418. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Added FromHex()
  1420. * src/util.cc
  1421. * src/util.h
  1422. * test/UtilTest.cc
  1423. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Added _metadataGetMode member variable. It toggles the action when
  1425. messages are received: usually they almost do nothing if
  1426. _metadataGetMode is true.
  1427. * src/AbstractBtMessage.cc
  1428. * src/AbstractBtMessage.h
  1429. * src/BtAllowedFastMessage.cc
  1430. * src/BtBitfieldMessage.cc
  1431. * src/BtCancelMessage.cc
  1432. * src/BtChokeMessage.cc
  1433. * src/BtHaveAllMessage.cc
  1434. * src/BtHaveMessage.cc
  1435. * src/BtInterestedMessage.cc
  1436. * src/BtNotInterestedMessage.cc
  1437. * src/BtPieceMessage.cc
  1438. * src/BtRejectMessage.cc
  1439. * src/BtRequestMessage.cc
  1440. * src/BtUnchokeMessage.cc
  1441. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Added bencode::decode overload functions. They have extra argument
  1443. 'end', passed by reference. 'end' points to the beyond the last
  1444. position of data used in decoding process.
  1445. * src/bencode.cc
  1446. * src/bencode.h
  1447. * test/BencodeTest.cc
  1448. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Initial support of Extension for Peers to Send Metadata
  1450. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1451. metadata from swarm.
  1452. * src/BtConstants.h
  1453. * src/DefaultBtInteractive.cc
  1454. * src/DefaultExtensionMessageFactory.cc
  1455. * src/DefaultExtensionMessageFactory.h
  1456. * src/ExtensionMessage.h
  1457. * src/ExtensionMessageRegistry.h
  1458. * src/HandshakeExtensionMessage.cc
  1459. * src/HandshakeExtensionMessage.h
  1460. * src/Makefile.am
  1461. * src/PeerConnection.h
  1462. * src/PeerInteractionCommand.cc
  1463. * src/UTMetadataDataExtensionMessage.cc
  1464. * src/UTMetadataDataExtensionMessage.h
  1465. * src/UTMetadataExtensionMessage.cc
  1466. * src/UTMetadataExtensionMessage.h
  1467. * src/UTMetadataRejectExtensionMessage.cc
  1468. * src/UTMetadataRejectExtensionMessage.h
  1469. * src/UTMetadataRequestExtensionMessage.cc
  1470. * src/UTMetadataRequestExtensionMessage.h
  1471. * src/bittorrent_helper.cc
  1472. * src/bittorrent_helper.h
  1473. * test/BittorrentHelperTest.cc
  1474. * test/DefaultExtensionMessageFactoryTest.cc
  1475. * test/HandshakeExtensionMessageTest.cc
  1476. * test/Makefile.am
  1477. * test/UTMetadataDataExtensionMessageTest.cc
  1478. * test/UTMetadataRejectExtensionMessageTest.cc
  1479. * test/UTMetadataRequestExtensionMessageTest.cc
  1480. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Cancel segment in prepareForRetry() because there is a chance that
  1482. the command has segments.
  1483. * src/CreateRequestCommand.cc
  1484. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Fixed the bug that slow server is not knocked down in favor of
  1486. faster one.
  1487. * src/AbstractCommand.cc
  1488. * src/DefaultPieceStorage.cc
  1489. * src/DefaultPieceStorage.h
  1490. * src/PieceStorage.h
  1491. * src/UnknownLengthPieceStorage.cc
  1492. * src/UnknownLengthPieceStorage.h
  1493. * test/MockPieceStorage.h
  1494. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Fixed the bug that Request object is not added to
  1496. _inFlightRequests in findFasterRequest().
  1497. * src/FileEntry.cc
  1498. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Changed the strategry of how to increase the number of outstanding
  1500. requests. Now the number is doubled if there are no outstanding
  1501. requests after receiving messages.
  1502. * src/BtConstants.h
  1503. * src/DefaultBtInteractive.cc
  1504. * src/DefaultBtInteractive.h
  1505. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Check socket for reading if there are outstanding requests.
  1507. * src/PeerInteractionCommand.cc
  1508. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Moved frequently called methods to header file so they get
  1510. inlined.
  1511. * src/RequestSlot.cc
  1512. * src/RequestSlot.h
  1513. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Copied in_addr instead of just casting from char* which might
  1515. violate strict aliasing rules.
  1516. * src/AsyncNameResolver.cc
  1517. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Use dynamic_pointer_cast
  1519. * test/BtPieceMessageTest.cc
  1520. * test/BtRequestMessageTest.cc
  1521. * test/DefaultBtRequestFactoryTest.cc
  1522. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Added testSetUrl20()
  1524. * test/RequestTest.cc
  1525. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Code cleanup
  1527. * src/bittorrent_helper.cc
  1528. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Use C++ style cast
  1530. * src/AsyncNameResolver.cc
  1531. * src/Base64.h
  1532. * src/BtBitfieldMessage.cc
  1533. * src/BtHandshakeMessage.cc
  1534. * src/DefaultBtMessageFactory.cc
  1535. * src/DefaultBtProgressInfoFile.cc
  1536. * src/EpollEventPoll.cc
  1537. * src/ExpatMetalinkProcessor.cc
  1538. * src/IteratableChecksumValidator.cc
  1539. * src/IteratableChunkChecksumValidator.cc
  1540. * src/MessageDigestHelper.cc
  1541. * src/Platform.cc
  1542. * src/RequestGroupMan.cc
  1543. * src/SingleFileAllocationIterator.cc
  1544. * src/Sqlite3MozCookieParser.cc
  1545. * src/XML2SAXMetalinkProcessor.cc
  1546. * src/Xml2XmlRpcRequestProcessor.cc
  1547. * src/util.cc
  1548. * src/util.h
  1549. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Fixed integer potential alignment problem.
  1551. * src/bitfield.h
  1552. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1554. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1555. include file ordering.
  1556. * src/PeerListProcessor.h
  1557. * src/bittorrent_helper.cc
  1558. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1560. * src/Request.cc
  1561. * src/util.cc
  1562. * src/util.h
  1563. * test/RequestTest.cc
  1564. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Rewritten util::uitos()
  1566. * src/util.h
  1567. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Code cleanup
  1569. * src/Request.cc
  1570. * src/Request.h
  1571. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Rewritten Request::parseUrl()
  1573. * src/Request.cc
  1574. * test/RequestTest.cc
  1575. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Removed unused macro SAFE_CHARS
  1577. * src/Request.cc
  1578. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Updated doc
  1580. * src/DHTRoutingTableDeserializer.cc
  1581. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Release 1.6.3
  1583. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Removed unused function.
  1585. * test/DHTPeerAnnounceStorageTest.cc
  1586. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Only decrement cols if cols > 0
  1588. * src/ConsoleStatCalc.cc
  1589. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1591. translations. Thanks to all translators.
  1592. * po/ca.po
  1593. * po/fr.po
  1594. * po/it.po
  1595. * po/ja.po
  1596. * po/pl.po
  1597. * po/ru.po
  1598. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Updated translation template
  1600. * po
  1601. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Fixed compile error without ssl library.
  1603. * src/util.cc
  1604. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Logged received nodes in get_peers reply message.
  1606. * src/DHTAbstractNodeLookupTask.cc
  1607. * src/DHTAbstractNodeLookupTask.h
  1608. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1610. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1611. * src/DHTMessageDispatcherImpl.cc
  1612. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Don't reuse URI if Request pool is not empty.
  1614. * src/CreateRequestCommand.cc
  1615. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1617. receive get_peers request for torrent which the client is now
  1618. downloading.
  1619. * src/BtSetup.cc
  1620. * src/DHTPeerAnnounceEntry.cc
  1621. * src/DHTPeerAnnounceEntry.h
  1622. * src/DHTPeerAnnounceStorage.cc
  1623. * src/DHTPeerAnnounceStorage.h
  1624. * src/RequestGroup.cc
  1625. * test/DHTPeerAnnounceEntryTest.cc
  1626. * test/DHTPeerAnnounceStorageTest.cc
  1627. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Fixed the bug that in Windows environment new blank line is
  1629. inserted when console readout is updated.
  1630. * src/ConsoleStatCalc.cc
  1631. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Throw exception if binding listening port is failed. Removed
  1633. RequestGroupMan::getInitialCommand(). Use
  1634. fillRequestGroupFromReserver() instead. Delete commands for
  1635. RequestGroup which has errors when it is being added.
  1636. * src/BtSetup.cc
  1637. * src/DownloadEngine.cc
  1638. * src/DownloadEngine.h
  1639. * src/DownloadEngineFactory.cc
  1640. * src/MultiUrlRequestInfo.cc
  1641. * src/RequestGroupMan.cc
  1642. * src/RequestGroupMan.h
  1643. * test/RequestGroupManTest.cc
  1644. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Fixed the bug that when downloading more than one torrent,
  1646. listening port is not reported properly to tracker for 2nd or
  1647. later torrents.
  1648. * src/BtSetup.cc
  1649. * src/PeerListenCommand.cc
  1650. * src/PeerListenCommand.h
  1651. * src/RequestGroup.cc
  1652. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Bump up version number to 1.6.3
  1654. * configure.ac
  1655. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Removed Util.cc from POTFILES.in
  1657. * po/POTFILES.in
  1658. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Updated man page for previous change.
  1660. * doc/aria2c.1.txt
  1661. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. If user name is embedded but password is missing in URI, first
  1663. resolve password using .netrc. If password is found in .netrc,
  1664. then use it as password. If not, use the password specified in
  1665. --ftp-passwd.
  1666. * src/AuthConfigFactory.cc
  1667. * src/Request.cc
  1668. * src/Request.h
  1669. * test/AuthConfigFactoryTest.cc
  1670. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Fixed typo
  1672. * doc/aria2c.1.txt
  1673. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Fixed typo
  1675. * src/usage_text.h
  1676. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Added missing bitfield.cc
  1678. * src/bitfield.cc
  1679. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Renamed Util.{cc,h} as util.{cc,h}
  1681. * src/Util.cc
  1682. * src/Util.h
  1683. * src/util.cc
  1684. * src/util.h
  1685. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Moved static functions in Util class to namespace util.
  1687. * src
  1688. * test
  1689. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1691. Moved generateRandomKey to bittorrent_helper.cc.
  1692. * src/DHTBucket.cc
  1693. * src/DHTGetPeersMessage.cc
  1694. * src/DHTGetPeersReplyMessage.cc
  1695. * src/DHTMessage.cc
  1696. * src/DHTNode.cc
  1697. * src/DHTTokenTracker.cc
  1698. * src/DHTUtil.cc: Removed.
  1699. * src/DHTUtil.h: Removed.
  1700. * src/Makefile.am
  1701. * src/Util.cc
  1702. * src/Util.h
  1703. * src/bitfield.h
  1704. * src/bittorrent_helper.cc
  1705. * src/bittorrent_helper.h
  1706. * test/ARC4Test.cc
  1707. * test/BNodeTest.cc
  1708. * test/DHTAnnouncePeerMessageTest.cc
  1709. * test/DHTAnnouncePeerReplyMessageTest.cc
  1710. * test/DHTFindNodeMessageTest.cc
  1711. * test/DHTFindNodeReplyMessageTest.cc
  1712. * test/DHTGetPeersMessageTest.cc
  1713. * test/DHTGetPeersReplyMessageTest.cc
  1714. * test/DHTPingMessageTest.cc
  1715. * test/DHTPingReplyMessageTest.cc
  1716. * test/DHTTokenTrackerTest.cc
  1717. * test/DHTUtilTest.cc: Removed.
  1718. * test/Makefile.am
  1719. * test/UtilTest.cc
  1720. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Removed the call to trim() because trim() is called for each
  1722. element in split().
  1723. * src/CookieParser.cc
  1724. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Replaced Util::slice() with split()
  1726. * src/AbstractCommand.cc
  1727. * src/CookieParser.cc
  1728. * src/File.cc
  1729. * src/HttpHeaderProcessor.cc
  1730. * src/HttpRequest.cc
  1731. * src/Metalink2RequestGroup.cc
  1732. * src/MetalinkParserController.cc
  1733. * src/Netrc.cc
  1734. * src/NsCookieParser.cc
  1735. * src/ParameterizedStringParser.cc
  1736. * src/ServerStatMan.cc
  1737. * src/UriListParser.cc
  1738. * src/Util.cc
  1739. * src/Util.h
  1740. * src/bittorrent_helper.cc
  1741. * test/UtilTest.cc
  1742. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Use request->getDir() instead of "/" for embedded user/pass in
  1744. URI.
  1745. * src/AuthConfigFactory.cc
  1746. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Fixed wrong insertion point for BasicCred.
  1748. * src/AuthConfigFactory.cc
  1749. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Allowed non-regular file in LocalFilePathOptionHandler
  1751. * src/OptionHandlerImpl.h
  1752. * src/message.h
  1753. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1755. * src/Netrc.cc
  1756. * src/Util.h
  1757. * test/NetrcTest.cc
  1758. * test/sample.netrc
  1759. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Fixed typo
  1761. * src/BtDependency.cc
  1762. * src/BtRejectMessage.cc
  1763. * src/FtpConnection.cc
  1764. * src/HttpHeaderProcessor.h
  1765. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Fixed lintian report in man page
  1767. * doc/aria2c.1.txt
  1768. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Release 1.6.2
  1770. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Updated Ukrainian translation. Thanks to all translators.
  1772. * po/uk.po
  1773. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Updated translation template
  1775. * po
  1776. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Bump up version number to 1.6.2
  1778. * configure.ac
  1779. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Updated licence message in -v output.
  1781. * src/version_usage.cc
  1782. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Replaced aria2 with aria2c in help message.
  1784. * src/version_usage.cc
  1785. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1787. * src/version_usage.cc
  1788. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Quoted localedir
  1790. * src/Makefile.am
  1791. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1793. utime. Check header for utime.h.
  1794. * configure.ac
  1795. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1797. * configure.ac
  1798. * src/daemon.cc
  1799. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Don't set localedir manually. Leave it to autoconf.
  1801. * configure.ac
  1802. * src/Makefile.am
  1803. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Added --install to ACLOCAL_AMFLAGS.
  1805. Removed m4 from SUBDIRS.
  1806. Updated automake 1.11 and autoconf 2.64.
  1807. Replaced some obsolute macros with new one.
  1808. * Makefile.am
  1809. * configure.ac
  1810. * m4/aria2_arg.m4
  1811. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Removed Makefile.am in m4 directory.
  1813. * configure.ac
  1814. * m4/ChangeLog
  1815. * m4/Makefile.am
  1816. * m4/Makefile.in
  1817. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Removed unused m4 macros.
  1819. * m4/intldir.m4
  1820. * m4/inttypes.m4
  1821. * m4/isc-posix.m4
  1822. * m4/libgnutls-extra.m4
  1823. * m4/ulonglong.m4
  1824. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Fixed the bug that causes segmentation fault if
  1826. req->getCurrentUrl() contains printf formatting characters such as
  1827. %d. The statement that causes this bug is useless and removed.
  1828. * src/AbstractCommand.cc
  1829. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. * Release 1.6.1
  1831. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Updated Simplified Chinese translation. Thanks to translators.
  1833. * po/zh_CN.po
  1834. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Updated translation template
  1836. * po
  1837. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Bump up version number to 1.6.1
  1839. * configure.ac
  1840. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Changed interval from 120 to 60 for dropping inactive peer.
  1842. * src/DefaultBtInteractive.cc
  1843. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Updated man page for --user-agent and --peer-id-prefix option.
  1845. * doc/aria2c.1.txt
  1846. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Code clean up
  1848. * src/BtPostDownloadHandler.cc
  1849. * src/ContentTypeRequestGroupCriteria.cc
  1850. * src/ContentTypeRequestGroupCriteria.h
  1851. * src/DownloadHandlerConstants.cc
  1852. * src/DownloadHandlerConstants.h
  1853. * src/DownloadHandlerFactory.cc
  1854. * src/MetalinkPostDownloadHandler.cc
  1855. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Don't save control file when aria2 exists while checking piece
  1857. hash(behavior of -V option). If control file doesn't exist when
  1858. aria2 launched, the completed length in saved control file will be
  1859. 0 byte and this confuses user. disableSaveControlFile() is called
  1860. in RequestGroup::processCheckIntegrityEntry().
  1861. enableSaveControlFile() will be called after hash checking is
  1862. done. See CheckIntegrityCommand.
  1863. * src/CheckIntegrityCommand.cc
  1864. * src/RequestGroup.cc
  1865. * src/RequestGroup.h
  1866. * src/RequestGroupMan.cc
  1867. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Included version number in Peer ID and client version. Peer ID
  1869. now starts with "aria2/VERSION-", where VERSION is
  1870. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1871. * src/DefaultBtInteractive.cc
  1872. * src/OptionHandlerFactory.cc
  1873. * src/bittorrent_helper.cc
  1874. * src/bittorrent_helper.h
  1875. * src/main.cc
  1876. * src/usage_text.h
  1877. * test/BittorrentHelperTest.cc
  1878. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Fixed memory leak.
  1880. * src/DownloadCommand.cc
  1881. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Removed server, port, user and passwd key from options before
  1883. XMLRPC::Client.call since they are not options of aria2.
  1884. * doc/xmlrpc/aria2mon
  1885. * doc/xmlrpc/aria2rpc
  1886. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Included version number in user-agent string.
  1888. * src/OptionHandlerFactory.cc
  1889. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Fixed the bug that the option values changed by XML-RPC
  1891. method(changeOption and changeGlobalOption) are overwritten to the
  1892. previous value by the next these request which doesn't contain
  1893. that option value. Supporse max-download-limit is initially 0. You
  1894. changed this value to 100K by changeOption. Then you issue
  1895. changeOption request to change max-upload-limit to 50K. This
  1896. second request doesn't contain xml-download-limit, so it is back
  1897. to initial value, 0. Another improvement is that exception is
  1898. thrown when changeOption and changeGlobalOption request contains
  1899. option name which doesn't allowed in each request.
  1900. * src/DownloadEngine.h
  1901. * src/XmlRpcMethod.cc
  1902. * src/XmlRpcMethod.h
  1903. * src/XmlRpcMethodImpl.cc
  1904. * src/download_helper.cc
  1905. * src/download_helper.h
  1906. * test/XmlRpcMethodTest.cc
  1907. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Added missing MetalinkParserStateImpl.{cc,h}
  1909. * src/MetalinkParserStateImpl.cc
  1910. * src/MetalinkParserStateImpl.h
  1911. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Put all MetalinkParserState subclasses into
  1913. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1914. * src/FileMetalinkParserState.cc: Removed
  1915. * src/FileMetalinkParserState.h: Removed
  1916. * src/FilesMetalinkParserState.cc: Removed
  1917. * src/FilesMetalinkParserState.h: Removed
  1918. * src/FinMetalinkParserState.cc: Removed
  1919. * src/FinMetalinkParserState.h: Removed
  1920. * src/HashMetalinkParserState.cc: Removed
  1921. * src/HashMetalinkParserState.h: Removed
  1922. * src/InitialMetalinkParserState.cc: Removed
  1923. * src/InitialMetalinkParserState.h: Removed
  1924. * src/LanguageMetalinkParserState.cc: Removed
  1925. * src/LanguageMetalinkParserState.h: Removed
  1926. * src/Makefile.am
  1927. * src/MetalinkMetalinkParserState.cc: Removed
  1928. * src/MetalinkMetalinkParserState.h: Removed
  1929. * src/MetalinkParserState.h
  1930. * src/MetalinkParserStateMachine.cc
  1931. * src/MetalinkParserStateMachine.h
  1932. * src/OSMetalinkParserState.cc: Removed
  1933. * src/OSMetalinkParserState.h: Removed
  1934. * src/PieceHashMetalinkParserState.cc: Removed
  1935. * src/PieceHashMetalinkParserState.h: Removed
  1936. * src/PiecesMetalinkParserState.cc: Removed
  1937. * src/PiecesMetalinkParserState.h: Removed
  1938. * src/ResourcesMetalinkParserState.cc: Removed
  1939. * src/ResourcesMetalinkParserState.h: Removed
  1940. * src/SignatureMetalinkParserState.cc: Removed
  1941. * src/SignatureMetalinkParserState.h: Removed
  1942. * src/SizeMetalinkParserState.cc: Removed
  1943. * src/SizeMetalinkParserState.h: Removed
  1944. * src/SkipTagMetalinkParserState.cc: Removed
  1945. * src/SkipTagMetalinkParserState.h: Removed
  1946. * src/URLMetalinkParserState.cc: Removed
  1947. * src/URLMetalinkParserState.h: Removed
  1948. * src/VerificationMetalinkParserState.cc: Removed
  1949. * src/VerificationMetalinkParserState.h: Removed
  1950. * src/VersionMetalinkParserState.cc: Removed
  1951. * src/VersionMetalinkParserState.h: Removed
  1952. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Move all functions in PeerMessageUtil to bittorrent_helper.
  1954. * src/BtBitfieldMessage.cc
  1955. * src/BtBitfieldMessageValidator.h
  1956. * src/BtExtendedMessage.cc
  1957. * src/BtHandshakeMessage.cc
  1958. * src/BtHandshakeMessageValidator.h
  1959. * src/BtPieceMessage.cc
  1960. * src/BtPieceMessageValidator.h
  1961. * src/BtPortMessage.cc
  1962. * src/DHTFindNodeReplyMessage.cc
  1963. * src/DHTGetPeersReplyMessage.cc
  1964. * src/DHTMessageFactoryImpl.cc
  1965. * src/DHTRoutingTableDeserializer.cc
  1966. * src/DHTRoutingTableSerializer.cc
  1967. * src/DHTTokenTracker.cc
  1968. * src/DefaultBtMessageFactory.cc
  1969. * src/IndexBtMessage.cc
  1970. * src/IndexBtMessage.h
  1971. * src/IndexBtMessageValidator.h
  1972. * src/Makefile.am
  1973. * src/PeerMessageUtil.cc: Removed.
  1974. * src/PeerMessageUtil.h: Removed.
  1975. * src/RangeBtMessage.cc
  1976. * src/RangeBtMessage.h
  1977. * src/RangeBtMessageValidator.h
  1978. * src/UTPexExtensionMessage.cc
  1979. * src/ZeroBtMessage.cc
  1980. * src/ZeroBtMessage.h
  1981. * src/bittorrent_helper.cc
  1982. * src/bittorrent_helper.h
  1983. * test/BittorrentHelperTest.cc
  1984. * test/BtAllowedFastMessageTest.cc
  1985. * test/BtBitfieldMessageTest.cc
  1986. * test/BtCancelMessageTest.cc
  1987. * test/BtChokeMessageTest.cc
  1988. * test/BtExtendedMessageTest.cc
  1989. * test/BtHandshakeMessageTest.cc
  1990. * test/BtHaveAllMessageTest.cc
  1991. * test/BtHaveMessageTest.cc
  1992. * test/BtHaveNoneMessageTest.cc
  1993. * test/BtInterestedMessageTest.cc
  1994. * test/BtNotInterestedMessageTest.cc
  1995. * test/BtPieceMessageTest.cc
  1996. * test/BtPortMessageTest.cc
  1997. * test/BtRejectMessageTest.cc
  1998. * test/BtRequestMessageTest.cc
  1999. * test/BtSuggestPieceMessageTest.cc
  2000. * test/BtUnchokeMessageTest.cc
  2001. * test/DHTFindNodeReplyMessageTest.cc
  2002. * test/DHTGetPeersReplyMessageTest.cc
  2003. * test/DHTMessageFactoryImplTest.cc
  2004. * test/DHTRoutingTableDeserializerTest.cc
  2005. * test/DHTRoutingTableSerializerTest.cc
  2006. * test/DefaultBtMessageFactoryTest.cc
  2007. * test/DefaultExtensionMessageFactoryTest.cc
  2008. * test/Makefile.am
  2009. * test/PeerListProcessorTest.cc
  2010. * test/PeerMessageUtilTest.cc: Removed.
  2011. * test/UTPexExtensionMessageTest.cc
  2012. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Limit the size of values list when sending get_peers reply.
  2014. * src/DHTGetPeersReplyMessage.cc
  2015. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Updated banner
  2017. * doc/xmlrpc/aria2rpc
  2018. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Added missing help message for remove command.
  2020. * doc/xmlrpc/aria2rpc
  2021. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Generated configure and config.h.in
  2023. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2024. Add check for fork(), which is missing on MinGW
  2025. * src/daemon.cc
  2026. * configure.ac
  2027. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2029. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2030. Util::httpGMT().
  2031. * src/Util.cc
  2032. * src/Util.h
  2033. * test/UtilTest.cc
  2034. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. * Release 1.6.0
  2036. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Fixed a path to xmlrpc/README.txt
  2038. * doc/Makefile.am
  2039. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Added XML-RPC in -v Configuration output.
  2041. * src/FeatureConfig.cc
  2042. * src/FeatureConfig.h
  2043. * test/FeatureConfigTest.cc
  2044. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Updated Bulgarian, Russian, Slovak and Japanese
  2046. translations. Thanks to all translators.
  2047. * po/bg.po
  2048. * po/ja.po
  2049. * po/ru.po
  2050. * po/sk.po
  2051. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Removed --retry-wait option from aria2rpc
  2053. * doc/xmlrpc/aria2rpc
  2054. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Removed --retry-wait option from man page.
  2056. * doc/aria2c.1.txt
  2057. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Removed --retry-wait option since the current architecture doesn't
  2059. allow sleep for particular URI.
  2060. * src/AbstractCommand.cc
  2061. * src/OptionHandlerFactory.cc
  2062. * src/download_helper.cc
  2063. * src/prefs.cc
  2064. * src/prefs.h
  2065. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Removed Retry-After header support. Since the current architecture
  2067. doesn't allow sleep for particular URI.
  2068. * src/HttpSkipResponseCommand.cc
  2069. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Updated the help message for --daemon option.
  2071. * doc/aria2c.1.txt
  2072. * src/usage_text.h
  2073. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Added our own daemon() function for systems which desn't have
  2075. daemon(3).
  2076. * configure.ac
  2077. * src/Makefile.am
  2078. * src/daemon.cc
  2079. * src/daemon.h
  2080. * src/option_processing.cc
  2081. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Simplified File::getCurrentDir()
  2083. * src/File.cc
  2084. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Use exit() instead of _exit
  2086. * src/RequestGroupMan.cc
  2087. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Replaced "CATEGORY" with "TAGS".
  2089. * src/usage_text.h
  2090. * doc/aria2c.1.txt
  2091. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Updated the help message for --help option.
  2093. * src/usage_text.h
  2094. * doc/aria2c.1.txt
  2095. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Updated man page for added help tags.
  2097. * doc/aria2c.1.txt
  2098. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Added help category #file. Added #file tag to the options related
  2100. to downloaded file.
  2101. * src/OptionHandlerFactory.cc
  2102. * src/help_tags.h
  2103. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Added help categories: #cookie and #hook. Added #https tag to
  2105. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2106. * src/OptionHandlerFactory.cc
  2107. * src/help_tags.h
  2108. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Made MSG_NOT_FILE translatable.
  2110. * src/message.h
  2111. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Updated man page for --help option.
  2113. * doc/aria2c.1.txt
  2114. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Updated doc.
  2116. * src/XmlRpcMethod.h
  2117. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Help category now starts with "#" to distinguish a category from
  2119. keyword search. For example, "http" categroy is now "#http". You
  2120. can type "--help=#http" to get explanation of options related to
  2121. http. If '#' is omitted, then the argument is treated as a keyword
  2122. and aria2 searches options whose name includes the keyword and
  2123. print matched ones. For example, "--help=http" will show options
  2124. whose name includes "http".
  2125. * src/OptionHandlerFactory.cc
  2126. * src/help_tags.h
  2127. * src/usage_text.h
  2128. * src/version_usage.cc
  2129. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Documented missing experimental tag and newly added xml-rpc tag in
  2131. man page.
  2132. * doc/aria2c.1.txt
  2133. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Added xml-rpc help tag. Tagged xml-rpc related options with
  2135. xml-rpc tag.
  2136. * src/OptionHandlerFactory.cc
  2137. * src/help_tags.h
  2138. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Updated message when a path is not a file. Updated common message
  2140. for wrong option.
  2141. * src/OptionHandlerException.cc
  2142. * src/message.h
  2143. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Use File::isFile() instead of File::exists(). Updated message when
  2145. a path is not a file.
  2146. * src/OptionHandlerImpl.cc
  2147. * src/message.h
  2148. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Fixed the bug that server performence profile is not updated when
  2150. aria2c was terminated by emergency shutdown.
  2151. * src/TrackerWatcherCommand.cc
  2152. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Use LocalFilePathOptionHandler for -T and -M option.
  2154. Updated message of MSG_FILE_NOT_EXIST.
  2155. * src/OptionHandlerFactory.cc
  2156. * src/message.h
  2157. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Added LocalFilePathOptionHandler which check whether the specified
  2159. file path does exist or not.
  2160. * src/OptionHandlerImpl.cc
  2161. * src/message.h
  2162. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Updated wiki page URI.
  2164. * README
  2165. * doc/aria2c.1.txt
  2166. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Added README.txt for xmlrpc directory.
  2168. * doc/Makefile.am
  2169. * doc/xmlrpc/README.txt
  2170. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Bump up version number to 1.6.0.
  2172. * configure.ac
  2173. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Added XML-RPC client scripts written in ruby.
  2175. * doc/Makefile.am
  2176. * doc/xmlrpc/aria2mon
  2177. * doc/xmlrpc/aria2rpc
  2178. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Added support for IPv6 literal address in URI. Now aria2 can
  2180. handle URI such as http://[::1]/
  2181. * src/HttpRequest.cc
  2182. * src/HttpRequest.h
  2183. * src/Request.cc
  2184. * src/Request.h
  2185. * test/HttpRequestTest.cc
  2186. * test/OptionHandlerTest.cc
  2187. * test/RequestTest.cc
  2188. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Fixed the bug that HTTP request header for XML-RPC request is not
  2190. parsed properly.
  2191. * src/HttpHeader.cc
  2192. * src/HttpHeaderProcessor.cc
  2193. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Fixed the bug that XML-RPC authorization might be done before HTTP
  2195. request header is fully received.
  2196. * src/HttpServerCommand.cc
  2197. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Documented --xml-rpc-listen-all option in man page.
  2199. * doc/aria2c.1.txt
  2200. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Added --xml-rpc-listen-all option. If true is given to this
  2202. option, aria2 listens incoming XML-RPC requests on all network
  2203. interfaces. If false is given, listens only on local loopback
  2204. interface. The default value is false.
  2205. * src/HttpListenCommand.cc
  2206. * src/OptionHandlerFactory.cc
  2207. * src/SocketCore.cc
  2208. * src/SocketCore.h
  2209. * src/prefs.cc
  2210. * src/prefs.h
  2211. * src/usage_text.h
  2212. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. * Release 1.5.2
  2214. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Updated Ukrainian and Russian translations. Thanks to all
  2216. translators.
  2217. * po/ru.po
  2218. * po/uk.po
  2219. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Bump up version number to 1.5.2
  2221. * configure.ac
  2222. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Get comment, comment.utf-8, created by and creation date from
  2224. .torrent file and print them in -S output.
  2225. * src/bittorrent_helper.cc
  2226. * src/bittorrent_helper.h
  2227. * test/BittorrentHelperTest.cc
  2228. * test/test.torrent
  2229. * test/utf8.torrent
  2230. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Show exact file size along in -S option output.
  2232. * src/Util.h
  2233. * src/bittorrent_helper.cc
  2234. * test/UtilTest.cc
  2235. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Avoided unnecessary memory allocation in
  2237. BitfieldMan::getCompletedLength().
  2238. * src/BitfieldMan.cc
  2239. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Fixed the bug that download fails if
  2241. SocketCore::establishConnection() throws exception and aria2
  2242. doesn't try another address.
  2243. * src/AbstractCommand.cc
  2244. * src/InitiateConnectionCommand.cc
  2245. * src/message.h
  2246. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2248. detected properly.
  2249. * m4/sqlite3.m4
  2250. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2252. because it causes compile error if PARAMS macro is defined.
  2253. * src/XmlRpcElements.cc
  2254. * src/XmlRpcElements.h
  2255. * src/XmlRpcRequestParserStateImpl.cc
  2256. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. * Release 1.5.1
  2258. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Bump up version number to 1.5.1
  2260. * configure.ac
  2261. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Fixed compile error without BitTorrent support
  2263. * src/DefaultBtProgressInfoFile.cc
  2264. * src/DownloadEngine.cc
  2265. * src/DownloadEngine.h
  2266. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Added missing '=' in Download Results
  2268. * src/RequestGroupMan.cc
  2269. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Fixed compiler warning
  2271. * src/DefaultBtProgressInfoFile.cc
  2272. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Fixed compiler warning on 32bit systems.
  2274. * src/DownloadCommand.cc
  2275. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Call flush from ServerStatMan::save()
  2277. * src/ServerStatMan.cc
  2278. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Check stream status after file is opened.
  2280. * src/CookieStorage.cc
  2281. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Rewritten Signature::save()
  2283. * src/Signature.cc
  2284. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Rewritten RequestGroupMan::saveServerStat()
  2286. * src/RequestGroupMan.cc
  2287. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Rewritten stream error handling
  2289. * src/DHTAutoSaveCommand.cc
  2290. * src/DHTRoutingTableDeserializer.cc
  2291. * src/DHTRoutingTableSerializer.cc
  2292. * src/DHTSetup.cc
  2293. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Check stream status after file is opened.
  2295. * src/DefaultBtProgressInfoFile.cc
  2296. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Rewritten stream error handling
  2298. * src/DefaultBtProgressInfoFile.cc
  2299. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Make sure that stream is closed before renaming file. Unit test
  2301. fails on mingw32 in the previous implementation.
  2302. * src/CookieStorage.cc
  2303. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Fixed the unit test error without sqlite3
  2305. * test/CookieStorageTest.cc
  2306. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Fixed the undefined reference error
  2308. * test/HttpResponseTest.cc
  2309. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. * Release 1.5.0
  2311. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2313. Ukrainian translations. Thanks to all translators.
  2314. * po/ru.po
  2315. * po/it.po
  2316. * po/da.po
  2317. * po/bg.po
  2318. * po/ja.po
  2319. * po/uk.po
  2320. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Added missing src/Logger.cc
  2322. * src/Logger.cc
  2323. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Rewritten Logger to avoiding constly virtual call.
  2325. * src/LogFactory.cc
  2326. * src/LogFactory.h
  2327. * src/Logger.h
  2328. * src/Makefile.am
  2329. * src/Makefile.in
  2330. * src/NullLogger.h: Removed.
  2331. * src/SimpleLogger.cc
  2332. * src/SimpleLogger.h
  2333. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Updated doc
  2335. * src/main.cc
  2336. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Updated debug log message
  2338. * src/AbstractCommand.cc
  2339. * src/message.h
  2340. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Avoid to create zombie process when commands specified in
  2342. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2343. X and NetBSD.
  2344. * src/main.cc
  2345. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Fixed typo
  2347. * src/usage_text.h
  2348. * doc/aria2c.1.txt
  2349. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Documented 'errorCode' of tellStatus in man page.
  2351. * doc/aria2c.1.txt
  2352. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2354. This key is only available for stopped/completed downloads and its
  2355. value is the error code defined in EXIT STATUS in man page.
  2356. * src/XmlRpcMethodImpl.cc
  2357. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Fixed the bug that session download length is not updated when
  2359. PeerStat is not fastest one.
  2360. * src/SegmentMan.cc
  2361. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Updated doc.
  2363. * doc/aria2c.1.txt
  2364. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Updated doc.
  2366. * src/AbstractCommand.cc
  2367. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Handle the case when DownloadContext has no FileEntry.
  2369. * src/XmlRpcMethodImpl.cc
  2370. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Handle the situation where struct option.name is char *.
  2372. * configure.ac
  2373. * src/OptionParser.cc
  2374. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Code cleanup
  2376. * src/AbstractCommand.cc
  2377. * src/DownloadCommand.cc
  2378. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Use option of each download to create AuthConfig instead of global
  2380. option.
  2381. * src/AuthConfigFactory.cc
  2382. * src/AuthConfigFactory.h
  2383. * src/FtpNegotiationCommand.cc
  2384. * src/HttpRequest.cc
  2385. * src/HttpRequest.h
  2386. * src/HttpRequestCommand.cc
  2387. * src/HttpSkipResponseCommand.cc
  2388. * src/MultiUrlRequestInfo.cc
  2389. * test/AuthConfigFactoryTest.cc
  2390. * test/FtpConnectionTest.cc
  2391. * test/HttpRequestTest.cc
  2392. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Don't call prepareForRetry(1) if all segments are ignored in
  2394. SegmentMan.
  2395. * src/AbstractCommand.cc
  2396. * src/BitfieldMan.cc
  2397. * src/BitfieldMan.h
  2398. * src/SegmentMan.cc
  2399. * src/SegmentMan.h
  2400. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Removed FileEntry::getAssociatedUris()
  2402. * src/FileEntry.h
  2403. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Updated doc: TODO1.5 -> TODO
  2405. * src/FileEntry.cc
  2406. * src/HttpResponseCommand.cc
  2407. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2409. involved.
  2410. * src/RequestGroup.cc
  2411. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Eliminated duplicated filterBitfield initialization code.
  2413. * src/BitfieldMan.cc
  2414. * src/BitfieldMan.h
  2415. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2417. relatively naive approach, though). For DownloadFailureException,
  2418. we handle the case when req is null properly.
  2419. * src/AbstractCommand.cc
  2420. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Added function returning suffix of control file to
  2422. DefaultBtProgressInfoFile.
  2423. * src/DefaultBtProgressInfoFile.cc
  2424. * src/DefaultBtProgressInfoFile.h
  2425. * src/RequestGroup.cc
  2426. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Documented getVersion in man page.
  2428. * doc/aria2c.1.txt
  2429. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Documented type of offset and num for tellWaiting xml-rpc method.
  2431. * doc/aria2c.1.txt
  2432. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Implemented getVersion xml-rpc method. This method returns struct
  2434. which has 2 key-value pairs: "version" key is associated to the
  2435. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2436. associated to the list of enabled features, such as "Async DNS",
  2437. "BitTorrent".
  2438. * src/FeatureConfig.h
  2439. * src/XmlRpcMethodFactory.cc
  2440. * src/XmlRpcMethodImpl.cc
  2441. * src/XmlRpcMethodImpl.h
  2442. * test/XmlRpcMethodTest.cc
  2443. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2445. for compatibility issue.
  2446. * src/SocketCore.cc
  2447. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Fixed compile error with openSSL
  2449. * src/bittorrent_helper.cc
  2450. * src/messageDigest.h
  2451. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Removed bad code: setting certificate type priority to key
  2453. exchange priority.
  2454. * src/SocketCore.cc
  2455. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Disconnect seeder if client is also in seed state.
  2457. * src/BtBitfieldMessage.cc
  2458. * src/BtHaveAllMessage.cc
  2459. * src/BtHaveMessage.cc
  2460. * src/message.h
  2461. * test/BtBitfieldMessageTest.cc
  2462. * test/BtHaveAllMessageTest.cc
  2463. * test/BtHaveMessageTest.cc
  2464. * test/MockPieceStorage.h
  2465. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Keep CreateRequestCommand in queue when no segment is available so
  2467. that they can pick up pieces which slow BitTorrent peers are
  2468. downloading.
  2469. * src/AbstractCommand.cc
  2470. * src/CreateRequestCommand.cc
  2471. * src/CreateRequestCommand.h
  2472. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. --bt-stop-timeout now only checks download speed.
  2474. * src/BtStopDownloadCommand.cc
  2475. * src/BtStopDownloadCommand.h
  2476. * src/BtSetup.cc
  2477. * src/usage_text.h
  2478. * doc/aria2c.1.txt
  2479. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Fixed compile error regarding BUFSIZE.
  2481. * src/DownloadCommand.cc
  2482. * src/DownloadCommand.h
  2483. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Documented tellWaiting xml-rpc method in man page.
  2485. * doc/aria2c.1.txt
  2486. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Bump up version number to 1.5.0
  2488. * configure.ac
  2489. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Removed resolved TODO1.5
  2491. * src/AbstractCommand.cc
  2492. * src/DownloadCommand.cc
  2493. * src/RequestGroup.cc
  2494. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Release pooled and in-flight Request objectsand URIResult objects
  2496. in FileEntry after download completed.
  2497. * src/DownloadContext.cc
  2498. * src/DownloadContext.h
  2499. * src/FileEntry.cc
  2500. * src/FileEntry.h
  2501. * src/RequestGroup.cc
  2502. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Set manual and source attribute in aria2c.1.txt
  2504. * doc/aria2c.1.txt
  2505. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Documented that the default value of --use-head is 'false' in man
  2507. page.
  2508. * doc/aria2c.1.txt
  2509. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Added bt-stop-timeout option to -i list.
  2511. * doc/aria2c.1.txt
  2512. * src/download_helper.cc
  2513. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Fixed typo
  2515. * doc/aria2c.1.txt
  2516. * src/usage_text.h
  2517. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Removed peer-id-prefix option from -i list.
  2519. * doc/aria2c.1.txt
  2520. * src/download_helper.cc
  2521. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Fixed typo
  2523. * doc/aria2c.1.txt
  2524. * src/usage_text.h
  2525. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Documented --bt-stop-timeout option in man page.
  2527. * doc/aria2c.1.txt
  2528. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Updated README regarding multi-file torrent web-seeding.
  2530. * doc/README.txt
  2531. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Updated man page regarding multi-file torrent web-seeding.
  2533. * doc/aria2c.1.txt
  2534. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Updated doc
  2536. * src/version_usage.cc
  2537. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Winsock select() doesn't work if no socket is in FD_SET. To
  2539. overcome this problem, a dummy socket is added to FD_SET and it is
  2540. given to select().
  2541. * src/SelectEventPoll.cc
  2542. * src/SelectEventPoll.h
  2543. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Disabled --use-head option by default because --use-head=true
  2545. causes problems on some web sites.
  2546. * src/OptionHandlerFactory.cc
  2547. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Print URL List in -S option for torrent.
  2549. * src/bittorrent_helper.cc
  2550. * src/bittorrent_helper.h
  2551. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Allocate buffer in ctor of DownloadCommand.
  2553. * src/DownloadCommand.cc
  2554. * src/DownloadCommand.h
  2555. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Removed DiskAdaptor::onDownloadComplete()
  2557. * src/DirectDiskAdaptor.cc
  2558. * src/DirectDiskAdaptor.h
  2559. * src/DiskAdaptor.h
  2560. * src/MultiDiskAdaptor.cc
  2561. * src/MultiDiskAdaptor.h
  2562. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Committed missing BtStopDownloadCommand.{cc,h}
  2564. * src/BtStopDownloadCommand.cc
  2565. * src/BtStopDownloadCommand.h
  2566. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2568. download if the download speed is 0 and the number of seeder is 0
  2569. in consecutive SEC seconds. By default, this function is disabled.
  2570. * src/BtSetup.cc
  2571. * src/Makefile.am
  2572. * src/OptionHandlerFactory.cc
  2573. * src/prefs.cc
  2574. * src/prefs.h
  2575. * src/usage_text.h
  2576. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Removed the call to DiskAdaptor::onDownloadComplete() from
  2578. BtCheckIntegrityEntry and DefaultPieceStorage.
  2579. * src/BtCheckIntegrityEntry.cc
  2580. * src/DefaultPieceStorage.cc
  2581. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Commented out throw statements when number of piece is 0 to
  2583. download 0 length torrent.
  2584. * src/bittorrent_helper.cc
  2585. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Call RequestGroup::createNextCommandWithAdj() from
  2587. BtFileAllocationEntry if at least one FileEntry has URI. The
  2588. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2589. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2590. * src/BtFileAllocationEntry.cc
  2591. * src/FileEntry.h
  2592. * src/RequestGroup.cc
  2593. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. Generate peer ID after SimpleRandomizer is initialized.
  2595. * src/main.cc
  2596. * src/option_processing.cc
  2597. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Removed unused method argument.
  2599. * src/CreateRequestCommand.cc
  2600. * src/RequestGroup.cc
  2601. * src/RequestGroup.h
  2602. * src/RequestGroupMan.cc
  2603. * src/TrackerWatcherCommand.cc
  2604. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Made URI reusing function work.
  2606. * src/CreateRequestCommand.cc
  2607. * src/FileEntry.cc
  2608. * src/FileEntry.h
  2609. * test/FileEntryTest.cc
  2610. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Add formerly fastest PeerStat's sessionDownloadLength to new
  2612. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2613. bytes in a session.
  2614. * src/PeerStat.cc
  2615. * src/SegmentMan.cc
  2616. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. If pipelining is enabled, we can always pool socket.
  2618. * src/HttpDownloadCommand.cc
  2619. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. In a single file download, file size becomes known just after
  2621. downloading, set total length to FileEntry object when download
  2622. completed.
  2623. * src/DownloadCommand.cc
  2624. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Use std::vector::reserve() for fileEntries and pieceHashes in
  2626. bittorrent_helper
  2627. * src/bittorrent_helper.cc
  2628. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2630. Removed hidden option PREF_RESET_URI.
  2631. * src/AbstractCommand.cc
  2632. * src/OptionHandlerFactory.cc
  2633. * src/prefs.cc
  2634. * src/prefs.h
  2635. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Removed unused variable/function.
  2637. * src/PeerStat.h
  2638. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Show first URL in Download Results if file path is not available.
  2640. * src/FileEntry.h
  2641. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Throw exception if file path doesn't exist in FTP URL.
  2643. * src/InitiateConnectionCommandFactory.cc
  2644. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2646. * src/BitfieldMan.cc
  2647. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2649. of PeerStat in SegmentMan. peerStats is used for calculating
  2650. download speed. Therefore all active PeerStats should be in
  2651. there. Another one is _fastestPeerStats and it only contains
  2652. fastest PeerStat for each hostname/protocol pair. They are used
  2653. for updating ServerStat.
  2654. * src/DownloadCommand.cc
  2655. * src/Request.h
  2656. * src/RequestGroupMan.cc
  2657. * src/SegmentMan.cc
  2658. * src/SegmentMan.h
  2659. * test/SegmentManTest.cc
  2660. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Try all available addresses returned by DNS until it gets
  2662. connected in HTTP(S)/FTP download
  2663. * src/AbstractCommand.cc
  2664. * src/AbstractCommand.h
  2665. * src/AbstractProxyRequestCommand.cc
  2666. * src/AbstractProxyRequestCommand.h
  2667. * src/DNSCache.h
  2668. * src/DownloadEngine.cc
  2669. * src/DownloadEngine.h
  2670. * src/FtpInitiateConnectionCommand.cc
  2671. * src/FtpInitiateConnectionCommand.h
  2672. * src/FtpNegotiationCommand.cc
  2673. * src/FtpNegotiationCommand.h
  2674. * src/HttpInitiateConnectionCommand.cc
  2675. * src/HttpInitiateConnectionCommand.h
  2676. * src/HttpRequestCommand.cc
  2677. * src/HttpRequestCommand.h
  2678. * src/InitiateConnectionCommand.cc
  2679. * src/InitiateConnectionCommand.h
  2680. * test/DNSCacheTest.cc
  2681. * test/Makefile.am
  2682. * test/SimpleDNSCacheTest.cc
  2683. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Updated doc
  2685. * src/download_helper.cc
  2686. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Refactored fieldMan ctor.
  2688. * src/BitfieldMan.cc
  2689. * src/BitfieldMan.h
  2690. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Don't print "No files to download." message if -S is given.
  2692. * src/main.cc
  2693. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Set referer and method to newly created Request object.
  2695. * src/CreateRequestCommand.cc
  2696. * src/FileEntry.cc
  2697. * src/FileEntry.h
  2698. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2700. * src/AbstractCommand.cc
  2701. * src/AbstractCommand.h
  2702. * src/CreateRequestCommand.cc
  2703. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Get proxy download working
  2705. * src/AbstractProxyRequestCommand.cc
  2706. * src/AbstractProxyRequestCommand.h
  2707. * src/AbstractProxyResponseCommand.cc
  2708. * src/AbstractProxyResponseCommand.h
  2709. * src/FtpInitiateConnectionCommand.cc
  2710. * src/FtpTunnelRequestCommand.cc
  2711. * src/FtpTunnelRequestCommand.h
  2712. * src/FtpTunnelResponseCommand.cc
  2713. * src/FtpTunnelResponseCommand.h
  2714. * src/HttpInitiateConnectionCommand.cc
  2715. * src/HttpProxyRequestCommand.cc
  2716. * src/HttpProxyRequestCommand.h
  2717. * src/HttpProxyResponseCommand.cc
  2718. * src/HttpProxyResponseCommand.h
  2719. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Use SegmentMan::getSegment(cuid) for single file download.
  2721. * src/AbstractCommand.cc
  2722. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Fixed bufSize calculation
  2724. * src/DownloadCommand.cc
  2725. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Don't append "/" if base URI ends with "/".
  2727. * src/bittorrent_helper.cc
  2728. * test/url-list-multiFile.torrent
  2729. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. HTTP pipelining is now working. Fixed Segmention fault in
  2731. BitfieldMan's copy ctor.
  2732. * src/AbstractCommand.cc
  2733. * src/BitfieldMan.cc
  2734. * src/BitfieldMan.h
  2735. * src/DownloadCommand.cc
  2736. * src/HttpDownloadCommand.cc
  2737. * src/HttpRequest.cc
  2738. * src/SegmentMan.cc
  2739. * src/SegmentMan.h
  2740. * test/BitfieldManTest.cc
  2741. * test/SegmentManTest.cc
  2742. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Removed ServerHost. Same functionality is implemented using
  2744. FileEntry's in-flight Request objects.
  2745. * src/AbstractCommand.cc
  2746. * src/BtDependency.cc
  2747. * src/CreateRequestCommand.cc
  2748. * src/FileEntry.cc
  2749. * src/FileEntry.h
  2750. * src/FtpNegotiationCommand.cc
  2751. * src/HttpResponseCommand.cc
  2752. * src/Makefile.am
  2753. * src/Metalink2RequestGroup.cc
  2754. * src/RequestGroup.cc
  2755. * src/RequestGroup.h
  2756. * src/ServerHost.cc: Removed
  2757. * src/ServerHost.h: Removed
  2758. * test/BtDependencyTest.cc
  2759. * test/FileEntryTest.cc
  2760. * test/RequestGroupTest.cc
  2761. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Rewritten PeerStat handling. In the previous implementation,
  2763. faster command tries to find slower command. In this new
  2764. implementation, slower command tries to find faster command.
  2765. PeerStat is now created in each HTTP/FTP request to get download
  2766. rate correctly. If the download range is small, the download rate
  2767. tends to small and this will occur at the later stage of download.
  2768. * src/AbstractCommand.cc
  2769. * src/DownloadCommand.cc
  2770. * src/FileEntry.cc
  2771. * src/FileEntry.h
  2772. * src/Request.cc
  2773. * src/Request.h
  2774. * src/RequestGroup.h
  2775. * src/RequestGroupMan.cc
  2776. * src/SegmentMan.cc
  2777. * src/SegmentMan.h
  2778. * test/SegmentManTest.cc
  2779. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Removed _uris from RequestGroup. All functions that refer to _uris
  2781. were moved to FileEntry. Exit status code are now defined in
  2782. DownloadResultCode.h.
  2783. * src/AbstractCommand.cc
  2784. * src/AdaptiveURISelector.cc
  2785. * src/AdaptiveURISelector.h
  2786. * src/AutoSaveCommand.cc
  2787. * src/BtPostDownloadHandler.cc
  2788. * src/CheckIntegrityDispatcherCommand.cc
  2789. * src/CookieStorage.cc
  2790. * src/DHTAutoSaveCommand.cc
  2791. * src/DHTBucketRefreshCommand.cc
  2792. * src/DHTEntryPointNameResolveCommand.cc
  2793. * src/DHTInteractionCommand.cc
  2794. * src/DHTPeerAnnounceCommand.cc
  2795. * src/DHTTokenUpdateCommand.cc
  2796. * src/DlAbortEx.h
  2797. * src/DlRetryEx.h
  2798. * src/DownloadCommand.cc
  2799. * src/DownloadContext.h
  2800. * src/DownloadFailureException.h
  2801. * src/DownloadResult.h
  2802. * src/DownloadResultCode.h
  2803. * src/FeedbackURISelector.cc
  2804. * src/FeedbackURISelector.h
  2805. * src/FileEntry.cc
  2806. * src/FileEntry.h
  2807. * src/FtpNegotiationCommand.cc
  2808. * src/HttpListenCommand.cc
  2809. * src/HttpResponseCommand.cc
  2810. * src/HttpServerResponseCommand.cc
  2811. * src/HttpSkipResponseCommand.cc
  2812. * src/InOrderURISelector.cc
  2813. * src/InOrderURISelector.h
  2814. * src/Makefile.am
  2815. * src/Makefile.in
  2816. * src/Metalink2RequestGroup.cc
  2817. * src/MultiUrlRequestInfo.cc
  2818. * src/MultiUrlRequestInfo.h
  2819. * src/OptionHandlerFactory.cc
  2820. * src/PeerListenCommand.cc
  2821. * src/RecoverableException.h
  2822. * src/RequestGroup.cc
  2823. * src/RequestGroup.h
  2824. * src/RequestGroupMan.cc
  2825. * src/RequestGroupMan.h
  2826. * src/TimedHaltCommand.cc
  2827. * src/TrackerWatcherCommand.cc
  2828. * src/URIResult.cc
  2829. * src/URIResult.h
  2830. * src/URISelector.h
  2831. * src/XmlRpcMethodImpl.cc
  2832. * src/bittorrent_helper.cc
  2833. * src/bittorrent_helper.h
  2834. * src/download_helper.cc
  2835. * src/main.cc
  2836. * src/option_processing.cc
  2837. * test/BtDependencyTest.cc
  2838. * test/BtPostDownloadHandlerTest.cc
  2839. * test/CookieStorageTest.cc
  2840. * test/DefaultBtMessageDispatcherTest.cc
  2841. * test/DownloadHandlerFactoryTest.cc
  2842. * test/DownloadHelperTest.cc
  2843. * test/FeedbackURISelectorTest.cc
  2844. * test/FileEntryTest.cc
  2845. * test/InOrderURISelectorTest.cc
  2846. * test/Metalink2RequestGroupTest.cc
  2847. * test/MetalinkPostDownloadHandlerTest.cc
  2848. * test/RequestGroupManTest.cc
  2849. * test/RequestGroupTest.cc
  2850. * test/XmlRpcMethodTest.cc
  2851. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Removed MockBtContext.h
  2853. * test/Makefile.am
  2854. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Removed _currentRequest from StreamCheckIntegrityEntry and
  2856. StreamFileAllocationEntry.
  2857. * src/AbstractCommand.cc
  2858. * src/HttpResponseCommand.cc
  2859. * src/RequestGroup.cc
  2860. * src/StreamCheckIntegrityEntry.cc
  2861. * src/StreamCheckIntegrityEntry.h
  2862. * src/StreamFileAllocationEntry.cc
  2863. * src/StreamFileAllocationEntry.h
  2864. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Rewritten DownloadContext and removed SingleFileDownloadContext
  2866. and BtContext and its derived classes. BitTorrent specific
  2867. attributes are now set by DownloadContext::setAttribute() with key
  2868. bittorrent::BITTORRENT.
  2869. * src/AbstractBtMessage.cc
  2870. * src/AbstractBtMessage.h
  2871. * src/AbstractCommand.cc
  2872. * src/AbstractCommand.h
  2873. * src/AbstractProxyRequestCommand.cc
  2874. * src/AbstractProxyResponseCommand.cc
  2875. * src/ActivePeerConnectionCommand.cc
  2876. * src/ActivePeerConnectionCommand.h
  2877. * src/AnnounceList.cc
  2878. * src/BtCheckIntegrityEntry.cc
  2879. * src/BtConstants.h
  2880. * src/BtContext.h: Removed
  2881. * src/BtDependency.cc
  2882. * src/BtExtendedMessage.cc
  2883. * src/BtPieceMessage.cc
  2884. * src/BtPieceMessage.h
  2885. * src/BtPostDownloadHandler.cc
  2886. * src/BtRegistry.cc
  2887. * src/BtRegistry.h
  2888. * src/BtSetup.cc
  2889. * src/CheckIntegrityCommand.cc
  2890. * src/CheckIntegrityEntry.cc
  2891. * src/ChecksumCheckIntegrityEntry.cc
  2892. * src/ConsoleStatCalc.cc
  2893. * src/ContentTypeRequestGroupCriteria.cc
  2894. * src/DHTGetPeersCommand.cc
  2895. * src/DHTGetPeersCommand.h
  2896. * src/DHTPeerLookupTask.cc
  2897. * src/DHTPeerLookupTask.h
  2898. * src/DHTTaskFactory.h
  2899. * src/DHTTaskFactoryImpl.cc
  2900. * src/DHTTaskFactoryImpl.h
  2901. * src/DefaultBtAnnounce.cc
  2902. * src/DefaultBtAnnounce.h
  2903. * src/DefaultBtContext.cc: Removed
  2904. * src/DefaultBtContext.h: Removed
  2905. * src/DefaultBtInteractive.cc
  2906. * src/DefaultBtInteractive.h
  2907. * src/DefaultBtMessageDispatcher.cc
  2908. * src/DefaultBtMessageDispatcher.h
  2909. * src/DefaultBtMessageFactory.cc
  2910. * src/DefaultBtMessageFactory.h
  2911. * src/DefaultBtMessageReceiver.cc
  2912. * src/DefaultBtMessageReceiver.h
  2913. * src/DefaultBtProgressInfoFile.cc
  2914. * src/DefaultBtRequestFactory.cc
  2915. * src/DefaultBtRequestFactory.h
  2916. * src/DefaultExtensionMessageFactory.cc
  2917. * src/DefaultExtensionMessageFactory.h
  2918. * src/DefaultPeerStorage.cc
  2919. * src/DefaultPeerStorage.h
  2920. * src/DefaultPieceStorage.cc
  2921. * src/DefaultSegmentManFactory.cc
  2922. * src/DiskAdaptor.cc
  2923. * src/DiskAdaptor.h
  2924. * src/DownloadContext.cc
  2925. * src/DownloadContext.h
  2926. * src/DownloadEngine.cc
  2927. * src/DownloadEngineFactory.cc
  2928. * src/DownloadHandler.cc
  2929. * src/DownloadResult.h
  2930. * src/FileAllocationCommand.cc
  2931. * src/FileAllocationDispatcherCommand.cc
  2932. * src/FileAllocationEntry.cc
  2933. * src/FileEntry.h
  2934. * src/FillRequestGroupCommand.cc
  2935. * src/FtpDownloadCommand.cc
  2936. * src/FtpFinishDownloadCommand.cc
  2937. * src/FtpInitiateConnectionCommand.cc
  2938. * src/FtpNegotiationCommand.cc
  2939. * src/FtpTunnelRequestCommand.cc
  2940. * src/FtpTunnelResponseCommand.cc
  2941. * src/HandshakeExtensionMessage.cc
  2942. * src/HandshakeExtensionMessage.h
  2943. * src/HaveEraseCommand.cc
  2944. * src/HttpDownloadCommand.cc
  2945. * src/HttpInitiateConnectionCommand.cc
  2946. * src/HttpProxyRequestCommand.cc
  2947. * src/HttpProxyResponseCommand.cc
  2948. * src/HttpRequest.cc
  2949. * src/HttpRequest.h
  2950. * src/HttpRequestCommand.cc
  2951. * src/HttpResponseCommand.cc
  2952. * src/HttpServerBodyCommand.cc
  2953. * src/HttpServerCommand.cc
  2954. * src/HttpSkipResponseCommand.cc
  2955. * src/InitiateConnectionCommandFactory.cc
  2956. * src/InitiatorMSEHandshakeCommand.cc
  2957. * src/InitiatorMSEHandshakeCommand.h
  2958. * src/IteratableChecksumValidator.cc
  2959. * src/IteratableChecksumValidator.h
  2960. * src/IteratableChunkChecksumValidator.cc
  2961. * src/MSEHandshake.cc
  2962. * src/MSEHandshake.h
  2963. * src/Makefile.am
  2964. * src/Makefile.in
  2965. * src/Metalink2RequestGroup.cc
  2966. * src/MetalinkPostDownloadHandler.cc
  2967. * src/MultiDiskAdaptor.cc
  2968. * src/MultiDiskAdaptor.h
  2969. * src/MultiFileAllocationIterator.cc
  2970. * src/MultiUrlRequestInfo.cc
  2971. * src/PeerChokeCommand.cc
  2972. * src/PeerChokeCommand.h
  2973. * src/PeerInitiateConnectionCommand.cc
  2974. * src/PeerInitiateConnectionCommand.h
  2975. * src/PeerInteractionCommand.cc
  2976. * src/PeerInteractionCommand.h
  2977. * src/PeerReceiveHandshakeCommand.cc
  2978. * src/PieceHashCheckIntegrityEntry.cc
  2979. * src/RealtimeCommand.cc
  2980. * src/ReceiverMSEHandshakeCommand.cc
  2981. * src/RequestGroup.cc
  2982. * src/RequestGroup.h
  2983. * src/RequestGroupEntry.cc
  2984. * src/RequestGroupMan.cc
  2985. * src/SeedCheckCommand.cc
  2986. * src/SeedCheckCommand.h
  2987. * src/SegmentMan.cc
  2988. * src/ShareRatioSeedCriteria.h
  2989. * src/SingleFileDownloadContext.cc: Removed
  2990. * src/SingleFileDownloadContext.h: Removed
  2991. * src/SleepCommand.cc
  2992. * src/StreamCheckIntegrityEntry.cc
  2993. * src/TrackerWatcherCommand.cc
  2994. * src/TrackerWatcherCommand.h
  2995. * src/UnknownLengthPieceStorage.cc
  2996. * src/Util.cc
  2997. * src/Util.h
  2998. * src/XmlRpcMethodImpl.cc
  2999. * src/bittorrent_helper.cc
  3000. * src/bittorrent_helper.h
  3001. * src/download_helper.cc
  3002. * src/main.cc
  3003. * src/option_processing.cc
  3004. * test/BitfieldManTest.cc
  3005. * test/BittorrentHelperTest.cc
  3006. * test/BtCancelMessageTest.cc
  3007. * test/BtChokeMessageTest.cc
  3008. * test/BtDependencyTest.cc
  3009. * test/BtPieceMessageTest.cc
  3010. * test/BtPostDownloadHandlerTest.cc
  3011. * test/BtRegistryTest.cc
  3012. * test/BtRejectMessageTest.cc
  3013. * test/BtRequestMessageTest.cc
  3014. * test/DHTPeerAnnounceStorageTest.cc
  3015. * test/DefaultBtAnnounceTest.cc
  3016. * test/DefaultBtContextTest.cc: Removed
  3017. * test/DefaultBtMessageDispatcherTest.cc
  3018. * test/DefaultBtMessageFactoryTest.cc
  3019. * test/DefaultBtProgressInfoFileTest.cc
  3020. * test/DefaultBtRequestFactoryTest.cc
  3021. * test/DefaultExtensionMessageFactoryTest.cc
  3022. * test/DefaultPeerStorageTest.cc
  3023. * test/DefaultPieceStorageTest.cc
  3024. * test/DirectDiskAdaptorTest.cc
  3025. * test/DownloadContextTest.cc
  3026. * test/DownloadHandlerFactoryTest.cc
  3027. * test/DownloadHelperTest.cc
  3028. * test/HandshakeExtensionMessageTest.cc
  3029. * test/HttpRequestTest.cc
  3030. * test/HttpResponseTest.cc
  3031. * test/IteratableChecksumValidatorTest.cc
  3032. * test/IteratableChunkChecksumValidatorTest.cc
  3033. * test/MSEHandshakeTest.cc
  3034. * test/Makefile.am
  3035. * test/Makefile.in
  3036. * test/Metalink2RequestGroupTest.cc
  3037. * test/MetalinkPostDownloadHandlerTest.cc
  3038. * test/MockBtContext.h: Removed
  3039. * test/MockDHTTaskFactory.h
  3040. * test/MockDownloadContext.h: Removed
  3041. * test/MockPieceStorage.h
  3042. * test/MultiDiskAdaptorTest.cc
  3043. * test/MultiFileAllocationIteratorTest.cc
  3044. * test/RequestGroupManTest.cc
  3045. * test/RequestGroupTest.cc
  3046. * test/SegmentManTest.cc
  3047. * test/ShareRatioSeedCriteriaTest.cc
  3048. * test/SingleFileDownloadContextTest.cc: Removed
  3049. * test/UtilTest.cc
  3050. * test/XmlRpcMethodTest.cc
  3051. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Added experimental support of WEB-Seeding for multi-file torrent.
  3053. Due to fundamental changes in file handling in HTTP/FTP code, many
  3054. functions are not working: PeerStat, ServerHost, proxy..etc
  3055. * src/AbstractCommand.cc
  3056. * src/AbstractCommand.h
  3057. * src/BitfieldMan.cc
  3058. * src/BitfieldMan.h
  3059. * src/CreateRequestCommand.cc
  3060. * src/CreateRequestCommand.h
  3061. * src/DefaultPieceStorage.cc
  3062. * src/DefaultPieceStorage.h
  3063. * src/DownloadCommand.cc
  3064. * src/DownloadCommand.h
  3065. * src/DownloadContext.cc
  3066. * src/DownloadContext.h
  3067. * src/FileEntry.cc
  3068. * src/FileEntry.h
  3069. * src/FtpDownloadCommand.cc
  3070. * src/FtpDownloadCommand.h
  3071. * src/FtpFinishDownloadCommand.cc
  3072. * src/FtpFinishDownloadCommand.h
  3073. * src/FtpInitiateConnectionCommand.cc
  3074. * src/FtpInitiateConnectionCommand.h
  3075. * src/FtpNegotiationCommand.cc
  3076. * src/FtpNegotiationCommand.h
  3077. * src/FtpTunnelResponseCommand.cc
  3078. * src/HttpDownloadCommand.cc
  3079. * src/HttpDownloadCommand.h
  3080. * src/HttpInitiateConnectionCommand.cc
  3081. * src/HttpInitiateConnectionCommand.h
  3082. * src/HttpProxyResponseCommand.cc
  3083. * src/HttpRequest.cc
  3084. * src/HttpRequest.h
  3085. * src/HttpRequestCommand.cc
  3086. * src/HttpRequestCommand.h
  3087. * src/HttpResponseCommand.cc
  3088. * src/HttpResponseCommand.h
  3089. * src/HttpSkipResponseCommand.cc
  3090. * src/HttpSkipResponseCommand.h
  3091. * src/InitiateConnectionCommand.cc
  3092. * src/InitiateConnectionCommand.h
  3093. * src/InitiateConnectionCommandFactory.cc
  3094. * src/InitiateConnectionCommandFactory.h
  3095. * src/Makefile.am
  3096. * src/PieceStorage.h
  3097. * src/RequestGroup.cc
  3098. * src/RequestGroup.h
  3099. * src/RequestGroupMan.cc
  3100. * src/SegmentMan.cc
  3101. * src/SegmentMan.h
  3102. * src/SingleFileDownloadContext.h
  3103. * src/StreamFileAllocationEntry.cc
  3104. * src/TrackerWatcherCommand.cc
  3105. * src/UnknownLengthPieceStorage.cc
  3106. * src/UnknownLengthPieceStorage.h
  3107. * src/array_fun.h
  3108. * src/bitfield.h
  3109. * src/download_helper.cc
  3110. * test/DownloadContextTest.cc
  3111. * test/Makefile.am
  3112. * test/MockDownloadContext.h
  3113. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Added tellWaiting XML-RPC method.
  3115. * src/SingleFileDownloadContext.cc
  3116. * src/XmlRpcMethodFactory.cc
  3117. * src/XmlRpcMethodImpl.cc
  3118. * src/XmlRpcMethodImpl.h
  3119. * test/XmlRpcMethodTest.cc
  3120. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Updated CookieStorageTest
  3122. * test/CookieStorageTest.cc
  3123. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3125. handle excepion inside these functions.
  3126. * src/LibgnutlsTLSContext.cc
  3127. * src/LibgnutlsTLSContext.h
  3128. * src/LibsslTLSContext.cc
  3129. * src/LibsslTLSContext.h
  3130. * src/MultiUrlRequestInfo.cc
  3131. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Added comment
  3133. * src/RequestGroup.cc
  3134. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. In CookieStorage::load() and saveNsFormat(), handle exception
  3136. inside the functions. When saving Cookies, first write temporary
  3137. file and after successful writes, then renames it to final
  3138. destination.
  3139. * src/CookieStorage.cc
  3140. * src/CookieStorage.h
  3141. * src/MultiUrlRequestInfo.cc
  3142. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. The default value of --dir option is the absolute path to the
  3144. current directory. If getcwd() is failed, then it is ".", which is
  3145. the same value with old implementation. This change is necessary
  3146. because after daemon() call, the current working directory is
  3147. changed to /.
  3148. * src/File.cc
  3149. * src/File.h
  3150. * src/OptionHandlerFactory.cc
  3151. * src/option_processing.cc
  3152. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Call daemon() with arguments(0,0), which means daemon() changes
  3154. current working directory to / and redirects stdin, stdout and
  3155. stderr to /dev/null.
  3156. * src/option_processing.cc
  3157. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Small performance optimizations.
  3159. * src/RequestGroupMan.cc
  3160. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3162. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3163. * src/RequestGroupMan.cc
  3164. * src/RequestGroupMan.h
  3165. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3167. setNoWiat(true) if newly created command calls
  3168. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3169. * src/HttpListenCommand.cc
  3170. * src/HttpServerBodyCommand.cc
  3171. * src/HttpServerCommand.cc
  3172. * src/HttpServerResponseCommand.cc
  3173. * src/InitiateConnectionCommand.cc
  3174. * src/RequestGroup.cc
  3175. * src/StreamFileAllocationEntry.cc
  3176. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Removed include vector
  3178. * src/BtRegistry.h
  3179. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Rewritten BtRegistry
  3181. * src/BtRegistry.cc
  3182. * src/BtRegistry.h
  3183. * src/BtSetup.cc
  3184. * src/ConsoleStatCalc.cc
  3185. * src/PeerInteractionCommand.cc
  3186. * src/PeerReceiveHandshakeCommand.cc
  3187. * src/ReceiverMSEHandshakeCommand.cc
  3188. * src/RequestGroup.cc
  3189. * src/XmlRpcMethodImpl.cc
  3190. * test/BtRegistryTest.cc
  3191. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3193. * src/DefaultBtProgressInfoFile.cc
  3194. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Throw an exception if position is less than 0.
  3196. * src/XmlRpcMethodImpl.cc
  3197. * test/XmlRpcMethodTest.cc
  3198. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Use writeFilePath() in ConsoleStatCalc.cc
  3200. * src/ConsoleStatCalc.cc
  3201. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Receive the return value as const reference from
  3203. DownloadContext::getFileEntries().
  3204. * src/DefaultPieceStorage.cc
  3205. * src/RequestGroupMan.cc
  3206. * src/XmlRpcMethodImpl.cc
  3207. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. DownloadContext now has _fileEntries so that
  3209. DownloadContext::getFileEntries() can returns its const reference.
  3210. * src/DefaultBtContext.cc
  3211. * src/DefaultBtContext.h
  3212. * src/DownloadContext.cc
  3213. * src/DownloadContext.h
  3214. * src/SingleFileDownloadContext.cc
  3215. * src/SingleFileDownloadContext.h
  3216. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3218. writeFilePath() function template from RequestGroupMan.cc to
  3219. FileEntry.h
  3220. * src/FileEntry.h
  3221. * src/RequestGroupMan.cc
  3222. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Documented 'position' parameter is starting from 0 in man page.
  3224. * doc/aria2c.1.txt
  3225. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Updated doc.
  3227. * src/MSEHandshake.cc
  3228. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Removed _acceptFeatures and its accessor functions from
  3230. RequestGroup since they are not used practically.
  3231. * src/HttpRequestCommand.cc
  3232. * src/RequestGroup.cc
  3233. * src/RequestGroup.h
  3234. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Removed member _maxTries from RequestGroup class to avoid
  3236. duplicate option value. Those classes who refer this variable
  3237. should use option value of PREF_MAX_TRIES directly.
  3238. * src/AbstractCommand.cc
  3239. * src/RequestGroup.cc
  3240. * src/RequestGroup.h
  3241. * src/TrackerWatcherCommand.cc
  3242. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. * Release 1.4.1
  3244. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Fixed compiler warnings on netbsd
  3246. * src/DHTConnectionImpl.cc
  3247. * src/PeerListenCommand.cc
  3248. * src/PeerSessionResource.cc
  3249. * src/SegmentMan.cc
  3250. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Updated Ukrainian translation. Thanks to all translators.
  3252. * po/uk.po
  3253. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Bump up version number to 1.4.1.
  3255. * configure.ac
  3256. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Added unit tests for strjoin, strconcat and strappend.
  3258. * test/a2functionalTest.cc
  3259. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Rewritten strconcat and strappend using operator+ instead of
  3261. append().
  3262. * src/a2functional.h
  3263. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3265. is enabled.
  3266. * src/Makefile.am
  3267. * test/Makefile.am
  3268. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Added countSeeder() function which counts seeder in the given
  3270. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3271. * src/ConsoleStatCalc.cc
  3272. * src/Peer.h
  3273. * src/XmlRpcMethodImpl.cc
  3274. * test/PeerTest.cc
  3275. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Documented missing seeder in getPeers xml-rpc method.
  3277. Documented uploadLength and numSeeders.
  3278. * doc/aria2c.1.txt
  3279. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Added uploadLength and numSeeders to the response of tellStatus
  3281. xml-rpc method. Assert that PeerStorage instance is not null
  3282. instead of checking if statement. It should be non-null in this
  3283. context.
  3284. * src/XmlRpcMethodImpl.cc
  3285. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3287. * src/XmlRpcResponse.cc
  3288. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Avoid intermediate object during string concatenation.
  3290. * src/HttpRequest.cc
  3291. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Added strjoin function template. Use it in pathJoin()
  3293. * src/Util.h
  3294. * src/a2functional.h
  3295. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Avoid intermediate object during string concatenation. Replaced
  3297. post-increment unary operator with pre-increment one in for loop.
  3298. * src/AdaptiveURISelector.cc
  3299. * src/AnnounceList.cc
  3300. * src/AuthConfig.h
  3301. * src/BtBitfieldMessage.cc
  3302. * src/BtExtendedMessage.cc
  3303. * src/BtHandshakeMessage.cc
  3304. * src/BtPieceMessage.cc
  3305. * src/BtPortMessage.cc
  3306. * src/Cookie.cc
  3307. * src/DHTAnnouncePeerMessage.cc
  3308. * src/DHTAutoSaveCommand.cc
  3309. * src/DHTGetPeersReplyMessage.cc
  3310. * src/DHTNode.cc
  3311. * src/DHTQueryMessage.cc
  3312. * src/DHTResponseMessage.cc
  3313. * src/DHTUnknownMessage.cc
  3314. * src/DefaultBtAnnounce.cc
  3315. * src/DefaultBtContext.cc
  3316. * src/DefaultBtInteractive.cc
  3317. * src/DefaultBtProgressInfoFile.cc
  3318. * src/DefaultPeerStorage.cc
  3319. * src/DownloadEngine.cc
  3320. * src/FeatureConfig.cc
  3321. * src/File.cc
  3322. * src/FtpConnection.cc
  3323. * src/FtpNegotiationCommand.cc
  3324. * src/HandshakeExtensionMessage.cc
  3325. * src/HttpConnection.cc
  3326. * src/HttpRequest.cc
  3327. * src/HttpResponseCommand.cc
  3328. * src/HttpServer.cc
  3329. * src/IndexBtMessage.cc
  3330. * src/Metalink2RequestGroup.cc
  3331. * src/OptionHandlerImpl.h
  3332. * src/PStringBuildVisitor.cc
  3333. * src/Peer.cc
  3334. * src/PeerListenCommand.cc
  3335. * src/Piece.cc
  3336. * src/RangeBtMessage.cc
  3337. * src/Request.cc
  3338. * src/Request.h
  3339. * src/RequestGroup.cc
  3340. * src/RequestGroupMan.cc
  3341. * src/ServerStat.cc
  3342. * src/ServerStatMan.cc
  3343. * src/UTPexExtensionMessage.cc
  3344. * src/Util.cc
  3345. * src/a2functional.h
  3346. * src/download_helper.cc
  3347. * src/messageDigest.cc
  3348. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3349. Unchoke a peer randomly at first and second choke round in seed
  3350. state.
  3351. * src/BtSeederStateChoke.cc
  3352. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3353. Added (sock_t) to quiet compiler warnings in MinGW
  3354. * src/SocketCore.cc
  3355. * src/SocketCore.h
  3356. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3358. * src/EpollEventPoll.h
  3359. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3360. Added fork() emulation using CreateProcess() in MinGW
  3361. * src/RequestGroupMan.cc
  3362. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. * Release 1.4.0
  3364. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Added utf8.torrent to EXTRA_DIST
  3366. * test/Makefile.am
  3367. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Fixed docs of aria2.addMetalink xml-rpc method.
  3369. * doc/aria2c.1.txt
  3370. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Added Slovak translation. Updated Ukrainian and Brazilian
  3372. Portuguese translation. Thanks to all translators.
  3373. * po/sk.po
  3374. * po/uk.po
  3375. * po/pt_BR.po
  3376. * po/LINGUAS
  3377. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Added test case for XmlRpcProcessor to fail to parse malformed
  3379. document.
  3380. * test/XmlRpcRequestProcessorTest.cc
  3381. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Removed *.gmo files in po because they are generated on 'make
  3383. dist'
  3384. * po/*.gmo
  3385. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Documented max-concurrent-downloads of changeGlobalOption method
  3387. in man page.
  3388. * doc/aria2c.1.txt
  3389. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Added max-concurrent-downloads option to changeGlobalOption
  3391. xml-rpc method. Rewritten loop conditional in
  3392. RequestGroupMan::fillRequestGroupFromReserver().
  3393. * src/RequestGroupMan.cc
  3394. * src/RequestGroupMan.h
  3395. * src/XmlRpcMethod.cc
  3396. * src/XmlRpcMethodImpl.cc
  3397. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Documented position parameter in man page.
  3399. * doc/aria2c.1.txt
  3400. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added 'position' parameter to addUri, addTorrent and addMetalink
  3402. xml-rpc method.
  3403. * src/RequestGroupMan.cc
  3404. * src/RequestGroupMan.h
  3405. * src/XmlRpcMethodImpl.cc
  3406. * test/XmlRpcMethodTest.cc
  3407. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Removed Peer.cc from compile source list when --disable-bittorrent
  3409. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3410. takes Peer.
  3411. * src/DefaultPieceStorage.cc
  3412. * src/DefaultPieceStorage.h
  3413. * src/Makefile.am
  3414. * src/PieceStorage.h
  3415. * src/UnknownLengthPieceStorage.cc
  3416. * src/UnknownLengthPieceStorage.h
  3417. * test/MockPieceStorage.h
  3418. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Implemented getter methods in header files to give them more
  3420. chance of optimization.
  3421. Return const reference for SharadHandle if possible.
  3422. * src/AbstractAuthResolver.cc
  3423. * src/AbstractAuthResolver.h
  3424. * src/AbstractBtMessage.cc
  3425. * src/AbstractBtMessage.h
  3426. * src/AbstractSingleDiskAdaptor.cc
  3427. * src/AbstractSingleDiskAdaptor.h
  3428. * src/AsyncNameResolver.cc
  3429. * src/AsyncNameResolver.h
  3430. * src/BNode.cc
  3431. * src/BNode.h
  3432. * src/BitfieldMan.cc
  3433. * src/BitfieldMan.h
  3434. * src/BtAbortOutstandingRequestEvent.h
  3435. * src/BtExtendedMessage.cc
  3436. * src/BtExtendedMessage.h
  3437. * src/BtSeederStateChoke.cc
  3438. * src/BtSeederStateChoke.h
  3439. * src/Cookie.cc
  3440. * src/Cookie.h
  3441. * src/DHTBucket.cc
  3442. * src/DHTBucket.h
  3443. * src/DHTConnectionImpl.cc
  3444. * src/DHTConnectionImpl.h
  3445. * src/DHTFindNodeReplyMessage.cc
  3446. * src/DHTFindNodeReplyMessage.h
  3447. * src/DHTGetPeersReplyMessage.cc
  3448. * src/DHTGetPeersReplyMessage.h
  3449. * src/DHTInteractionCommand.cc
  3450. * src/DHTMessage.cc
  3451. * src/DHTMessage.h
  3452. * src/DHTMessageDispatcherImpl.cc
  3453. * src/DHTMessageEntry.cc
  3454. * src/DHTMessageReceiver.cc
  3455. * src/DHTMessageReceiver.h
  3456. * src/DHTMessageTrackerEntry.cc
  3457. * src/DHTMessageTrackerEntry.h
  3458. * src/DHTPeerAnnounceEntry.cc
  3459. * src/DHTPeerAnnounceEntry.h
  3460. * src/DHTPeerLookupTask.cc
  3461. * src/DHTPeerLookupTask.h
  3462. * src/DHTRoutingTableDeserializer.cc
  3463. * src/DHTRoutingTableDeserializer.h
  3464. * src/DefaultBtAnnounce.cc
  3465. * src/DefaultBtAnnounce.h
  3466. * src/DefaultBtMessageDispatcher.cc
  3467. * src/DefaultBtMessageDispatcher.h
  3468. * src/DefaultBtRequestFactory.cc
  3469. * src/DefaultBtRequestFactory.h
  3470. * src/DiskAdaptor.cc
  3471. * src/DiskAdaptor.h
  3472. * src/DownloadContext.cc
  3473. * src/DownloadContext.h
  3474. * src/DownloadEngine.cc
  3475. * src/DownloadEngine.h
  3476. * src/EpollEventPoll.cc
  3477. * src/EpollEventPoll.h
  3478. * src/FtpConnection.cc
  3479. * src/FtpConnection.h
  3480. * src/HttpConnection.cc
  3481. * src/HttpConnection.h
  3482. * src/HttpHeader.cc
  3483. * src/HttpHeader.h
  3484. * src/HttpRequest.cc
  3485. * src/HttpRequest.h
  3486. * src/HttpResponse.cc
  3487. * src/HttpResponse.h
  3488. * src/LibsslTLSContext.cc
  3489. * src/LibsslTLSContext.h
  3490. * src/MSEHandshake.cc
  3491. * src/MSEHandshake.h
  3492. * src/MetalinkEntry.cc
  3493. * src/MetalinkEntry.h
  3494. * src/MetalinkParserController.cc
  3495. * src/MetalinkParserController.h
  3496. * src/MetalinkParserStateMachine.cc
  3497. * src/MetalinkParserStateMachine.h
  3498. * src/MultiDiskAdaptor.cc
  3499. * src/MultiDiskAdaptor.h
  3500. * src/NetrcAuthResolver.cc
  3501. * src/NetrcAuthResolver.h
  3502. * src/Peer.cc
  3503. * src/Peer.h
  3504. * src/PeerSessionResource.cc
  3505. * src/PeerSessionResource.h
  3506. * src/Piece.cc
  3507. * src/Piece.h
  3508. * src/PieceStatMan.cc
  3509. * src/PieceStatMan.h
  3510. * src/Request.cc
  3511. * src/Request.h
  3512. * src/RequestGroup.cc
  3513. * src/RequestGroup.h
  3514. * src/RequestGroupMan.cc
  3515. * src/RequestGroupMan.h
  3516. * src/RequestSlot.cc
  3517. * src/RequestSlot.h
  3518. * src/SegmentMan.cc
  3519. * src/SegmentMan.h
  3520. * src/SelectEventPoll.cc
  3521. * src/SelectEventPoll.h
  3522. * src/ServerStat.cc
  3523. * src/ServerStat.h
  3524. * src/Signature.cc
  3525. * src/Signature.h
  3526. * src/URIResult.cc
  3527. * src/URIResult.h
  3528. * src/UTPexExtensionMessage.cc
  3529. * src/UTPexExtensionMessage.h
  3530. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Fixed compile error without BitTorrent and Metalink support.
  3532. * src/XmlRpcMethod.cc
  3533. * src/XmlRpcMethodFactory.cc
  3534. * src/XmlRpcMethodImpl.cc
  3535. * src/XmlRpcMethodImpl.h
  3536. * test/XmlRpcMethodTest.cc
  3537. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Rewritten the help message for --allow-overwrite option.
  3539. * doc/aria2c.1.txt
  3540. * src/usage_text.h
  3541. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Fixed typo
  3543. * doc/aria2c.1.txt
  3544. * src/usage_text.h
  3545. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Updated README for 1.4.0 release. Use new table syntax of
  3547. asciidoc.
  3548. * README
  3549. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Documented --xml-rpc-max-request-size option in man page.
  3551. * doc/aria2c.1.txt
  3552. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Moved C_* constants from BtContext to DefaultBtContext.
  3554. * src/BtContext.cc: Removed.
  3555. * src/BtContext.h
  3556. * src/DefaultBtContext.cc
  3557. * src/DefaultBtContext.h
  3558. * src/Makefile.am
  3559. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3561. path key respectively when persing .torrent file.
  3562. * src/BtContext.cc
  3563. * src/BtContext.h
  3564. * src/DefaultBtContext.cc
  3565. * test/DefaultBtContextTest.cc
  3566. * test/utf8.torrent
  3567. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Added --xml-rpc-max-request-size option to limit the size of
  3569. XML-RPC request.
  3570. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Documented XML-RPC API in man page.
  3572. * doc/aria2c.1.txt
  3573. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3575. will break strict-aliasing rules
  3576. * src/PeerConnection.cc
  3577. * test/DHTRoutingTableSerializerTest.cc
  3578. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3580. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3581. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3582. PKG_CHECK_MODULES macro uses latter name.
  3583. * m4/sqlite3.m4
  3584. * src/Makefile.am
  3585. * test/Makefile.am
  3586. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Fixed typo
  3588. * configure.ac
  3589. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3591. presence of libgnutls using pkg-config first. If it fails, fall
  3592. back to old macro libgnutls.m4.
  3593. * configure.ac
  3594. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Use s itself instead of !s.bad()
  3596. * src/CookieStorage.cc
  3597. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Documented --on-download-* option and --save-cookies option in man
  3599. page.
  3600. * doc/aria2c.1.txt
  3601. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Set possible values for --load-cookie option to "/path/to/file".
  3603. * src/OptionHandlerFactory.cc
  3604. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Added --save-cookies option.
  3606. * src/Cookie.cc
  3607. * src/Cookie.h
  3608. * src/CookieStorage.cc
  3609. * src/CookieStorage.h
  3610. * src/MultiUrlRequestInfo.cc
  3611. * src/OptionHandlerFactory.cc
  3612. * src/prefs.cc
  3613. * src/prefs.h
  3614. * src/usage_text.h
  3615. * test/CookieStorageTest.cc
  3616. * test/CookieTest.cc
  3617. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. Removed tellAll XML-RPC command because its reponse tends to be
  3619. big if stopped/waiting downloads pile up.
  3620. * src/XmlRpcMethodFactory.cc
  3621. * src/XmlRpcMethodImpl.cc
  3622. * src/XmlRpcMethodImpl.h
  3623. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3624. Added the ability to execute command when download starts and
  3625. stops. You can also specify command for particular cases such as
  3626. complete/error download. Added --on-download-start,
  3627. --on-download-stop, --on-download-complete and --on-download-error
  3628. option.
  3629. * src/OptionHandlerFactory.cc
  3630. * src/RequestGroupMan.cc
  3631. * src/prefs.cc
  3632. * src/prefs.h
  3633. * src/usage_text.h
  3634. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Fixed test error
  3636. * test/BencodeTest.cc
  3637. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Added unit tests.
  3639. * test/XmlRpcMethodTest.cc
  3640. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. Made exception message more verbose.
  3642. * src/bencode.cc
  3643. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3645. space in console readout. Also they are now shown in MiB/s if
  3646. speed > 1024KiB/s.
  3647. * src/ConsoleStatCalc.cc
  3648. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Added SEED to console output, which represents the number of
  3650. seeders currently the client is connecting to.
  3651. * src/ConsoleStatCalc.cc
  3652. * src/ConsoleStatCalc.h
  3653. * src/DownloadEngine.cc
  3654. * src/NullStatCalc.h
  3655. * src/StatCalc.h
  3656. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Added source filename(__FILE__) and line number(__LINE__) to
  3658. exception message.
  3659. * src/AbstractCommand.cc
  3660. * src/AbstractDiskWriter.cc
  3661. * src/AbstractProxyResponseCommand.cc
  3662. * src/BDE.h
  3663. * src/BtAllowedFastMessage.cc
  3664. * src/BtHandshakeMessageValidator.h
  3665. * src/BtHaveAllMessage.cc
  3666. * src/BtHaveNoneMessage.cc
  3667. * src/BtPieceMessage.cc
  3668. * src/BtRejectMessage.cc
  3669. * src/ChunkedDecoder.cc
  3670. * src/CookieStorage.cc
  3671. * src/DHTAnnouncePeerMessage.cc
  3672. * src/DHTEntryPointNameResolveCommand.cc
  3673. * src/DHTMessageFactoryImpl.cc
  3674. * src/DHTMessageTracker.cc
  3675. * src/DHTRoutingTableDeserializer.cc
  3676. * src/DHTRoutingTableSerializer.cc
  3677. * src/DHTSetup.cc
  3678. * src/DHTTokenTracker.cc
  3679. * src/DefaultBtAnnounce.cc
  3680. * src/DefaultBtContext.cc
  3681. * src/DefaultBtInteractive.cc
  3682. * src/DefaultBtMessageFactory.cc
  3683. * src/DefaultBtProgressInfoFile.cc
  3684. * src/DefaultExtensionMessageFactory.cc
  3685. * src/DlAbortEx.h
  3686. * src/DlRetryEx.h
  3687. * src/DownloadCommand.cc
  3688. * src/DownloadEngineFactory.cc
  3689. * src/DownloadFailureException.h
  3690. * src/Exception.cc
  3691. * src/Exception.h
  3692. * src/ExpatMetalinkProcessor.cc
  3693. * src/ExpatXmlRpcRequestProcessor.cc
  3694. * src/FallocFileAllocationIterator.cc
  3695. * src/FatalException.h
  3696. * src/FtpConnection.cc
  3697. * src/FtpFinishDownloadCommand.cc
  3698. * src/FtpInitiateConnectionCommand.cc
  3699. * src/FtpNegotiationCommand.cc
  3700. * src/GZipDecoder.cc
  3701. * src/HandshakeExtensionMessage.cc
  3702. * src/HttpConnection.cc
  3703. * src/HttpHeaderProcessor.cc
  3704. * src/HttpInitiateConnectionCommand.cc
  3705. * src/HttpResponse.cc
  3706. * src/HttpResponseCommand.cc
  3707. * src/HttpServer.cc
  3708. * src/HttpSkipResponseCommand.cc
  3709. * src/InitiateConnectionCommandFactory.cc
  3710. * src/IteratableChunkChecksumValidator.cc
  3711. * src/LibgcryptARC4Context.h
  3712. * src/LibgcryptARC4Decryptor.h
  3713. * src/LibgcryptARC4Encryptor.h
  3714. * src/LibgcryptDHKeyExchange.h
  3715. * src/LibgnutlsTLSContext.cc
  3716. * src/LibsslARC4Context.h
  3717. * src/LibsslARC4Decryptor.h
  3718. * src/LibsslARC4Encryptor.h
  3719. * src/LibsslDHKeyExchange.h
  3720. * src/LibsslTLSContext.cc
  3721. * src/MSEHandshake.cc
  3722. * src/MessageDigestHelper.cc
  3723. * src/MetalinkHelper.cc
  3724. * src/MultiDiskAdaptor.cc
  3725. * src/NameMatchOptionHandler.h
  3726. * src/NameResolver.cc
  3727. * src/Netrc.cc
  3728. * src/NsCookieParser.cc
  3729. * src/OptionHandlerException.cc
  3730. * src/OptionHandlerException.h
  3731. * src/OptionHandlerImpl.h
  3732. * src/OptionParser.cc
  3733. * src/ParameterizedStringParser.cc
  3734. * src/PeerAbstractCommand.cc
  3735. * src/PeerConnection.cc
  3736. * src/PeerMessageUtil.cc
  3737. * src/PeerReceiveHandshakeCommand.cc
  3738. * src/Platform.cc
  3739. * src/ReceiverMSEHandshakeCommand.cc
  3740. * src/RecoverableException.h
  3741. * src/RequestGroup.cc
  3742. * src/SimpleLogger.cc
  3743. * src/SocketCore.cc
  3744. * src/Sqlite3MozCookieParser.cc
  3745. * src/UTPexExtensionMessage.cc
  3746. * src/Util.cc
  3747. * src/XML2SAXMetalinkProcessor.cc
  3748. * src/Xml2XmlRpcRequestProcessor.cc
  3749. * src/XmlRpcMethodImpl.cc
  3750. * src/bencode.cc
  3751. * src/download_helper.cc
  3752. * src/messageDigest.h
  3753. * test/ExceptionTest.cc
  3754. * test/TestUtil.cc
  3755. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Bump up version number to 1.4.0
  3757. * configure.ac
  3758. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Added 2files.metalink to EXTRA_DIST
  3760. * test/Makefile.am
  3761. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Added missing 2files.metalink
  3763. * test/2files.metalink
  3764. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Show "[MEMORY]" prefix before filename in download summary if it
  3766. is downloaded into memory.
  3767. * src/DownloadResult.h
  3768. * src/RequestGroup.cc
  3769. * src/RequestGroupMan.cc
  3770. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3772. * src/ExpatXmlRpcRequestProcessor.cc
  3773. * src/Xml2XmlRpcRequestProcessor.cc
  3774. * src/message.h
  3775. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Defined const BDEs to avoid duplicate instantiation.
  3777. Defined MSG_GID_NOT_PROVIDED.
  3778. * src/XmlRpcMethodImpl.cc
  3779. * src/message.h
  3780. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Code cleanup
  3782. * src/Xml2XmlRpcRequestProcessor.cc
  3783. * src/Xml2XmlRpcRequestProcessor.h
  3784. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Defined ENABLE_XML_RPC
  3786. * configure.ac
  3787. * configure
  3788. * config.h.in
  3789. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Added ExpatXmlRpcRequestProcessor
  3791. * src/ExpatXmlRpcRequestProcessor.cc
  3792. * src/ExpatXmlRpcRequestProcessor.h
  3793. * src/Makefile.am
  3794. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Added tests for addTorrent and addMetalink command.
  3796. * test/TestUtil.cc
  3797. * test/TestUtil.h
  3798. * test/XmlRpcMethodTest.cc
  3799. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Corrected the description of --file-allocation option.
  3801. * doc/aria2c.1.txt
  3802. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Added tellAll command.
  3804. * src/XmlRpcMethodFactory.cc
  3805. * src/XmlRpcMethodImpl.cc
  3806. * src/XmlRpcMethodImpl.h
  3807. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3809. * src/XmlRpcMethodImpl.cc
  3810. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Added changeGlobalOption command. Currently,
  3812. max-overall-download-limit and max-overall-upload-limit option are
  3813. available.
  3814. * src/RequestGroupMan.h
  3815. * src/XmlRpcMethod.cc
  3816. * src/XmlRpcMethod.h
  3817. * src/XmlRpcMethodFactory.cc
  3818. * src/XmlRpcMethodImpl.cc
  3819. * src/XmlRpcMethodImpl.h
  3820. * test/XmlRpcMethodTest.cc
  3821. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Added changeOption command. Currently, max-download-limit,
  3823. max-upload-limit option are available in this command.
  3824. * src/RequestGroup.h
  3825. * src/XmlRpcMethod.cc
  3826. * src/XmlRpcMethod.h
  3827. * src/XmlRpcMethodFactory.cc
  3828. * src/XmlRpcMethodImpl.cc
  3829. * src/XmlRpcMethodImpl.h
  3830. * test/XmlRpcMethodTest.cc
  3831. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added purgeDownloadResult command.
  3833. * src/RequestGroupMan.cc
  3834. * src/RequestGroupMan.h
  3835. * src/XmlRpcMethodFactory.cc
  3836. * src/XmlRpcMethodImpl.cc
  3837. * src/XmlRpcMethodImpl.h
  3838. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Refactored.
  3840. * src/XmlRpcMethod.cc
  3841. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3843. XmlRpcResponse.
  3844. * src/HttpServerBodyCommand.cc
  3845. * src/Makefile.am
  3846. * src/XmlRpcMethod.cc
  3847. * src/XmlRpcMethod.h
  3848. * src/XmlRpcMethodImpl.cc
  3849. * src/XmlRpcResponse.cc
  3850. * src/XmlRpcResponse.h
  3851. * test/XmlRpcMethodTest.cc
  3852. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. In XML-RPC option struct, header and index-out option can take
  3854. array as value.
  3855. * src/XmlRpcMethod.cc
  3856. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Removed unused option member from PeerConnection.
  3858. * src/InitiatorMSEHandshakeCommand.cc
  3859. * src/PeerConnection.cc
  3860. * src/PeerConnection.h
  3861. * src/PeerInteractionCommand.cc
  3862. * src/PeerReceiveHandshakeCommand.cc
  3863. * src/ReceiverMSEHandshakeCommand.cc
  3864. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Added "seeder" key to getPeers response.
  3866. * src/XmlRpcMethodImpl.cc
  3867. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Added addMetalink XML-RPC command.
  3869. * src/XmlRpcMethodFactory.cc
  3870. * src/XmlRpcMethodImpl.cc
  3871. * src/XmlRpcMethodImpl.h
  3872. * src/download_helper.cc
  3873. * src/download_helper.h
  3874. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Fixed the bug that POU peers are never choked in seeding.
  3876. * src/BtSeederStateChoke.cc
  3877. * src/BtSeederStateChoke.h
  3878. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Added web-seeding URI handling in addTorrent command.
  3880. * src/XmlRpcMethodImpl.cc
  3881. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Added "length" key to getFiles response.
  3883. * src/XmlRpcMethodImpl.cc
  3884. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Moved --no-netrc option from ftp option section to http/ftp option
  3886. section.
  3887. * doc/aria2c.1.txt
  3888. * src/OptionHandlerFactory.cc
  3889. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Removed garbage "\" character before '
  3891. * doc/aria2c.1.txt
  3892. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Removed garbage "\" character before http.
  3894. * doc/aria2c.1.txt
  3895. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Documented additional options that can be specified in -i list.
  3897. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3898. and --xml-rpc-passwd. Removed --enable-http-server and
  3899. --http-server-listen-port.
  3900. * doc/aria2c.1.txt
  3901. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3902. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3903. * src/DefaultPeerStorage.cc
  3904. * src/DefaultPeerStorage.h
  3905. * src/PeerStorage.h
  3906. * src/XmlRpcMethodImpl.cc
  3907. * test/MockPeerStorage.h
  3908. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Put a call to Socket::isReadable() in try block.
  3910. * src/HttpServerBodyCommand.cc
  3911. * src/HttpServerCommand.cc
  3912. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3914. exception , so it is now in try block.
  3915. * src/HttpServerResponseCommand.cc
  3916. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Added "amChoking" and "peerChoking" key in getPeers response.
  3918. * src/XmlRpcMethodImpl.cc
  3919. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Added test case for zero-length filter.
  3921. * test/BitfieldManTest.cc
  3922. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. getFiles command now returns file data for finished/stopped
  3924. downloads.
  3925. * src/XmlRpcMethodImpl.cc
  3926. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. DownloadResult now has the list of FileEntry. The download
  3928. summary displays the path of first selected file and the number of
  3929. remaining files for multi-file torrent.
  3930. * src/DownloadResult.h
  3931. * src/RequestGroup.cc
  3932. * src/RequestGroupMan.cc
  3933. * test/RequestGroupTest.cc
  3934. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Fixed segmentation fault error when no file is selected in
  3936. multi-file torrent.
  3937. * src/BitfieldMan.cc
  3938. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Escaped <,>,& character in XML-RPC response.
  3940. * src/XmlRpcMethod.cc
  3941. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Throw DlAbortEx instead of FatalException during parsing options
  3943. because we don't want for aria2 to quit when bad option is passed
  3944. via XML-RPC.
  3945. * src/OptionHandlerException.cc
  3946. * src/OptionHandlerException.h
  3947. * src/OptionHandlerImpl.h
  3948. * src/OptionParser.cc
  3949. * src/OptionParser.h
  3950. * src/PStringSegment.cc
  3951. * src/ParameterizedStringParser.cc
  3952. * src/download_helper.cc
  3953. * test/ParameterizedStringParserTest.cc
  3954. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Selecting files are now done in
  3956. DefaultBtContext::setFileFileter().
  3957. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3958. functions are removed because they are no longer used. Creating
  3959. filter in BitfieldMan is done in new funtion
  3960. PieceStorage::setupFileFilter()
  3961. * src/BtContext.cc
  3962. * src/BtContext.h
  3963. * src/DefaultBtContext.cc
  3964. * src/DefaultBtContext.h
  3965. * src/DefaultPieceStorage.cc
  3966. * src/DefaultPieceStorage.h
  3967. * src/DiskAdaptor.cc
  3968. * src/DiskAdaptor.h
  3969. * src/PieceStorage.h
  3970. * src/RequestGroup.cc
  3971. * src/UnknownLengthPieceStorage.h
  3972. * src/XmlRpcMethodImpl.cc
  3973. * test/DefaultBtContextTest.cc
  3974. * test/MockBtContext.h
  3975. * test/MockPieceStorage.h
  3976. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Fixed compile error on Mac OS X
  3978. * src/HttpServer.cc
  3979. * src/XmlRpcMethod.h
  3980. * src/XmlRpcMethodImpl.cc
  3981. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Use std::binary_search instead of std::find
  3983. * src/DefaultPieceStorage.cc
  3984. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Removed unnecessary BDE() call; leave them to implicit conversion.
  3986. * src/XmlRpcMethodImpl.cc
  3987. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Return connections and gid in string
  3989. * src/XmlRpcMethodImpl.cc
  3990. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Renamed addURI as addUri
  3992. * src/XmlRpcMethodFactory.cc
  3993. * src/XmlRpcMethodImpl.cc
  3994. * src/XmlRpcMethodImpl.h
  3995. * test/XmlRpcMethodTest.cc
  3996. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3997. Renamed addTorrentFile as addTorrent
  3998. * src/XmlRpcMethodFactory.cc
  3999. * src/XmlRpcMethodImpl.cc
  4000. * src/XmlRpcMethodImpl.h
  4001. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. The information for files, URIs, peers are removed from the
  4003. reponse of TellaActive, TellStatus command because they tend to be
  4004. large. Instead they can be retrieved by the dedicated commands:
  4005. getFiles, getUris and getPeers respectively.
  4006. * src/XmlRpcMethodFactory.cc
  4007. * src/XmlRpcMethodImpl.cc
  4008. * src/XmlRpcMethodImpl.h
  4009. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Removed --max-overall-upload-limit and
  4011. --max-overall-download-limit option from listRequestOptions.
  4012. * src/download_helper.cc
  4013. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Log incoming host in HttpListenCommand.
  4015. * src/HttpListenCommand.cc
  4016. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4018. --xml-rpc-passwd option.
  4019. * src/HttpServer.cc
  4020. * src/HttpServer.h
  4021. * src/HttpServerCommand.cc
  4022. * src/OptionHandlerFactory.cc
  4023. * src/prefs.cc
  4024. * src/prefs.h
  4025. * src/usage_text.h
  4026. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4028. processing 0 length request.
  4029. * src/HttpServerBodyCommand.cc
  4030. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Removed --enable-http-server and --http-server-listen-port
  4032. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4033. instead. The original feature for --enable-http-server that
  4034. reports download progress in HTML was officially removed. Persist
  4035. XML-RPC connection if client supports keep-alive.
  4036. * src/DownloadEngineFactory.cc
  4037. * src/HttpServerCommand.cc
  4038. * src/HttpServerResponseCommand.cc
  4039. * src/Makefile.am
  4040. * src/Makefile.in
  4041. * src/OptionHandlerFactory.cc
  4042. * src/RequestGroupMan.cc
  4043. * src/main.cc
  4044. * src/option_processing.cc
  4045. * src/prefs.cc
  4046. * src/prefs.h
  4047. * src/usage_text.h
  4048. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Added "uris" key to the response of tellStatus command. Added
  4050. "connections" key to the response of tellStatus and tellActive
  4051. command.
  4052. * src/XmlRpcMethodImpl.cc
  4053. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4054. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4055. Added TellStatusXmlRpcMethod. Remove command can now remove
  4056. waiting RequestGroup.
  4057. * src/RequestGroupMan.cc
  4058. * src/RequestGroupMan.h
  4059. * src/XmlRpcMethodFactory.cc
  4060. * src/XmlRpcMethodImpl.cc
  4061. * src/XmlRpcMethodImpl.h
  4062. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Initialized _peerId
  4064. * src/Peer.cc
  4065. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Return fault structure for error. FailXmlRpcMethod is renamed as
  4067. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4068. in non-torrent download. Return single param value.
  4069. * src/XmlRpcMethod.cc
  4070. * src/XmlRpcMethodFactory.cc
  4071. * src/XmlRpcMethodImpl.cc
  4072. * src/XmlRpcMethodImpl.h
  4073. * test/XmlRpcMethodTest.cc
  4074. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4076. command.
  4077. * src/RequestGroup.cc
  4078. * src/RequestGroup.h
  4079. * src/RequestGroupMan.cc
  4080. * src/XmlRpcMethodImpl.cc
  4081. * test/RequestGroupTest.cc
  4082. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4083. Added more options that can be specified in -i list and xml-rpc
  4084. add* command.
  4085. * src/download_helper.h
  4086. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. The available options in -i list should be listed in
  4088. listRequestOptions().
  4089. * src/download_helper.cc
  4090. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4092. command.
  4093. * src/XmlRpcMethodImpl.cc
  4094. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Now RequestGroup has its own copy of Option object. This will help
  4096. to give custom option for each RequestGroup.
  4097. addTorrentFile command now takes options.
  4098. * src/AbstractCommand.cc
  4099. * src/AbstractCommand.h
  4100. * src/AbstractProxyRequestCommand.cc
  4101. * src/ActivePeerConnectionCommand.cc
  4102. * src/ActivePeerConnectionCommand.h
  4103. * src/AdaptiveURISelector.cc
  4104. * src/BtCheckIntegrityEntry.cc
  4105. * src/BtDependency.cc
  4106. * src/BtDependency.h
  4107. * src/BtFileAllocationEntry.cc
  4108. * src/BtPostDownloadHandler.cc
  4109. * src/CheckIntegrityEntry.cc
  4110. * src/DownloadCommand.cc
  4111. * src/FtpDownloadCommand.cc
  4112. * src/FtpFinishDownloadCommand.cc
  4113. * src/FtpInitiateConnectionCommand.cc
  4114. * src/FtpNegotiationCommand.cc
  4115. * src/HttpInitiateConnectionCommand.cc
  4116. * src/HttpRequestCommand.cc
  4117. * src/HttpResponseCommand.cc
  4118. * src/HttpSkipResponseCommand.cc
  4119. * src/InitiateConnectionCommand.cc
  4120. * src/InitiateConnectionCommandFactory.cc
  4121. * src/InitiatorMSEHandshakeCommand.cc
  4122. * src/InitiatorMSEHandshakeCommand.h
  4123. * src/Metalink2RequestGroup.cc
  4124. * src/Metalink2RequestGroup.h
  4125. * src/MetalinkPostDownloadHandler.cc
  4126. * src/MultiUrlRequestInfo.cc
  4127. * src/MultiUrlRequestInfo.h
  4128. * src/PeerAbstractCommand.cc
  4129. * src/PeerInteractionCommand.cc
  4130. * src/PeerInteractionCommand.h
  4131. * src/PeerReceiveHandshakeCommand.cc
  4132. * src/PeerReceiveHandshakeCommand.h
  4133. * src/RequestGroup.cc
  4134. * src/RequestGroup.h
  4135. * src/TrackerWatcherCommand.cc
  4136. * src/TrackerWatcherCommand.h
  4137. * src/XmlRpcMethod.cc
  4138. * src/XmlRpcMethod.h
  4139. * src/XmlRpcMethodImpl.cc
  4140. * src/download_helper.cc
  4141. * src/download_helper.h
  4142. * src/main.cc
  4143. * test/BtDependencyTest.cc
  4144. * test/BtPostDownloadHandlerTest.cc
  4145. * test/DefaultBtMessageDispatcherTest.cc
  4146. * test/DownloadHandlerFactoryTest.cc
  4147. * test/DownloadHelperTest.cc
  4148. * test/Metalink2RequestGroupTest.cc
  4149. * test/MetalinkPostDownloadHandlerTest.cc
  4150. * test/RequestGroupManTest.cc
  4151. * test/RequestGroupTest.cc
  4152. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Added tellActiveStatus xml-rpc command which reports download
  4154. status of active downloads.
  4155. * src/XmlRpcMethodFactory.cc
  4156. * src/XmlRpcMethodImpl.cc
  4157. * src/XmlRpcMethodImpl.h
  4158. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Added addTorrentFile xml-rpc command which receives uploaded
  4160. torrent file and add download for it.
  4161. * src/RequestGroupMan.cc
  4162. * src/XmlRpcMethodFactory.cc
  4163. * src/XmlRpcMethodImpl.cc
  4164. * src/XmlRpcMethodImpl.h
  4165. * src/download_helper.cc
  4166. * src/download_helper.h
  4167. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Added remove xml-rpc command which removes specified download.
  4169. There is a known issue: the removed unfinished downloads are
  4170. reported ERR when aria2 exits. They should be reported as INPR.
  4171. * src/RequestGroupMan.cc
  4172. * src/RequestGroupMan.h
  4173. * src/XmlRpcMethodFactory.cc
  4174. * src/XmlRpcMethodImpl.cc
  4175. * src/XmlRpcMethodImpl.h
  4176. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. If --enable-http-server is enabled, don't stop aria2 when all
  4178. download finished and don't quit when no files to download at
  4179. start up.
  4180. * src/RequestGroupMan.cc
  4181. * src/main.cc
  4182. * src/option_processing.cc
  4183. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Added missing AM_CONDITIONAL
  4185. * configure.ac
  4186. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Added xml-rpc functionality. Currently only addURI commad is
  4188. supported. To enable xml-rpc, run aria2 with
  4189. --enable-http-server. This option name is temporal and will be
  4190. changed. The feature that reports download progress in html format
  4191. is temporarily disabled.
  4192. * src/HttpServer.cc
  4193. * src/HttpServer.h
  4194. * src/HttpServerBodyCommand.cc
  4195. * src/HttpServerBodyCommand.h
  4196. * src/HttpServerCommand.cc
  4197. * src/HttpServerResponseCommand.cc
  4198. * src/Makefile.am
  4199. * src/OptionParser.cc
  4200. * src/OptionParser.h
  4201. * src/RequestGroupMan.cc
  4202. * src/RequestGroupMan.h
  4203. * src/XmlRpcMethod.cc
  4204. * src/XmlRpcMethod.h
  4205. * src/XmlRpcMethodFactory.cc
  4206. * src/XmlRpcMethodFactory.h
  4207. * src/XmlRpcMethodImpl.cc
  4208. * src/XmlRpcMethodImpl.h
  4209. * src/download_helper.cc
  4210. * src/download_helper.h
  4211. * test/Makefile.am
  4212. * test/XmlRpcMethodTest.cc
  4213. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Added xml-rpc request parser. The supported value types are:
  4215. i4/int, string, double, struct, array, base64. Currently only
  4216. libxml2 version is provided.
  4217. * src/Xml2XmlRpcRequestProcessor.cc
  4218. * src/Xml2XmlRpcRequestProcessor.h
  4219. * src/XmlRpcElements.cc
  4220. * src/XmlRpcElements.h
  4221. * src/XmlRpcRequest.h
  4222. * src/XmlRpcRequestParserController.cc
  4223. * src/XmlRpcRequestParserController.h
  4224. * src/XmlRpcRequestParserState.h
  4225. * src/XmlRpcRequestParserStateImpl.cc
  4226. * src/XmlRpcRequestParserStateImpl.h
  4227. * src/XmlRpcRequestParserStateMachine.cc
  4228. * src/XmlRpcRequestParserStateMachine.h
  4229. * src/XmlRpcRequestProcessor.h
  4230. * test/XmlRpcRequestParserControllerTest.cc
  4231. * test/XmlRpcRequestProcessorTest.cc
  4232. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. * Release 1.3.3
  4234. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Fixed compile error since r1202.
  4236. * src/ExpatMetalinkProcessor.cc
  4237. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Updated Ukrainian, Russian and Simplified Chinese
  4239. translations. Thanks to all translators.
  4240. * po/ru.po
  4241. * po/uk.po
  4242. * po/zh_CN.po
  4243. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Pass reference of Option object instead of pointer.
  4245. * src/download_helper.cc
  4246. * src/download_helper.h
  4247. * src/main.cc
  4248. * test/DownloadHelperTest.cc
  4249. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4251. from option directly. Instead, get them from RequestGroup.
  4252. * src/ActivePeerConnectionCommand.cc
  4253. * src/ActivePeerConnectionCommand.h
  4254. * src/PeerReceiveHandshakeCommand.cc
  4255. * src/RequestGroup.h
  4256. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4257. Removed unused uploadLimitCheck and uploadLimit from
  4258. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4259. PeerInteractionCommand.
  4260. * src/PeerAbstractCommand.cc
  4261. * src/PeerAbstractCommand.h
  4262. * src/PeerInteractionCommand.cc
  4263. * src/PeerInteractionCommand.h
  4264. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Fixed broken file renaming feature since r1202.
  4266. * src/FtpNegotiationCommand.cc
  4267. * src/FtpNegotiationCommand.h
  4268. * src/HttpResponseCommand.cc
  4269. * src/RequestGroup.cc
  4270. * src/RequestGroup.h
  4271. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Removed unused debug log
  4273. * src/SocketCore.cc
  4274. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Generated configure and Makefile.in using autoconf 2.63 and
  4276. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4277. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4278. * configure.ac
  4279. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4280. Moved piece statistics stuff to new PieceStatMan class.
  4281. Refactored PieceSelector interface.
  4282. * src/DefaultPieceStorage.cc
  4283. * src/DefaultPieceStorage.h
  4284. * src/LongestSequencePieceSelector.cc
  4285. * src/LongestSequencePieceSelector.h
  4286. * src/Makefile.am
  4287. * src/PieceSelector.h
  4288. * src/PieceStatMan.cc
  4289. * src/PieceStatMan.h
  4290. * src/RarestPieceSelector.cc
  4291. * src/RarestPieceSelector.h
  4292. * src/RequestGroup.cc
  4293. * test/DefaultPieceStorageTest.cc
  4294. * test/InOrderPieceSelector.h
  4295. * test/Makefile.am
  4296. * test/PieceStatManTest.cc
  4297. * test/RarestPieceSelectorTest.cc
  4298. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Added static member _protocolFamily to SocketCore. By default,
  4300. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4301. address. Sometime SocketCore::bind() and
  4302. SocketCore::establishConnection() use difference protocl family
  4303. and latter cannot connect to former. To avoid this situation, we
  4304. limit protocol family to AF_INET for unit tests.
  4305. * src/SocketCore.cc
  4306. * src/SocketCore.h
  4307. * test/AllTest.cc
  4308. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4309. Avoid std::bad_alloc for negative bencode string length.
  4310. * src/bencode.cc
  4311. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4312. Supported segmented downloading with chunked transfer encoding and
  4313. content-length.
  4314. * src/DownloadCommand.cc
  4315. * src/HttpResponseCommand.cc
  4316. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Bump up version number to 1.3.3
  4318. * configure.ac
  4319. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4321. from 4096 to 65536 (for insanely large ftp login banners)
  4322. * src/FtpConnection.h
  4323. * test/FtpConnectionTest.cc
  4324. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. In DefaultBtContext::getActualBasePath(), return first
  4326. FileEntry::getPath() for single file torrent.
  4327. * src/DefaultBtContext.cc
  4328. * test/DefaultBtContextTest.cc
  4329. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4331. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4332. Removed _directIOAllowed member from DiskWriter.
  4333. * src/AbstractDiskWriter.cc
  4334. * src/AbstractDiskWriter.h
  4335. * src/AbstractSingleDiskAdaptor.cc
  4336. * src/AbstractSingleDiskAdaptor.h
  4337. * src/BinaryStream.h
  4338. * src/ByteArrayDiskWriter.h
  4339. * src/DefaultPieceStorage.cc
  4340. * src/DiskWriter.h
  4341. * src/MultiDiskAdaptor.cc
  4342. * src/MultiDiskAdaptor.h
  4343. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Now the constructor of AbstractDiskWriter takes filename as an
  4345. argument and filename argument is removed from openFile(),
  4346. initAndOpenFile(), openExistingFile() interface. storeDir member
  4347. and its accessor functions are removed from DiskAdaptor because it
  4348. is not used anymore. size() member function of DefaultDiskWriter,
  4349. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4350. opening file.
  4351. * src/AbstractDiskWriter.cc
  4352. * src/AbstractDiskWriter.h
  4353. * src/AbstractSingleDiskAdaptor.cc
  4354. * src/AbstractSingleDiskAdaptor.h
  4355. * src/ByteArrayDiskWriter.cc
  4356. * src/ByteArrayDiskWriter.h
  4357. * src/ByteArrayDiskWriterFactory.cc
  4358. * src/ByteArrayDiskWriterFactory.h
  4359. * src/DefaultDiskWriter.cc
  4360. * src/DefaultDiskWriter.h
  4361. * src/DefaultDiskWriterFactory.cc
  4362. * src/DefaultDiskWriterFactory.h
  4363. * src/DefaultPieceStorage.cc
  4364. * src/DirectDiskAdaptor.cc
  4365. * src/DirectDiskAdaptor.h
  4366. * src/DiskAdaptor.h
  4367. * src/DiskWriter.h
  4368. * src/DiskWriterFactory.h
  4369. * src/MessageDigestHelper.cc
  4370. * src/MultiDiskAdaptor.cc
  4371. * src/RequestGroup.cc
  4372. * src/UnknownLengthPieceStorage.cc
  4373. * src/Util.cc
  4374. * test/DefaultDiskWriterTest.cc
  4375. * test/DirectDiskAdaptorTest.cc
  4376. * test/FallocFileAllocationIteratorTest.cc
  4377. * test/MessageDigestHelperTest.cc
  4378. * test/MetalinkProcessorTest.cc
  4379. * test/MultiDiskAdaptorTest.cc
  4380. * test/MultiFileAllocationIteratorTest.cc
  4381. * test/SingleFileAllocationIteratorTest.cc
  4382. * test/UtilTest.cc
  4383. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Fixed the bug that aria2 aborts when --select-file is used. This
  4385. bug was introduced in r1199.
  4386. * src/MultiDiskAdaptor.cc
  4387. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Code cleanup
  4389. * test/MockPieceStorage.cc
  4390. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Fixed the bug that read-only file with wrong file size will cause
  4392. error because it cannot be truncated to the correct size. Now if
  4393. file size is different than the expected one, re-open file in
  4394. writable mode.
  4395. * src/AbstractSingleDiskAdaptor.cc
  4396. * src/AbstractSingleDiskAdaptor.h
  4397. * src/BtCheckIntegrityEntry.cc
  4398. * src/DiskAdaptor.h
  4399. * src/MultiDiskAdaptor.h
  4400. * src/RequestGroup.cc
  4401. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. Fixed the bug that with --check-integrity option aria2 reports
  4403. downloaded file size is 0 even if some parts of file is correctly
  4404. downloaded. This bug is reproducible for the download that a file
  4405. includes last piece is missing. This bug doesn't reveal for
  4406. single-torrent with file allocation on.
  4407. * src/IteratableChecksumValidator.cc
  4408. * test/IteratableChecksumValidatorTest.cc
  4409. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4411. * src/RequestGroupMan.cc
  4412. * src/AdaptiveURISelector.cc
  4413. * src/AdaptiveURISelector.h
  4414. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. * Release 1.3.2
  4416. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Updated README
  4418. * README
  4419. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Updated Ukrainian translations. Thanks to Alexander10.
  4421. * po/uk.po
  4422. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Code cleanup
  4424. * src/MetalinkParserStateMachine.cc
  4425. * src/MetalinkParserStateMachine.h
  4426. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4427. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4428. and expat simultaneously, MetalinkProcessor is now not base class
  4429. and it is directly implemented in XML2SAXMetalinkProcessor and
  4430. ExpatMetalinkProcessor.
  4431. * src/ExpatMetalinkProcessor.cc
  4432. * src/ExpatMetalinkProcessor.h
  4433. * src/Makefile.am
  4434. * src/MetalinkHelper.cc
  4435. * src/MetalinkProcessor.h
  4436. * src/MetalinkProcessorFactory.cc: Removed.
  4437. * src/MetalinkProcessorFactory.h: Removed
  4438. * src/XML2SAXMetalinkProcessor.cc
  4439. * src/XML2SAXMetalinkProcessor.h
  4440. * test/MetalinkProcessorTest.cc
  4441. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Bump up version number to 1.3.2
  4443. * configure.ac
  4444. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. Added missing file.
  4446. * test/Makefile.am
  4447. * test/url-list-singleFileEndsWithSlash.torrent
  4448. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4450. request.
  4451. * src/AnnounceList.cc
  4452. * src/AnnounceList.h
  4453. * src/BDE.cc: Added
  4454. * src/BDE.h: Added
  4455. * src/DHTAbstractMessage.cc
  4456. * src/DHTAbstractMessage.h
  4457. * src/DHTAnnouncePeerMessage.cc
  4458. * src/DHTAnnouncePeerMessage.h
  4459. * src/DHTAnnouncePeerReplyMessage.cc
  4460. * src/DHTAnnouncePeerReplyMessage.h
  4461. * src/DHTFindNodeMessage.cc
  4462. * src/DHTFindNodeMessage.h
  4463. * src/DHTFindNodeReplyMessage.cc
  4464. * src/DHTFindNodeReplyMessage.h
  4465. * src/DHTGetPeersMessage.cc
  4466. * src/DHTGetPeersMessage.h
  4467. * src/DHTGetPeersReplyMessage.cc
  4468. * src/DHTGetPeersReplyMessage.h
  4469. * src/DHTMessageFactory.h
  4470. * src/DHTMessageFactoryImpl.cc
  4471. * src/DHTMessageFactoryImpl.h
  4472. * src/DHTMessageReceiver.cc
  4473. * src/DHTMessageTracker.cc
  4474. * src/DHTMessageTracker.h
  4475. * src/DHTPingMessage.cc
  4476. * src/DHTPingMessage.h
  4477. * src/DHTPingReplyMessage.cc
  4478. * src/DHTPingReplyMessage.h
  4479. * src/DHTQueryMessage.cc
  4480. * src/DHTQueryMessage.h
  4481. * src/DHTResponseMessage.cc
  4482. * src/DHTResponseMessage.h
  4483. * src/DefaultBtAnnounce.cc
  4484. * src/DefaultBtContext.cc
  4485. * src/DefaultBtContext.h
  4486. * src/HandshakeExtensionMessage.cc
  4487. * src/Makefile.am
  4488. * src/PeerListProcessor.h
  4489. * src/UTPexExtensionMessage.cc
  4490. * src/bencode.cc
  4491. * src/bencode.h
  4492. * test/AnnounceListTest.cc
  4493. * test/BDETest.cc: Added
  4494. * test/BencodeTest.cc
  4495. * test/DHTAnnouncePeerMessageTest.cc
  4496. * test/DHTAnnouncePeerReplyMessageTest.cc
  4497. * test/DHTFindNodeMessageTest.cc
  4498. * test/DHTFindNodeReplyMessageTest.cc
  4499. * test/DHTGetPeersMessageTest.cc
  4500. * test/DHTGetPeersReplyMessageTest.cc
  4501. * test/DHTMessageFactoryImplTest.cc
  4502. * test/DHTMessageTrackerTest.cc
  4503. * test/DHTPingMessageTest.cc
  4504. * test/DHTPingReplyMessageTest.cc
  4505. * test/Makefile.am
  4506. * test/MockDHTMessageFactory.h
  4507. * test/PeerListProcessorTest.cc
  4508. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. Use url-list (web-seeding) only for single-file torrent. This is
  4510. basically the same behavior with Metalink file with torrent and
  4511. URIs.
  4512. * src/RequestGroup.cc
  4513. * src/DefaultBtContext.cc
  4514. * test/DefaultBtContextTest.cc
  4515. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Rewritten expr
  4517. * src/array_fun.h
  4518. * test/array_funTest.cc
  4519. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4521. * src/DefaultBtMessageDispatcher.cc
  4522. * src/a2algo.h
  4523. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Removed ExtendedMessagingAware. Instead of using inheritance,
  4525. added ExtensionMessageRegistry and it is passed to
  4526. DefaultExtensionMessageFactory.
  4527. * src/DefaultBtInteractive.cc
  4528. * src/DefaultBtInteractive.h
  4529. * src/DefaultExtensionMessageFactory.cc
  4530. * src/DefaultExtensionMessageFactory.h
  4531. * src/ExtendedMessagingAware.h: Removed.
  4532. * src/ExtensionMessageFactory.h
  4533. * src/ExtensionMessageRegistry.h: Added.
  4534. * src/Makefile.am
  4535. * src/PeerInteractionCommand.cc
  4536. * test/DefaultExtensionMessageFactoryTest.cc
  4537. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Fixed typo in log messages
  4539. * src/MSEHandshake.cc
  4540. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Fixed the bug that prevents torrent download from finishing. The
  4542. bug doesn't reveal for all torrents. The torrents affected this
  4543. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4544. of pieces.
  4545. * src/bitfield.h
  4546. * test/bitfieldTest.cc
  4547. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Code cleanup
  4549. * src/PeerListProcessor.h
  4550. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Removed RequestGroupAware
  4552. * src/AbstractCommand.cc
  4553. * src/AbstractCommand.h
  4554. * src/ActivePeerConnectionCommand.cc
  4555. * src/ActivePeerConnectionCommand.h
  4556. * src/DHTGetPeersCommand.cc
  4557. * src/DHTGetPeersCommand.h
  4558. * src/InitiatorMSEHandshakeCommand.cc
  4559. * src/InitiatorMSEHandshakeCommand.h
  4560. * src/Makefile.am
  4561. * src/PeerInitiateConnectionCommand.cc
  4562. * src/PeerInitiateConnectionCommand.h
  4563. * src/PeerInteractionCommand.cc
  4564. * src/PeerInteractionCommand.h
  4565. * src/RealtimeCommand.cc
  4566. * src/RealtimeCommand.h
  4567. * src/RequestGroupAware.cc: Removed
  4568. * src/RequestGroupAware.h: Removed
  4569. * src/SeedCheckCommand.cc
  4570. * src/SeedCheckCommand.h
  4571. * src/SleepCommand.cc
  4572. * src/TrackerWatcherCommand.cc
  4573. * src/TrackerWatcherCommand.h
  4574. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Rewritten PeerListProcessor
  4576. * src/PeerListProcessor.h
  4577. * src/CompactPeerListProcessor.h: Removed
  4578. * src/CompactPeerListProcessor.cc: Removed
  4579. * src/DelegatingPeerListProcessor.cc: Removed.
  4580. * src/DefaultBtAnnounce.cc
  4581. * src/Makefile.am
  4582. * src/UTPexExtensionMessage.cc
  4583. * src/DefaultPeerListProcessor.h: Removed.
  4584. * src/DefaultPeerListProcessor.cc: Removed.
  4585. * src/DelegatingPeerListProcessor.h: Removed.
  4586. * test/Makefile.am
  4587. * test/PeerListProcessorTest.cc
  4588. * test/DefaultPeerListProcessorTest.cc: Removed.
  4589. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Rewritten RequestGroupMan::calculateStat()
  4591. * src/RequestGroupMan.cc
  4592. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Removed unnecessary virtual destructor for Request class.
  4594. * src/Request.cc
  4595. * src/Request.h
  4596. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Avoid dynamic_pointer_cast.
  4598. * src/DHTGetPeersCommand.cc
  4599. * src/DHTGetPeersCommand.h
  4600. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4601. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4602. BtEvent.
  4603. * src/AbstractBtEventListener.h: Removed.
  4604. * src/AbstractBtMessage.cc
  4605. * src/AbstractBtMessage.h
  4606. * src/BtAbortOutstandingRequestEvent.h
  4607. * src/BtCancelSendingPieceEvent.h
  4608. * src/BtChokedEvent.h: Removed.
  4609. * src/BtChokingEvent.h
  4610. * src/BtEvent.h: Removed
  4611. * src/BtEventListener.h: Removed.
  4612. * src/BtMessage.h
  4613. * src/BtPieceMessage.cc
  4614. * src/BtPieceMessage.h
  4615. * src/BtRequestMessage.cc
  4616. * src/BtRequestMessage.h
  4617. * src/DefaultBtMessageDispatcher.cc
  4618. * src/Makefile.am
  4619. * src/a2functional.h
  4620. * test/BtPieceMessageTest.cc
  4621. * test/BtRequestMessageTest.cc
  4622. * test/DefaultBtMessageDispatcherTest.cc
  4623. * test/MockBtMessage.h
  4624. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Code cleanup
  4626. * src/RequestGroupMan.cc
  4627. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Code cleanup
  4629. * src/DownloadCommand.cc
  4630. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4632. byte.
  4633. * src/DownloadCommand.cc
  4634. * src/bitfield.h
  4635. * test/bitfieldTest.cc
  4636. Fixed the bug that causes infinite loop if broken web server
  4637. returns chunked response without last "0" chunk-size marker and
  4638. closes connection.
  4639. * src/DownloadCommand.cc
  4640. Instantiate properly configured HttpDownloadCommand for
  4641. non-resumable downlaods.
  4642. * src/HttpResponseCommand.cc
  4643. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4644. Rewritten array operation functions.
  4645. * src/BitfieldMan.cc
  4646. * src/array_fun.h
  4647. * test/array_funTest.cc
  4648. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Removed unused variable 'query'
  4650. * src/Request.cc
  4651. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4653. accidentally set to false in r1162.
  4654. * configure.ac
  4655. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Code cleanup
  4657. * src/BNode.cc
  4658. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Increase prefixLength for the bucket which doesn't own local node
  4660. ID when splitting bucket.
  4661. * src/DHTBucket.cc
  4662. * test/DHTBucketTest.cc
  4663. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. * Release 1.3.1
  4665. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Bump up version number to 1.3.1
  4667. * configure.ac
  4668. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Removed unused variable checkPoint. Also removed include directive
  4670. for TimeA2.h.
  4671. * src/SeedCheckCommand.h
  4672. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Fixed the bug that upload limit exceeds the value specified in
  4674. --seed-ratio option depending on the timing of the execution of
  4675. SeedCheckCommand.
  4676. * src/SeedCheckCommand.cc
  4677. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Fixed the bug that removed peer's session upload/download length
  4679. are counted twice in _cachedTransferStat before it is
  4680. re-calculated. This affected the calculation of shara ratio,
  4681. resulting aria2 wrongly determines that specified share ratio is
  4682. reached. Also fixed the typo in calculateStatFor function name.
  4683. * src/BtSetup.cc
  4684. * src/DefaultPeerStorage.cc
  4685. * src/ShareRatioSeedCriteria.h
  4686. * test/ShareRatioSeedCriteriaTest.cc
  4687. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. * Release 1.3.0
  4689. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4691. Nynorsk translations. Thanks to all translators.
  4692. * po/es.po
  4693. * po/ja.po
  4694. * po/nn.po
  4695. * po/ru.po
  4696. * po/uk.po
  4697. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4698. Rewritten isInRange()
  4699. * src/DHTBucket.cc
  4700. * test/DHTBucketTest.cc
  4701. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Fixed typo
  4703. * doc/aria2c.1.txt
  4704. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4706. malloc/realloc is not used.
  4707. * src/configure.ac
  4708. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4710. char* bitfield instead of stl container for efficiency.
  4711. PieceSelector::select now takes this
  4712. bitfield. RarestPieceSelector::select now also performs
  4713. efficiently for this change. bitfield namespace is introduced and
  4714. it has several helper functions to handle basic bitfield
  4715. operations such as test, count set bits, etc.
  4716. * src/BitfieldMan.cc
  4717. * src/BitfieldMan.h
  4718. * src/DefaultBtRequestFactory.cc
  4719. * src/DefaultPieceStorage.cc
  4720. * src/DefaultPieceStorage.h
  4721. * src/LongestSequencePieceSelector.cc
  4722. * src/LongestSequencePieceSelector.h
  4723. * src/Makefile.am
  4724. * src/Piece.cc
  4725. * src/Piece.h
  4726. * src/PieceSelector.h
  4727. * src/RarestPieceSelector.cc
  4728. * src/RarestPieceSelector.h
  4729. * src/Util.cc
  4730. * src/Util.h
  4731. * src/bitfield.h
  4732. * test/BitfieldManTest.cc
  4733. * test/LongestSequencePieceSelectorTest.cc
  4734. * test/Makefile.am
  4735. * test/RarestPieceSelectorTest.cc
  4736. * test/UtilTest.cc
  4737. * test/bitfieldTest.cc
  4738. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Made accepted socket non-block.
  4740. * src/FtpNegotiationCommand.cc
  4741. * src/HttpListenCommand.cc
  4742. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4744. * src/AbstractSingleDiskAdaptor.cc
  4745. * src/DefaultPieceStorage.cc
  4746. * src/DiskAdaptor.h
  4747. * src/DiskAdaptor.h
  4748. * src/MultiFileAllocationIterator.cc
  4749. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Run
  4751. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4752. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4753. it doesn't need to be called every time when
  4754. DefaultBtInteractive::doInteractionProcessing() is called.
  4755. * src/DefaultBtInteractive.cc
  4756. * src/DefaultBtInteractive.h
  4757. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. Documented 'falloc' in man page.
  4759. * doc/aria2c.1.txt
  4760. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Updated doc
  4762. * src/usage_text.h
  4763. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4765. allocation mode uses posix_fallocate() system call to allocate
  4766. file on disk. If you are using newer file systems such as ext4
  4767. (with extents support), btrfs or xfs, 'falloc' is your best
  4768. choice. It allocates large(few GiB) files almost instantly. Don't
  4769. use 'falloc' with legacy file systems such as ext3 because it
  4770. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4771. until allocation finishes. 'falloc' may not be available if your
  4772. system doesn't have posix_fallocate() system call.
  4773. * configure.ac
  4774. * src/AbstractDiskWriter.cc
  4775. * src/AbstractDiskWriter.h
  4776. * src/AbstractSingleDiskAdaptor.cc
  4777. * src/BinaryStream.h
  4778. * src/BtCheckIntegrityEntry.cc
  4779. * src/ByteArrayDiskWriter.h
  4780. * src/CheckIntegrityEntry.cc
  4781. * src/CheckIntegrityEntry.h
  4782. * src/DefaultPieceStorage.cc
  4783. * src/DiskAdaptor.cc
  4784. * src/DiskAdaptor.h
  4785. * src/DiskWriter.h
  4786. * src/FallocFileAllocationIterator.cc
  4787. * src/FallocFileAllocationIterator.h
  4788. * src/FileAllocationEntry.cc
  4789. * src/FileAllocationEntry.h
  4790. * src/Makefile.am
  4791. * src/MultiFileAllocationIterator.cc
  4792. * src/MultiFileAllocationIterator.h
  4793. * src/OptionHandlerFactory.cc
  4794. * src/RequestGroup.cc
  4795. * src/StreamCheckIntegrityEntry.cc
  4796. * src/prefs.cc
  4797. * src/prefs.h
  4798. * src/usage_text.h
  4799. * test/FallocFileAllocationIteratorTest.cc
  4800. * test/Makefile.am
  4801. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4802. Removed duplicate enableDirectIO() call.
  4803. * src/MultiFileAllocationIterator.cc
  4804. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4806. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4807. cost of std::rotate().
  4808. * src/RarestPieceSelector.cc
  4809. * src/RarestPieceSelector.h
  4810. * test/RarestPieceSelectorTest.cc
  4811. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Updated usage doc for --bt-tracker-interval option.
  4813. * src/usage_text.h
  4814. * doc/aria2c.1.txt
  4815. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. Documented --bt-tracker-interval option in man page.
  4817. * doc/aria2c.1.txt
  4818. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Added an option to specify the interval between tracker requests.
  4820. If non-zero value is specified, aria2 uses it and ignores the
  4821. interval value in the response of tracker. If zero is specified,
  4822. aria2 determines the inteval value based on the tarcker response
  4823. and download progress.
  4824. * src/DefaultBtAnnounce.cc
  4825. * src/DefaultBtAnnounce.h
  4826. * src/OptionHandlerFactory.cc
  4827. * src/RequestGroup.cc
  4828. * src/prefs.cc
  4829. * src/prefs.h
  4830. * src/usage_text.h
  4831. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Added operator+=, operator-=, operator-
  4833. * src/TransferStat.cc
  4834. * src/TransferStat.h
  4835. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4836. Refactored RarestPieceSelector to reduce CPU load, especially for
  4837. addPieceStats.
  4838. * src/RarestPieceSelector.cc
  4839. * src/RarestPieceSelector.h
  4840. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4842. getAllMissingBlockIndexes to reduce a call to
  4843. array_function_base::operator[].
  4844. * src/BitfieldMan.cc
  4845. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4846. Cached TransferStat/download speed to avoid to sum them up in each
  4847. call.
  4848. * src/DefaultPeerStorage.cc
  4849. * src/DefaultPeerStorage.h
  4850. * src/SegmentMan.cc
  4851. * src/SegmentMan.h
  4852. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Typedefed cuid_t as int32_t in Command.h
  4854. * src/CUIDCounter.h
  4855. * src/Command.cc
  4856. * src/Command.h
  4857. * src/DownloadEngine.cc
  4858. * src/DownloadEngine.h
  4859. * src/PeerStat.h
  4860. * src/SegmentMan.cc
  4861. * src/SegmentMan.h
  4862. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4863. Reduced the number of calls to PeerStorage::calculateStat() and
  4864. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4865. transfer rate.
  4866. * src/DefaultBtInteractive.cc
  4867. * src/DefaultBtMessageDispatcher.cc
  4868. * src/DefaultPeerStorage.cc
  4869. * src/DefaultPeerStorage.h
  4870. * src/DownloadCommand.cc
  4871. * src/DownloadEngine.cc
  4872. * src/PeerStorage.h
  4873. * src/SegmentMan.cc
  4874. * src/SegmentMan.h
  4875. * test/MockPeerStorage.h
  4876. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Prepended _dir+"/" after joining path elements in torrent file.
  4878. * src/DefaultBtContext.cc
  4879. * test/DefaultBtContextTest.cc
  4880. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Added missing IndexBtMessageValidator.h
  4882. * src/Makefile.am
  4883. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4885. Chinese translations. Thank you for contributing our project.
  4886. * po/id.po
  4887. * po/it.po
  4888. * po/ru.po
  4889. * po/uk.po
  4890. * po/zh_CN.po
  4891. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Updated README
  4893. * README
  4894. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Bump up version number to 1.3.0
  4896. * configure.ac
  4897. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Updated doc
  4899. * src/DefaultBtContext.h
  4900. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Slice/joinPath for name of single torrent.
  4902. * src/DefaultBtContext.cc
  4903. * test/DefaultBtContextTest.cc
  4904. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4905. Updated man page: Documented --dry-run and --index-out
  4906. options. Changed the default value of --uri-selector and
  4907. --http-auth-challenge options. Removed --direct-file-mapping
  4908. option. Added example for --index-out
  4909. * doc/aria2c.1.txt
  4910. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Updated TEXT_DRY_RUN
  4912. * src/usage_text.h
  4913. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Changed the default value of --uri-selector option from 'inorder'
  4915. to 'feedback'
  4916. * src/OptionHandlerFactory.cc
  4917. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Included current URI in exception message.
  4919. * src/AbstractCommand.cc
  4920. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Renamed ServerStatURISelector as FeedbackURISelector.
  4922. * src/FeedbackURISelector.cc
  4923. * src/FeedbackURISelector.h
  4924. * src/Makefile.am
  4925. * src/RequestGroupMan.cc
  4926. * src/ServerStatURISelector.cc
  4927. * src/ServerStatURISelector.h
  4928. * test/FeedbackURISelectorTest.cc
  4929. * test/Makefile.am
  4930. * test/ServerStatURISelectorTest.cc
  4931. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4933. all URIs are tested and their timeout is not reached.
  4934. * src/AdaptiveURISelector.cc
  4935. * src/AdaptiveURISelector.h
  4936. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4937. Changed the default value of --http-auth-challenge option to false.
  4938. * src/OptionHandlerFactory.cc
  4939. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Reuse URIs when all unused URIs run out.
  4941. * src/OptionHandlerFactory.cc
  4942. * src/RequestGroup.cc
  4943. * src/prefs.cc
  4944. * src/prefs.h
  4945. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4946. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4947. and BtRejectMessage are derived from RangeBtMessage class.
  4948. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4949. derived from IndexBtMessage class. BtChokeMessage,
  4950. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4951. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4952. ZeroBtMessage class.
  4953. * src/AbstractBtMessage.cc
  4954. * src/AbstractBtMessage.h
  4955. * src/BtAllowedFastMessage.cc
  4956. * src/BtAllowedFastMessage.h
  4957. * src/BtAllowedFastMessageValidator.h: Removed
  4958. * src/BtBitfieldMessage.cc
  4959. * src/BtBitfieldMessage.h
  4960. * src/BtCancelMessage.cc
  4961. * src/BtCancelMessage.h
  4962. * src/BtCancelMessageValidator.h: Removed
  4963. * src/BtChokeMessage.cc
  4964. * src/BtChokeMessage.h
  4965. * src/BtExtendedMessage.cc
  4966. * src/BtExtendedMessage.h
  4967. * src/BtHandshakeMessage.cc
  4968. * src/BtHandshakeMessage.h
  4969. * src/BtHaveAllMessage.cc
  4970. * src/BtHaveAllMessage.h
  4971. * src/BtHaveMessage.cc
  4972. * src/BtHaveMessage.h
  4973. * src/BtHaveMessageValidator.h: Removed
  4974. * src/BtHaveNoneMessage.cc
  4975. * src/BtHaveNoneMessage.h
  4976. * src/BtInterestedMessage.cc
  4977. * src/BtInterestedMessage.h
  4978. * src/BtKeepAliveMessage.cc
  4979. * src/BtKeepAliveMessage.h
  4980. * src/BtNotInterestedMessage.cc
  4981. * src/BtNotInterestedMessage.h
  4982. * src/BtPieceMessage.cc
  4983. * src/BtPieceMessage.h
  4984. * src/BtPortMessage.cc
  4985. * src/BtPortMessage.h
  4986. * src/BtRejectMessage.cc
  4987. * src/BtRejectMessage.h
  4988. * src/BtRejectMessageValidator.h: Removed
  4989. * src/BtRequestMessage.cc
  4990. * src/BtRequestMessage.h
  4991. * src/BtRequestMessageValidator.h: Removed
  4992. * src/BtSuggestPieceMessage.cc
  4993. * src/BtSuggestPieceMessage.h
  4994. * src/BtSuggestPieceMessageValidator.h: Removed
  4995. * src/BtUnchokeMessage.cc
  4996. * src/BtUnchokeMessage.h
  4997. * src/DefaultBtMessageFactory.cc
  4998. * src/IndexBtMessage.cc
  4999. * src/IndexBtMessage.h
  5000. * src/IndexBtMessageValidator.h
  5001. * src/Makefile.am
  5002. * src/PeerMessageUtil.cc
  5003. * src/PeerMessageUtil.h
  5004. * src/RangeBtMessage.cc
  5005. * src/RangeBtMessage.h
  5006. * src/RangeBtMessageValidator.h
  5007. * src/SimpleBtMessage.cc
  5008. * src/SimpleBtMessage.h
  5009. * src/ZeroBtMessage.cc
  5010. * src/ZeroBtMessage.h
  5011. * test/BtRequestMessageTest.cc
  5012. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Reverted usage_text.h to r1093 to avoid to lose translated
  5014. messages.
  5015. * src/usage_text.h
  5016. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5017. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5018. declared as non-const previously is now const and defined in class
  5019. definition.
  5020. * src/AbstractBtMessage.cc
  5021. * src/AbstractBtMessage.h
  5022. * src/BtAllowedFastMessage.cc
  5023. * src/BtAllowedFastMessage.h
  5024. * src/BtBitfieldMessage.h
  5025. * src/BtCancelMessage.cc
  5026. * src/BtCancelMessage.h
  5027. * src/BtChokeMessage.cc
  5028. * src/BtChokeMessage.h
  5029. * src/BtExtendedMessage.cc
  5030. * src/BtExtendedMessage.h
  5031. * src/BtHandshakeMessage.cc
  5032. * src/BtHandshakeMessage.h
  5033. * src/BtHaveAllMessage.cc
  5034. * src/BtHaveAllMessage.h
  5035. * src/BtHaveMessage.cc
  5036. * src/BtHaveMessage.h
  5037. * src/BtHaveNoneMessage.cc
  5038. * src/BtHaveNoneMessage.h
  5039. * src/BtInterestedMessage.cc
  5040. * src/BtInterestedMessage.h
  5041. * src/BtKeepAliveMessage.cc
  5042. * src/BtKeepAliveMessage.h
  5043. * src/BtMessage.h
  5044. * src/BtNotInterestedMessage.cc
  5045. * src/BtNotInterestedMessage.h
  5046. * src/BtPieceMessage.h
  5047. * src/BtPortMessage.cc
  5048. * src/BtPortMessage.h
  5049. * src/BtRejectMessage.cc
  5050. * src/BtRejectMessage.h
  5051. * src/BtRequestMessage.cc
  5052. * src/BtRequestMessage.h
  5053. * src/BtSuggestPieceMessage.cc
  5054. * src/BtSuggestPieceMessage.h
  5055. * src/BtUnchokeMessage.cc
  5056. * src/BtUnchokeMessage.h
  5057. * src/SimpleBtMessage.cc
  5058. * src/SimpleBtMessage.h
  5059. * test/MockBtMessage.h
  5060. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5061. Use FileEntry::exists()
  5062. * src/MultiDiskAdaptor.cc
  5063. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Added exists()
  5065. * src/FileEntry.cc
  5066. * src/FileEntry.h
  5067. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Added missing prefix dir.
  5069. * src/download_helper.cc
  5070. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5072. * src/CopyDiskAdaptor.cc: Removed
  5073. * src/CopyDiskAdaptor.h: Removed
  5074. * src/DefaultPieceStorage.cc
  5075. * src/Makefile.am
  5076. * src/OptionHandlerFactory.cc
  5077. * src/prefs.cc
  5078. * src/prefs.h
  5079. * src/usage_text.h
  5080. * test/CopyDiskAdaptorTest.cc: Removed
  5081. * test/Makefile.am
  5082. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Rewritten isSameFileBeingDownloaded()
  5084. * src/RequestGroupMan.cc
  5085. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5086. Removed getName() from DownloadContext. getName() is declared in
  5087. BtContext.
  5088. * src/BtContext.h
  5089. * src/DownloadContext.h
  5090. * src/SingleFileDownloadContext.cc
  5091. * src/SingleFileDownloadContext.h
  5092. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5093. in AbstractSingleDiskAdaptor.
  5094. * src/AbstractSingleDiskAdaptor.h
  5095. * src/DiskAdaptor.h
  5096. * src/MultiDiskAdaptor.h
  5097. * src/RequestGroup.cc
  5098. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5099. MultiDiskAdaptor.
  5100. * src/DefaultPieceStorage.cc
  5101. * src/MultiDiskAdaptor.cc
  5102. * src/MultiDiskAdaptor.h
  5103. * test/MultiDiskAdaptorTest.cc
  5104. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5105. FileEntry::getPath() contains store(top level) directory to
  5106. simplify path handling operation. In the previous implementation,
  5107. store directory is concatenated to FileEntry::getPath() in
  5108. DownloadContext.
  5109. * src/BtDependency.cc
  5110. * src/BtPostDownloadHandler.cc
  5111. * src/CopyDiskAdaptor.cc
  5112. * src/DefaultBtContext.cc
  5113. * src/DirectDiskAdaptor.cc
  5114. * src/FileEntry.cc
  5115. * src/FileEntry.h
  5116. * src/FtpNegotiationCommand.cc
  5117. * src/HttpResponse.cc
  5118. * src/HttpResponseCommand.cc
  5119. * src/Metalink2RequestGroup.cc
  5120. * src/MultiDiskAdaptor.cc
  5121. * src/MultiDiskAdaptor.h
  5122. * src/MultiFileAllocationIterator.cc
  5123. * src/RequestGroup.cc
  5124. * src/SingleFileDownloadContext.cc
  5125. * src/SingleFileDownloadContext.h
  5126. * src/download_helper.cc
  5127. * test/BtDependencyTest.cc
  5128. * test/CopyDiskAdaptorTest.cc
  5129. * test/DefaultBtContextTest.cc
  5130. * test/DefaultBtProgressInfoFileTest.cc
  5131. * test/DirectDiskAdaptorTest.cc
  5132. * test/DownloadHelperTest.cc
  5133. * test/FileEntryTest.cc
  5134. * test/MultiDiskAdaptorTest.cc
  5135. * test/MultiFileAllocationIteratorTest.cc
  5136. * test/RequestGroupTest.cc
  5137. * test/SingleFileDownloadContextTest.cc
  5138. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Fixed compiler warning
  5140. * src/download_helper.cc
  5141. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Throw exception if same infohash torrent is now downloading.
  5143. * src/RequestGroup.cc
  5144. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5145. Added --dry-run option. In this mode, aria2 just checks whether
  5146. the remote file is available and doesn't download data. This
  5147. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5148. are canceled in this mode.
  5149. * src/FtpNegotiationCommand.cc
  5150. * src/HttpResponseCommand.cc
  5151. * src/HttpResponseCommand.h
  5152. * src/OptionHandlerFactory.cc
  5153. * src/RequestGroup.cc
  5154. * src/RequestGroupMan.cc
  5155. * src/prefs.cc
  5156. * src/prefs.h
  5157. * src/usage_text.h
  5158. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Fixed compiler waring
  5160. * test/UriListParserTest.cc
  5161. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Parse options in -i list using OptionParser.
  5163. * src/UriListParser.cc
  5164. * src/UriListParser.h
  5165. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5166. Don't reset URI in retry to avoid additional round trips because
  5167. of redirects.
  5168. * src/AbstractCommand.cc
  5169. * src/OptionHandlerFactory.cc
  5170. * src/prefs.cc
  5171. * src/prefs.h
  5172. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Declared hide() in OptionHandler.
  5174. * src/NameMatchOptionHandler.h
  5175. * src/OptionHandler.h
  5176. * src/OptionHandlerImpl.h
  5177. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Updated doc
  5179. * src/Peer.h
  5180. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. Added log message in setStatusInternal()
  5182. * src/ServerStat.cc
  5183. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5185. effectively exclude failed server.
  5186. * src/AbstractCommand.cc
  5187. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Added --index-out option to specify each file path for torrent.
  5189. Here index shown in --show-files option is used to specify which
  5190. file path should be altered. For example, to change the file path
  5191. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5192. option multiple times: --index-out=1=aria2.tar.bz2
  5193. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5194. available. This option can be specified in -i list.
  5195. * src/DefaultBtContext.cc
  5196. * src/DefaultBtContext.h
  5197. * src/MultiDiskAdaptor.cc
  5198. * src/MultiDiskAdaptor.h
  5199. * src/MultiFileAllocationIterator.cc
  5200. * src/OptionHandlerFactory.cc
  5201. * src/OptionHandlerImpl.h
  5202. * src/Util.cc
  5203. * src/Util.h
  5204. * src/download_helper.cc
  5205. * src/prefs.cc
  5206. * src/prefs.h
  5207. * src/usage_text.h
  5208. * test/DefaultBtContextTest.cc
  5209. * test/MultiDiskAdaptorTest.cc
  5210. * test/MultiFileAllocationIteratorTest.cc
  5211. * test/UtilTest.cc
  5212. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Use Util::pathJoin()
  5214. * src/MetalinkParserController.cc
  5215. * test/test.xml
  5216. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5217. Use Util::pathJoin()
  5218. * src/DefaultBtContext.cc
  5219. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5220. Added Util::pathJoin()
  5221. * src/Util.h
  5222. * test/UtilTest.cc
  5223. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Applied basename function to remove directory element in
  5225. content-disposition value.
  5226. Return empty string if content-disposition value is ".." or ".".
  5227. * src/Util.cc
  5228. * test/UtilTest.cc
  5229. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Added --max-overall-download-limit in man page.
  5231. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5232. * doc/aria2c.1.txt
  5233. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Added --max-overall-download-limit option. Now --max-upload-limit
  5235. option is not ignored when --max-overall-upload-limit option has
  5236. non-zero value. aria2 checks download(upload) speed in the order:
  5237. first checks overall speed limit and if it is not exceeded, then
  5238. checks speed limit per download. Thus you can specify both
  5239. value. For example, set --max-overall-download-limit=1M and
  5240. --max-download-limit=500K to prevent from one download from eating
  5241. all overall speed limit.
  5242. * src/DefaultBtInteractive.cc
  5243. * src/DefaultBtInteractive.h
  5244. * src/DefaultBtMessageDispatcher.cc
  5245. * src/DefaultBtMessageDispatcher.h
  5246. * src/DownloadCommand.cc
  5247. * src/DownloadCommand.h
  5248. * src/FtpNegotiationCommand.cc
  5249. * src/HttpResponseCommand.cc
  5250. * src/OptionHandlerFactory.cc
  5251. * src/PeerInteractionCommand.cc
  5252. * src/RequestGroup.cc
  5253. * src/RequestGroup.h
  5254. * src/RequestGroupMan.cc
  5255. * src/RequestGroupMan.h
  5256. * src/prefs.cc
  5257. * src/prefs.h
  5258. * src/usage_text.h
  5259. * test/DefaultBtMessageDispatcherTest.cc
  5260. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Documented select-file option in Input File section.
  5262. Documented --http-auth-challenge option.
  5263. * doc/aria2c.1.txt
  5264. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Now select-file can be specified in the uri list(-i list).
  5266. * src/BtContext.cc
  5267. * src/BtContext.h
  5268. * src/RequestGroup.cc
  5269. * src/Sequence.h
  5270. * src/download_helper.cc
  5271. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Made the upper value of --max-concurrent-downloads options unlimited.
  5273. * src/OptionHandlerFactory.cc
  5274. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Fixed the bug that disk writer is not created even if it shares
  5276. same piece with the preceding file if the length of previous file
  5277. is 0.
  5278. * src/MultiDiskAdaptor.cc
  5279. * test/MultiDiskAdaptorTest.cc
  5280. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. In BitTorrent, Open files in read-only mode for hash check. After
  5282. that, re-open file in read/write mode only when the download is
  5283. not finished.
  5284. * src/AbstractDiskWriter.cc
  5285. * src/AbstractDiskWriter.h
  5286. * src/AbstractSingleDiskAdaptor.cc
  5287. * src/AbstractSingleDiskAdaptor.h
  5288. * src/BtCheckIntegrityEntry.cc
  5289. * src/DiskAdaptor.h
  5290. * src/DiskWriter.h
  5291. * src/MultiDiskAdaptor.cc
  5292. * src/MultiDiskAdaptor.h
  5293. * src/RequestGroup.cc
  5294. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Added --http-auth-challenge option. If it is set to true(by
  5296. default), aria2 sends HTTP authorization header only when it is
  5297. requested by the server. If false is set, then authorization
  5298. header is always sent to the server. This is useful for servers
  5299. that don't respond 401 code when authentication is required.
  5300. There is an exception: if username and password are embedded in
  5301. URI, authorization header is always sent to the server regardless
  5302. of this option.
  5303. * src/AuthConfigFactory.cc
  5304. * src/HttpSkipResponseCommand.cc
  5305. * src/OptionHandlerFactory.cc
  5306. * src/prefs.cc
  5307. * src/prefs.h
  5308. * src/usage_text.h
  5309. * test/AuthConfigFactoryTest.cc
  5310. * test/HttpRequestTest.cc
  5311. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. * Release 1.2.0
  5313. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5315. Thanks to all translators.
  5316. * po/es.po
  5317. * po/ja.po
  5318. * po/ru.po
  5319. * po/uk.po
  5320. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Call deleteSocketForReadCheck() before socket is closed.
  5322. * src/HttpListenCommand.cc
  5323. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Defined virtual destructor for BObject.
  5325. * src/bencode.h
  5326. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Rewritten BDE to make it efficient.
  5328. * src/bencode.cc
  5329. * src/bencode.h
  5330. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Removed function throw list.
  5332. * src/bencode.cc
  5333. * src/bencode.h
  5334. * test/BencodeTest.cc
  5335. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5336. Enclosed all URLs in double quotes in command-line examples.
  5337. * doc/aria2c.1.txt
  5338. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Updated reference/see also section.
  5340. * README
  5341. * doc/aria2c.1.txt
  5342. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Reorganized man page based on man man-pages.
  5344. * doc/aria2c.1.txt
  5345. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5347. because same documents are available in man page. Added
  5348. References section.
  5349. * README
  5350. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5351. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5352. PERFORMANCE PROFILE section.
  5353. * doc/aria2c.1.txt
  5354. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5355. Rewritten the section for configuration file.
  5356. * README
  5357. * doc/aria2c.1.txt
  5358. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Fixed the segmentation fault during execution of choking algorithm
  5360. in leecher state because of broken compare operator
  5361. implementation.
  5362. * src/BtLeecherStateChoke.cc
  5363. * src/BtLeecherStateChoke.h
  5364. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5365. Open file in binary mode.
  5366. * src/CookieStorage.cc
  5367. * src/DHTSetup.cc
  5368. * src/DHTUtil.cc
  5369. * src/Netrc.cc
  5370. * src/NsCookieParser.cc
  5371. * src/ProtocolDetector.cc
  5372. * src/RequestGroupMan.cc
  5373. * src/Signature.cc
  5374. * src/bencode.cc
  5375. * src/download_helper.cc
  5376. * src/option_processing.cc
  5377. * test/CookieParserTest.cc
  5378. * test/DefaultBtProgressInfoFileTest.cc
  5379. * test/FileTest.cc
  5380. * test/GZipDecoderTest.cc
  5381. * test/RequestGroupManTest.cc
  5382. * test/SignatureTest.cc
  5383. * test/SingleFileAllocationIteratorTest.cc
  5384. * test/UriListParserTest.cc
  5385. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Removed operator[] because it is ambiguous with built-in []
  5387. operator.
  5388. * src/array_fun.h
  5389. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5390. Fixed compile error
  5391. * src/OptionParser.cc
  5392. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Added missing call to arrayWrapperConst
  5394. * test/array_funTest.cc
  5395. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Use array_wrapper instead of array_ptr.
  5397. * src/DHTRoutingTableDeserializer.cc
  5398. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5400. * src/array_fun.h
  5401. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Added array_wrapper template.
  5403. * src/array_fun.h
  5404. * test/array_funTest.cc
  5405. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Use operator T* of array_ptr.
  5407. * src/OptionParser.cc
  5408. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Use localhost instead of 127.0.0.1
  5410. * test/FtpConnectionTest.cc
  5411. * test/MSEHandshakeTest.cc
  5412. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5413. Added operator T*
  5414. * src/array_fun.h
  5415. * test/array_funTest.cc
  5416. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Use dynamically allocated char array to detect memory access
  5418. violation.
  5419. * src/DHTRoutingTableDeserializer.cc
  5420. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5422. defined.
  5423. * src/PeerMessageUtil.cc
  5424. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5426. * configure.ac
  5427. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Added a check to see struct sockaddr_in has sin_len member.
  5429. * configure.ac
  5430. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5431. Fixed buffer overrun.
  5432. * src/DHTRoutingTableDeserializer.cc
  5433. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5434. Added LL for long long int constant.
  5435. * test/FtpConnectionTest.cc
  5436. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Casted to unsigned int to suppress compiler warning on netbsd.
  5438. * src/BtRuntime.h
  5439. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5441. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5442. type time_t.
  5443. * src/SimpleLogger.cc
  5444. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Added test for FtpConnection::receiveSizeResponse().
  5446. * test/FtpConnectionTest.cc
  5447. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Fix epoll error on the old kernel 2.6.8 or ealier.
  5449. * src/EpollEventPoll.cc
  5450. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Use Util::parseLLInt instead of sscanf for portability. The
  5452. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5453. * src/FtpConnection.cc
  5454. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5456. block. It should not filter anything.
  5457. * src/BitfieldMan.cc
  5458. * src/ConsoleStatCalc.cc
  5459. * test/BitfieldManTest.cc
  5460. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Fixed the bug that the boolean options that don't take arguments
  5462. don't work.
  5463. * src/OptionHandlerImpl.h
  5464. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Fixed broken selected file BitTorrent download.
  5466. * src/MultiDiskAdaptor.cc
  5467. * test/MultiDiskAdaptorTest.cc
  5468. * test/MultiFileAllocationIteratorTest.cc
  5469. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Fixed #define guard for EpollEventPoll
  5471. * src/EpollEventPoll.h
  5472. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Wait 2 seconds. 1 second is sometimes not enough.
  5474. * test/TimeSeedCriteriaTest.cc
  5475. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Use localhost instead of 127.0.0.1.
  5477. * test/DHTConnectionImplTest.cc
  5478. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Suppressed compiler warning.
  5480. * src/AdaptiveURISelector.cc
  5481. * src/DefaultPieceStorage.cc
  5482. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5483. Defined virtual destructor.
  5484. * src/MetalinkParserState.h
  5485. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Give NULL for second argument of getaddrinfo instead of "0".
  5487. * src/NameResolver.cc
  5488. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5490. included strptime doesn't parse data for this format.
  5491. * src/FtpConnection.cc
  5492. * test/FtpConnectionTest.cc
  5493. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5494. Removed tests giving -1 for unsigned argument.
  5495. * test/SingleFileDownloadContextTest.cc
  5496. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5497. Don't use sha256 in tests because it might not be supported by the
  5498. SSL library.
  5499. * test/MetalinkProcessorTest.cc
  5500. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Removed tests giving -1 for unsigned argument.
  5502. * test/AlphaNumberDecoratorTest
  5503. * test/BitfieldManTest.cc
  5504. * test/DefaultBtContextTest.cc
  5505. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Fixed compile error without libcares when epoll is available.
  5507. * src/EpollEventPoll.cc
  5508. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Included fstream instead of iostream.
  5510. * test/SignatureTest.cc
  5511. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Removed #include <algorithm>
  5513. * test/RequestGroupTest.cc
  5514. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5515. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5516. using RequestGroup::extractURIResult().
  5517. * src/AdaptiveURISelector.cc
  5518. * src/RequestGroup.cc
  5519. * src/RequestGroup.h
  5520. * test/RequestGroupTest.cc
  5521. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Added tests for array_ptr.
  5523. * test/array_funTest.cc
  5524. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Don't send ip parameter to a tracker if ip parameter is empty
  5526. string.
  5527. * src/DefaultBtAnnounce.cc
  5528. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5529. Adjusted line feed.
  5530. * src/version_usage.cc
  5531. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Print tags, possible values when OptionHandlerException is caught.
  5533. * src/option_processing.cc
  5534. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Changed the message for FatalException.
  5536. * src/OptionParser.cc
  5537. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Documented --bt-external-ip option in man page. Updated man pages
  5539. for --proxy-method option.
  5540. * doc/aria2c.1.txt
  5541. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Use GET method for FTP via HTTP proxy.
  5543. * src/FtpInitiateConnectionCommand.cc
  5544. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Changed the default value of --proxy-method option from 'tunnel'
  5546. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5547. option.
  5548. * src/AbstractCommand.cc
  5549. * src/AbstractCommand.h
  5550. * src/FtpInitiateConnectionCommand.cc
  5551. * src/HttpDownloadCommand.cc
  5552. * src/HttpInitiateConnectionCommand.cc
  5553. * src/HttpInitiateConnectionCommand.h
  5554. * src/OptionHandlerFactory.cc
  5555. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Initialized _logger
  5557. * src/SelectEventPoll.cc
  5558. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Defined a copy constructor for the same type.
  5560. * src/SharedHandle.h
  5561. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Added OptionParser::parseArg() which internally uses getopt_long
  5563. to parse command-line options. All command-line options are now
  5564. configured by OptionHandler. No manual editing of struct option*
  5565. is required any more.
  5566. * src/NameMatchOptionHandler.h
  5567. * src/OptionHandler.h
  5568. * src/OptionHandlerFactory.cc
  5569. * src/OptionHandlerImpl.h
  5570. * src/OptionParser.cc
  5571. * src/OptionParser.h
  5572. * src/array_fun.h
  5573. * src/main.cc
  5574. * src/option_processing.cc
  5575. * test/OptionHandlerTest.cc
  5576. * test/OptionParserTest.cc
  5577. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Fixed configure error with --disable-epoll
  5579. * configure.ac
  5580. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Fixed compile error when HAVE_EPOLL is not defined.
  5582. Fixed linker error on bigendian systems.
  5583. * src/SocketCore.cc
  5584. * src/SocketCore.h
  5585. * test/DefaultBtProgressInfoFileTest.cc
  5586. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5587. Added --bt-external-ip option. You can specify the external IP
  5588. address to report to a BitTorrent tracker. Although this function
  5589. is named 'external', it can accept any kind of IP addresses.
  5590. * src/DefaultBtAnnounce.cc
  5591. * src/OptionHandlerFactory.cc
  5592. * src/option_processing.cc
  5593. * src/prefs.cc
  5594. * src/prefs.h
  5595. * src/usage_text.h
  5596. * test/DefaultBtAnnounceTest.cc
  5597. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5598. Extracted the algorithm to find the longest incremental sequence
  5599. as max_sequence template.
  5600. * src/LongestSequencePieceSelector.cc
  5601. * src/a2algo.h
  5602. * test/Makefile.am
  5603. * test/a2algoTest.cc
  5604. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5606. * src/usage_text.h
  5607. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5608. Updated doc for --uri-selector, --http-server-listen-port and
  5609. --enable-http-server option. Documented --event-poll option.
  5610. * doc/aria2c.1.txt
  5611. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Updated doc for --enable-http-server.
  5613. * src/usage_text.h
  5614. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5615. Documented --http-server-listen-port and --enable-http-server in
  5616. man page.
  5617. * doc/aria2c.1.txt
  5618. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5619. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5620. translations. Thanks to all translators.
  5621. * po/es.po
  5622. * po/id.po
  5623. * po/it.po
  5624. * po/ru.po
  5625. * po/uk.po
  5626. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Bump up version number to 1.2.0
  5628. * configure.ac
  5629. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. BtContext::getAnnounceTiers() now returns const reference.
  5631. * src/BtContext.h
  5632. * src/DefaultBtContext.cc
  5633. * src/DefaultBtContext.h
  5634. * test/MockBtContext.h
  5635. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Change the number of retries for tracker request based on the
  5637. number of available tracker in a torrent file.
  5638. * src/TrackerWatcherCommand.cc
  5639. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Added _maxTries property to RequestGroup and assign the option
  5641. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5642. RequestGroup::getMaxTries() instead of
  5643. Option::getAsInt(PREF_MAX_TRIES).
  5644. * src/AbstractCommand.cc
  5645. * src/RequestGroup.cc
  5646. * src/RequestGroup.h
  5647. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5649. Mandriva. I modified the patch: make RequestGroup have the
  5650. timeout value and AdaptiveURISelector directly modifies that
  5651. value.
  5652. * src/AbstractCommand.cc
  5653. * src/AdaptiveURISelector.cc
  5654. * src/AdaptiveURISelector.h
  5655. * src/FtpNegotiationCommand.cc
  5656. * src/RequestGroup.cc
  5657. * src/RequestGroup.h
  5658. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Fixed compiler warning
  5660. * test/IteratableChecksumValidatorTest.cc
  5661. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5662. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5663. integrated downloads. This PieceSelector subclass finds the
  5664. longest continuous sequence in the available missing pieces and
  5665. selects the last index of such sequence. This makes HTTP/FTP
  5666. connections less interrupted by the pieces obtained by BitTorrent
  5667. peers.
  5668. * src/DefaultPieceStorage.cc
  5669. * src/DefaultPieceStorage.h
  5670. * src/LongestSequencePieceSelector.cc
  5671. * src/LongestSequencePieceSelector.h
  5672. * src/Makefile.am
  5673. * src/PieceSelector.h
  5674. * src/RarestPieceSelector.h
  5675. * src/RequestGroup.cc
  5676. * test/BtDependencyTest.cc
  5677. * test/DefaultPieceStorageTest.cc
  5678. * test/IteratableChecksumValidatorTest.cc
  5679. * test/LongestSequencePieceSelectorTest.cc
  5680. * test/Makefile.am
  5681. * test/SegmentManTest.cc
  5682. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Fixed the bug that the average speed is wrong in
  5684. http/ftp/BitTorrent integrated download. Only the download bytes
  5685. in BitTorrent were considered.
  5686. * src/RequestGroup.cc
  5687. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Choose port for BitTorrent/DHT randomly from the specified range.
  5689. * src/DHTConnectionImpl.cc
  5690. * src/PeerListenCommand.cc
  5691. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5692. Send HTTP Authorization header only if it is requested by the
  5693. server(response 401). There are some exceptions. The authorization
  5694. header for proxy is always sent if it is available without request
  5695. by the server. If username/password is specified in the URI, it
  5696. is immediately sent to the server without request by the server.
  5697. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5698. SharedHandle<AuthConfig>().
  5699. NetrcAuthResolver::resolveAuthConfig() returns
  5700. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5701. * src/AbstractAuthResolver.cc
  5702. * src/AbstractProxyRequestCommand.cc
  5703. * src/AuthConfigFactory.cc
  5704. * src/AuthConfigFactory.h
  5705. * src/HttpConnection.cc
  5706. * src/HttpRequest.cc
  5707. * src/HttpRequest.h
  5708. * src/HttpResponse.cc
  5709. * src/HttpResponseCommand.cc
  5710. * src/HttpSkipResponseCommand.cc
  5711. * test/AuthConfigFactoryTest.cc
  5712. * test/HttpRequestTest.cc
  5713. * test/HttpResponseTest.cc
  5714. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5715. Remove leading "--" from help keyword and a substring after "="
  5716. from help keyword, so that one can query options by '-h--max-' or
  5717. '-hmax-peers=10'.
  5718. * src/option_processing.cc
  5719. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Rewritten PStringVisitor and its implementation.
  5721. * src/PStringBuildVisitor.cc
  5722. * src/PStringBuildVisitor.h
  5723. * src/PStringDatum.h
  5724. * src/PStringNumLoop.h
  5725. * src/PStringSegment.cc
  5726. * src/PStringSegment.h
  5727. * src/PStringSelect.h
  5728. * src/PStringVisitor.h
  5729. * src/download_helper.cc
  5730. * test/PStringBuildVisitorTest.cc
  5731. * test/ParameterizedStringParserTest.cc
  5732. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Persist connection between the built-in HTTP server and a client
  5734. if a client supports keep-alive. Fixed the bug that aria2 exits
  5735. when the HTTP server receives EOF from a client.
  5736. * src/HttpServer.cc
  5737. * src/HttpServer.h
  5738. * src/HttpServerCommand.cc
  5739. * src/HttpServerCommand.h
  5740. * src/HttpServerResponseCommand.cc
  5741. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Added experimental built-in HTTP server. Currently, when a client
  5743. accesses to the server, it responds with the current download
  5744. progress. By default, it is disabled. To enable the server, give
  5745. --enable-http-server option. To change the default port number
  5746. for the server to listen to, use --http-server-listen-port option.
  5747. The response HTML is very simple and refreshes it self each 1
  5748. second. Because of this refresh, you see flicker in normal web
  5749. browser such as Firefox. I recommend to use console-based browser
  5750. such as elinks, w3m. To connect to the server, run 'elinks
  5751. http://localhost:6800/' while running aria2. Please replace port
  5752. number '6800'(which is default) with your preference.
  5753. * src/DownloadEngineFactory.cc
  5754. * src/HttpHeader.cc
  5755. * src/HttpHeader.h
  5756. * src/HttpHeaderProcessor.cc
  5757. * src/HttpHeaderProcessor.h
  5758. * src/HttpListenCommand.cc
  5759. * src/HttpListenCommand.h
  5760. * src/HttpServer.cc
  5761. * src/HttpServer.h
  5762. * src/HttpServerCommand.cc
  5763. * src/HttpServerCommand.h
  5764. * src/HttpServerResponseCommand.cc
  5765. * src/HttpServerResponseCommand.h
  5766. * src/Makefile.am
  5767. * src/OptionHandlerFactory.cc
  5768. * src/Util.cc
  5769. * src/Util.h
  5770. * src/help_tags.h
  5771. * src/option_processing.cc
  5772. * src/prefs.cc
  5773. * src/prefs.h
  5774. * src/usage_text.h
  5775. * test/HttpHeaderProcessorTest.cc
  5776. * test/UtilTest.cc
  5777. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Removed.
  5779. * src/CheckIntegrityMan.cc
  5780. * src/FileAllocationMan.cc
  5781. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Made (piece) hash check sequential for each RequestGroup because
  5783. simultaneous hash check is slower than sequential execution.
  5784. * src/CheckIntegrityCommand.cc
  5785. * src/CheckIntegrityDispatcherCommand.cc
  5786. * src/CheckIntegrityDispatcherCommand.h
  5787. * src/CheckIntegrityMan.h
  5788. * src/ConsoleStatCalc.cc
  5789. * src/DownloadCommand.cc
  5790. * src/DownloadEngine.cc
  5791. * src/DownloadEngine.h
  5792. * src/DownloadEngineFactory.cc
  5793. * src/Makefile.am
  5794. * src/Makefile.in
  5795. * src/RequestGroup.cc
  5796. * src/StatCalc.h
  5797. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5798. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5799. SequentialDispatcherCommand.
  5800. * src/FileAllocationDispatcherCommand.cc
  5801. * src/SequentialDispatcherCommand.h
  5802. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. Rewritten FileAllocationDispatcherCommand using brand new
  5804. SequentialDispatcherCommand.
  5805. * src/DownloadEngineFactory.cc
  5806. * src/FileAllocationCommand.cc
  5807. * src/FileAllocationDispatcherCommand.cc
  5808. * src/FileAllocationDispatcherCommand.h
  5809. * src/Makefile.am
  5810. * src/SequentialDispatcherCommand.h
  5811. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Replaced FileAllocationMan with
  5813. SequentialPicker<FileAllocationEntry>.
  5814. * src/BtCheckIntegrityEntry.cc
  5815. * src/ConsoleStatCalc.cc
  5816. * src/DownloadEngine.cc
  5817. * src/DownloadEngine.h
  5818. * src/DownloadEngineFactory.cc
  5819. * src/FileAllocationCommand.cc
  5820. * src/FileAllocationDispatcherCommand.cc
  5821. * src/FileAllocationMan.h
  5822. * src/Makefile.am
  5823. * src/SequentialPicker.h
  5824. * src/StatCalc.h
  5825. * src/StreamCheckIntegrityEntry.cc
  5826. * test/Makefile.am
  5827. * test/SequentialPickerTest.cc
  5828. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5829. Added doc for adaptive URI selector.
  5830. * doc/aria2c.1.txt
  5831. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5832. Added doc for adaptive URI selector.
  5833. * src/usage_text.h
  5834. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Added doc for --bt-max-peers option.
  5836. * doc/aria2c.1.txt
  5837. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Added doc for --bt-hash-check-seed option.
  5839. * doc/aria2c.1.txt
  5840. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Documented exit codes.
  5842. * doc/aria2c.1.txt
  5843. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Added --bt-max-peers option to specify the maximum number of peers
  5845. per torrent. 0 means unlimited number of peers.
  5846. * src/ActivePeerConnectionCommand.cc
  5847. * src/BtRuntime.h
  5848. * src/DefaultPeerStorage.cc
  5849. * src/DefaultPeerStorage.h
  5850. * src/OptionHandlerFactory.cc
  5851. * src/RequestGroup.cc
  5852. * src/option_processing.cc
  5853. * src/prefs.cc
  5854. * src/prefs.h
  5855. * src/usage_text.h
  5856. * test/DefaultPeerStorageTest.cc
  5857. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Added --bt-hash-check-seed option. If true is given to this
  5859. option, after hash check using --check-integrity option and file
  5860. is complete, continue to seed file. If you want to check file and
  5861. download it only when it is damaged or incomplete, set this option
  5862. to false. This option has effect only on BitTorrent download.
  5863. The default value is true(This is the same behavior with the
  5864. previous release).
  5865. * src/BtCheckIntegrityEntry.cc
  5866. * src/OptionHandlerFactory.cc
  5867. * src/option_processing.cc
  5868. * src/prefs.cc
  5869. * src/prefs.h
  5870. * src/usage_text.h
  5871. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5872. Updated copyright year.
  5873. * src/version_usage.cc
  5874. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5875. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5876. * doc/aria2c.1.txt
  5877. * src/usage_text.h
  5878. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Made the max value of split option unlimited.
  5880. * doc/aria2c.1.txt
  5881. * src/OptionHandlerFactory.cc
  5882. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Fixed compile warning/error.
  5884. * src/DownloadResult.h
  5885. * src/HttpDownloadCommand.cc
  5886. * src/ServerStat.cc
  5887. * test/RequestGroupTest.cc
  5888. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Added --event-poll option to select the method for polling events.
  5890. The available methods are "select" and "epoll". "epoll" is
  5891. available on Linux only. The earlier release has the compile
  5892. option to choose from these methods.
  5893. * configure.ac
  5894. * src/RequestGroupMan.cc
  5895. * src/OptionHandlerFactory.cc
  5896. * src/EpollEventPoll.h
  5897. * src/StreamFileAllocationEntry.cc
  5898. * src/a2io.h
  5899. * src/SelectEventPoll.h
  5900. * src/option_processing.cc
  5901. * src/prefs.h
  5902. * src/EpollEventPoll.cc
  5903. * src/EventPoll.h
  5904. * src/SocketCore.h
  5905. * src/Makefile.am
  5906. * src/main.cc
  5907. * src/DownloadEngine.h
  5908. * src/SelectEventPoll.cc
  5909. * src/DownloadEngine.cc
  5910. * src/SocketCore.cc
  5911. * src/DownloadEngineFactory.cc
  5912. * src/Makefile.in
  5913. * src/prefs.cc
  5914. * src/usage_text.h
  5915. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5916. Included RecoverableException.h from main.cc
  5917. * src/main.cc
  5918. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5919. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5920. now returns last error encountered in the HTTP/FTP downloads as a
  5921. exit status value. If all downloads finished successfully, aria2
  5922. returns 0. The error code is defined in src/DownloadResult.h.
  5923. The error occurred in the download currently in progress is not
  5924. reported as a last error. If no error has encountered but there
  5925. are in progress or waiting downloads, aria2 returns 7.
  5926. * src/AbstractCommand.cc
  5927. * src/DlAbortEx.h
  5928. * src/DlRetryEx.h
  5929. * src/DownloadCommand.cc
  5930. * src/DownloadFailureException.h
  5931. * src/DownloadResult.h
  5932. * src/FtpNegotiationCommand.cc
  5933. * src/HttpSkipResponseCommand.cc
  5934. * src/Makefile.am
  5935. * src/MultiUrlRequestInfo.cc
  5936. * src/MultiUrlRequestInfo.h
  5937. * src/RecoverableException.h
  5938. * src/RequestGroup.cc
  5939. * src/RequestGroup.h
  5940. * src/RequestGroupMan.cc
  5941. * src/RequestGroupMan.h
  5942. * src/URIResult.cc
  5943. * src/URIResult.h
  5944. * src/main.cc
  5945. * src/option_processing.cc
  5946. * test/RequestGroupTest.cc
  5947. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5948. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5949. patch adds AdaptiveURISelector, which selects one of the bests
  5950. mirrors for first and reserved connections. For supplementary
  5951. ones, it returns mirrors which has not been tested yet, and if
  5952. each of them already tested, returns mirrors which has to be
  5953. tested again. Otherwise, it doesn't return anymore mirrors.
  5954. * src/AdaptiveURISelector.cc
  5955. * src/AdaptiveURISelector.h
  5956. * src/FtpNegotiationCommand.cc
  5957. * src/HttpResponseCommand.cc
  5958. * src/Makefile.am
  5959. * src/Makefile.in
  5960. * src/OptionHandlerFactory.cc
  5961. * src/RequestGroup.cc
  5962. * src/RequestGroup.h
  5963. * src/RequestGroupMan.cc
  5964. * src/ServerStat.cc
  5965. * src/ServerStat.h
  5966. * src/ServerStatMan.cc
  5967. * src/SpeedCalc.cc
  5968. * src/URISelector.h
  5969. * src/prefs.cc
  5970. * src/prefs.h
  5971. * test/RequestGroupManTest.cc
  5972. * test/ServerStatManTest.cc
  5973. * test/ServerStatTest.cc
  5974. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5975. Fixed unit test error.
  5976. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5977. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5978. * Release 1.1.2
  5979. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Updated Russian translation. Thanks to the translators.
  5981. * po/ru.po
  5982. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Added the description of --use-head option to man page.
  5984. * doc/aria2c.1.txt
  5985. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Bump up version number to 1.1.2
  5987. * configure.ac
  5988. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5989. Added --use-head option to toggle whether HEAD method should be
  5990. used in the first HTTP request. By default aria2 uses HEAD method
  5991. as the first request. When the server doesn't recognize HEAD, then
  5992. give aria2 --use-head=false to force aria2 to use GET method
  5993. instead.
  5994. * src/OptionHandlerFactory.cc
  5995. * src/RequestGroupMan.cc
  5996. * src/option_processing.cc
  5997. * src/prefs.cc
  5998. * src/prefs.h
  5999. * src/usage_text.h
  6000. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6001. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6002. message is received before CHOKE message. The old implementation
  6003. doen't clear the use-bit of the piece when recieved REJECT
  6004. message.
  6005. * src/DefaultBtMessageDispatcher.cc
  6006. * test/DefaultBtMessageDispatcherTest.cc
  6007. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6008. * Release 1.1.1
  6009. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Bump up version number to 1.1.1.
  6011. * configure.ac
  6012. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6014. is printed repeatedly.
  6015. * src/ConsoleStatCalc.cc
  6016. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. * Release 1.1.0
  6018. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Added ifdef clause for conditional compilation.
  6020. * src/main.cc
  6021. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6022. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6023. translations. Thanks to all translators.
  6024. * po/ja.po
  6025. * po/ru.po
  6026. * po/uk.po
  6027. * po/zh_CN.po
  6028. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Added the preceding ">>> " before the message "Printing the
  6030. contents of file..." to make the output more readable.
  6031. * src/main.cc
  6032. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Added try-catch block in the loop in showFiles() to continue the
  6034. operation even if the exception occurred in one file.
  6035. * src/main.cc (showFiles)
  6036. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6037. Made messages in showFiles() translatable.
  6038. * po/aria2.pot
  6039. * src/main.cc
  6040. * src/message.h
  6041. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6042. Print the contents of Torrent/Metalink files are printed without
  6043. -T/-M options.
  6044. * src/main.cc
  6045. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6046. Escaped '--' with '\--'
  6047. * README
  6048. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Updated "How to build" section in README. Mentioned about
  6050. --with-ca-bundle compile option.
  6051. * README
  6052. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Bump up version number to 1.1.0.
  6054. * configure.ac
  6055. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Added a note for --dht-listen-port option.
  6057. * doc/aria2c.1.txt
  6058. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6059. Update doc for --realtime-chunk-checksum option.
  6060. * doc/aria2c.1.txt
  6061. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6062. Update doc for --realtime-chunk-checksum option.
  6063. * src/usage_text.h
  6064. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6065. Updated French, Japanese, Russian and Ukrainian translations.
  6066. Thanks to all translators.
  6067. * po/fr.po
  6068. * po/ja.po
  6069. * po/ru.po
  6070. * po/uk.po
  6071. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Renamed aria2c.pot to aria2.pot
  6073. * po/aria2.pot
  6074. * po/aria2c.pot: Removed.
  6075. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6076. Removed MetaEntry.h
  6077. * src/Makefile.am
  6078. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Rename file by appending digits if a local file exists and its
  6080. file size is larger than that of remote file with --continue
  6081. option. The old implementation just throws exception in such case.
  6082. * src/RequestGroup.cc
  6083. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Fixed the bug that download progress summary is not printed in the
  6085. interval specified by the option.
  6086. * src/ConsoleStatCalc.cc
  6087. * src/ConsoleStatCalc.h
  6088. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. Fixed compiler warning
  6090. * src/Cookie.cc
  6091. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Fixed the cookie implementation based on RFC2965.
  6093. Now if a value in domain field is not started with dot, then
  6094. prepend dot. That means a cookie with domain=sf.net is sent to
  6095. wiki.sf.net.
  6096. * src/Cookie.cc
  6097. * test/CookieParserTest.cc
  6098. * test/CookieStorageTest.cc
  6099. * test/CookieTest.cc
  6100. * test/NsCookieParserTest.cc
  6101. * test/Sqlite3MozCookieParserTest.cc
  6102. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6104. is enabled and the server doesn't support keep-alive.
  6105. * src/AbstractCommand.cc
  6106. * src/DownloadCommand.cc
  6107. * src/HttpDownloadCommand.cc
  6108. * src/HttpDownloadCommand.h
  6109. * src/HttpResponseCommand.cc
  6110. * src/Request.cc
  6111. * src/Request.h
  6112. * test/RequestTest.cc
  6113. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Removed Dictionary/List/Data and its related classes.
  6115. * src/BencodeVisitor.cc: Removed.
  6116. * src/BencodeVisitor.h: Removed.
  6117. * src/Data.cc: Removed.
  6118. * src/Data.h: Removed.
  6119. * src/Dictionary.cc: Removed.
  6120. * src/Dictionary.h: Removed.
  6121. * src/List.cc: Removed.
  6122. * src/List.h: Removed.
  6123. * src/Makefile.am
  6124. * src/MetaEntry.h: Removed.
  6125. * src/MetaEntryVisitor.h: Removed.
  6126. * src/MetaFileUtil.cc: Removed.
  6127. * src/MetaFileUtil.h: Removed.
  6128. * test/BencodeVisitorTest.cc: Removed.
  6129. * test/DataTest.cc: Removed.
  6130. * test/DictionaryTest.cc: Removed.
  6131. * test/ListTest.cc: Removed.
  6132. * test/Makefile.am
  6133. * test/MetaFileUtilTest.cc: Removed.
  6134. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Removed include of MetaEntry.h
  6136. * test/DHTMessageTrackerEntryTest.cc
  6137. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Use BDE instead of Dictionary/List/Data.
  6139. * src/AnnounceList.cc
  6140. * src/AnnounceList.h
  6141. * test/AnnounceListTest.cc
  6142. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6143. Use BDE instead of Dictionary/List/Data.
  6144. * src/DHTAbstractMessage.cc
  6145. * src/DHTAbstractMessage.h
  6146. * src/DHTAnnouncePeerMessage.cc
  6147. * src/DHTAnnouncePeerMessage.h
  6148. * src/DHTAnnouncePeerReplyMessage.cc
  6149. * src/DHTAnnouncePeerReplyMessage.h
  6150. * src/DHTFindNodeMessage.cc
  6151. * src/DHTFindNodeMessage.h
  6152. * src/DHTFindNodeReplyMessage.cc
  6153. * src/DHTFindNodeReplyMessage.h
  6154. * src/DHTGetPeersMessage.cc
  6155. * src/DHTGetPeersMessage.h
  6156. * src/DHTGetPeersReplyMessage.cc
  6157. * src/DHTGetPeersReplyMessage.h
  6158. * src/DHTMessageFactory.h
  6159. * src/DHTMessageFactoryImpl.cc
  6160. * src/DHTMessageFactoryImpl.h
  6161. * src/DHTMessageReceiver.cc
  6162. * src/DHTMessageTracker.cc
  6163. * src/DHTMessageTracker.h
  6164. * src/DHTPingMessage.cc
  6165. * src/DHTPingMessage.h
  6166. * src/DHTPingReplyMessage.cc
  6167. * src/DHTPingReplyMessage.h
  6168. * src/DHTQueryMessage.cc
  6169. * src/DHTQueryMessage.h
  6170. * src/DHTResponseMessage.cc
  6171. * src/DHTResponseMessage.h
  6172. * test/DHTAnnouncePeerMessageTest.cc
  6173. * test/DHTAnnouncePeerReplyMessageTest.cc
  6174. * test/DHTFindNodeMessageTest.cc
  6175. * test/DHTFindNodeReplyMessageTest.cc
  6176. * test/DHTGetPeersMessageTest.cc
  6177. * test/DHTGetPeersReplyMessageTest.cc
  6178. * test/DHTMessageFactoryImplTest.cc
  6179. * test/DHTMessageTrackerTest.cc
  6180. * test/DHTPingMessageTest.cc
  6181. * test/DHTPingReplyMessageTest.cc
  6182. * test/MockDHTMessageFactory.h
  6183. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Added tests the case where length < 0 is specified.
  6185. * test/BencodeTest.cc
  6186. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. Fixed memory leak in decoderawstring()
  6188. * src/bencode.cc
  6189. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6190. Added missing #ifdef guard. Added uc() function for String and
  6191. removeKey() for Dict.
  6192. * src/bencode.cc
  6193. * src/bencode.h
  6194. * test/BencodeTest.cc
  6195. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6196. Use BDE instead of Dictionary/List/Data.
  6197. * src/HandshakeExtensionMessage.cc
  6198. * src/HandshakeExtensionMessage.h
  6199. * test/HandshakeExtensionMessageTest.cc
  6200. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Added --max-overall-upload-limit option. This option limits the
  6202. overall upload speed. Stated in help message that the existing
  6203. --max-upload-limit option limits the upload speed per each
  6204. torrent. Man page is also updated.
  6205. * doc/aria2c.1.txt
  6206. * src/DefaultBtMessageDispatcher.cc
  6207. * src/DefaultBtMessageDispatcher.h
  6208. * src/OptionHandlerFactory.cc
  6209. * src/PeerInteractionCommand.cc
  6210. * src/option_processing.cc
  6211. * src/prefs.cc
  6212. * src/prefs.h
  6213. * src/usage_text.h
  6214. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Use BDE instead of Dictionary/List/Data classes.
  6216. * src/CompactPeerListProcessor.cc
  6217. * src/CompactPeerListProcessor.h
  6218. * src/DefaultBtAnnounce.cc
  6219. * src/DefaultBtContext.cc
  6220. * src/DefaultBtContext.h
  6221. * src/DefaultPeerListProcessor.cc
  6222. * src/DefaultPeerListProcessor.h
  6223. * src/DelegatingPeerListProcessor.cc
  6224. * src/DelegatingPeerListProcessor.h
  6225. * src/PeerListProcessor.h
  6226. * src/UTPexExtensionMessage.cc
  6227. * src/Util.h
  6228. * src/message.h
  6229. * test/DefaultBtContextTest.cc
  6230. * test/DefaultPeerListProcessorTest.cc
  6231. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Added bencode helper functions and BDE class.
  6233. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6234. * src/Makefile.am
  6235. * src/bencode.cc
  6236. * src/bencode.h
  6237. * test/BencodeTest.cc
  6238. * test/Makefile.am
  6239. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6240. Fixed the bug that bad URI is sent to the tracker when the announe
  6241. URI in torrent file includes query.
  6242. * src/DefaultBtAnnounce.cc
  6243. * test/DefaultBtAnnounceTest.cc
  6244. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. Added Option::blank().
  6246. Use !Option::blank(name) instead of Option::defined(name) for
  6247. the options that take filename.
  6248. * src/MultiUrlRequestInfo.cc
  6249. * src/Option.cc
  6250. * src/Option.h
  6251. * src/main.cc
  6252. * src/option_processing.cc
  6253. * test/OptionTest.cc
  6254. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6255. Documented the default value of --check-certificate option in man
  6256. page.
  6257. * doc/aria2c.1.txt
  6258. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Enabled --check-certificate by default. Added compile
  6260. time(configure) option --with-ca-bundle to specify CA bundle.
  6261. Warn if --check-certificate=true and --ca-certificate is not
  6262. specified or loading CA certificate is failed.
  6263. * configure.ac
  6264. * src/MultiUrlRequestInfo.cc
  6265. * src/OptionHandlerFactory.cc
  6266. * src/message.h
  6267. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6268. Mentioned https tag in help option.
  6269. * doc/aria2c.1.txt
  6270. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6271. Added `https' tag to help option category. Added https tag to
  6272. --ca-certificate, --certificate, --check-certificate and
  6273. --private-key option.
  6274. * src/OptionHandlerFactory.cc
  6275. * src/help_tags.h
  6276. * src/option_processing.cc
  6277. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Changed the package name from `aria2c' to `aria2' in order to fix
  6279. the packaging issue in Debian and Fedora. The name of the
  6280. executable is not changed.
  6281. * configure.ac
  6282. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Fixed typos
  6284. * src/usage_text.h
  6285. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Fixed typos and updated doc.
  6287. * README
  6288. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6289. Fixed typos
  6290. * doc/aria2c.1.txt
  6291. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6292. Fixed typos
  6293. * src/usage_text.h
  6294. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Print a message when no files to download.
  6296. * src/download_helper.cc
  6297. * src/main.cc
  6298. * src/message.h
  6299. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6300. RFC3986 complied Percent-Encoding(urlencode).
  6301. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6302. ones.
  6303. * src/Request.cc
  6304. * src/Util.cc
  6305. * src/Util.h
  6306. * test/BtHandshakeMessageTest.cc
  6307. * test/DefaultBtAnnounceTest.cc
  6308. * test/DefaultBtContextTest.cc
  6309. * test/RequestTest.cc
  6310. * test/UtilTest.cc
  6311. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Fixed the bug that prevents aria2 from downloading 0-length files
  6313. via HTTP/FTP.
  6314. * src/DefaultBtContext.cc
  6315. * src/DefaultBtContext.h
  6316. * src/DownloadContext.h
  6317. * src/FtpNegotiationCommand.cc
  6318. * src/HttpResponseCommand.cc
  6319. * src/HttpResponseCommand.h
  6320. * src/RequestGroup.cc
  6321. * src/SingleFileDownloadContext.cc
  6322. * src/SingleFileDownloadContext.h
  6323. * test/BtPostDownloadHandlerTest.cc
  6324. * test/MetalinkPostDownloadHandlerTest.cc
  6325. * test/MockBtContext.h
  6326. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6327. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6328. * src/option_processing.cc
  6329. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6330. Applied aria2-1.0.1-mingw.patch.
  6331. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6332. mingw.
  6333. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6334. * src/SocketCore.cc
  6335. * src/a2netcompat.h
  6336. * test/SocketCoreTest.cc
  6337. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6338. * Release 1.0.1
  6339. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Updated Ukrainian and Norwegian Nynorsk translations.
  6341. Thanks to all translators.
  6342. * po/nn.po
  6343. * po/uk.po
  6344. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6345. Don't show download result when -S option is used.
  6346. * src/main.cc
  6347. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6348. Bump up version number to 1.0.1
  6349. * configure.ac
  6350. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. Closed files after the test cases in MultiDiskWriterTest::
  6352. testResetDiskWriterEntries(). This will fix the unit test error
  6353. in mingw32 build.
  6354. * test/MultiDiskWriterTest.cc
  6355. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Use HEAD method to get file size from HTTP server for segmented
  6357. downloading.
  6358. The request to the BitTorrent Tracker always uses GET method because
  6359. the response of the tracker is small and it doesn't need segmented
  6360. download.
  6361. * src/FtpNegotiationCommand.cc
  6362. * src/HttpRequest.cc
  6363. * src/HttpResponseCommand.cc
  6364. * src/HttpSkipResponseCommand.cc
  6365. * src/RequestGroup.cc
  6366. * src/RequestGroup.h
  6367. * src/TrackerWatcherCommand.cc
  6368. * test/HttpRequestTest.cc
  6369. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Fixed the bug that causes floating exception when -T option is used and
  6371. no URIs are given.
  6372. * src/download_helper.cc
  6373. * test/DownloadHelperTest.cc
  6374. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6375. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6376. errors in MinGW:
  6377. Closed file after saving server stats (RequestGroupMan.cc)
  6378. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6379. Ignored case & handled 2-digit years (strptime.c)
  6380. Added missing suseconds_t definition (a2time.h)
  6381. Fixed socket CLOSE() define (SocketCore.cc)
  6382. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6383. Changed utime() test values from x000 to x00000 as MinGW failed on
  6384. values less than timezone offset from Unix epoch
  6385. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6386. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6387. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6388. handle negative dates (CookieParserTest.cc)
  6389. * src/a2time.h
  6390. * src/FtpConnection.cc
  6391. * src/RequestGroupMan.cc
  6392. * src/SocketCore.cc
  6393. * src/strptime.c
  6394. * test/CookieParserTest.cc
  6395. * test/CopyDiskAdaptorTest.cc
  6396. * test/FileTest.cc
  6397. * test/FtpConnectionTest.cc
  6398. * test/MultiDiskAdaptorTest.cc
  6399. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6401. * doc/aria2c.1.txt
  6402. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6403. * Release 1.0.0
  6404. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6405. Added '~' to reserved characters.
  6406. * src/Util.cc
  6407. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6408. Do not urlencode Request::url in setUrl() because we want unmodified
  6409. URL using Request::getUrl()
  6410. * src/Request.cc
  6411. * src/Request.h
  6412. * test/RequestTest.cc
  6413. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6415. Thanks to all translators.
  6416. * po/bg.po
  6417. * po/fr.po
  6418. * po/ja.po
  6419. * po/ru.po
  6420. * po/uk.po
  6421. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Bump up version number to 1.0.0
  6423. * configure.ac
  6424. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Added nosqlite3 build to build_test.sh.
  6426. Renamed noxml as expat.
  6427. * build_test.sh
  6428. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Updated INPUT FILE section.
  6430. * doc/aria2c.1.txt
  6431. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6433. on big endian systems because test .aria2 files are made for little
  6434. endian systems.
  6435. * test/DefaultBtProgressInfoFileTest.cc
  6436. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Dropped ares support.
  6438. * README
  6439. * configure.ac
  6440. * m4/libares.m4: Removed.
  6441. * src/AsyncNameResolver.cc
  6442. * src/Makefile.am
  6443. * test/Makefile.am
  6444. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6446. Removed const qualifier from DiskWriter::size().
  6447. * src/AbstractDiskWriter.cc
  6448. * src/AbstractDiskWriter.h
  6449. * src/ByteArrayDiskWriter.cc
  6450. * src/ByteArrayDiskWriter.h
  6451. * src/DiskWriter.h
  6452. * test/ByteArrayDiskWriterTest.cc
  6453. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6454. Fixed the bug that causes segmentation fault/bus error during executing
  6455. choking algorithm while seeding. This is caused by improper
  6456. implementation of compare function which returns inconsistent results
  6457. depending on the timing of last unchoke.
  6458. * src/BtSeederStateChoke.cc
  6459. * src/BtSeederStateChoke.h
  6460. * src/DefaultPeerStorage.cc
  6461. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Removed TODO
  6463. * TODO
  6464. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6465. Added a section that explains how to pass argument to options that
  6466. takes optional arguments with its short form.
  6467. * doc/aria2c.1.txt
  6468. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Added -u for the short form of --max-upload-limit option.
  6470. * doc/aria2c.1.txt
  6471. * src/option_processing.cc
  6472. * src/usage_text.h
  6473. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6474. Added -V for the short form of --check-integrity option.
  6475. Now the argument of --check-integrity option is optional:
  6476. if it is omitted, it is evaluated as true.
  6477. * doc/aria2c.1.txt
  6478. * src/option_processing.cc
  6479. * src/usage_text.h
  6480. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Made the default value of --ftp-pasv option set to true and it can take
  6482. true/false values.
  6483. * src/OptionHandlerFactory.cc
  6484. * src/option_processing.cc
  6485. * src/usage_text.h
  6486. * doc/aria2c.1.txt
  6487. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Given custom random number generator to std::random_shuffle.
  6489. * src/AnnounceList.cc
  6490. * src/BtLeecherStateChoke.cc
  6491. * src/BtSeederStateChoke.cc
  6492. * src/DefaultBtRequestFactory.cc
  6493. * src/MetalinkEntry.cc
  6494. * src/RarestPieceSelector.cc
  6495. * src/SimpleRandomizer.cc
  6496. * src/SimpleRandomizer.h
  6497. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6498. Now the default value of --enable-direct-io is true.
  6499. * src/OptionHandlerFactory.cc
  6500. * doc/aria2c.1.txt
  6501. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6502. Erase peer before executing onReturningPeer and onErasingPeer
  6503. because choking algorithm called from onReturningPeer doesn't
  6504. like erasing peer in the active peer list.
  6505. * src/DefaultPeerStorage.cc
  6506. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6507. Instead of creating special filename in createDownloadResult() if
  6508. inMemoryDownload() is true, now it is done in getFilePath().
  6509. * src/RequestGroup.cc
  6510. * test/RequestGroupTest.cc
  6511. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6512. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6513. processed in memory. This is the fix for previous comment out.
  6514. * src/MemoryBufferPreDownloadHandler.cc
  6515. * src/RequestGroup.cc
  6516. * src/RequestGroup.h
  6517. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Commented out the code which sets virtual directory path "[MEMORY]"
  6519. propagate directory to store to following RequestGroup.
  6520. * src/MemoryBufferPreDownloadHandler.cc
  6521. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6522. Bump up version number to 1.0.0b
  6523. * configure.ac
  6524. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6525. Added input_uris.txt to EXTRA_DIST
  6526. * test/Makefile.am
  6527. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6528. Removed PeerObject.h from Makefile.am
  6529. * src/Makefile.am
  6530. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6531. Avoid slow seeding
  6532. * src/PeerInteractionCommand.cc
  6533. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6534. Updated usage for -i option.
  6535. * src/usage_text.h (TEXT_INPUT_FILE)
  6536. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6537. Added INPUT FILE section to man page.
  6538. Escaped fake URLs.
  6539. * doc/aria2c.1.txt
  6540. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Fixed wrong note position for -o option.
  6542. * doc/aria2c.1.txt
  6543. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Fixed compile error without SSL/XML library.
  6545. * src/DefaultBtProgressInfoFile.cc
  6546. * src/DefaultBtProgressInfoFile.h
  6547. * src/FileMetalinkParserState.cc
  6548. * src/RequestGroup.h
  6549. * src/SocketCore.cc
  6550. * src/SocketCore.h
  6551. * src/VerificationMetalinkParserState.cc
  6552. * src/download_helper.h
  6553. * src/main.cc
  6554. * test/DefaultBtProgressInfoFileTest.cc
  6555. * test/DownloadHelperTest.cc
  6556. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6557. Rewritten URI handling functions. They are now provided as a testable
  6558. functions.
  6559. * src/Makefile.am
  6560. * src/RequestGroup.cc
  6561. * src/RequestGroup.h
  6562. * src/download_helper.cc
  6563. * src/download_helper.h
  6564. * src/main.cc
  6565. * test/DownloadHelperTest.cc
  6566. * test/Makefile.am
  6567. * test/input_uris.txt
  6568. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6569. Quickly terminate commands when ctrl-c is pressed.
  6570. * src/DownloadEngine.cc
  6571. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6572. Quickly terminate idle commands when download finished.
  6573. * src/AbstractCommand.cc
  6574. * src/DownloadCommand.cc
  6575. * src/DownloadEngine.cc
  6576. * src/DownloadEngine.h
  6577. * src/SleepCommand.cc
  6578. * src/SleepCommand.h
  6579. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Added the ability to specify output filename and directory in input
  6581. file.
  6582. Additional parameters are added in the following line of URIs
  6583. with proceeding white space(s), 1 parameter in 1 line.
  6584. The parameter names are the same with the command-line option name
  6585. without proceeding "--". Not all the options are available here:
  6586. at the moment, 'dir' and 'out' options are avialable.
  6587. Please note that out option has no effect against Metalink or BitTorrent
  6588. downloads.
  6589. Example input file:
  6590. http://host/foo-1.1.tar.bz2
  6591. out=foo.tar.bz2
  6592. dir=/tmp/downloads
  6593. http://host/thundermonkey-2.0.tar.bz2
  6594. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6595. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6596. thundermonkey-2.0.tar.bz2 is saved as
  6597. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6598. * src/BtPostDownloadHandler.cc
  6599. * src/Metalink2RequestGroup.cc
  6600. * src/Metalink2RequestGroup.h
  6601. * src/MetalinkPostDownloadHandler.cc
  6602. * src/UriListParser.cc
  6603. * src/UriListParser.h
  6604. * src/main.cc
  6605. * test/Metalink2RequestGroupTest.cc
  6606. * test/UriListParserTest.cc
  6607. * test/filelist1.txt
  6608. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6609. Fixed error when SSL library is not found.
  6610. * configure.ac
  6611. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. Cross referenced among -s, -C and -j options.
  6613. Updated usage of -C and -s options.
  6614. * src/usage_text.h
  6615. * doc/aria2c.1.txt
  6616. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Fixed bad cast in 32bit platforms.
  6618. * test/DefaultPieceStorageTest.cc
  6619. (DefaultPieceStorageTest::testGetCompletedLength)
  6620. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6621. Fixed unit test fails on 32bit platforms.
  6622. * test/CookieParserTest.cc
  6623. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Show an average download speed in Download results.
  6625. * src/BtFileAllocationEntry.cc
  6626. * src/DefaultPieceStorage.cc
  6627. * src/DownloadContext.cc
  6628. * src/DownloadContext.h
  6629. * src/DownloadResult.h
  6630. * src/RequestGroup.cc
  6631. * src/RequestGroupMan.cc
  6632. * src/StreamFileAllocationEntry.cc
  6633. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6634. Fixed the bug that metalink file is not processed if Content-Type
  6635. field has a paramter.
  6636. * src/HttpResponse.cc
  6637. * src/HttpResponse.h
  6638. * test/HttpResponseTest.cc
  6639. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6640. Removed unused code.
  6641. * src/DefaultBtAnnounce.cc
  6642. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6644. the value larger than DefaultPieceStorage::getTotalLength() when
  6645. in flight pieces are involved.
  6646. * src/DefaultPieceStorage.cc
  6647. * test/DefaultPieceStorageTest.cc
  6648. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6649. Bump up version number to 1.0.0a.
  6650. * configure.ac
  6651. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6652. Updated configure.ac
  6653. * configure.ac
  6654. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Added usege for proxy.
  6656. * doc/aria2c.1.txt
  6657. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Added usage for --ca-certificate, --certificate, --private-key and
  6659. --check-certificate options.
  6660. * doc/aria2c.1.txt
  6661. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6662. Updated man page
  6663. * doc/aria2c.1.txt
  6664. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6665. Added --no-proxy option. It receives comman separated hostname or
  6666. domains to which proxy should not be used.
  6667. aria2 honors the environment variable no_proxy to override no-proxy
  6668. value in configuration file. The user can override the environment
  6669. variable no_proxy with --no-proxy command-line option.
  6670. * src/AbstractCommand.cc
  6671. * src/OptionHandlerFactory.cc
  6672. * src/option_processing.cc
  6673. * src/prefs.cc
  6674. * src/prefs.h
  6675. * src/usage_text.h
  6676. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6678. The CA certificates are specified in --ca-certificate option.
  6679. By default, the verification is disabled. Use --check-certificate
  6680. option to enable it.
  6681. * src/HttpRequestCommand.cc
  6682. * src/LibgnutlsTLSContext.cc
  6683. * src/LibgnutlsTLSContext.h
  6684. * src/LibsslTLSContext.cc
  6685. * src/LibsslTLSContext.h
  6686. * src/MultiUrlRequestInfo.cc
  6687. * src/OptionHandlerFactory.cc
  6688. * src/SocketCore.cc
  6689. * src/SocketCore.h
  6690. * src/a2functional.h
  6691. * src/message.h
  6692. * src/option_processing.cc
  6693. * src/prefs.cc
  6694. * src/prefs.h
  6695. * src/usage_text.h
  6696. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6697. Added client certificate authentication for SSL/TLS.
  6698. Currently a private key must be decrypted for use with aria2.
  6699. If a user accidentally gives encrypted file to aria2 then following
  6700. thing happens:
  6701. If encrypted private key is given to aria2, it behaves differently
  6702. depending on the ssl library it uses. If aria2 built with openssl then
  6703. openssl prompts the user for password. If aria2 build with gnutls then
  6704. aria2 exists with error at start up.
  6705. * src/DownloadEngineFactory.cc
  6706. * src/MultiUrlRequestInfo.cc
  6707. * src/OptionHandlerFactory.cc
  6708. * src/option_processing.cc
  6709. * src/prefs.cc
  6710. * src/prefs.h
  6711. * src/usage_text.h
  6712. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6713. Introduced TLSContext that holds TLS related data that can be shared
  6714. with multiple SSL connections.
  6715. * src/DownloadEngineFactory.cc
  6716. * src/LibgnutlsTLSContext.cc
  6717. * src/LibgnutlsTLSContext.h
  6718. * src/LibsslTLSContext.cc
  6719. * src/LibsslTLSContext.h
  6720. * src/Makefile.am
  6721. * src/SocketCore.cc
  6722. * src/SocketCore.h
  6723. * src/TLSContext.h
  6724. * src/message.h
  6725. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6726. Fixed the bug that the DiskWriter of the first FileEntry whose
  6727. `needsFileAllocation' property is false is not created
  6728. even if it shares a piece with next FileEntry which `requested' property
  6729. is true.
  6730. Fixed the bug that zero-length file is not created if pre file
  6731. allocation is not done.
  6732. * src/MultiDiskAdaptor.cc
  6733. * src/MultiDiskAdaptor.h
  6734. * test/MultiDiskAdaptorTest.cc
  6735. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Added the ability to pool proxy connection.
  6737. The conneciton in FTP with proxy-method=GET is not pooled.
  6738. Proxy-Connection header will not be sent when sending CONNECT method.
  6739. * src/DownloadEngine.cc
  6740. * src/DownloadEngine.h
  6741. * src/FtpFinishDownloadCommand.cc
  6742. * src/FtpInitiateConnectionCommand.cc
  6743. * src/FtpNegotiationCommand.cc
  6744. * src/HttpDownloadCommand.cc
  6745. * src/HttpInitiateConnectionCommand.cc
  6746. * src/HttpRequest.cc
  6747. * src/HttpRequest.h
  6748. * src/HttpResponse.cc
  6749. * src/HttpSkipResponseCommand.cc
  6750. * test/HttpRequestTest.cc
  6751. * test/HttpResponseTest.cc
  6752. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Handle date before epoch.
  6754. To create *bad* Time object, call Time::null().
  6755. * src/CookieParser.cc
  6756. * src/FtpConnection.cc
  6757. * src/FtpConnection.h
  6758. * src/FtpNegotiationCommand.cc
  6759. * src/RequestGroup.cc
  6760. * src/TimeA2.cc
  6761. * src/TimeA2.h
  6762. * test/CookieParserTest.cc
  6763. * test/FtpConnectionTest.cc
  6764. * test/TimeTest.cc
  6765. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Added support for following envrionment variables: http_proxy,
  6767. https_proxy, ftp_proxy and all_proxy.
  6768. Each variable is equivalent to the aria2 option whose name is the
  6769. variable name with '_' replaced with '-'.
  6770. They overrides options specified in aria2.conf file.
  6771. The envrionment variables can be overrode using command-line option.
  6772. * src/option_processing.cc
  6773. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Renamed --http-proxy-method as --proxy-method.
  6775. * src/AbstractCommand.cc
  6776. * src/FtpInitiateConnectionCommand.cc
  6777. * src/HttpInitiateConnectionCommand.cc
  6778. * src/OptionHandlerFactory.cc
  6779. * src/option_processing.cc
  6780. * src/prefs.cc
  6781. * src/prefs.h
  6782. * src/usage_text.h
  6783. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6785. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6786. Above 3 options and --http-proxy option can handle proxy in URL format
  6787. like: http://user:passwd@host:port.
  6788. If a proxy requires user/password, they must be specified in a URL.
  6789. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6790. instead.
  6791. * src/AbstractCommand.cc
  6792. * src/AbstractCommand.h
  6793. * src/AbstractProxyRequestCommand.cc
  6794. * src/AbstractProxyRequestCommand.h
  6795. * src/AuthConfigFactory.cc
  6796. * src/AuthConfigFactory.h
  6797. * src/FtpFinishDownloadCommand.cc
  6798. * src/FtpInitiateConnectionCommand.cc
  6799. * src/FtpInitiateConnectionCommand.h
  6800. * src/FtpNegotiationCommand.cc
  6801. * src/FtpTunnelRequestCommand.cc
  6802. * src/FtpTunnelRequestCommand.h
  6803. * src/HttpDownloadCommand.cc
  6804. * src/HttpInitiateConnectionCommand.cc
  6805. * src/HttpInitiateConnectionCommand.h
  6806. * src/HttpProxyRequestCommand.cc
  6807. * src/HttpProxyRequestCommand.h
  6808. * src/HttpRequest.cc
  6809. * src/HttpRequest.h
  6810. * src/HttpRequestCommand.cc
  6811. * src/HttpRequestCommand.h
  6812. * src/HttpSkipResponseCommand.cc
  6813. * src/InitiateConnectionCommand.cc
  6814. * src/InitiateConnectionCommand.h
  6815. * src/OptionHandlerFactory.cc
  6816. * src/OptionHandlerImpl.h
  6817. * src/Request.cc
  6818. * src/option_processing.cc
  6819. * src/prefs.cc
  6820. * src/prefs.h
  6821. * src/usage_text.h
  6822. * test/AuthConfigFactoryTest.cc
  6823. * test/HttpRequestTest.cc
  6824. * test/OptionHandlerTest.cc
  6825. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Execute choking algorithm when unchoked and interested peer is
  6827. disconected.
  6828. * src/DefaultPeerStorage.cc
  6829. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Added testcase for BtNotInterestedMessage from unchoked peer.
  6831. * test/BtNotInterestedMessageTest.cc
  6832. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Execute choking algorithm when BtInterestedMessage arrives from
  6834. unchoked peer.
  6835. * src/BtInterestedMessage.cc
  6836. * src/BtInterestedMessage.h
  6837. * src/DefaultBtMessageFactory.cc
  6838. * test/BtInterestedMessageTest.cc
  6839. * test/MockPeerStorage.h
  6840. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. AuthConfigFactory is now part of DownloadEngine.
  6842. * src/AbstractProxyRequestCommand.cc
  6843. * src/AuthConfigFactory.h
  6844. * src/DownloadEngine.cc
  6845. * src/DownloadEngine.h
  6846. * src/FtpConnection.cc
  6847. * src/FtpConnection.h
  6848. * src/FtpNegotiationCommand.cc
  6849. * src/HttpConnection.cc
  6850. * src/HttpRequest.cc
  6851. * src/HttpRequest.h
  6852. * src/HttpRequestCommand.cc
  6853. * src/HttpResponse.cc
  6854. * src/HttpResponseCommand.cc
  6855. * src/HttpSkipResponseCommand.cc
  6856. * src/MultiUrlRequestInfo.cc
  6857. * src/main.cc
  6858. * test/FtpConnectionTest.cc
  6859. * test/HttpRequestTest.cc
  6860. * test/HttpResponseTest.cc
  6861. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Corrected catched exception type.
  6863. * src/ServerStatMan.cc
  6864. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. DNSCache is now part of DownloadEngine.
  6866. * src/DNSCache.h
  6867. * src/DownloadEngine.cc
  6868. * src/DownloadEngine.h
  6869. * src/InitiateConnectionCommand.cc
  6870. * src/MultiUrlRequestInfo.cc
  6871. * test/Makefile.am
  6872. * test/Makefile.in
  6873. * test/SimpleDNSCacheTest.cc
  6874. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6876. DownloadEngine.
  6877. * src/ActivePeerConnectionCommand.cc
  6878. * src/BtSetup.cc
  6879. * src/CUIDCounter.h
  6880. * src/DHTSetup.cc
  6881. * src/DownloadCommand.cc
  6882. * src/DownloadEngine.cc
  6883. * src/DownloadEngine.h
  6884. * src/DownloadEngineFactory.cc
  6885. * src/FileAllocationDispatcherCommand.cc
  6886. * src/InitiatorMSEHandshakeCommand.cc
  6887. * src/PeerInitiateConnectionCommand.cc
  6888. * src/PeerInteractionCommand.cc
  6889. * src/PeerListenCommand.cc
  6890. * src/RequestGroup.cc
  6891. * src/StreamFileAllocationEntry.cc
  6892. * src/TrackerWatcherCommand.cc
  6893. * src/main.cc
  6894. * test/RequestGroupManTest.cc
  6895. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Implemented commented code in BtSeederStateChoke
  6897. * src/BtSeederStateChoke.cc
  6898. * src/Peer.cc
  6899. * src/Peer.h
  6900. * src/PeerInteractionCommand.cc
  6901. * src/PeerSessionResource.cc
  6902. * src/PeerSessionResource.h
  6903. * test/MockBtMessageDispatcher.h
  6904. * test/PeerSessionResourceTest.cc
  6905. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6907. its object.
  6908. * src/AbstractBtMessage.cc
  6909. * src/ActivePeerConnectionCommand.cc
  6910. * src/ActivePeerConnectionCommand.h
  6911. * src/BtContextAwareCommand.cc
  6912. * src/BtContextAwareCommand.h
  6913. * src/BtExtendedMessage.cc
  6914. * src/BtExtendedMessage.h
  6915. * src/BtInterestedMessage.cc
  6916. * src/BtInterestedMessage.h
  6917. * src/BtNotInterestedMessage.cc
  6918. * src/BtNotInterestedMessage.h
  6919. * src/BtRegistry.cc
  6920. * src/BtRegistry.h
  6921. * src/BtSeederStateChoke.cc
  6922. * src/BtSetup.cc
  6923. * src/DHTGetPeersCommand.cc
  6924. * src/DHTGetPeersCommand.h
  6925. * src/DHTPeerAnnounceEntry.cc
  6926. * src/DHTPeerAnnounceEntry.h
  6927. * src/DHTPeerAnnounceStorage.cc
  6928. * src/DHTPeerAnnounceStorage.h
  6929. * src/DHTPeerLookupTask.cc
  6930. * src/DHTPeerLookupTask.h
  6931. * src/DHTSetup.cc
  6932. * src/DHTSetup.h
  6933. * src/DHTTaskFactory.h
  6934. * src/DHTTaskFactoryImpl.cc
  6935. * src/DHTTaskFactoryImpl.h
  6936. * src/DefaultBtAnnounce.cc
  6937. * src/DefaultBtInteractive.cc
  6938. * src/DefaultBtInteractive.h
  6939. * src/DefaultBtMessageDispatcher.cc
  6940. * src/DefaultBtMessageDispatcher.h
  6941. * src/DefaultBtMessageFactory.cc
  6942. * src/DefaultBtMessageFactory.h
  6943. * src/DefaultBtMessageReceiver.cc
  6944. * src/DefaultBtProgressInfoFile.cc
  6945. * src/DefaultBtProgressInfoFile.h
  6946. * src/DefaultBtRequestFactory.cc
  6947. * src/DefaultBtRequestFactory.h
  6948. * src/DefaultExtensionMessageFactory.cc
  6949. * src/DefaultExtensionMessageFactory.h
  6950. * src/DefaultPeerStorage.cc
  6951. * src/DefaultPeerStorage.h
  6952. * src/DownloadEngine.cc
  6953. * src/DownloadEngine.h
  6954. * src/InitiatorMSEHandshakeCommand.cc
  6955. * src/InitiatorMSEHandshakeCommand.h
  6956. * src/MSEHandshake.cc
  6957. * src/MSEHandshake.h
  6958. * src/Makefile.am
  6959. * src/Makefile.in
  6960. * src/PeerChokeCommand.cc
  6961. * src/PeerChokeCommand.h
  6962. * src/PeerInitiateConnectionCommand.cc
  6963. * src/PeerInitiateConnectionCommand.h
  6964. * src/PeerInteractionCommand.cc
  6965. * src/PeerInteractionCommand.h
  6966. * src/PeerObject.h
  6967. * src/PeerReceiveHandshakeCommand.cc
  6968. * src/PeerReceiveHandshakeCommand.h
  6969. * src/ReceiverMSEHandshakeCommand.cc
  6970. * src/RequestGroup.cc
  6971. * src/RequestGroup.h
  6972. * src/RequestGroupMan.cc
  6973. * src/RequestGroupMan.h
  6974. * src/SeedCheckCommand.cc
  6975. * src/SeedCheckCommand.h
  6976. * src/ShareRatioSeedCriteria.h
  6977. * src/SimpleBtMessage.cc
  6978. * src/TrackerWatcherCommand.cc
  6979. * src/TrackerWatcherCommand.h
  6980. * src/UTPexExtensionMessage.cc
  6981. * src/UTPexExtensionMessage.h
  6982. * test/BtCancelMessageTest.cc
  6983. * test/BtChokeMessageTest.cc
  6984. * test/BtExtendedMessageTest.cc
  6985. * test/BtInterestedMessageTest.cc
  6986. * test/BtNotInterestedMessageTest.cc
  6987. * test/BtPieceMessageTest.cc
  6988. * test/BtPortMessageTest.cc
  6989. * test/BtRegistryTest.cc
  6990. * test/BtRejectMessageTest.cc
  6991. * test/BtRequestMessageTest.cc
  6992. * test/DHTPeerAnnounceEntryTest.cc
  6993. * test/DHTPeerAnnounceStorageTest.cc
  6994. * test/DefaultBtMessageDispatcherTest.cc
  6995. * test/DefaultBtMessageFactoryTest.cc
  6996. * test/DefaultBtProgressInfoFileTest.cc
  6997. * test/DefaultBtRequestFactoryTest.cc
  6998. * test/DefaultExtensionMessageFactoryTest.cc
  6999. * test/MSEHandshakeTest.cc
  7000. * test/MockDHTTaskFactory.h
  7001. * test/ShareRatioSeedCriteriaTest.cc
  7002. * test/UTPexExtensionMessageTest.cc
  7003. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Fixed compiler warning.
  7005. * test/UtilTest.cc
  7006. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Treat Cookie object as session cookie if expiry = 0 is given.
  7008. With this change, you can specify session scoped cookies in an external
  7009. file setting expiry value to 0.
  7010. * src/Cookie.cc
  7011. * src/Cookie.h
  7012. * test/CookieParserTest.cc
  7013. * test/CookieStorageTest.cc
  7014. * test/CookieTest.cc
  7015. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Changed signature of DHTMessageFactory::createResponseMessage().
  7017. Removed unused validateIDMatch.
  7018. * src/DHTMessageFactory.h
  7019. * src/DHTMessageFactoryImpl.cc
  7020. * src/DHTMessageFactoryImpl.h
  7021. * src/DHTMessageTracker.cc
  7022. * test/DHTMessageFactoryImplTest.cc
  7023. * test/MockDHTMessageFactory.h
  7024. Dropped DHT message coming from same ID of localhost.
  7025. * src/DHTMessageReceiver.cc
  7026. Rejected adding node whose ID is the same as localhost's.
  7027. * src/DHTRoutingTable.cc
  7028. * test/BtPortMessageTest.cc
  7029. * test/DHTRoutingTableTest.cc
  7030. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Pool connection when redirection occurs with Content-Length = 0.
  7032. * src/HttpSkipResponseCommand.cc
  7033. * src/HttpSkipResponseCommand.h
  7034. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Fixed the bug that causes time out when redirection occurs with
  7036. content-length 0.
  7037. * src/HttpResponseCommand.cc
  7038. * src/HttpSkipResponseCommand.cc
  7039. * src/HttpSkipResponseCommand.h
  7040. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Now each status legends is shown only when it appears in Download
  7042. Result. If Download Result has no item, then status legend will not
  7043. be printed.
  7044. * src/RequestGroupMan.cc
  7045. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Removed duplicate creation of OptionHandlers.
  7047. * src/option_processing.cc
  7048. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Fixed the bug that causes segmentation fault when accessing files which
  7050. don't exist or are not included in --select-file option while
  7051. validating chunk checksum.
  7052. * src/MultiDiskAdaptor.cc
  7053. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Fixed compiler warning.
  7055. * test/UtilTest.cc
  7056. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7058. * src/IteratableChecksumValidator.cc
  7059. * src/IteratableChunkChecksumValidator.cc
  7060. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. * Release 0.16.2
  7062. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Added Serbian translation. Updated Ukrainian translation.
  7064. Thanks to all translators.
  7065. * po/sr.po
  7066. * po/uk.po
  7067. * po/LINGUAS
  7068. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Bump up version number to 0.16.2
  7070. * configure.ac
  7071. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Added length equality test to operator== to drop a piece message
  7073. whose length does not match to the requested one.
  7074. * src/RequestSlot.cc
  7075. * test/DefaultBtMessageDispatcherTest.cc
  7076. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7078. recieved.
  7079. In this fix, if a request larger than 16KiB length is received, aria2
  7080. disconnects the peer.
  7081. * src/BtConstants.h
  7082. * src/PeerMessageUtil.cc
  7083. * src/PeerMessageUtil.h
  7084. * test/BtRequestMessageTest.cc
  7085. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. * Release 0.16.1
  7087. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7089. * doc/aria2c.1.txt
  7090. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7092. Updated French, Simplified Chinese and Japanese translations.
  7093. Thanks to all translators.
  7094. en@quot and en@boldquot are also added.
  7095. * po/LINGUAS
  7096. * po/fr.po
  7097. * po/ja.po
  7098. * po/uk.po
  7099. * po/vi.po
  7100. * po/zh_CN.po
  7101. * po/zh_TW.po
  7102. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Bump up version number to 0.16.1.
  7104. * configure.ac
  7105. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Updated README.
  7107. * README
  7108. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7110. not to replace '--' with em dash character.
  7111. * doc/aria2c.1.txt
  7112. * doc/makeman
  7113. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7115. every SEC seconds.
  7116. * src/DownloadEngineFactory.cc
  7117. * src/OptionHandlerFactory.cc
  7118. * src/option_processing.cc
  7119. * src/usage_text.h
  7120. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Fixed compile warning on linux-amd64
  7122. * src/FtpConnection.cc
  7123. * src/IteratableChunkChecksumValidator.cc
  7124. * src/MultiDiskAdaptor.cc
  7125. Fixed the bug that unit test fails on linux-amd64
  7126. * test/UtilTest.cc
  7127. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Added --dht-file-path option to change the path to dht.dat, which is a
  7129. serialized DHT routing table.
  7130. * src/OptionHandlerFactory.cc
  7131. * src/option_processing.cc
  7132. * src/usage_text.h
  7133. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Fixed possible underflow.
  7135. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7136. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Fixed the bug that last character in URI is not encoded.
  7138. * src/Request.cc
  7139. * test/RequestTest.cc
  7140. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Fixed the bug that referer header field contains fragment.
  7142. Now Request class removes fragment part of URI and encodes it
  7143. in Request::setUri() and setReferer().
  7144. * src/Request.h
  7145. * src/Request.cc
  7146. * test/RequestTest.cc
  7147. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Added missing m4 macros.
  7149. * m4/cppunit.m4
  7150. * m4/libgcrypt.m4
  7151. * m4/libgnutls-extra.m4
  7152. * m4/libgnutls.m4
  7153. * m4/libxml2.m4
  7154. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Fixed compile error with gcc-4.4(snapshot)
  7156. * src/File.cc
  7157. * src/FtpConnection.cc
  7158. * src/OptionHandlerImpl.h
  7159. * src/Util.cc
  7160. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Removed assert()
  7162. * src/SocketBuffer.cc (SocketBuffer::send)
  7163. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Changed the type of _numNewConnection to unsigned int.
  7165. * src/ActivePeerConnectionCommand.cc
  7166. * src/ActivePeerConnectionCommand.h
  7167. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. * Release 0.16.0
  7169. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Updated doc
  7171. * README
  7172. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7174. translations. Thanks to all translators.
  7175. * po/bg.po
  7176. * po/de.po
  7177. * po/fr.po
  7178. * po/ja.po
  7179. * po/zh_CN.po
  7180. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Bump up version number to 0.16.0.
  7182. * configure.ac
  7183. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7185. int32_t.
  7186. Changed the type of count to int32_t.
  7187. * src/Metalink2RequestGroup.cc
  7188. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Added test for Time::elapsed(time_t).
  7190. * test/TimeTest.cc
  7191. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7193. Util::difftv() should be used instead.
  7194. * src/TimeA2.cc
  7195. * src/TimeA2.h
  7196. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Made socket for dht connections non-blocking
  7198. * src/DHTAbstractMessage.cc
  7199. * src/DHTAbstractMessage.h
  7200. * src/DHTConnection.h
  7201. * src/DHTConnectionImpl.cc
  7202. * src/DHTConnectionImpl.h
  7203. * src/DHTMessage.h
  7204. * src/DHTMessageDispatcherImpl.cc
  7205. * src/DHTMessageDispatcherImpl.h
  7206. * src/DHTUnknownMessage.cc
  7207. * src/DHTUnknownMessage.h
  7208. * src/SocketCore.cc
  7209. * src/SocketCore.h
  7210. * test/MockDHTMessage.h
  7211. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Changed the type of offset to int.
  7213. * src/ParameterizedStringParser.cc
  7214. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Made getAsInt() return int32_t
  7216. * src/Option.h
  7217. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7219. build.
  7220. * configure.ac
  7221. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Use sqlite3_open if sqlite3_open_v2 is not available.
  7223. * src/Sqlite3MozCookieParser.cc
  7224. * src/Sqlite3MozCookieParser.h
  7225. * m4/sqlite3.m4
  7226. * test/Sqlite3MozCookieParserTest.cc
  7227. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7229. * src/BtPieceMessage.cc
  7230. * src/DHTPeerAnnounceStorage.cc
  7231. * src/DefaultPieceStorage.cc
  7232. * src/DownloadCommand.cc
  7233. * src/DownloadEngine.cc
  7234. * src/FtpConnection.cc
  7235. * src/PeerConnection.cc
  7236. * src/PeerMessageUtil.cc
  7237. * src/RequestGroup.cc
  7238. * src/RequestGroupMan.cc
  7239. * src/SimpleBtMessage.cc
  7240. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7242. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7243. * src/AbstractDiskWriter.cc
  7244. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Don't set Request::supportsPersistentConnection() in HttpConnection
  7246. since this code is also used in AbstractProxyResponseCommand.
  7247. Moved those code to HttpResponse.
  7248. * src/HttpResponse.cc
  7249. * src/HttpResponse.h
  7250. * src/HttpConnection.cc
  7251. * src/HttpConnection.h
  7252. * src/HttpResponseCommand.cc
  7253. * test/HttpResponseTest.cc
  7254. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7256. The configuration is minimum: no torrent, no metalink, so there may be
  7257. other compile error on their code.
  7258. * src/a2netcompat.h
  7259. * src/File.cc
  7260. * src/File.h
  7261. * src/SocketCore.cc
  7262. * src/SocketCore.h
  7263. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Made a socket of incoming peer non-blocking.
  7265. * src/PeerListenCommand.cc
  7266. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7268. whole message data is not sent in one send() call.
  7269. * src/BtPieceMessage.cc
  7270. * src/BtPieceMessage.h
  7271. * src/PeerConnection.cc
  7272. * src/PeerConnection.h
  7273. * src/SimpleBtMessage.cc
  7274. * src/SimpleBtMessage.h
  7275. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Fixed the bug that aria2 downloads faster than max-download-limit when
  7277. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7278. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7279. , instead of sum of them.
  7280. * src/ActivePeerConnectionCommand.cc
  7281. * src/DefaultBtInteractive.cc
  7282. * src/DownloadCommand.cc
  7283. * src/PeerInteractionCommand.cc
  7284. * src/PeerReceiveHandshakeCommand.cc
  7285. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Fixed the bug that HTTPS download fails.
  7287. * src/AbstractCommand.cc
  7288. * src/AbstractCommand.h
  7289. * src/DownloadCommand.cc
  7290. * src/FtpConnection.cc
  7291. * src/HttpConnection.cc
  7292. * src/HttpRequestCommand.cc
  7293. * src/HttpResponseCommand.cc
  7294. * src/HttpSkipResponseCommand.cc
  7295. * src/MSEHandshake.cc
  7296. * src/PeerConnection.cc
  7297. * src/SocketCore.cc
  7298. * src/SocketCore.h
  7299. Fixed the bug that aria2 doesn't download whole content body and cannot
  7300. reuse connection if chunked transfer encoding and gzip content encoding
  7301. are set.
  7302. * src/DownloadCommand.cc
  7303. * src/HttpSkipResponseCommand.cc
  7304. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Updated man page.
  7306. * doc/aria2c.1.txt
  7307. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. When error occurred while aria2 was parsing an .aria2.conf file, print
  7309. the usage of the option that caused error.
  7310. * src/option_processing.cc
  7311. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Fixed compile error on OptionHandlerException
  7313. * src/Makefile.am
  7314. * src/OptionHandlerException.cc
  7315. * src/OptionHandlerException.h
  7316. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Moved message of the error to OptionHandlerException.h
  7318. * src/NameMatchOptionHandler.h
  7319. * src/OptionHandlerException.h
  7320. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. When error occurs while aria2 is parsing an command-line option, print
  7322. the usage of the option.
  7323. * src/Makefile.am
  7324. * src/NameMatchOptionHandler.h
  7325. * src/OptionHandlerException.h
  7326. * src/option_processing.cc
  7327. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Reverted previous change.
  7329. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7330. username is not in URI.
  7331. * src/HttpRequest.cc
  7332. * src/Request.cc
  7333. * test/HttpRequestTest.cc
  7334. * test/RequestTest.cc
  7335. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Now colon is required for username and password in FTP URL, like:
  7337. ftp://username:password@host.
  7338. If colon is not there, aria2 don't parse it as a username. For example,
  7339. aria2 don't retrieve username from ftp://username@host.
  7340. This fix was made in order to login FTP server via non-transparent ftp
  7341. proxy.
  7342. * src/Request.cc
  7343. * test/RequestTest.cc
  7344. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Use netrc for HTTP.
  7346. Now FTP user/password is sent in Authorization header when
  7347. --ftp-via-http-proxy=get is given.
  7348. * src/AuthConfigFactory.cc
  7349. * src/HttpRequest.cc
  7350. * src/HttpRequest.h
  7351. * src/NetrcAuthResolver.cc
  7352. * src/NetrcAuthResolver.h
  7353. * src/OptionHandlerFactory.cc
  7354. * src/option_processing.cc
  7355. * src/prefs.cc
  7356. * src/prefs.h
  7357. * test/AuthConfigFactoryTest.cc
  7358. * test/HttpRequestTest.cc
  7359. * test/NetrcAuthResolverTest.cc
  7360. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. Issue PWD command first and get working directory and use it as a prefix
  7362. for CWD command.
  7363. * src/DownloadEngine.cc
  7364. * src/DownloadEngine.h
  7365. * src/FtpConnection.cc
  7366. * src/FtpConnection.h
  7367. * src/FtpFinishDownloadCommand.cc
  7368. * src/FtpInitiateConnectionCommand.cc
  7369. * src/FtpNegotiationCommand.cc
  7370. * src/FtpNegotiationCommand.h
  7371. * test/FtpConnectionTest.cc
  7372. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Removed default user/pass for FTP user/pass, since it should not have
  7374. precedence over netrc configuration by default.
  7375. * src/OptionHandlerFactory.cc
  7376. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Added debug log for socket event.
  7378. * src/AbstractCommand.cc
  7379. * src/PeerAbstractCommand.cc
  7380. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Log microseconds.
  7382. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7383. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Replaced HelpItem.cc with OptionHandler.cc.
  7385. * po/POTFILES.in
  7386. Updated po files with 'make update-po'
  7387. * po/aria2c.pot
  7388. * po/*.po
  7389. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Removed possible values from the text.
  7391. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7392. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Removed unused preferences:
  7394. PREF_NO_PREALLOCATION
  7395. PREF_STDOUT_LOG
  7396. PREF_TRACKER_MAX_TRIES
  7397. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7398. PREF_MIN_SEGMENT_SIZE
  7399. * src/option_processing.cc
  7400. * src/prefs.cc
  7401. * src/prefs.h
  7402. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Integrated HelpItem into OptionParser to ease the workload for adding
  7404. new options. Removed default value from usage text.
  7405. * src/HelpItem.cc: Removed.
  7406. * src/HelpItem.h: Removed.
  7407. * src/HelpItemFactory.cc: Removed.
  7408. * src/HelpItemFactory.h: Removed.
  7409. * src/Makefile.am
  7410. * src/Makefile.in
  7411. * src/NameMatchOptionHandler.h
  7412. * src/OptionHandler.cc
  7413. * src/OptionHandler.h
  7414. * src/OptionHandlerFactory.cc
  7415. * src/OptionHandlerImpl.h
  7416. * src/OptionParser.cc
  7417. * src/OptionParser.h
  7418. * src/TagContainer.cc: Removed.
  7419. * src/TagContainer.h: Removed.
  7420. * src/TaggedItem.cc: Removed.
  7421. * src/TaggedItem.h: Removed.
  7422. * src/main.cc
  7423. * src/option_processing.cc
  7424. * src/usage_text.h
  7425. * src/version_usage.cc
  7426. * test/HelpItemTest.cc: Removed.
  7427. * test/Makefile.am
  7428. * test/Makefile.in
  7429. * test/OptionHandlerTest.cc
  7430. * test/OptionParserTest.cc
  7431. * test/TagContainerTest.cc: Removed.
  7432. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Moved `TransferStat stat = ...' to inside the `if' clause.
  7434. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7435. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Fixed the bug that a block in a piece is requested when same block is
  7437. already requested to the same peer in end game mode.
  7438. * src/BtRequestFactory.h
  7439. * src/DefaultBtInteractive.cc
  7440. * src/DefaultBtRequestFactory.cc
  7441. * src/DefaultBtRequestFactory.h
  7442. * src/DefaultPieceStorage.cc
  7443. * src/DefaultPieceStorage.h
  7444. * src/PieceStorage.h
  7445. * src/UnknownLengthPieceStorage.cc
  7446. * src/UnknownLengthPieceStorage.h
  7447. * test/DefaultBtRequestFactoryTest.cc
  7448. * test/DefaultPieceStorageTest.cc
  7449. * test/MockBtRequestFactory.h
  7450. * test/MockPieceStorage.h
  7451. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Removed _uploadLength and _downloadLength from PeerSessionResource
  7453. and use PeerStat::_sessionUploadLength and
  7454. PeerStat::_sessionDownloadLength.
  7455. * src/PeerSessionResource.cc
  7456. * src/PeerSessionResource.h
  7457. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Fixed the bug that prefixLength of split bucket which doesn't include
  7459. local node ID is incremented.
  7460. * src/DHTBucket.cc
  7461. * src/DHTBucket.h
  7462. * test/DHTBucketTest.cc
  7463. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Added cookies.sqlite to EXTRA_DIST
  7465. * test/Makefile.am
  7466. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Added Turkish translation. Updated French, German, Russian and
  7468. Simplified Chinese translations. Thanks to all translators.
  7469. * po/LINGUAS
  7470. * po/de.po
  7471. * po/fr.po
  7472. * po/ru.po
  7473. * po/tr.po
  7474. * po/zh_CN.po
  7475. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Added deliminating text to the beginning of the log so that one can find
  7477. where the log starts easily.
  7478. * src/main.cc
  7479. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7481. to fix compile error when async DNS is not enabled by configuration.
  7482. * src/AbstractCommand.cc
  7483. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. If establishing conneciton to a server is failed, then mark error on
  7485. its ServerStat.
  7486. Added the cause of error to log when error event occurred.
  7487. Moved message string to message.h for translation.
  7488. * src/AbstractCommand.cc
  7489. * src/AbstractCommand.h
  7490. * src/FtpNegotiationCommand.cc
  7491. * src/HttpRequestCommand.cc
  7492. * src/PeerAbstractCommand.cc
  7493. * src/message.h
  7494. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Added the function to get error message from socket.
  7496. * src/SocketCore.cc
  7497. * src/SocketCore.h
  7498. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7500. * src/RequestGroupMan.cc
  7501. * src/RequestGroupMan.h
  7502. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. If error event is received in epoll, then abort download immediately.
  7504. * src/AbstractCommand.cc
  7505. * src/Command.cc
  7506. * src/Command.h
  7507. * src/DownloadEngine.cc
  7508. * src/PeerAbstractCommand.cc
  7509. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Added usage message for --uri-selector, --server-stat-of,
  7511. --server-stat-in, --server-stat-timeout options.
  7512. * src/HelpItemFactory.cc
  7513. * src/usage_text.h
  7514. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Added upper limit of FTP response buffer. The current implementation
  7516. uses 4096bytes as a limit.
  7517. * src/FtpConnection.cc
  7518. * src/FtpConnection.h
  7519. * test/FtpConnectionTest.cc
  7520. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Use non-blocking socket for TCP communication to avoid possible
  7522. blocking due to buffer full.
  7523. * src/AbstractProxyRequestCommand.cc
  7524. * src/FtpConnection.cc
  7525. * src/FtpConnection.h
  7526. * src/FtpNegotiationCommand.cc
  7527. * src/FtpNegotiationCommand.h
  7528. * src/HttpConnection.cc
  7529. * src/HttpConnection.h
  7530. * src/HttpRequestCommand.cc
  7531. * src/InitiatorMSEHandshakeCommand.cc
  7532. * src/InitiatorMSEHandshakeCommand.h
  7533. * src/MSEHandshake.cc
  7534. * src/MSEHandshake.h
  7535. * src/Makefile.am
  7536. * src/PeerConnection.cc
  7537. * src/PeerConnection.h
  7538. * src/PeerInteractionCommand.cc
  7539. * src/PeerListenCommand.cc
  7540. * src/ReceiverMSEHandshakeCommand.cc
  7541. * src/ReceiverMSEHandshakeCommand.h
  7542. * src/SocketBuffer.cc
  7543. * src/SocketBuffer.h
  7544. * src/SocketCore.cc
  7545. * src/SocketCore.h
  7546. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Call setStatusRealtime() in constructor.
  7548. * src/RealtimeCommand.cc
  7549. * src/RealtimeCommand.h
  7550. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Call Download::setNoWait(true) to execute newly created command without
  7552. a pause.
  7553. * src/AbstractCommand.cc
  7554. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7556. found' error from HTTP/FTP server NUM times without getting single
  7557. bytes of data, then force the download to fail.
  7558. Basically aria2 tris all URIs available. So if long list of URIs are
  7559. specified in Metalink, then aria2 will take a long time to fail
  7560. eventually if all URIs are outdated. This option eases this situation
  7561. to limit the number of servers to try.
  7562. * src/FtpNegotiationCommand.cc
  7563. * src/HelpItemFactory.cc
  7564. * src/HttpResponseCommand.cc
  7565. * src/OptionHandlerFactory.cc
  7566. * src/PeerStat.h
  7567. * src/RequestGroup.cc
  7568. * src/RequestGroup.h
  7569. * src/SegmentMan.cc
  7570. * src/SegmentMan.h
  7571. * src/option_processing.cc
  7572. * src/prefs.cc
  7573. * src/prefs.h
  7574. * src/usage_text.h
  7575. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7577. response even if more than one response is in it.
  7578. * src/FtpConnection.cc
  7579. * src/FtpConnection.h
  7580. * test/FtpConnectionTest.cc
  7581. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Merged from stable-0.15
  7583. * m4/libcares.m4
  7584. Use pkg-config
  7585. * m4/sqlite3.m4
  7586. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Removed unnecessary if statement.
  7588. * src/DefaultPieceStorage.cc (initPieceStorage)
  7589. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Added --connect-timeout option to specify connect timeout in seconds.
  7591. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7592. connecting to BitTorrent peer is not controlled by this option.
  7593. * src/AbstractProxyRequestCommand.cc
  7594. * src/FtpNegotiationCommand.cc
  7595. * src/HelpItemFactory.cc
  7596. * src/HttpRequestCommand.cc
  7597. * src/OptionHandlerFactory.cc
  7598. * src/option_processing.cc
  7599. * src/prefs.cc
  7600. * src/prefs.h
  7601. * src/usage_text.h
  7602. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Added help message for -R option.
  7604. * src/HelpItemFactory.cc
  7605. * src/usage_text.h
  7606. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Added the message that the time is in local time zone.
  7608. * src/RequestGroup.cc
  7609. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Implemented the ability to get timestamp from remote FTP server using
  7611. MDTM command described in RFC3659.
  7612. * src/FtpConnection.cc
  7613. * src/FtpConnection.h
  7614. * src/FtpNegotiationCommand.cc
  7615. * src/FtpNegotiationCommand.h
  7616. * test/FtpConnectionTest.cc
  7617. * test/Makefile.am
  7618. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Implemented the ability to get timestamp from remote HTTP server and
  7620. apply it to local file. To enable this feature, --remote-time option
  7621. is added. No usage text has been written yet.
  7622. If several servers returns difference timestamp, then aria2 uses latest
  7623. one.
  7624. * src/CopyDiskAdaptor.cc
  7625. * src/CopyDiskAdaptor.h
  7626. * src/DirectDiskAdaptor.cc
  7627. * src/DirectDiskAdaptor.h
  7628. * src/DiskAdaptor.h
  7629. * src/File.cc
  7630. * src/File.h
  7631. * src/HttpHeader.cc
  7632. * src/HttpHeader.h
  7633. * src/HttpResponse.cc
  7634. * src/HttpResponse.h
  7635. * src/HttpResponseCommand.cc
  7636. * src/HttpResponseCommand.h
  7637. * src/MultiDiskAdaptor.cc
  7638. * src/MultiDiskAdaptor.h
  7639. * src/OptionHandlerFactory.cc
  7640. * src/RequestGroup.cc
  7641. * src/RequestGroup.h
  7642. * src/RequestGroupMan.cc
  7643. * src/option_processing.cc
  7644. * src/prefs.cc
  7645. * src/prefs.h
  7646. * test/CopyDiskAdaptorTest.cc
  7647. * test/FileTest.cc
  7648. * test/Makefile.am
  7649. * test/Makefile.in
  7650. * test/MultiDiskAdaptorTest.cc
  7651. * test/TestUtil.cc
  7652. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Fixed the bug that DiskWriterEntry is not created when its
  7654. FileEntry.isRequested() is false and it doesn't share a piece with
  7655. other FileEntries that are requested. This bug causes segmentation fault
  7656. in the end.
  7657. * src/MultiDiskAdaptor.cc
  7658. * src/MultiDiskAdaptor.h
  7659. * src/MultiFileAllocationIterator.cc
  7660. * test/MultiDiskAdaptorTest.cc
  7661. * test/MultiFileAllocationIteratorTest.cc
  7662. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7664. called if the number of file entries are greater than max open files.
  7665. * src/AbstractSingleDiskAdaptor.cc
  7666. * src/AbstractSingleDiskAdaptor.h
  7667. * src/DiskAdaptor.h
  7668. * src/MultiDiskAdaptor.cc
  7669. * src/MultiDiskAdaptor.h
  7670. * test/MultiDiskAdaptorTest.cc
  7671. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Added a constuctor that receives struct timeval.
  7673. Added operator<.
  7674. * src/TimeA2.cc
  7675. * src/TimeA2.h
  7676. * test/TimeTest.cc
  7677. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7679. * src/CookieParser.cc
  7680. * test/CookieParserTest.cc
  7681. * test/HttpResponseTest.cc
  7682. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Implmented the functions to parse date.
  7684. * src/TimeA2.cc
  7685. * src/TimeA2.h
  7686. * test/TimeTest.cc
  7687. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Added "Firefox3 Cookie" feature to FeatureConfig
  7689. * src/FeatureConfig.cc
  7690. * src/FeatureConfig.h
  7691. * test/FeatureConfigTest.cc
  7692. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Bump up version number to 0.16.0b
  7694. * configure.ac
  7695. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Use pkg-config if is is available.
  7697. * m4/openssl.m4
  7698. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7700. * src/BtAnnounce.h
  7701. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. If an error occurred with a URI, remove identical URI from remaining
  7703. URI list because it is likely that same error occurred in the end and it
  7704. is waste of time.
  7705. * src/AbstractCommand.cc
  7706. * src/RequestGroup.cc
  7707. * src/RequestGroup.h
  7708. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. Removed wrong comment.
  7710. * src/DefaultPeerStorage.cc
  7711. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7713. Added return value of getpid() to argument of srand() to achieve more
  7714. randomized value.
  7715. * src/SimpleRandomizer.cc
  7716. * src/SimpleRandomizer.h
  7717. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. Contact tracker frequently when the number of connections are 0 and
  7719. download is not finished yet.
  7720. * src/ActivePeerConnectionCommand.cc
  7721. * src/BtAnnounce.h
  7722. * src/DefaultBtAnnounce.cc
  7723. * src/DefaultBtAnnounce.h
  7724. * test/MockBtAnnounce.h
  7725. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Moved threshold values to UTPexExtensionMessage.
  7727. * src/DefaultBtInteractive.cc
  7728. * src/Peer.cc
  7729. * src/Peer.h
  7730. * src/UTPexExtensionMessage.cc
  7731. * src/UTPexExtensionMessage.h
  7732. * test/UTPexExtensionMessageTest.cc
  7733. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Added _incoming member to Peer class and made it true if the peer
  7735. initiated connection. Don't add those peer to UTPex message.
  7736. If extended handshake is received, assign _incoming to false.
  7737. * src/DefaultBtInteractive.cc
  7738. * src/HandshakeExtensionMessage.cc
  7739. * src/Peer.cc
  7740. * src/Peer.h
  7741. * src/PeerListenCommand.cc
  7742. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7744. Encoding Decoder. Removed size threshold for turning off on the fly
  7745. inflation because resulting file may or may not be inflated depending
  7746. on the file size and I think it is not expected by users.
  7747. This change fixes segmentation fault when Metalink file contains gzipped
  7748. file and its filesize is provided.
  7749. * src/HttpResponseCommand.cc
  7750. * src/HttpResponseCommand.h
  7751. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Made Cookie immutable.
  7753. * src/Cookie.cc
  7754. * src/Cookie.h
  7755. * src/CookieParser.cc
  7756. * src/CookieParser.h
  7757. * src/CookieStorage.cc
  7758. * test/CookieParserTest.cc
  7759. * test/CookieStorageTest.cc
  7760. * test/NsCookieParserTest.cc
  7761. * test/Sqlite3MozCookieParserTest.cc
  7762. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Removed CookieBox, CookieBoxFactory.
  7764. * src/CookieBox.cc
  7765. * src/CookieBox.h
  7766. * src/CookieBoxFactory.cc
  7767. * src/CookieBoxFactory.h
  7768. * src/Makefile.am
  7769. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Use CookieStorage class instead of CookieBox class.
  7771. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7772. * src/AbstractProxyRequestCommand.cc
  7773. * src/CookieStorage.cc
  7774. * src/DownloadEngine.cc
  7775. * src/DownloadEngine.h
  7776. * src/HttpConnection.cc
  7777. * src/HttpConnection.h
  7778. * src/HttpRequest.cc
  7779. * src/HttpRequest.h
  7780. * src/HttpRequestCommand.cc
  7781. * src/HttpResponse.cc
  7782. * src/HttpResponseCommand.cc
  7783. * src/HttpSkipResponseCommand.cc
  7784. * src/Makefile.am
  7785. * src/MultiUrlRequestInfo.cc
  7786. * src/Request.cc
  7787. * src/Request.h
  7788. * src/main.cc
  7789. * test/AllTest.cc
  7790. * test/CookieStorageTest.cc
  7791. * test/CookieTest.cc
  7792. * test/HttpRequestTest.cc
  7793. * test/HttpResponseTest.cc
  7794. * test/Makefile.am
  7795. * test/NsCookieParserTest.cc
  7796. * test/Sqlite3MozCookieParserTest.cc
  7797. * test/nscookietest.txt
  7798. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Updated
  7800. * test/Cookies.sqlite
  7801. * test/nscookietest.txt
  7802. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Added tests for CookieStorage::load()
  7804. * test/CookieStorageTest.cc
  7805. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Added CookieStorage class which is based on RFC2109 and manages cookies
  7807. more strictly than CookieBox and CookieBoxFactory class.
  7808. * src/CookieStorage.cc
  7809. * src/CookieStorage.h
  7810. * src/Cookie.cc
  7811. * src/Cookie.h
  7812. * test/CookieStorageTest.cc
  7813. * test/CookieTest.cc
  7814. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Fixed the bug that commands are created more than the number of pieces.
  7816. * src/RequestGroup.cc
  7817. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7818. Fixed infinite loop bug in FTP when SIZE command failed.
  7819. * src/FtpNegotiationCommand.cc
  7820. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Removed DirectDiskAdaptorTest.h
  7822. * test/Makefile.am
  7823. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Fixed chunk checksum validation cannot detect trailing garbage data.
  7825. BUG#2074141
  7826. * src/AbstractSingleDiskAdaptor.cc
  7827. * src/AbstractSingleDiskAdaptor.h
  7828. * src/CheckIntegrityEntry.cc
  7829. * src/CheckIntegrityEntry.h
  7830. * src/DiskAdaptor.h
  7831. * src/MultiDiskAdaptor.cc
  7832. * src/MultiDiskAdaptor.h
  7833. * src/RequestGroup.cc
  7834. * test/DirectDiskAdaptorTest.cc
  7835. * test/MultiDiskAdaptorTest.cc
  7836. * test/TestUtil.cc
  7837. * test/TestUtil.h
  7838. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Bump up version number of dht.dat file to 3. In version 3 format, time
  7840. is stored in 64bit, network byte order.
  7841. New build can load old format(version 2) but it saves the file in new
  7842. format. It means once you used new build, your dht.dat becomes
  7843. incompatible with older build.
  7844. * src/DHTRoutingTableDeserializer.cc
  7845. * src/DHTRoutingTableSerializer.cc
  7846. * test/DHTRoutingTableSerializerTest.cc
  7847. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7849. * test/Makefile.am
  7850. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Bump up version number of .aria2 control file to 0001.
  7852. New aria2 can still load version 0000 file but it saves the file in
  7853. version 0001 format. It means that new aria2 can resume download
  7854. started by old aria2 but the opposite is not true.
  7855. * src/DefaultBtProgressInfoFile.cc
  7856. * src/DefaultBtProgressInfoFile.h
  7857. * test/DefaultBtProgressInfoFileTest.cc
  7858. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Added ntoh64 and hton64 as inline functions.
  7860. * src/Util.cc
  7861. * test/UtilTest.cc
  7862. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Added sqlite3 depenency and Firefox3 cookie support.
  7864. * README
  7865. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. State that firefox3 cookie is supported explicitly in the usage.
  7867. * src/usage_text.h
  7868. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Externalized message.
  7870. * src/RequestGroupMan.cc
  7871. * src/message.h
  7872. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Save temporary file first and rename to the destination on success.
  7874. Added test cases.
  7875. * src/RequestGroupMan.cc
  7876. * test/RequestGroupManTest.cc
  7877. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Fixed the bug that the number of connected peer is exceeding the limit
  7879. (55 by default) in seeding mode.
  7880. Multiplied 0.8 to _maxUploadSpeedLimit.
  7881. * src/ActivePeerConnectionCommand.cc
  7882. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Clear table item.
  7884. * src/Dictionary.cc
  7885. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Fixed error handling of lseek.
  7887. * src/AbstractDiskWriter.cc
  7888. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7890. style cookie file.
  7891. * src/usage_text.h
  7892. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7894. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7895. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7896. * src/Util.cc
  7897. * src/Util.h
  7898. * src/CookieParser.cc
  7899. * test/UtilTest.cc
  7900. * test/CookieParserTest.cc
  7901. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Separate the implementation to load old mozilla format of cookie to
  7903. NsCookieParser class.
  7904. * src/CookieBoxFactory.cc
  7905. * src/CookieBoxFactory.h
  7906. * src/NsCookieParser.cc
  7907. * src/NsCookieParser.h
  7908. * test/NsCookieParserTest.cc
  7909. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Made parse() const
  7911. * src/Sqlite3MozCookieParser.cc
  7912. * src/Sqlite3MozCookieParser.h
  7913. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Added firefox3 cookie support based on the patch submitted by
  7915. tizianomueller.
  7916. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7917. this functionality.
  7918. * configure.ac
  7919. * m4/sqlite3.m4
  7920. * src/CookieBoxFactory.cc
  7921. * src/CookieBoxFactory.h
  7922. * src/Makefile.am
  7923. * src/Makefile.in
  7924. * src/Sqlite3MozCookieParser.cc
  7925. * src/Sqlite3MozCookieParser.h
  7926. * src/main.cc
  7927. * test/CookieBoxFactoryTest.cc
  7928. * test/Makefile.am
  7929. * test/Makefile.in
  7930. * test/Sqlite3MozCookieParserTest.cc
  7931. * test/badcookies.sqlite
  7932. * test/cookies.sqlite
  7933. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Added Danish and Greek translations.
  7935. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7936. Great thanks to all translators.
  7937. * po/LINGUAS
  7938. * po/el.po
  7939. * po/da.po
  7940. * po/es.po
  7941. * po/ca.po
  7942. * po/nn.po
  7943. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Fixed man page: --follow-bittorrent should be --follow-torrent
  7945. * doc/aria2c.1.txt
  7946. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Fixed: numCommand is less than the value specified in -C option.
  7948. * src/RequestGroup.cc
  7949. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Fixed occasional assertion failure in PieceSegment.
  7951. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7952. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7953. creation of duplicate segments and one of the segment was finished then
  7954. assertion failure was caused.
  7955. * src/SegmentMan.cc
  7956. * test/SegmentManTest.cc
  7957. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Added options to load/save the server's performance/status to a file
  7959. and the timeout to drop their data.
  7960. --server-stat-of=FILE specifies the file to which performance data
  7961. is saved.
  7962. --server-stat-if=FILE specifies the file to read previously saved
  7963. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7964. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7965. TIMEOUT is specified in seconds and the default value is 24hours.
  7966. * src/MultiUrlRequestInfo.cc
  7967. * src/OptionHandlerFactory.cc
  7968. * src/RequestGroupMan.cc
  7969. * src/RequestGroupMan.h
  7970. * src/ServerStatMan.cc
  7971. * src/ServerStatMan.h
  7972. * src/option_processing.cc
  7973. * src/prefs.cc
  7974. * src/prefs.h
  7975. * test/ServerStatManTest.cc
  7976. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7978. * src/ServerStatMan.cc
  7979. * src/ServerStatMan.h
  7980. * test/ServerStatManTest.cc
  7981. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. Implemented ServerStatMan::load(...) function and its test case.
  7983. * src/ServerStat.cc
  7984. * src/ServerStat.h
  7985. * src/ServerStatMan.cc
  7986. * test/ServerStatManTest.cc
  7987. * test/ServerStatTest.cc
  7988. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Use time_t instead of int32_t. Use int64_t where milli second is
  7990. expected.
  7991. * src/TimeA2.cc
  7992. * src/TimeA2.h
  7993. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Implemented ServerStatMan::save(...) function and its test case.
  7995. * src/ServerStat.cc
  7996. * src/ServerStat.h
  7997. * src/ServerStatMan.cc
  7998. * src/ServerStatMan.h
  7999. * test/ServerStatManTest.cc
  8000. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Now aria2 uses name attribute in Metalink as local filename in
  8002. BitTorrent downloads. BUG#2033999
  8003. * src/BtContext.h
  8004. * src/BtDependency.cc
  8005. * src/DefaultBtContext.cc
  8006. * src/DefaultBtContext.h
  8007. * src/SingleFileDownloadContext.cc
  8008. * src/SingleFileDownloadContext.h
  8009. * test/BtDependencyTest.cc
  8010. * test/DefaultBtContextTest.cc
  8011. * test/MockBtContext.h
  8012. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Added AC_C_BIGENDIAN
  8014. * src/configure.ac
  8015. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Limited numCommand less than or equal to the number of piece.
  8017. * src/RequestGroup.cc
  8018. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8019. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8020. directive.
  8021. * test/DefaultPieceStorageTest.cc
  8022. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Fixed memory leak in test code
  8024. * test/AnnounceListTest.cc
  8025. * test/DefaultPeerListProcessorTest.cc
  8026. * test/DefaultPeerStorageTest.cc
  8027. * test/MetaFileUtilTest.cc
  8028. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8030. * src/DefaultPieceStorage.cc
  8031. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Initialized _directIOAllowed
  8033. * src/MultiDiskAdaptor.cc
  8034. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Fixed memory leak
  8036. * src/GZipDecoder.cc
  8037. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Fixed memory leak
  8039. * src/MetalinkParserStateMachine.cc
  8040. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Fixed memory leak
  8042. * src/Dictionary.cc
  8043. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Fixed memory leak
  8045. * src/IteratableChunkChecksumValidator.h
  8046. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Fixed unmatched malloc/free.
  8048. * src/IteratableChunkChecksumValidator.cc
  8049. * src/IteratableChecksumValidator.cc
  8050. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Removed max chunk size check. This change fixes BUG#2040169
  8052. * src/ChunkedDecoder.cc
  8053. * src/ChunkedDecoder.h
  8054. * test/ChunkedDecoderTest.cc
  8055. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Implemented download speed based URI selection algorithm.
  8057. Introduced new option --uri-selector.
  8058. If --uri-selector=feedback is given, aria2 uses download speed observed
  8059. in the previous downloads and chooses fastest server in the URI list.
  8060. Currently at most 10 URIs are considered to introduce randomeness for
  8061. finding better servers. The speed is average download speed in the
  8062. downloads.
  8063. On the other hand, if --uri-selector=inorder is given, which is default,
  8064. URI is tried in order in URI list.
  8065. The usage text for the new option has not been written yet.
  8066. * src/AbstractCommand.cc
  8067. * src/DownloadCommand.cc
  8068. * src/DownloadEngine.cc
  8069. * src/DownloadEngineFactory.cc
  8070. * src/InOrderURISelector.cc
  8071. * src/InOrderURISelector.h
  8072. * src/OptionHandlerFactory.cc
  8073. * src/PeerStat.h
  8074. * src/RequestGroup.cc
  8075. * src/RequestGroup.h
  8076. * src/RequestGroupMan.cc
  8077. * src/RequestGroupMan.h
  8078. * src/SegmentMan.cc
  8079. * src/SegmentMan.h
  8080. * src/ServerStat.cc
  8081. * src/ServerStat.h
  8082. * src/ServerStatMan.cc
  8083. * src/ServerStatMan.h
  8084. * src/ServerStatURISelector.cc
  8085. * src/ServerStatURISelector.h
  8086. * src/URISelector.h
  8087. * src/option_processing.cc
  8088. * src/prefs.cc
  8089. * src/prefs.h
  8090. * test/InOrderURISelectorTest.cc
  8091. * test/RequestGroupManTest.cc
  8092. * test/ServerStatManTest.cc
  8093. * test/ServerStatURISelectorTest.cc
  8094. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. * Release 0.15.1+2
  8096. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Bump up version number to 0.15.1+2
  8098. * configure.ac
  8099. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8101. * m4/aria2_arg.m4
  8102. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. * Release 0.15.1+1
  8104. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Bump up version number to 0.15.1+1
  8106. * configure.ac
  8107. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Fixed the bug that causes segmentaion fault when resuming download
  8109. using metalink without size tag. Reproducible only using HTTP URI.
  8110. * src/HttpResponseCommand.cc
  8111. * src/FtpNegotiationCommand.cc
  8112. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. * Release 0.15.1
  8114. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Updated Bulgarian and French translations, thanks to all translators.
  8116. * po/bg.po
  8117. * po/fr.po
  8118. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Bump up version number to 0.15.1
  8120. * configure.ac
  8121. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Avoid repeated call of gettimeofday() when calculating speed.
  8123. * src/SpeedCalc.cc
  8124. * src/SpeedCalc.h
  8125. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Removed writable check when socket's send buffer is full in BitTorrent
  8127. downloads to lower CPU usage.
  8128. * src/PeerInteractionCommand.cc
  8129. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Fixed broken gzip inflation.
  8131. Turn off segmented downloading if gzip content is smaller than or equal
  8132. to 1MiB and inflate the data on the fly, because HTTP response header
  8133. doesn't contain the length of inflated file we can't determin where
  8134. the chunk of data should be written.
  8135. On the other hand, if gzip content is larger than 1MB, then turn off
  8136. on the fly inflation, because some servers returns "content-type: gzip"
  8137. for *.tgz, *.gz files.
  8138. * src/DownloadCommand.cc
  8139. * src/HttpResponseCommand.cc
  8140. * src/HttpResponseCommand.h
  8141. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Applied tizianomueller's patch to fix compile error.
  8143. * test/BitfieldManTest.cc
  8144. * test/BtRequestMessageTest.cc
  8145. * test/DefaultBtContextTest.cc
  8146. * test/DefaultDiskWriterTest.cc
  8147. * test/DefaultPieceStorageTest.cc
  8148. * test/HttpHeaderProcessorTest.cc
  8149. * test/HttpResponseTest.cc
  8150. * test/Metalink2RequestGroupTest.cc
  8151. * test/MetalinkParserControllerTest.cc
  8152. * test/MetalinkProcessorTest.cc
  8153. * test/PeerSessionResourceTest.cc
  8154. * test/UtilTest.cc
  8155. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. * Release 0.15.0
  8157. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Reordered src files in POTFILES.in so that usage text appears first.
  8159. * po/POTFILES.in
  8160. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Bump up version number to 0.15.0
  8162. * configure.ac
  8163. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Added Bulgarian translation.
  8165. Updated Catalan, Spanish, French and Japanese translations.
  8166. Thanks to all translators.
  8167. * po/LINGUAS
  8168. * po/bg.po
  8169. * po/ca.po
  8170. * po/es.po
  8171. * po/fr.po
  8172. * po/ja.po
  8173. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Updated feature list. Added libz for dependency section.
  8175. Added a description about unit testing using CppUnit.
  8176. * README
  8177. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Added a test for libz. Quoted where it is necessary.
  8179. * build_test.sh
  8180. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Added GZip to `Enabled Features' list.
  8182. * src/FeatureConfig.cc
  8183. * src/FeatureConfig.h
  8184. * test/FeatureConfigTest.cc
  8185. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8187. the transfer has not yet started.
  8188. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8189. * src/SegmentMan.cc
  8190. * src/SegmentMan.h
  8191. * test/SegmentManTest.cc
  8192. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Cache last calculated average download/upload speed.
  8194. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8195. cached value.
  8196. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8197. * src/PeerStat.h
  8198. * src/SpeedCalc.cc
  8199. * src/SpeedCalc.h
  8200. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Call parseUrl directly.
  8202. * src/Request.cc (resetUrl)
  8203. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Supported absolute/relative path in Location header field.
  8205. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8206. * src/HttpHeader.cc
  8207. * src/HttpHeader.h
  8208. * src/HttpResponse.cc
  8209. * src/HttpSkipResponseCommand.cc
  8210. * src/Request.cc
  8211. * test/HttpHeaderTest.cc
  8212. * test/HttpResponseTest.cc
  8213. * test/RequestTest.cc
  8214. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8215. Changed help text for --load-cookie option.
  8216. * doc/aria2c.1.txt
  8217. * src/usage_text.h
  8218. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Regenerated test/Makefile.in to remove stale ChangeLog.
  8220. * test/Makefile.in
  8221. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Updated po files.
  8223. * po/aria2c.pot
  8224. * po/*.po
  8225. * po/*.gmo
  8226. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Bump up version number to 0.15.0b
  8228. * configure.ac
  8229. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Externalize messages.
  8231. * src/RequestGroupMan.cc
  8232. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8233. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8234. Use File::exists() instead of File::isFile() to allow non-regular file
  8235. such as block special files.
  8236. * src/AbstractDiskWriter.cc
  8237. * src/MultiDiskWriter.cc
  8238. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8240. * src/gai_strerror.h
  8241. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Fixed compile error. Thanks gknauf for the patch.
  8243. * src/asctime_r.c
  8244. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Included asctime_r.h from a2time.h.
  8246. * src/a2time.h
  8247. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Added a message "aria2 doesn't verify signature" to log message when
  8249. signature file is saved.
  8250. * src/RequestGroupMan.cc
  8251. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Added the ability to save signature when download is completed if
  8253. signature is available. The filename of signature file is the path to
  8254. download file followed by ".sig". If it already exists, then signature
  8255. will not be saved.
  8256. * src/RequestGroupMan.cc
  8257. * src/Signature.cc
  8258. * test/SignatureTest.cc
  8259. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Updated the descriptions for --bt-seed-unverified.
  8261. * doc/aria2c.1
  8262. * doc/aria2c.1.html
  8263. * doc/aria2c.1.txt
  8264. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8266. that this is not going to verify files using piece hashes.
  8267. * src/HelpItemFactory.cc
  8268. * src/OptionHandlerFactory.cc
  8269. * src/RequestGroup.cc
  8270. * src/option_processing.cc
  8271. * src/prefs.cc
  8272. * src/prefs.h
  8273. * src/usage_text.h
  8274. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Added the ability to retrieve signature from Metalink file.
  8276. A retrieved signature is stored in Signature class and it is held by
  8277. DownloadContext class. Note that aria2 doesn't verify signature.
  8278. * src/DownloadContext.cc
  8279. * src/DownloadContext.h
  8280. * src/Makefile.am
  8281. * src/Makefile.in
  8282. * src/Metalink2RequestGroup.cc
  8283. * src/MetalinkEntry.cc
  8284. * src/MetalinkEntry.h
  8285. * src/MetalinkParserController.cc
  8286. * src/MetalinkParserController.h
  8287. * src/MetalinkParserStateMachine.cc
  8288. * src/MetalinkParserStateMachine.h
  8289. * src/Signature.cc
  8290. * src/Signature.h
  8291. * src/SignatureMetalinkParserState.cc
  8292. * src/SignatureMetalinkParserState.h
  8293. * src/VerificationMetalinkParserState.cc
  8294. * src/VerificationMetalinkParserState.h
  8295. * test/Metalink2RequestGroupTest.cc
  8296. * test/MetalinkParserControllerTest.cc
  8297. * test/MetalinkProcessorTest.cc
  8298. * test/test.xml
  8299. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Close DiskAdaptor after renaming file.
  8301. * src/RequestGroup.cc
  8302. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Corrected indentation
  8304. * src/DefaultBtProgressInfoFile.cc
  8305. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Moved the calls of std::ios::exceptions() inside of try-catch block
  8307. because if an error occurred in constructor of std::fstream, then
  8308. exception is thrown immediately when std::ios::exceptions() is called
  8309. which results unhandled exception and aria2c aborts.
  8310. * src/DefaultBtProgressInfoFile.cc
  8311. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Added the test for the previous change in DefaultBtContext.cc
  8313. * test/DefaultBtContextTest.cc
  8314. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Fixed the bug that causes infinite loop when the number of pieces are
  8316. fewer than allowed fast set size which is 10 by default.
  8317. * src/DefaultBtContext.cc
  8318. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Updated the descriptions for -j, -s. Added --bt-seed.
  8320. * doc/aria2c.1
  8321. * doc/aria2c.1.html
  8322. * doc/aria2c.1.txt
  8323. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8325. aria2 seeds previously downloaded files without validating piece hashs.
  8326. * src/HelpItemFactory.cc
  8327. * src/OptionHandlerFactory.cc
  8328. * src/RequestGroup.cc
  8329. * src/option_processing.cc
  8330. * src/prefs.cc
  8331. * src/prefs.h
  8332. * src/usage_text.h
  8333. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Updated DESCRIPTION of man page.
  8335. * doc/aria2c.1
  8336. * doc/aria2c.1.html
  8337. * doc/aria2c.1.txt
  8338. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8340. Don't define `struct addrinfo' when __sun is defined.
  8341. * src/getaddrinfo.h
  8342. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8344. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8345. second argument is of type `struct _stati64'. Otherwise it is defined as
  8346. `struct stat'.
  8347. * src/AbstractDiskWriter.cc
  8348. * src/File.cc
  8349. * src/File.h
  8350. * src/a2io.h
  8351. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Fixed the compile error in hurd-i386
  8353. See the original bug report:
  8354. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8355. * src/a2io.h
  8356. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Code cleanup.
  8358. * src/PeerAbstractCommand.cc
  8359. * src/PeerAbstractCommand.h
  8360. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Removed TransferEncoding.
  8362. * src/DownloadCommand.cc
  8363. * src/DownloadCommand.h
  8364. * src/HttpResponseCommand.cc
  8365. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Updated po files.
  8367. * po/aria2c.pot
  8368. * po/*.po
  8369. * po/*.gmo
  8370. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8372. * src/A2STR.cc
  8373. * src/A2STR.h
  8374. * src/ChunkedDecoder.cc
  8375. * src/ChunkedDecoder.h
  8376. * src/ChunkedEncoding.cc: Removed
  8377. * src/ChunkedEncoding.h: Removed
  8378. * src/DownloadCommand.cc
  8379. * src/DownloadCommand.h
  8380. * src/HttpDownloadCommand.cc
  8381. * src/HttpResponse.cc
  8382. * src/HttpResponse.h
  8383. * src/HttpResponseCommand.cc
  8384. * src/HttpSkipResponseCommand.cc
  8385. * src/HttpSkipResponseCommand.h
  8386. * src/Makefile.am
  8387. * src/TransferEncoding.h: Removed
  8388. * test/ChunkedDecoderTest.cc
  8389. * test/ChunkedEncodingTest.cc: Removed
  8390. * test/HttpResponseTest.cc
  8391. * test/Makefile.am
  8392. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Use append instead of insert.
  8394. * src/GZipDecoder.cc
  8395. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Updated doc
  8397. * src/Decoder.h
  8398. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Updated usage text for -s option.
  8400. * src/usage_text.h
  8401. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8403. * src/Request.cc
  8404. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Cleaned up configure.ac.
  8406. * configure.ac
  8407. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8409. AC_ARG_ENABLE.
  8410. * configure.ac
  8411. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8413. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8414. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8415. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8416. fly and writes decoded data to a local disk.
  8417. * README
  8418. * README.html
  8419. * configure.ac
  8420. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8421. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8422. * m4/libz.m4
  8423. * src/Decoder.h
  8424. * src/DownloadCommand.cc
  8425. * src/DownloadCommand.h
  8426. * src/Exception.h
  8427. * src/GZipDecoder.cc
  8428. * src/GZipDecoder.h
  8429. * src/HttpHeader.cc
  8430. * src/HttpHeader.h
  8431. * src/HttpRequest.cc
  8432. * src/HttpRequest.h
  8433. * src/HttpResponse.cc
  8434. * src/HttpResponse.h
  8435. * src/HttpResponseCommand.cc
  8436. * src/Makefile.am
  8437. * test/GZipDecoderTest.cc
  8438. * test/HttpRequestTest.cc
  8439. * test/HttpResponseTest.cc
  8440. * test/Makefile.am
  8441. * test/Makefile.in
  8442. * test/gzip_decode_test.gz
  8443. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Clarified usage of -j option.
  8445. * src/usage_text.h
  8446. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Disabled getting size from the response of RETR.
  8448. If SIZE command failed, then disable resuming and segmented downloading.
  8449. * src/FtpConnection.cc
  8450. * src/FtpConnection.h
  8451. * src/FtpNegotiationCommand.cc
  8452. * src/FtpNegotiationCommand.h
  8453. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Use digits to find first byte of file size, which makes the intention
  8455. of the code clearer.
  8456. * src/FtpConnection.cc
  8457. Don't call validateTotalLength() when size is 0.
  8458. * src/FtpNegotiationCommand.cc
  8459. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Updated po files.
  8461. * po/aria2c.pot
  8462. * po/*.gmo
  8463. * po/*.po
  8464. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Clarified usage text for --split option.
  8466. * src/usage_text.h
  8467. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Bump up version number to 0.15.0dev. "dev" means "development"
  8469. version, which means I started the development of the next release!
  8470. * src/configure.ac
  8471. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. If FTP server returns negative response with REST raw command and
  8473. requested range is not 0, throw exception. If requested range is 0,
  8474. continue download a file from 0 byte.
  8475. * src/FtpNegotiationCommand.cc
  8476. * src/FtpNegotiationCommand.h
  8477. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Supported FTP server which don't recognize SIZE raw command.
  8479. If SIZE raw command is failed, aria2 will try to get file size
  8480. from the response of RETR raw command. If both attempts are failed,
  8481. then resuming and segmented downloading are disabled.
  8482. * src/FtpConnection.cc
  8483. * src/FtpConnection.h
  8484. * src/FtpNegotiationCommand.cc
  8485. * src/FtpNegotiationCommand.h
  8486. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. * Release 0.14.0+1
  8488. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Bump up version number to 0.14.0+1
  8490. * src/configure.ac
  8491. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Fixed the code that refers static member variable from non-static
  8493. context.
  8494. * src/DefaultPeerStorage.cc
  8495. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. * Release 0.14.0
  8497. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Added build test script
  8499. * build_test.sh
  8500. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Updated ja.po
  8502. * src/ja.po
  8503. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Bump up version number to 0.14.0
  8505. * src/configure.ac
  8506. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Updated ja.po and fr.po. Great thanks for french translators and
  8508. Sebastien WILLEMIJNS.
  8509. * po/fr.po
  8510. * po/ja.po
  8511. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Added configure option to enable/disable epoll support.
  8513. * configure.ac
  8514. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Updated man page.
  8516. * doc/aria2c.1.txt
  8517. * doc/aria2c.1
  8518. * doc/aria2c.1.html
  8519. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Added missing default value '5' to the usage of --split option.
  8521. * src/HelpItemFactory.cc
  8522. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Filled up pieces based on the number of missing blocks, rather than
  8524. simplay the number of piece * block length.
  8525. * src/BtRequestFactory.h
  8526. * src/DefaultBtInteractive.cc
  8527. * src/DefaultBtInteractive.h
  8528. * src/DefaultBtRequestFactory.cc
  8529. * src/DefaultBtRequestFactory.h
  8530. * src/Piece.cc
  8531. * src/Piece.h
  8532. * test/BitfieldManTest.cc
  8533. * test/DefaultBtRequestFactoryTest.cc
  8534. * test/MockBtRequestFactory.h
  8535. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8536. Made _epEvents a member variable.
  8537. * src/DownloadEngine.cc
  8538. * src/DownloadEngine.h
  8539. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Cancel download if http redirect is bounded more than 20 times.
  8541. * src/AbstractCommand.cc
  8542. * src/HttpSkipResponseCommand.cc
  8543. * src/Request.cc
  8544. * src/Request.h
  8545. * test/RequestTest.cc
  8546. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Fixed unhandled exception(removed keyword `new').
  8548. * src/SocketCore.cc (initEPOLL)
  8549. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Removed visit(const MetaEntry*)
  8551. * src/MetaEntryVisitor.h:
  8552. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8553. and made them virtual.
  8554. * src/BencodeVisitor.h
  8555. * src/BencodeVisitor.cc
  8556. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Updated po files.
  8558. * po/aria2c.pot
  8559. * po/*.po
  8560. * po/*.gmo
  8561. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8563. the number of socket to watch out.
  8564. * src/PeerInteractionCommand.cc
  8565. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. When there is not enough space in disk when writing a chunk of data,
  8567. aria2 now prints the message to the console to warn user and aborts
  8568. its download. Not all downloads are canceled because some downloads
  8569. may use another disk or partition. BUG#1640332
  8570. * src/AbstractDiskWriter.cc
  8571. * src/PeerAbstractCommand.cc
  8572. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8573. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8574. setHaltRequested(true) to cancel download.
  8575. * src/PeerInteractionCommand.h
  8576. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8577. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8578. socket from int to sock_t as sockets are unsigned in Windows.
  8579. For AsyncNameResolver, DownloadEngine, I did additional modification
  8580. for the portion of the code changed according to epoll support.
  8581. I defined sock_t in a2netcompat.h to use sock_t without including
  8582. SocketCore.h.
  8583. * src/AsyncNameResolver.cc
  8584. * src/AsyncNameResolver.h
  8585. * src/DownloadEngine.cc
  8586. * src/DownloadEngine.h
  8587. * src/SocketCore.cc
  8588. * src/SocketCore.h
  8589. * src/a2netcompat.h
  8590. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8592. changes in the patch were applied.
  8593. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8594. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8595. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8596. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8598. a2io.h and common.h were modified.
  8599. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8600. MinGW.
  8601. * src/common.h: Changed off_t to 64 bit in MinGW.
  8602. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8604. only a2netcompat.h is modified.
  8605. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8606. directives.
  8607. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8609. only gai_strerror.h is modified.
  8610. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8611. winsock errors in MinGW.
  8612. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8614. follow sources are applied.
  8615. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8616. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8617. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8618. I included locale.h from Platform.cc.
  8619. * src/main.cc: Moved common setup/teardown code to Platform class.
  8620. * test/AllTest.cc: Use Platform class.
  8621. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8622. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8624. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8625. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8626. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8628. aria2-0.13.2+1-mingw-2.patch.
  8629. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8630. systems which don't have termious.h. I moved the directive inside of
  8631. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8632. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8633. anyway.
  8634. * src/asctime_r.h
  8635. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8636. I added 2nd argument to the prototype declaration.
  8637. * src/StringFormat.cc: Get rid of vasprintf.
  8638. * src/getaddrinfo.h: Fixed constants.
  8639. * configure.ac: Added the check for asctime_r function.
  8640. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8641. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Added writable test for Socket when the sending message is in progress.
  8643. Usually the sending message is piece message. Without wriable check,
  8644. upload latency is dropped to more than 1sec.
  8645. * src/PeerInteractionCommand.cc
  8646. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Create only requested files and files which shares a piece with
  8648. requested file in multi-torrent downloads. Directory structures are
  8649. also created in the same rule.
  8650. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8651. DiskWriterEntry as in the previous implementation.
  8652. * src/MultiDiskWriter.cc
  8653. * src/MultiFileAllocationIterator.cc
  8654. * src/MultiFileAllocationIterator.h
  8655. * test/MultiFileAllocationIteratorTest.cc
  8656. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Commented out -lprofiler
  8658. * src/Makefile.am
  8659. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Bump up version number to 0.14.0b.
  8661. * src/configure.ac
  8662. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Actively establish connection to peers in seeding, when peer cache
  8664. is not full and max upload speed limit is not reached.
  8665. * src/ActivePeerConnectionCommand.cc
  8666. * src/ActivePeerConnectionCommand.h
  8667. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8669. to make room more fleshy, recently found peers.
  8670. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8671. it.
  8672. * src/DefaultPeerStorage.cc
  8673. * test/DefaultPeerStorageTest.cc
  8674. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Returns cached data only when the previous receiveHandshake() is called
  8676. with peek = true.
  8677. * src/PeerConnection.cc (receiveHandshake)
  8678. * src/PeerConnection.h (receiveHandshake)
  8679. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Changed default value of -s option from 1 to 5.
  8681. Also max value of -s option is changed from 5 to 16.
  8682. * src/HelpItemFactory.cc
  8683. * src/OptionHandlerFactory.cc
  8684. * src/option_processing.cc
  8685. * src/usage_text.h
  8686. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Changed -s options behavior. Now it means the number of connections
  8688. made simultaneously in each http/ftp download.
  8689. If 1 URL is specified, the behavior is the same with old implementation.
  8690. If -s N is given and more than N URLs are specified, first N URLs are
  8691. used and remaining URLs are used for backup. If less than N URLs are
  8692. specified, some of URLs are used more than once so that totally N
  8693. connections are made simultaneously.
  8694. * src/main.cc
  8695. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Included missing iosfwd or ostream header.
  8697. * src/RequestGroupMan.cc
  8698. * src/TaggedItem.cc
  8699. * src/TaggedItem.h
  8700. * src/Util.cc
  8701. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8703. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8704. * src/HttpConnection.cc: Included missing sstream.
  8705. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Added --bt-max-open-files option.
  8707. * src/DefaultPieceStorage.cc
  8708. * src/HelpItemFactory.cc
  8709. * src/MultiDiskAdaptor.cc
  8710. * src/MultiDiskAdaptor.h
  8711. * src/OptionHandlerFactory.cc
  8712. * src/option_processing.cc
  8713. * src/prefs.cc
  8714. * src/prefs.h
  8715. * src/usage_text.h
  8716. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Fixed the bug that aria2 aborts when a path to a directory is given
  8718. in command-line.
  8719. * src/ProtocolDetector.cc
  8720. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Limited the number files opened in each BitTorrent download. The default
  8722. value is 100. The option to change this value will be added.
  8723. * src/MultiDiskAdaptor.cc
  8724. * src/MultiDiskAdaptor.h
  8725. * src/MultiFileAllocationIterator.cc
  8726. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Fixed the bug that HTTP downloads don't start with old libraries.
  8728. * src/HttpHeaderProcessor.cc
  8729. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Use empty() instead of size() > 0.
  8731. * src/HttpConnection.cc
  8732. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Drop connection if the incoming peer ID is the same with localhost's
  8734. one. The previous implementation drops connection when incoming peer's
  8735. IP address is the same with localhost's one.
  8736. * src/PeerListenCommand.cc
  8737. * src/DefaultBtInteractive.cc
  8738. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Returns cached data without checking whether socket is readable
  8740. if the cache is available.
  8741. * src/PeerConnection.cc (receiveHandshake)
  8742. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Included stdint.h
  8744. * src/common.h
  8745. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Removed duplicate HAVE_GETTIMEOFDAY
  8747. * src/Makefile.am
  8748. * src/Makefile.in
  8749. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Use interval as a minInterval when minInterval is not supplied.
  8751. * src/DefaultBtAnnounce.cc
  8752. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8754. attempt is failed, then 2nd attempt get kicked out more quickly.
  8755. And it is now static const member of DefaultBtAnnounce.
  8756. * src/DefaultBtAnnounce.h
  8757. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8759. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8760. * src/ActivePeerConnectionCommand.cc
  8761. * src/BtConstants.h
  8762. * src/BtRuntime.h
  8763. * src/DHTGetPeersCommand.cc
  8764. * src/DefaultBtAnnounce.cc
  8765. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8766. BtRuntime::MAX_PEERS.
  8767. * src/DefaultPeerStorage.h
  8768. * src/InitiatorMSEHandshakeCommand.cc
  8769. * src/PeerInitiateConnectionCommand.cc
  8770. * src/PeerInteractionCommand.cc
  8771. * src/PeerReceiveHandshakeCommand.cc
  8772. * src/TrackerWatcherCommand.cc
  8773. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Always Connect to _numNewConnection
  8775. * src/ActivePeerConnectionCommand.cc
  8776. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Made `begin' unsigned int.
  8778. * src/GrowSegment.h
  8779. * src/Piece.cc
  8780. * src/Piece.h
  8781. * src/PiecedSegment.cc
  8782. * src/PiecedSegment.h
  8783. * src/Segment.h
  8784. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Calculate piece hash when data is arrived if the data is arrived in
  8786. order. This removes additional read operation for hash calculation.
  8787. If the data is arrived in out of order, the hash is calucated when the
  8788. piece is completed. This is the same behavior as the old implementation.
  8789. * src/BtPieceMessage.cc
  8790. * src/DefaultBtProgressInfoFile.cc
  8791. * src/DefaultPieceStorage.cc
  8792. * src/DownloadCommand.cc
  8793. * src/DownloadCommand.h
  8794. * src/DownloadEngine.cc
  8795. * src/GrowSegment.cc
  8796. * src/GrowSegment.h
  8797. * src/Piece.cc
  8798. * src/Piece.h
  8799. * src/PiecedSegment.cc
  8800. * src/PiecedSegment.h
  8801. * src/Segment.h
  8802. * test/PieceTest.cc
  8803. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Try to keep the ordering of outgoing piece message.
  8805. * src/DefaultBtMessageDispatcher.cc
  8806. (DefaultBtMessageDispatcher::sendMessages)
  8807. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Fixed busy loop when error/hup epoll events occur.
  8809. * src/AbstractCommand.cc
  8810. * src/PeerAbstractCommand.cc
  8811. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Added --bt-request-peer-speed-limit option, which was a constant
  8813. SLOW_SPEED_THRESHOLD.
  8814. * src/ActivePeerConnectionCommand.cc
  8815. * src/ActivePeerConnectionCommand.h
  8816. * src/BtConstants.h
  8817. * src/HelpItemFactory.cc
  8818. * src/OptionHandlerFactory.cc
  8819. * src/PeerReceiveHandshakeCommand.cc
  8820. * src/option_processing.cc
  8821. * src/prefs.cc
  8822. * src/prefs.h
  8823. * src/usage_text.h
  8824. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Removed repeated call of getTopDirPath(). Instead, call it once and
  8826. cache the result.
  8827. * src/MultiDiskAdaptor.cc
  8828. * src/MultiDiskAdaptor.h
  8829. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8830. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Fixed compile error on debian etch.
  8832. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8833. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8834. it is undefined.
  8835. * src/Util.cc (ULLONG_MAX)
  8836. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Added epoll support. Use epoll if it is available. If not, use select.
  8838. When async dns is enabled in compile time, epoll support is enabled
  8839. only when aria2 is built with c-ares. This condition statement is
  8840. defined in a2io.h.
  8841. Currently aria2 supports both c-ares and ares, but ares is maintained
  8842. for quite a while and debian already has c-ares package, ares support
  8843. will be dropped in the future version.
  8844. * configure.ac
  8845. * src/AbstractCommand.cc
  8846. * src/AsyncNameResolver.cc
  8847. * src/AsyncNameResolver.h
  8848. * src/Command.cc
  8849. * src/Command.h
  8850. * src/DownloadEngine.cc
  8851. * src/DownloadEngine.h
  8852. * src/PeerAbstractCommand.cc
  8853. * src/SocketCore.cc
  8854. * src/SocketCore.h
  8855. * src/a2io.h
  8856. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8858. directive.
  8859. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Do not do write operation to /dev/null file.
  8861. * src/LogFactory.cc
  8862. * src/SimpleLogger.cc
  8863. Replaced vasprintf with vsnprintf
  8864. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8865. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. * src/BtRequestMessage.cc
  8867. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8868. for segmentation fault caused by previous commit.
  8869. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Reduced the usage of gettimeofday().
  8871. * src/DefaultBtMessageDispatcher.cc
  8872. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8873. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8874. * src/RequestSlot.cc
  8875. * src/RequestSlot.h
  8876. (RequestSlot::isTimeout)
  8877. Made RequestSlot have a reference to Piece object to avoid find
  8878. Piece repeatedly.
  8879. * src/DefaultBtMessageDispatcher.cc
  8880. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8881. * src/RequestSlot.cc
  8882. * src/RequestSlot.h
  8883. (RequestSlot::getPiece)
  8884. * test/DefaultBtMessageDispatcherTest.cc
  8885. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. * src/TimeA2.cc
  8887. * src/TimeA2.h
  8888. (Time::difference): New function.
  8889. (Time::elapsed): Done optimization.
  8890. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8892. directive.
  8893. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. * src/option_processing.cc: Added missing `defined' keyword to #if
  8895. directive.
  8896. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Bump up version number to 0.13.2+1
  8898. * src/configure.ac
  8899. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Refactored broken outstanding piece handling.
  8901. * src/DefaultPieceStorage.cc
  8902. * src/DefaultPieceStorage.h
  8903. * src/Piece.cc
  8904. * src/Piece.h
  8905. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8907. name collision of static variable and predefined macro.
  8908. * src/BtContext.cc
  8909. * src/BtContext.h
  8910. * src/CookieBoxFactory.cc
  8911. * src/CookieBoxFactory.h
  8912. * src/CookieParser.cc
  8913. * src/CookieParser.h
  8914. * src/DefaultBtContext.cc
  8915. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. * src/RequestGroup.cc
  8917. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8918. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. * Release 0.13.2
  8920. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8922. * po/fr.po
  8923. * po/ja.po
  8924. * po/aria2c.pot
  8925. * po/*.po
  8926. * po/*.gmo
  8927. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Bump up version number to 0.13.2
  8929. * src/configure.ac
  8930. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Refactord.
  8932. * src/RequestGroupMan.cc
  8933. (removeStoppedGroup)
  8934. (fillRequestGroupFromReserver)
  8935. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Fixed compile error on Ubuntu.
  8937. * src/BtPieceMessage.cc
  8938. * src/MessageDigestHelper.cc
  8939. * src/Util.cc
  8940. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Fixed compile error when configured with --disable-bittorrent
  8942. * test/DownloadHandlerFactoryTest.cc
  8943. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Done make update-po
  8945. * po/aria2c.pot
  8946. * po/*.po
  8947. * po/*.gmo
  8948. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Bump up version number to 0.13.2rc.
  8950. * src/configure.ac
  8951. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Made option name bold. Updated SYNOPSIS to make it more readable.
  8953. * doc/aria2c.1.txt
  8954. * doc/aria2c.1
  8955. * doc/aria2c.1.html
  8956. * src/version_usage.cc
  8957. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Refactored. Use std::string instead of size and char*.
  8959. * Data.cc
  8960. * Data.h
  8961. * test/Data.cc
  8962. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Added trimSelf(). Rewritten trim() to use trimSelf().
  8964. * Util.cc
  8965. * Util.h
  8966. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8968. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Fixed compile error when configured with --disable-metalink.
  8970. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8971. * test/FeatureConfigTest.cc
  8972. * test/DownloadHandlerFactoryTest.cc
  8973. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Fixed compile error when configured with --without-gnutls
  8975. --without-openssl
  8976. * src/main.cc
  8977. * test/DefaultBtProgressInfoFileTest.cc
  8978. * test/SegmentManTest.cc
  8979. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Fixed compile error with OpenSSL.
  8981. * src/IteratableChunkChecksumValidator.cc
  8982. * src/LibsslDHKeyExchange.h
  8983. * src/MessageDigestHelper.cc
  8984. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Revert the default value of --max-concurrent-downloads to 5.
  8986. Revert the default value of --metalink-servers to 5.
  8987. Man pages was also updated.
  8988. * src/option_processing.cc
  8989. * doc/aria2c.1.txt
  8990. * doc/aria2c.1.html
  8991. * doc/aria2c.1
  8992. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. Returns const reference:
  8994. DownloadContext::getPieceHash, DownloadContext::getName,
  8995. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8996. BtContext::getInfoHashAsString,
  8997. * src/BtContext.h
  8998. * src/DefaultBtContext.cc
  8999. * src/DefaultBtContext.h
  9000. * src/DownloadContext.h
  9001. * src/SingleFileDownloadContext.h
  9002. * test/MockBtContext.h
  9003. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. * src/RequestGroup.h (getDir): Removed.
  9005. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Returns const reference. The internal urlencode function was optimized
  9007. a little bit.
  9008. * src/Request.cc
  9009. * src/Request.h
  9010. * src/HttpRequest.cc
  9011. * src/HttpRequest.h
  9012. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Defined option name and possible values as std::string to reduce
  9014. temporary string object creation in runtime.
  9015. * src/HelpItemFactory.cc
  9016. * src/LogFactory.cc
  9017. * src/Option.cc
  9018. * src/OptionHandlerFactory.cc
  9019. * src/option_processing.cc
  9020. * src/prefs.cc
  9021. * src/prefs.h
  9022. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Return const reference.
  9024. * src/DownloadHandlerConstants.cc
  9025. * src/DownloadHandlerConstants.h
  9026. (getMetalinkExtensions)
  9027. (getMetalinkContentTypes)
  9028. (getBtExtensions)
  9029. (getBtContentTypes)
  9030. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. * src/HttpHeader.cc (get): Rewritten.
  9032. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Make HttpHeader::getFirst(...) return const reference.
  9034. * src/HttpHeader.cc
  9035. * src/HttpHeader.h
  9036. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9038. it with V_TRUE.
  9039. * src/DefaultPieceStorage.cc
  9040. * src/DownloadCommand.cc
  9041. * src/FtpNegotiationCommand.cc
  9042. * src/HttpRequest.cc
  9043. * src/InitiateConnectionCommand.cc
  9044. * src/RequestGroup.cc
  9045. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Made Option::get(...) return const reference of std::string.
  9047. * src/Option.cc
  9048. * src/Option.h
  9049. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Replaced std:copy with insert.
  9051. * src/DefaultBtMessageDispatcher.cc
  9052. * src/DefaultPieceStorage.cc
  9053. * src/DownloadEngineFactory.cc
  9054. * src/RequestGroup.cc
  9055. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Included SocketCore.h to fix compiler warning.
  9057. * src/InitiateConnectionCommand.cc
  9058. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Put piece selection strategy algorithm to RarestPieceSelector class,
  9060. Added a switch to choose whether randomized selection so that unit
  9061. tests emit same results in, possibly, win32.
  9062. * src/DefaultPieceStorage.cc
  9063. * src/DefaultPieceStorage.h
  9064. * src/RarestPieceSelector.cc
  9065. * src/RarestPieceSelector.h
  9066. * test/DefaultPieceStorageTest.cc
  9067. * test/RarestPieceSelectorTest.cc
  9068. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Don't pool connection if HTTP proxy is enabled.
  9070. * src/FtpFinishDownloadCommand.cc
  9071. * src/FtpNegotiationCommand.cc
  9072. * src/HttpSkipResponseCommand.cc
  9073. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9075. * src/AbstractCommand.cc
  9076. * src/AbstractCommand.h
  9077. * src/ActivePeerConnectionCommand.cc
  9078. * src/FtpInitiateConnectionCommand.cc
  9079. * src/HttpInitiateConnectionCommand.cc
  9080. * src/InitiateConnectionCommandFactory.cc
  9081. * src/PeerAbstractCommand.cc
  9082. * src/PeerAbstractCommand.h
  9083. * src/PeerInitiateConnectionCommand.cc
  9084. * src/TrackerWatcherCommand.cc
  9085. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Sort RequestSlot in ascending order and manipulate them using
  9087. lower_bound.
  9088. * src/DefaultBtMessageDispatcher.cc
  9089. * src/DefaultBtMessageDispatcher.h
  9090. (getMessageQueue): Added const qualifier.
  9091. (getRequestSlots): Added const qualifier.
  9092. (sendMessages): Use empty() instead of size().
  9093. (doCancelSendingPieceAction): Use HandleEvent object.
  9094. (doAbortOutstandingRequestAction): Rewritten.
  9095. (doChokedAction): Rewritten.
  9096. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9097. (isOutstandingRequest): Rewritten.
  9098. (getOutstandingRequest): Rewritten.
  9099. (removeOutstandingRequest): Rewritten.
  9100. (addOutstandingRequest): Rewritten.
  9101. * src/RequestSlot.cc
  9102. * src/RequestSlot.h
  9103. (operator=): Rewritten.
  9104. (operator!=): New function.
  9105. (operator<): New function.
  9106. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. * src/DefaultBtRequestFactory.cc
  9108. (doChokedAction): Rewritten.
  9109. (removeCompletedPiece): Rewritten.
  9110. (removeTargetPiece): Rewritten.
  9111. (createRequestMessages): Added the debug log.
  9112. (createRequestMessagesOnEndGame: Added the debug log.
  9113. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Added the debug log message.
  9115. * src/BtPieceMessage.cc (doReceivedAction)
  9116. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9118. used lower_bound to process them rather than linear search.
  9119. * src/DHTPeerAnnounceStorage.cc
  9120. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9122. peer has at least one completed piece.
  9123. * src/Peer.cc
  9124. * src/Peer.h
  9125. * src/PeerInteractionCommand.cc
  9126. * src/PeerSessionResource.cc
  9127. * src/PeerSessionResource.h
  9128. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Removed unnecessary sorting
  9130. * src/DefaultPieceStorage (DefaultPieceStorage)
  9131. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Rewritten the portion of the code that mangaes allowed fast indexes.
  9133. * src/PeerSessionResource.cc
  9134. * src/PeerSessionResource.h
  9135. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Removed the invalid string including '\r' from ru.po and
  9137. did make update-po.
  9138. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Added --log-level and --summary-interval to man page.
  9140. * doc/aria2c.1.txt
  9141. * doc/aria2c.1.html
  9142. * doc/aria2c.1
  9143. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Added --log-level option to specify log level. Log messages under
  9145. the specified level are not output. Default value is `debug'.
  9146. * src/HelpItemFactory.cc
  9147. * src/LogFactory.cc
  9148. * src/LogFactory.h
  9149. * src/Logger.h
  9150. * src/OptionHandlerFactory.cc
  9151. * src/SimpleLogger.cc
  9152. * src/SimpleLogger.h
  9153. * src/main.cc
  9154. * src/option_processing.cc
  9155. * src/prefs.h
  9156. * src/usage_text.h
  9157. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Print download progress summary of all parallel downloads in specified
  9159. interval, default 60 secs. While aria2 could download several files
  9160. in parallel (see -j option), it displayed just first download progress,
  9161. and the other downloads are hidden from the users. This new feature
  9162. prints all downloads currently in-progress to the console so that you
  9163. can check the status of all downloads. The interval can be adjusted
  9164. by --summary-interval option.
  9165. The progress readout is now cut so that all fits in the one line of
  9166. console.
  9167. * src/ConsoleStatCalc.cc
  9168. * src/ConsoleStatCalc.h
  9169. * src/HelpItemFactory.cc
  9170. * src/OptionHandlerFactory.cc
  9171. * src/RequestGroupMan.cc
  9172. * src/RequestGroupMan.h
  9173. * src/main.cc
  9174. * src/option_processing.cc
  9175. * src/prefs.h
  9176. * src/usage_text.h
  9177. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9179. * src/DownloadEngine.cc (DownloadEngine)
  9180. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9182. defined.
  9183. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9184. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Use erase+lower_bound+insert instead of sort.
  9186. * src/DefaultPieceStorage.cc (addPieceStats)
  9187. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9189. * src/A2STR.cc
  9190. * src/A2STR.h
  9191. * src/OptionParser.cc (parse)
  9192. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Defined fake filename `[tracker.announce]' as static const std::string.
  9194. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9195. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. Defined default filename `index.html' as static const std::string
  9197. * src/SingleFileDownloadContext.cc
  9198. * src/SingleFileDownloadContext.h
  9199. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Defined "[MEMORY]" as static const std::string.
  9201. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9202. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Defined control file's version number as static const std::string.
  9204. * src/DefaultBtProgressInfoFile.cc
  9205. * src/DefaultBtProgressInfoFile.h
  9206. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Use Request::METHOD_GET
  9208. * src/RequestGroup.cc (createNextCommandWithAdj)
  9209. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Defined "OK", "ERR", "INPR" as static const std::string
  9211. * src/RequestGroupMan.cc (showDownloadResults)
  9212. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Defined default client used in extended handshake as static const
  9214. std::string
  9215. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9216. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9218. * src/HttpConnection.cc (eraseConfidentialInfo)
  9219. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Defined default ftp user and password as static const std::string
  9221. * src/AuthConfigFactory.cc
  9222. * src/AuthConfigFactory.h
  9223. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Defined strings used in netrc as static const std::string
  9225. * src/Netrc.cc
  9226. * src/Netrc.h
  9227. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Defined HTTP status as static const std::string
  9229. * src/AbstractProxyResponseCommand.cc
  9230. * src/HttpHeader.cc
  9231. * src/HttpHeader.h
  9232. * src/HttpResponse.cc
  9233. * src/HttpResponseCommand.cc
  9234. * src/HttpSkipResponseCommand.cc
  9235. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Defined "\r\n", "A", "I" as static const std::string
  9237. * src/A2STR.cc
  9238. * src/A2STR.h
  9239. * src/FtpConnection.cc
  9240. * src/FtpConnection.h
  9241. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Added COLON_C(".") and used it in Request::parseUrl()
  9243. * src/A2STR.cc
  9244. * src/A2STR.h
  9245. * src/Request.cc (parseUrl)
  9246. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Changed the type of padName from `const std::string&' to `const char*'.
  9248. * src/MSEHandshake.cc (verifyPadLength)
  9249. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Defined "sha1" as static const std::string.
  9251. * src/MetalinkParserController.cc
  9252. * src/MetalinkParserController.h
  9253. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Defined message digest algorithm name as static const std::string
  9255. * src/DHTTokenTracker.cc
  9256. * src/DHTUtil.cc
  9257. * src/DefaultBtContext.cc
  9258. * src/MSEHandshake.cc
  9259. * src/MessageDigestHelper.cc
  9260. * src/Peer.cc
  9261. * src/messageDigest.cc
  9262. * src/messageDigest.h
  9263. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Made string literals used in SAX parser static const std::string.
  9265. * src/FileMetalinkParserState.cc
  9266. * src/FileMetalinkParserState.h
  9267. * src/FilesMetalinkParserState.cc
  9268. * src/FilesMetalinkParserState.h
  9269. * src/InitialMetalinkParserState.cc
  9270. * src/InitialMetalinkParserState.h
  9271. * src/MetalinkMetalinkParserState.cc
  9272. * src/MetalinkMetalinkParserState.h
  9273. * src/PiecesMetalinkParserState.cc
  9274. * src/PiecesMetalinkParserState.h
  9275. * src/ResourcesMetalinkParserState.cc
  9276. * src/ResourcesMetalinkParserState.h
  9277. * src/VerificationMetalinkParserState.cc
  9278. * src/VerificationMetalinkParserState.h
  9279. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9281. * src/A2STR.cc
  9282. * src/A2STR.h
  9283. * src/File.cc
  9284. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Defined static const std::string IP("ip"), PORT("port") and use them
  9286. instead of string literals.
  9287. * src/DefaultPeerListProcessor.cc
  9288. * src/DefaultPeerListProcessor.h
  9289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Made string literals for torrent file processing static const
  9291. std::string.
  9292. * src/BtContext.cc
  9293. * src/BtContext.h
  9294. * src/DefaultBtContext.cc
  9295. * src/DefaultBtContext.h
  9296. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Made string literal for tracker response static const std::string
  9298. * src/BtAnnounce.cc
  9299. * src/BtAnnounce.h
  9300. * src/DefaultBtAnnounce.cc
  9301. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Use DHTMessage::T instead of "t".
  9303. * src/DHTMessageTracker.cc (messageArrived)
  9304. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Made keyName static const. Made trimmed charset static const
  9306. std::string.
  9307. * src/Util.cc (getContentDispositionFilename)
  9308. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Made USER_AGENT const. Made "/" static const std::string.
  9310. * src/A2STR.cc
  9311. * src/A2STR.h
  9312. * src/HttpRequest.cc
  9313. * src/HttpRequest.h
  9314. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. Made string listeral to static const std::string:
  9316. "Content-Range", "Content-Length"
  9317. * src/HttpHeader.cc
  9318. * src/HttpHeader.h
  9319. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Made string listeral to static const std::string.
  9321. * src/HttpConnection.cc
  9322. * src/HttpHeader.cc
  9323. * src/HttpHeader.h
  9324. * src/HttpResponse.cc
  9325. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. Made string listeral to static const std::string.
  9327. * src/A2STR.cc
  9328. * src/A2STR.h
  9329. * src/SimpleLogger.cc
  9330. * src/SimpleLogger.h
  9331. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Made string literal to static const std::string.
  9333. Rewritten CookieParser::setField.
  9334. * src/A2STR.cc
  9335. * src/A2STR.h
  9336. * src/CookieBoxFactory.cc
  9337. * src/CookieBoxFactory.h
  9338. * src/CookieParser.cc
  9339. * src/CookieParser.h
  9340. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Made string literal to static const std::string
  9342. * src/DHTAbstractMessage.cc
  9343. * src/DHTAnnouncePeerMessage.cc
  9344. * src/DHTAnnouncePeerMessage.h
  9345. * src/DHTAnnouncePeerReplyMessage.cc
  9346. * src/DHTAnnouncePeerReplyMessage.h
  9347. * src/DHTFindNodeMessage.cc
  9348. * src/DHTFindNodeMessage.h
  9349. * src/DHTFindNodeReplyMessage.cc
  9350. * src/DHTFindNodeReplyMessage.h
  9351. * src/DHTGetPeersMessage.cc
  9352. * src/DHTGetPeersMessage.h
  9353. * src/DHTGetPeersReplyMessage.cc
  9354. * src/DHTGetPeersReplyMessage.h
  9355. * src/DHTMessage.cc
  9356. * src/DHTMessage.h
  9357. * src/DHTMessageFactoryImpl.cc
  9358. * src/DHTMessageReceiver.cc
  9359. * src/DHTPingMessage.cc
  9360. * src/DHTPingMessage.h
  9361. * src/DHTPingReplyMessage.cc
  9362. * src/DHTPingReplyMessage.h
  9363. * src/DHTQueryMessage.cc
  9364. * src/DHTQueryMessage.h
  9365. * src/DHTResponseMessage.cc
  9366. * src/DHTResponseMessage.h
  9367. * src/DHTUnknownMessage.cc
  9368. * src/DHTUnknownMessage.h
  9369. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Made string literal to static const std::string
  9371. * src/BtChokeMessage.cc (toString)
  9372. * src/BtHaveAllMessage.cc (toString)
  9373. * src/BtHaveNoneMessage.cc (toString)
  9374. * src/BtInterestedMessage.cc (toString)
  9375. * src/BtNotInterestedMessage.cc (toString)
  9376. * src/BtUnchokeMessage.cc (toString)
  9377. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Replaced "" with static const variable A2STR::NIL.
  9379. Replaced string comparison against "" with std::string::empty().
  9380. Added PROTO_* to Request class and use them as a protocol string
  9381. constant.
  9382. Made "started", "stopped", "completed" static const variable in
  9383. AnnounceList class.
  9384. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Updated translations. Great thanks to translators.
  9386. * po/ca.po
  9387. * po/de.po
  9388. * po/fr.po
  9389. * po/it.po
  9390. * po/ja.po
  9391. * po/ru.po
  9392. * po/zh_CN.po
  9393. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Updated man page; categorized options and fixed typo.
  9395. * doc/aria2c.1.txt
  9396. * doc/aria2c.1.html
  9397. * doc/aria2c.1
  9398. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Removed const ref
  9400. * src/MetalinkEntry.cc (AddProtocolPreference)
  9401. * src/RequestGroup.cc (FindServerHostByHostname)
  9402. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Rewritten Accept-Features handling.
  9404. * src/HttpRequestCommand.cc (createHttpRequest)
  9405. * src/a2functional.h
  9406. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Changed method signature:
  9408. DHTAbstractNodeLookupTask::toEntries
  9409. * src/DHTAbstractNodeLookupTask.cc
  9410. * src/DHTAbstractNodeLookupTask.h
  9411. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Changed method signature:
  9413. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9414. * src/BtContext.h
  9415. * src/DefaultBtContext.cc
  9416. * src/DefaultBtContext.h
  9417. * src/DefaultBtInteractive.cc
  9418. * test/DefaultBtContextTest.cc
  9419. * test/MockBtContext.h
  9420. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Changed method signature:
  9422. MultiFileAllocationIterator::makeDiskWriterEntries
  9423. * src/MultiFileAllocationIterator.cc
  9424. * src/MultiFileAllocationIterator.h
  9425. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Changed method sinature:
  9427. MetalinkEntry::toFileEntry,
  9428. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9429. Metalinker::queryEntry
  9430. * src/Metalink2RequestGroup.cc
  9431. * src/MetalinkEntry.cc
  9432. * src/MetalinkEntry.h
  9433. * src/MetalinkHelper.cc
  9434. * src/MetalinkHelper.h
  9435. * src/Metalinker.cc
  9436. * src/Metalinker.h
  9437. * src/main.cc
  9438. * test/MetalinkHelperTest.cc
  9439. * test/MetalinkerTest.cc
  9440. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Changed method sinature:
  9442. RequestGroup::getURIs
  9443. * src/RequestGroup.cc
  9444. * src/RequestGroup.h
  9445. * test/Metalink2RequestGroupTest.cc
  9446. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Changed method signature:
  9448. PeerListProcessor::extractPeer
  9449. * src/CompactPeerListProcessor.cc
  9450. * src/CompactPeerListProcessor.h
  9451. * src/DefaultBtAnnounce.cc
  9452. * src/DefaultPeerListProcessor.cc
  9453. * src/DefaultPeerListProcessor.h
  9454. * src/DelegatingPeerListProcessor.cc
  9455. * src/DelegatingPeerListProcessor.h
  9456. * src/PeerListProcessor.h
  9457. * src/UTPexExtensionMessage.cc
  9458. * test/DefaultPeerListProcessorTest.cc
  9459. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Changed method signature:
  9461. BtRequestFactory::createRequestMessages,
  9462. BtRequestFactory::createRequestMessagesOnEndGame
  9463. * src/BtRequestFactory.h
  9464. * src/DefaultBtInteractive.cc
  9465. * src/DefaultBtRequestFactory.cc
  9466. * src/DefaultBtRequestFactory.h
  9467. * test/DefaultBtRequestFactoryTest.cc
  9468. * test/MockBtRequestFactory.h
  9469. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Changed method signature:
  9471. PieceStorage::getInFlightPieces
  9472. * src/DefaultBtProgressInfoFile.cc
  9473. * src/DefaultPieceStorage.cc
  9474. * src/DefaultPieceStorage.h
  9475. * src/PieceStorage.h
  9476. * src/UnknownLengthPieceStorage.cc
  9477. * src/UnknownLengthPieceStorage.h
  9478. * test/DefaultBtProgressInfoFileTest.cc
  9479. * test/MockPieceStorage.h
  9480. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Changed method signature:
  9482. PostDownloadHandler::getNextRequestGroups
  9483. Metalink2RequestGroup::generate
  9484. RequestGroup::postDownloadProcessing
  9485. * src/BtPostDownloadHandler.cc
  9486. * src/BtPostDownloadHandler.h
  9487. * src/Metalink2RequestGroup.cc
  9488. * src/Metalink2RequestGroup.h
  9489. * src/MetalinkPostDownloadHandler.cc
  9490. * src/MetalinkPostDownloadHandler.h
  9491. * src/PostDownloadHandler.h
  9492. * src/RequestGroup.cc
  9493. * src/RequestGroup.h
  9494. * src/RequestGroupMan.cc
  9495. * src/main.cc
  9496. * test/BtPostDownloadHandlerTest.cc
  9497. * test/Metalink2RequestGroupTest.cc
  9498. * test/MetalinkPostDownloadHandlerTest.cc
  9499. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. Rewritten AccRequestGroup
  9501. * src/main.cc
  9502. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Rewritten.
  9504. * src/TaggedItem.cc (toTagString)
  9505. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Rewritten Accept-Features handling.
  9507. * src/HttpRequestCommand.cc (createHttpRequest)
  9508. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Rewritten accept types handling.
  9510. * HttpRequest.cc (createRequest)
  9511. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Rewritten
  9513. * src/FeatureConfig.cc (featureSummary)
  9514. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Changed method signature:
  9516. PeerStorage::getActivePeers
  9517. * src/DHTPeerAnnounceEntry.cc
  9518. * src/DefaultPeerStorage.cc
  9519. * src/DefaultPeerStorage.h
  9520. * src/PeerStorage.h
  9521. * test/DefaultPeerStorageTest.cc
  9522. * test/MockPeerStorage.h
  9523. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Changed method signature:
  9525. DHTPeerAnnounceStorage::getPeers,
  9526. DHTPeerAnnounceEntry::getPeers
  9527. * src/DHTGetPeersMessage.cc
  9528. * src/DHTPeerAnnounceEntry.cc
  9529. * src/DHTPeerAnnounceEntry.h
  9530. * src/DHTPeerAnnounceStorage.cc
  9531. * src/DHTPeerAnnounceStorage.h
  9532. * test/DHTAnnouncePeerMessageTest.cc
  9533. * test/DHTPeerAnnounceEntryTest.cc
  9534. * test/DHTPeerAnnounceStorageTest.cc
  9535. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Changed method signature:
  9537. NameResolver::resolve
  9538. * src/DHTEntryPointNameResolveCommand.cc
  9539. * src/InitiateConnectionCommand.cc
  9540. * src/NameResolver.cc
  9541. * src/NameResolver.h
  9542. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Changed method signature:
  9544. PieceStorage::getAdvertisedPieceIndexes
  9545. * src/DefaultBtInteractive.cc
  9546. * src/DefaultPieceStorage.cc
  9547. * src/DefaultPieceStorage.h
  9548. * src/PieceStorage.h
  9549. * src/UnknownLengthPieceStorage.h
  9550. * test/MockPieceStorage.h
  9551. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Changed method signature:
  9553. SegmentMan::getInFlightSegment
  9554. * src/AbstractCommand.cc
  9555. * src/SegmentMan.cc
  9556. * src/SegmentMan.h
  9557. * test/SegmentManTest.cc
  9558. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Changed method signature:
  9560. DHTAbstractNodeLookupTask::getNodesFromMessage
  9561. * src/DHTAbstractNodeLookupTask.cc
  9562. * src/DHTAbstractNodeLookupTask.h
  9563. * src/DHTNodeLookupTask.cc
  9564. * src/DHTNodeLookupTask.h
  9565. * src/DHTPeerLookupTask.cc
  9566. * src/DHTPeerLookupTask.h
  9567. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9569. * src/AbstractCommand.cc
  9570. * src/BtCheckIntegrityEntry.cc
  9571. * src/BtCheckIntegrityEntry.h
  9572. * src/BtFileAllocationEntry.cc
  9573. * src/BtFileAllocationEntry.h
  9574. * src/BtSetup.cc
  9575. * src/BtSetup.h
  9576. * src/CheckIntegrityCommand.cc
  9577. * src/CheckIntegrityEntry.h
  9578. * src/ChecksumCheckIntegrityEntry.cc
  9579. * src/ChecksumCheckIntegrityEntry.h
  9580. * src/DHTSetup.cc
  9581. * src/DHTSetup.h
  9582. * src/DownloadEngine.cc
  9583. * src/FileAllocationCommand.cc
  9584. * src/FileAllocationEntry.h
  9585. * src/RequestGroup.cc
  9586. * src/RequestGroup.h
  9587. * src/RequestGroupMan.cc
  9588. * src/RequestGroupMan.h
  9589. * src/StreamCheckIntegrityEntry.cc
  9590. * src/StreamCheckIntegrityEntry.h
  9591. * src/StreamFileAllocationEntry.cc
  9592. * src/StreamFileAllocationEntry.h
  9593. * src/TrackerWatcherCommand.cc
  9594. * src/a2functional.h
  9595. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Changed method signature:
  9597. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9598. DHTBucket::getGoodNodes,
  9599. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9600. * src/BNode.cc
  9601. * src/BNode.h
  9602. * src/DHTAbstractNodeLookupTask.cc
  9603. * src/DHTAutoSaveCommand.cc
  9604. * src/DHTBucket.cc
  9605. * src/DHTBucket.h
  9606. * src/DHTBucketRefreshTask.cc
  9607. * src/DHTFindNodeMessage.cc
  9608. * src/DHTGetPeersMessage.cc
  9609. * src/DHTRoutingTable.cc
  9610. * src/DHTRoutingTable.h
  9611. * test/BNodeTest.cc
  9612. * test/DHTBucketTest.cc
  9613. * test/DHTRoutingTableTest.cc
  9614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. In piece selection functions, Pass std::deque<...> by reference rather
  9616. than returning it.
  9617. * src/BitfieldMan.cc
  9618. * src/BitfieldMan.h
  9619. * src/DefaultBtRequestFactory.cc
  9620. * src/DefaultPieceStorage.cc
  9621. * src/Piece.cc
  9622. * src/Piece.h
  9623. * test/BitfieldManTest.cc
  9624. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Implemented rarest piece first piece selection strategy.
  9626. * src/AbstractBtMessage.cc
  9627. * src/AbstractBtMessage.h
  9628. * src/BitfieldMan.cc
  9629. * src/BitfieldMan.h
  9630. * src/BtBitfieldMessage.cc
  9631. * src/BtHaveAllMessage.cc
  9632. * src/BtHaveMessage.cc
  9633. * src/DefaultPieceStorage.cc
  9634. * src/DefaultPieceStorage.h
  9635. * src/PeerInteractionCommand.cc
  9636. * src/PieceStorage.h
  9637. * src/UnknownLengthPieceStorage.h
  9638. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9639. Rewritten readData and writeData.
  9640. * src/MultiDiskAdaptor.cc
  9641. * src/MultiDiskAdaptor.h
  9642. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Move \n out of the message "Usage: ...".
  9644. * src/version_usage.cc
  9645. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Bump up version number to 0.13.2b.
  9647. * configure.ac
  9648. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Added const qualifier to argument Exception& e.
  9650. * src/Logger.h
  9651. * src/SimpleLogger.cc
  9652. * src/SimpleLogger.h
  9653. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Pool connection when CWD, SIZE command fails.
  9655. * src/FtpNegotiationCommand.cc
  9656. * src/FtpNegotiationCommand.h
  9657. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9659. * src/HttpResponseCommand.cc
  9660. * src/HttpSkipResponseCommand.cc
  9661. * src/HttpSkipResponseCommand.h
  9662. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Pool connection when a server returns 4xx, 5xx responses.
  9664. * src/HttpNullDownloadCommand.cc
  9665. * src/HttpNullDownloadCommand.h
  9666. * src/HttpResponse.cc
  9667. * src/HttpResponse.h
  9668. * src/HttpResponseCommand.cc
  9669. * src/HttpResponseCommand.h
  9670. * test/HttpResponseTest.cc
  9671. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Print usage when no URL is specifed or bad command-line option is
  9673. specified.
  9674. * src/HelpItemFactory.cc
  9675. * src/help_tags.h
  9676. * src/option_processing.cc
  9677. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Removed duplicate log message.
  9679. * src/AbstractCommand.cc (asyncResolveHostname)
  9680. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9682. Changed -j option's default value from 5 to 1.
  9683. Added new examples using protocol auto detection feature.
  9684. Removed -T, -M usage where it can be omitted.
  9685. * doc/aria2c.1.txt
  9686. * doc/aria2c.1.html
  9687. * doc/aria2c.1.txt
  9688. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Updated command-line usage text, so that it tells users that they
  9690. can specify any number of torrent files and metalink files in
  9691. command-line.
  9692. * src/version_usage.cc
  9693. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Changed the default value of -j option to 1.
  9695. * src/HelpItemFactory.cc
  9696. * src/option_processing.cc
  9697. * src/usage_text.h
  9698. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Added the ability to reuse connection in FTP and it is enabled by
  9700. default. It can be disabled by --ftp-reuse-connection=false option.
  9701. * src/Command.cc
  9702. * src/DownloadCommand.cc
  9703. * src/FtpDownloadCommand.cc
  9704. * src/FtpDownloadCommand.h
  9705. * src/FtpFinishDownloadCommand.cc
  9706. * src/FtpFinishDownloadCommand.h
  9707. * src/FtpInitiateConnectionCommand.cc
  9708. * src/FtpNegotiationCommand.cc
  9709. * src/FtpNegotiationCommand.h
  9710. * src/HelpItemFactory.cc
  9711. * src/Makefile.am
  9712. * src/Makefile.in
  9713. * src/OptionHandlerFactory.cc
  9714. * src/option_processing.cc
  9715. * src/prefs.h
  9716. * src/usage_text.h
  9717. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Call Command::transitStatus() before calling Command::execute(),
  9719. so that the status change made in execute() is not cleared.
  9720. * src/DownloadEngine.cc
  9721. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Removed forward declaration of SocketCore class.
  9723. * src/HttpDownloadCommand.h
  9724. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9726. in InitiateConnectionCommandFactory. They should be set only when
  9727. the protocol is HTTP or HTTPS.
  9728. * src/InitiateConnectionCommandFactory.cc
  9729. * src/RequestGroup.cc
  9730. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. Fixed infinite loop in checksum checking.
  9732. * src/IteratableChecksumValidator.cc
  9733. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. Set _supportsPersistentConnection to true by default.
  9735. * src/Request.cc
  9736. * src/RequestGroup.cc
  9737. * test/HttpRequestTest.cc
  9738. * test/RequestTest.cc
  9739. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Added timeout to socket pool. The default timeout is 15 seconds,
  9741. which is the same value Apache uses.
  9742. * src/DownloadEngine.cc
  9743. * src/DownloadEngine.h
  9744. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Fixed misuse of multimap::find()
  9746. * src/HttpHeader.cc
  9747. * test/HttpHeaderTest.cc
  9748. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9749. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9750. option.
  9751. The asynchronous DNS is not capable of IPv6 yet.
  9752. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9753. least for HTTP download.
  9754. * src/AbstractCommand.cc
  9755. * src/AbstractCommand.h
  9756. * src/AsyncNameResolver.cc
  9757. * src/AsyncNameResolver.h
  9758. * src/DHTEntryPointNameResolveCommand.cc
  9759. * src/DHTEntryPointNameResolveCommand.h
  9760. * src/DownloadEngine.cc
  9761. * src/DownloadEngine.h
  9762. * src/FtpInitiateConnectionCommand.cc
  9763. * src/FtpInitiateConnectionCommand.h
  9764. * src/HelpItemFactory.cc
  9765. * src/HttpInitiateConnectionCommand.cc
  9766. * src/HttpInitiateConnectionCommand.h
  9767. * src/InitiateConnectionCommand.cc
  9768. * src/InitiateConnectionCommand.h
  9769. * src/Makefile.am
  9770. * src/Makefile.in
  9771. * src/NameResolver.cc
  9772. * src/NameResolver.h
  9773. * src/OptionHandlerFactory.cc
  9774. * src/SocketCore.cc
  9775. * src/SocketCore.h
  9776. * src/Util.cc
  9777. * src/Util.h
  9778. * src/option_processing.cc
  9779. * src/prefs.h
  9780. * src/usage_text.h
  9781. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Updated man page: --quiet, --header were added.
  9783. --metalink-servers and --enable-http-keep-alive option were updated.
  9784. * doc/aria2c.1
  9785. * doc/aria2c.1.html
  9786. * doc/aria2c.1.txt
  9787. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Enable HTTP keep-alive by default.
  9789. * src/HelpItemFactory.cc
  9790. * src/option_processing.cc
  9791. * src/usage_text.h
  9792. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Disable http keep-alive if the remote server is not HTTP/1.1.
  9794. * src/HttpConnection.cc
  9795. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Receive content body of 302 response so that the connection can be
  9797. reused later when http keep-alive is enabled.
  9798. * src/HttpNullDownloadCommand.cc
  9799. * src/HttpNullDownloadCommand.h
  9800. * src/HttpResponseCommand.cc
  9801. * src/HttpResponseCommand.h
  9802. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. const SharedHandle<Request> -> const SharedHandle<Request>&
  9804. * src/FtpDowndloadCommand.cc
  9805. * src/FtpDowndloadCommand.h
  9806. * src/HttpDownloadCommand.cc
  9807. * src/HttpDownloadCommand.h
  9808. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Fixed the bug that the control file(.aria2 file) is not renamed
  9810. according to tryAutoFileRenaming().
  9811. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9812. its control file exist, use them and continue download.
  9813. The old implementation didn't take into account of control file's
  9814. existence, so basically you couldn't continue download of renamed file.
  9815. * src/BtProgressInfoFile.h
  9816. * src/DefaultBtProgressInfoFile.cc
  9817. * src/DefaultBtProgressInfoFile.h
  9818. * src/NullProgressInfoFile.h
  9819. * src/RequestGroup.cc
  9820. * test/DefaultBtProgressInfoFileTest.cc
  9821. * test/MockBtProgressInfoFile.h
  9822. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Change the default value of --metalink-servers option from `5' to `1'.
  9824. * src/HelpItemFactory.cc
  9825. * src/option_processing.cc
  9826. * src/usage_text.h
  9827. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. Reimplemented transparent metalink using Accept request header.
  9829. * src/HttpRequest.cc
  9830. * src/HttpRequest.h
  9831. * src/HttpRequestCommand.cc
  9832. * src/Metalink2RequestGroup.cc
  9833. * src/RequestGroup.cc
  9834. * src/RequestGroup.h
  9835. * test/HttpRequestTest.cc
  9836. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Bump up version number to 0.13.2a
  9838. * configure.ac
  9839. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Updated configure.ac using the result of autoscan.
  9841. * configure.ac
  9842. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Fixed compilation error without gcrypt/openssl.
  9844. * src/DownloadCommand.cc
  9845. * src/DownloadCommand.h
  9846. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Reorganized version information so that it can be displayed in a
  9848. standard terminal screen without scrolling.
  9849. Removed http, ftp from Configuration section, because they are always
  9850. enabled.
  9851. * src/FeatureConfig.cc
  9852. * src/FeatureConfig.h
  9853. * src/main.cc
  9854. * src/messageDigest.cc
  9855. * src/messageDigest.h
  9856. * src/version_usage.cc
  9857. * test/FeatureConfigTest.cc
  9858. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Masked user ID in log.
  9860. * src/FtpConnection.cc (sendUser)
  9861. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Removed query part from filename in HTTP download. The query part means
  9863. the substring after "?" in URL. Firefox seems do the same thing.
  9864. A query part is sometimes very long and not suitable to filename,
  9865. so I think it is better to remove it from filename.
  9866. * src/HttpRequest.cc
  9867. * src/HttpRequest.h
  9868. * src/Request.cc
  9869. * src/Request.h
  9870. * test/HttpRequestTest.cc
  9871. * test/RequestTest.cc
  9872. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Rewritten Exception class. Throw exception object, not its pointer and
  9874. catch by reference, so that remove problematic delete operator for
  9875. catched exception.
  9876. * src/Exception.cc
  9877. * src/Exception.h
  9878. * test/ExceptionTest.cc
  9879. * src/*: All files throwing/catching exception.
  9880. * test/*: All files throwing/catching exception.
  9881. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. Now auto protocol detection is enabled without -Z option.
  9883. But there is a important difference between with/without -Z optoin.
  9884. For example, if you type:
  9885. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9886. then, aria2 interprets there are 3 request groups:
  9887. (1) http://host/file, http://mirror/file <-- multi-source download
  9888. (2) file1.torrent
  9889. (3) file2.metalink
  9890. On the other hand, if you invoke above command with -Z option, it is
  9891. interpreted as 4 request groups:
  9892. (1) http://host/file
  9893. (2) file1.torrent
  9894. (3) file2.metalink
  9895. (4) http://mirror/file
  9896. I think usually user don't mix multi-source URLs and torrent files, so
  9897. there is no big problem here.
  9898. * src/main.cc
  9899. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Fixed the bug that causes segmentaion fault when reading XML containing
  9901. unescapsed character like '&'.
  9902. Also a modification was made which avoids adding unnecessary
  9903. characters stack and appending unused string.
  9904. * src/ExpatMetalinkProcessor.cc
  9905. * src/FileMetalinkParserState.h
  9906. * src/FilesMetalinkParserState.h
  9907. * src/FinMetalinkParserState.h
  9908. * src/HashMetalinkParserState.h
  9909. * src/InitialMetalinkParserState.h
  9910. * src/LanguageMetalinkParserState.h
  9911. * src/MetalinkMetalinkParserState.h
  9912. * src/MetalinkParserState.h
  9913. * src/MetalinkParserStateMachine.cc
  9914. * src/MetalinkParserStateMachine.h
  9915. * src/OSMetalinkParserState.h
  9916. * src/PieceHashMetalinkParserState.h
  9917. * src/PiecesMetalinkParserState.h
  9918. * src/ResourcesMetalinkParserState.h
  9919. * src/SizeMetalinkParserState.h
  9920. * src/SkipTagMetalinkParserState.h
  9921. * src/URLMetalinkParserState.h
  9922. * src/VerificationMetalinkParserState.h
  9923. * src/VersionMetalinkParserState.h
  9924. * src/XML2SAXMetalinkProcessor.cc
  9925. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Added StringFormat class, which internally calls vasprintf.
  9927. operator<< is defined for this class, so it can be used with iostream
  9928. classes nicely. SimpleLogger and following functions are rewritten
  9929. using StringFormat class.
  9930. Besides, now Logger class's methods are non-const, many classes
  9931. that has a const Logger* as a member variable are modified to remove
  9932. const qualifier from the variable declaration.
  9933. * src/HelpItemFactory.cc
  9934. * src/Request.cc
  9935. * src/SimpleLogger.cc
  9936. * src/StringFormat.cc
  9937. * src/StringFormat.h
  9938. * src/Util.cc
  9939. * src/option_processing.cc
  9940. * src/version_usage.cc
  9941. * test/StringFormatTest.cc
  9942. * src/*.h: The classes that has const Logger* as a member variable.
  9943. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9945. failed. Also fixed memory link when exception is thrown there.
  9946. * src/main.cc (AccRequestGroup)
  9947. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Added build-in "Accept-Features" support. For now only "metalink" is
  9949. used in this header field.
  9950. This "metalink" value is removed from the list when connecting URLs
  9951. fed by metalink file to avoid loop in "transparent" metlaink.
  9952. * src/HttpRequest.cc
  9953. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9954. header is also held in this variable. Also renamed setUserHeaders as
  9955. addHeader and it was rewritten to add header not just to clear the old
  9956. value.
  9957. * src/HttpRequestCommand.cc
  9958. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9959. from "Accept-Features" list.
  9960. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9961. default.
  9962. * src/RequestGroup.h
  9963. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9964. * src/a2functional.h: Included <string> because Concat class depends on
  9965. it.
  9966. * test/HttpRequestTest.cc
  9967. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Added comment
  9969. * src/RequestGroup.cc (createNextCommand)
  9970. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Capitalized METHOD_GET and METHOD_HEAD
  9972. * src/Request.cc
  9973. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. Added getDownloadResults() method
  9975. * src/RequestGroupMan.cc
  9976. * src/RequestGroupMan.h
  9977. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Fixed the bug that aria2 exits when commands is empty() but
  9979. _routineCommands are not.
  9980. * src/DownloadEngine.cc
  9981. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Use the default value pulled from Option object in HelpItemFactory.
  9983. except options whose defualt value is embedded in a usage text.
  9984. * src/HelpItemFactory.cc
  9985. * src/HelpItemFactory.h
  9986. * src/option_processing.cc
  9987. * src/version_usage.cc
  9988. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Added --quiet option to make aria2 quiet (no console output).
  9990. --quiet option is tagged with ADVANCED.
  9991. * src/HelpItemFactory.cc
  9992. * src/LogFactory.cc
  9993. * src/LogFactory.h
  9994. * src/MultiUrlRequestInfo.cc
  9995. * src/MultiUrlRequestInfo.h
  9996. * src/NullStatCalc.h: New class. This class prints nothing.
  9997. * src/OptionHandlerFactory.cc
  9998. * src/main.cc
  9999. * src/option_processing.cc
  10000. * src/prefs.h
  10001. * src/usage_text.h
  10002. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10003. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10004. * src/HelpItemFactory.cc (createHelpItems):
  10005. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Fixed compilation error in ExpatMetalinkProcessor.cc
  10007. * src/ExpatMetalinkProcessor.cc
  10008. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Reuse socket if the origin server supports HTTP keep-alive and
  10010. --enable-http-keep-alive or --enable-http-pipelining is given.
  10011. The current implementation doesn't reuse the connections established
  10012. against proxy server.
  10013. * src/AbstractCommand.cc
  10014. * src/DownloadEngine.cc
  10015. * src/DownloadEngine.h
  10016. * src/HttpDownloadCommand.cc
  10017. * src/HttpInitiateConnectionCommand.cc
  10018. * src/HttpResponseCommand.cc
  10019. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Rewritten HTTP keep-alive and pipelining routine.
  10021. * src/AbstractCommand.cc
  10022. * src/HttpConnection.cc
  10023. * src/HttpDownloadCommand.cc
  10024. * src/HttpRequest.cc
  10025. * src/HttpRequestCommand.cc
  10026. * src/HttpResponseCommand.cc
  10027. * src/Request.cc
  10028. * src/Request.h
  10029. * src/RequestGroup.cc
  10030. * test/HttpRequestTest.cc
  10031. * test/HttpResponseTest.cc
  10032. * test/RequestTest.cc
  10033. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Added missing setUserHeaders call
  10035. * src/HttpRequestCommand.cc
  10036. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10038. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10039. waste of time because it is more likey false.
  10040. * src/FileAllocationDispatcherCommand.cc (execute)
  10041. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Now HTTP status and version are a member variable of HttpHeader.
  10043. HTTP status is processed as a string, not integer.
  10044. * src/AbstractProxyResponseCommand.cc
  10045. * src/HttpConnection.cc
  10046. * src/HttpHeader.cc
  10047. * src/HttpHeader.h
  10048. * src/HttpHeaderProcessor.cc
  10049. * src/HttpHeaderProcessor.h
  10050. * src/HttpResponse.cc
  10051. * src/HttpResponse.h
  10052. * test/HttpHeaderProcessorTest.cc
  10053. * test/HttpResponseTest.cc
  10054. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Added --header option. You can specify any number of additional HTTP headers
  10056. like:
  10057. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10058. Unlike other commad-line option, you can use --header option multiple times.
  10059. * src/HelpItemFactory.cc
  10060. * src/HttpRequest.{cc, h}
  10061. * src/HttpRequestCommand.cc
  10062. * src/OptionHandlerFactory.cc
  10063. * src/OptionHandlerImpl.h
  10064. * src/option_processing.cc
  10065. * src/prefs.h
  10066. * src/usage_text.h
  10067. * test/HttpRequestTest.cc (testUserHeaders)
  10068. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Eliminates the time lag between sequential downloads and commands in
  10070. the same RequestGroup.
  10071. In old implementation, aria2 occasionally waits 1 seconds before
  10072. executing next command or RequestGroup.
  10073. This is really a waste of time, and new implementation eliminates
  10074. this unnecessary time lag.
  10075. * src/AbstractCommand.cc
  10076. * src/AutoSaveCommand.cc
  10077. * src/CheckIntegrityCommand.cc
  10078. * src/Command.{cc, h}
  10079. * src/DownloadEngine.{cc, h}
  10080. * src/DownloadEngineFactory.cc
  10081. * src/FileAllocationCommand.cc
  10082. * src/FileAllocationDispatcherCommand.cc
  10083. * src/FillRequestGroupCommand.cc
  10084. * src/FtpInitiateConnectionCommand.cc
  10085. * src/HaveEraseCommand.cc
  10086. * src/HttpInitiateConnectionCommand.cc
  10087. * src/HttpResponseCommand.cc
  10088. * src/RealtimeCommand.cc
  10089. * src/RequestGroup.cc
  10090. * src/RequestGroupMan.cc
  10091. * src/StreamFileAllocationEntry.cc
  10092. * src/TimeBasedCommand.{cc, h}
  10093. * src/TimedHaltCommand.cc
  10094. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10096. keyword explicit and SharedHandle's default constructor initializes
  10097. its internal obj to null, old implementation initializes it using
  10098. obj's default constructor.
  10099. To assign null, write SharedHandle<T> x(...); x.reset();
  10100. TODO: test/SharedHandleTest.cc needs more tests.
  10101. * src/SharedHandle.h
  10102. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10103. Fixed type in man page.
  10104. * doc/aria2c.1.txt
  10105. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10107. * src/SimpleLogger.{cc, h}
  10108. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Implemented auto protocol detection.
  10110. Now you can do:
  10111. aria2c -Z http://host/file file1.torrent file2.metalink
  10112. (Note: -Z option is required for auto protcol detection.)
  10113. Then aria2c downloads 3 files simultaneously:
  10114. 1. http://host/file
  10115. 2. file1.torrent <-- read local torrent file
  10116. 3. file2.metalink <-- read local Metalink file.
  10117. Same thing goes with -i option. Assume your uris.txt contans:
  10118. http://host/file
  10119. file1.torrent
  10120. file2.metalink
  10121. Then you can do: aria2c -i uris.txt
  10122. (Note: -Z option is not needed if -i option is given.)
  10123. * src/main.cc
  10124. * src/ProtocolDetector.{cc, h}
  10125. * test/ProtocolDetectorTest.cc
  10126. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10128. installed
  10129. * src/ARC4Encryptor.h
  10130. * src/ARC4Decryptor.h
  10131. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Renamed argument from 'errno' to 'err', since errno is confused with
  10133. errno defined in errno.h.
  10134. * src/LibgcryptARC4Decryptor.h
  10135. * src/LibgcryptARC4Context.h
  10136. * src/LibgcryptDHKeyExchange.h
  10137. * src/LibgcryptARC4Encryptor.h
  10138. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Rewritten choking algorithm.
  10140. * src/PeerChokeCommand.{cc, h}
  10141. * src/BtInterestedMessage.cc
  10142. * src/PeerSessionResource.{cc, h}
  10143. * src/DefaultPeerStorage.{cc, h}
  10144. * src/BtNotInterestedMessage.cc
  10145. * src/DefaultBtMessageDispatcher.{cc, h}
  10146. * src/BtMessageDispatcher.h
  10147. * src/Peer.{cc, h}
  10148. * src/BtLeecherStateChoke.{cc, h}
  10149. * src/BtSetup.cc
  10150. * src/BtSeederStateChoke.{cc, h}
  10151. * src/PeerStorage.h
  10152. * test/MockPeerStorage.h
  10153. * test/MockBtMessageDispatcher.h
  10154. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Fixed compilation error on x84-64 platform.
  10156. * src/AuthConfig.cc: Included ostream.
  10157. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. Rewritten getBasename() and getDirname(), without standard library
  10159. basename(), dirname().
  10160. * src/File.cc
  10161. * test/FileTest.cc
  10162. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Added Simplified Chinese translation. Also updated the following
  10164. translations: Polish, Dutch, German. Great thanks to all translators.
  10165. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Suppress content-range error when 'Content-Range' response header
  10167. doesn't contains bytes-unit specifier 'bytes'
  10168. * src/HttpHeader.cc (getRange)
  10169. * test/HttpHeaderTest.cc
  10170. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Fixed compilation error with g++-4.3
  10172. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Added missing include files for MinGW
  10174. * test/HttpHeaderProcessorTest.cc
  10175. * test/DHTRoutingTableSerializerTest.cc
  10176. * test/DHTRoutingTableDeserializerTest.cc
  10177. * test/UriListParserTest.cc
  10178. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Now download line is printed nicely with no garbage at the end of
  10180. line. I use ioctl to get the columns of terminal.
  10181. If stdout is redirected to another device, instead of carriage return,
  10182. end of line '\n' character is used. This is feature request#1909659
  10183. * src/ConsoleStatCalc.cc (calculateStat)
  10184. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Included a2time.h
  10186. * src/DHTMessageDispatcher.h
  10187. * src/DHTMessageEntry.h
  10188. * src/DHTReplaceNodeTask.h
  10189. * src/DHTMessageTracker.h
  10190. * src/Util.h
  10191. * src/CookieBox.h
  10192. * src/SocketCore.h
  10193. * src/DefaultBtMessageDispatcher.h
  10194. * src/SocketCore.cc
  10195. * src/Util.cc
  10196. * src/DHTPingTask.h
  10197. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Fixed high memory footprint when DHT is enabled.
  10199. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10200. queued than it is processed and the queue is getting longer. As a
  10201. consequence, momory usage is increased.
  10202. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10203. replacement cache in DHTBucket which is described in Kademlia paper.
  10204. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10205. DHTReplaceNodeTask.
  10206. * src/DHTBucket.{h, cc}
  10207. (cacheNode): New function.
  10208. (getCachedNodes): New function.
  10209. (dropNode): Push back cached node to _nodes.
  10210. * test/DHTBucketTest.cc
  10211. (testCacheNode): New test
  10212. (testDropNode): New test
  10213. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10215. the unused 4KB memory when ssl is not used.
  10216. * src/SocketCore.cc
  10217. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Added summary log for peer announce storage.
  10219. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10220. Removed cast
  10221. * src/DefaultPeerStorage.cc (addPeer)
  10222. Log exception message
  10223. * src/DHTMessageTracker.cc (handleTimeout)
  10224. Fixed casting
  10225. * test/HttpRequestTest.cc
  10226. * test/MetalinkProcessorTest.cc
  10227. * test/PieceTest.cc
  10228. * test/MetalinkEntryTest.cc
  10229. * test/SequenceTest.cc
  10230. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. * src/ParameterizedStringParser.cc (createLoop):
  10232. Removed unused variable sstep.
  10233. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10234. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. * src/Util.{h, cc}
  10236. (parseUInt): New function.
  10237. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10238. The actual range is uint32_t.
  10239. * test/UtilTest.cc
  10240. * src/ParameterizedStringParser.cc:
  10241. Use Util::parseUInt() for loop variables.
  10242. * test/ParameterizedStringParserTest.cc
  10243. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10244. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Rewritten the functions for binding port.
  10246. * src/DHTConnectionImpl.{h, cc}
  10247. * src/PeerListenCommand.{h, cc}
  10248. * src/DHTSetup.cc
  10249. * src/BtSetup.cc
  10250. * test/DHTConnectionImplTest.cc
  10251. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. type cleanup for allmost all remaining files.
  10253. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Type clarification
  10255. * src/PeerSessionResource.{h, cc}
  10256. * src/DefaultPieceStorage.{h, cc}
  10257. * src/Peer.{h, cc}
  10258. * test/PeerSessionResourceTest.cc
  10259. Use div function
  10260. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10261. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Type clarification
  10263. * src/DefaultPeerStorage.{h, cc}
  10264. * test/DefaultPeerStorageTest.cc
  10265. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10266. Type clarification: size_t for length or size, uint64_t for file
  10267. length, off_t for file offset.
  10268. * src/DefaultBtProgressInfoFile.cc
  10269. * src/DefaultBtContext.{h, cc}
  10270. * src/DefaultBtInteractive.cc
  10271. * src/DownloadCommand.{h, cc}
  10272. * src/IteratableChunkChecksumValidator.{h, cc}
  10273. * src/SegmentMan.{h, cc}
  10274. * src/SingleFileDownloadContext.{h, cc}
  10275. * src/IteratableChecksumValidator.{h, cc}
  10276. * src/BtContext.h
  10277. * src/IteratableValidator.h
  10278. * src/DownloadContext.h
  10279. * test/SingleFileDownloadContextTest.cc
  10280. * test/DefaultBtContextTest.cc
  10281. * test/MockBtContext.h
  10282. * test/Metalink2RequestGroupTest.cc
  10283. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Type clarification: size_t for length or size, uint64_t for file
  10285. length, off_t for file offset.
  10286. * src/PiecedSegment.cc
  10287. * src/GrowSegment.h
  10288. * src/DefaultBtRequestFactory.h
  10289. * src/DefaultBtProgressInfoFile.cc
  10290. * src/UnknownLengthPieceStorage.h
  10291. * src/DefaultPieceStorage.cc
  10292. * src/UnknownLengthPieceStorage.cc
  10293. * src/DefaultBtInteractive.cc
  10294. * src/GrowSegment.cc
  10295. * src/BitfieldMan.h
  10296. * src/DownloadCommand.cc
  10297. * src/BtRequestFactory.h
  10298. * src/PiecedSegment.h
  10299. * src/DefaultPieceStorage.h
  10300. * src/Piece.cc
  10301. * src/DefaultBtRequestFactory.cc
  10302. * src/PieceStorage.h
  10303. * src/Segment.h
  10304. * src/Piece.h
  10305. * src/BitfieldMan.cc
  10306. * src/Util.cc
  10307. * test/DefaultBtProgressInfoFileTest.cc
  10308. * test/DefaultPieceStorageTest.cc
  10309. * test/MockPieceStorage.h
  10310. * test/BtRequestMessageTest.cc
  10311. * test/DefaultBtMessageDispatcherTest.cc
  10312. * test/BitfieldManTest.cc
  10313. * test/GrowSegmentTest.cc
  10314. * test/PieceTest.cc
  10315. * test/SegmentTest.cc
  10316. * test/SegmentManTest.cc
  10317. * test/DefaultBtRequestFactoryTest.cc
  10318. * test/MockBtRequestFactory.h
  10319. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Fixed compilation error with --disable-nls
  10321. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10322. in gettext.h causes the problem.
  10323. * src/common.h
  10324. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Removed subPiece related functions.
  10326. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10327. * src/DefaultPieceStorage.{h, cc}
  10328. * test/PieceTest.cc
  10329. * test/DefaultPieceStorageTest.cc
  10330. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. Use unsigned char for data store.
  10332. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Bump up version number to 0.13.0+1
  10334. * configure.ac
  10335. * Release 0.13.0+1
  10336. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10337. Changed inactive connection timeout to 120.
  10338. To accept more mulually interested peers, disconnect peer when there
  10339. is no interest between us after certain time passed.
  10340. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10341. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10343. when compiled with async DNS support.
  10344. * src/DownloadEngine.cc
  10345. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10346. value '10' will be a little bit short when some DNS servers are
  10347. offline and several DNS servers are tried. It should be configured
  10348. by command-line option.
  10349. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. Merged Ross's mingw patch.
  10351. * src/DHTRoutingTableDeserializer.cc
  10352. * src/DHTRoutingTableSerializer.cc
  10353. * src/Platform.{h, cc}
  10354. * src/timegm.h
  10355. * src/gettimeofday.h
  10356. * src/getaddrinfo.h
  10357. * src/SocketCore.h
  10358. * src/common.h
  10359. * src/inet_aton.h
  10360. * src/DownloadEngine.h
  10361. * src/gai_strerror.h
  10362. * src/a2netcompat.h
  10363. * configure.ac
  10364. * configure
  10365. * aclocal.m4
  10366. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Included missing iostream.
  10368. * test/AllTest.cc
  10369. * test/BtDependencyTest.cc
  10370. * test/BtExtendedMessageTest.cc
  10371. * test/DHTConnectionImplTest.cc
  10372. * test/DHTMessageFactoryImplTest.cc
  10373. * test/DHTMessageTrackerEntryTest.cc
  10374. * test/DHTNodeTest.cc
  10375. * test/DHTRoutingTableSerializerTest.cc
  10376. * test/DefaultBtAnnounceTest.cc
  10377. * test/DefaultBtContextTest.cc
  10378. * test/DefaultBtMessageFactoryTest.cc
  10379. * test/DefaultExtensionMessageFactoryTest.cc
  10380. * test/HandshakeExtensionMessageTest.cc
  10381. * test/HttpResponseTest.cc
  10382. * test/MetalinkProcessorTest.cc
  10383. * test/MultiFileAllocationIteratorTest.cc
  10384. * test/SocketCoreTest.cc
  10385. * test/UTPexExtensionMessageTest.cc
  10386. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Reorganized includes.
  10388. * src/NameResolver.cc
  10389. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10390. Fixed compilation error without ares/c-ares
  10391. * src/NameResolver.h:
  10392. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10393. Added a test for large file.
  10394. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10395. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Fixed the bug that file size is ignored if size > INT32_MAX
  10397. * src/SizeMetalinkParserState.cc (endElement):
  10398. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. Bump up version number to 0.13.0
  10400. * configure.ac
  10401. * Release 0.13.0
  10402. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Updated Makfefile.am to make 'make dist' work.
  10404. Now packaged filename is aria2c-VERSION.tar.bz2.
  10405. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10406. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10407. Large file support is now configured by configure script.
  10408. * configure.ac
  10409. Removed unsused source files
  10410. * src/
  10411. * test/
  10412. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10413. Peer.h and BtContext.h respectively.
  10414. * src/Peer.h
  10415. * src/BtContext.h
  10416. Updated translations.
  10417. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10418. translations. Great thanks to all translators!;)
  10419. * po/*.{po, gmo}
  10420. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10421. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10422. statically declared sha1 MessageDigestContext.
  10423. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10424. initialization of short-lived MessageDigestContext.
  10425. * src/MessageDigestHelper.{h, cc}
  10426. * src/main.cc
  10427. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10428. the initialization of MessageDigestContext every time in validating
  10429. chunk checksum.
  10430. * src/DownloadCommand.{h, cc}
  10431. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Add a file descriptor which connected to fast peer(latency<1500) to
  10433. select(). This change reduced CPU load.
  10434. * src/PeerInteractionCommand.cc
  10435. * src/DefaultBtInteractive.{h, cc}
  10436. * src/BtInteractive.h
  10437. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Fixed the previous insufficient fix for possible busy loop.
  10439. * src/MSEHandshake.cc (identifyHandshakeType)
  10440. Removed unused functions.
  10441. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10442. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Fixed possible busy loop if first 20 bytes are not received for a few
  10444. minutes.
  10445. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10446. * src/ReceiverMSEHandshakeCommand.cc
  10447. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Fixed compilation error
  10449. * src/ExpatMetalinkProcessor.cc
  10450. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10452. * src/DHTBucket.cc
  10453. Removed unnecessary cast.
  10454. * src/HandshakeExtensionMessage.cc
  10455. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10457. is missing.
  10458. * src/OptionHandlerFactory.cc
  10459. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Fixed the bug that HAVE message is not sent for a piece they are
  10461. downloaded fom http/ftp server before any BitTorrent handshake is done
  10462. with peers.
  10463. * src/DefaultBtInteractive.cc
  10464. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10466. * src/Makefile.am
  10467. * src/Makefile.in
  10468. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10469. Updated README. Added html version of README and man page.
  10470. * README
  10471. * README.html
  10472. * readme2html: Shell script to generate README.html from README using
  10473. asciidoc.
  10474. * doc/aria2c.1.html
  10475. * doc/makeman: Added the line to generate aria2c.1.html
  10476. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10477. Fixed offset calculation.
  10478. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10479. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Rewritten itos and uitos using template. llitos and ullitos are
  10481. replaced with itos and uitos respectively.
  10482. * src/Util.{h, cc}
  10483. * test/UtilTest.cc
  10484. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10485. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10486. of the number of bytes required for storing public key and shared
  10487. secret.
  10488. * src/LibgcryptDHKeyExchange.h
  10489. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10490. * src/MSEHandshake.cc
  10491. * test/DHKeyExchangeTest.cc
  10492. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Removed since they are not used.
  10494. * src/Xml2MetalinkProcessor.{h, cc}
  10495. * src/Socket.cc
  10496. * src/SegmentSplitter.{h, cc}
  10497. * test/Xml2MetalinkProcessorTest.cc
  10498. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Fixed the bug that prevents aria2 from stopping other than by pressing
  10500. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10501. option. aria2 doesn't stop even after --seed-time is satisfied and
  10502. continues to output blank lines in the console.
  10503. * src/ReceiverMSEHandshakeCommand.cc
  10504. * src/PeerReceiveHandshakeCommand.cc
  10505. * src/PeerListenCommand.cc
  10506. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Bump up version number to 0.13.0rc
  10508. * configure.ac
  10509. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. Updated man page and some usage text.
  10511. * doc/aria2c.1.txt
  10512. * src/usage_text.h
  10513. * po/*.{po, gmo}
  10514. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Updated translations. Added Finnish and Hebrew translations.
  10516. Great thanks to all translators!
  10517. * po/*.{po, gmo}
  10518. * po/LINGUAS
  10519. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Log more detailed information about each message.
  10521. * src/DHTQueryMessage.{h, cc}
  10522. * src/DHTGetPeersMessage.{h, cc}
  10523. * src/DHTFindNodeReplyMessage.{h, cc}
  10524. * src/DHTGetPeersReplyMessage.{h, cc}
  10525. * src/DHTAnnouncePeerMessage.{h, cc}
  10526. * src/DHTResponseMessage.{h, cc}
  10527. * src/DHTFindNodeMessage.{h, cc}
  10528. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10529. Use constants defined in prefs.h
  10530. * src/option_processing.cc
  10531. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10533. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Make room for future enchancements for IPv6 addresses.
  10535. Bump up version number of dht.dat file format to 2.
  10536. Not compatible with previous version.
  10537. * src/DHTRoutingTableSerializer.cc
  10538. * src/DHTRoutingTableDeserializer.cc
  10539. * test/DHTRoutingTableSerializerTest.cc
  10540. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Added handling for the return values from
  10542. PeerMessageUtil::createcompact().
  10543. * src/DefaultBtContext.cc (computeFastSet):
  10544. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Fixed abort when peer's ip address is IPv4-mapped address.
  10546. * src/DefaultBtContext.cc (computeFastSet)
  10547. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10548. cannot handle IPv4-mapped addresses.
  10549. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10550. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Proper return value handling for OpenSSL functions.
  10552. * src/LibsslDHKeyExchange.h
  10553. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Random bytes generation using libgcrypt and OpenSSL.
  10555. * src/DHTUtil.{h, cc}
  10556. * test/DHTUtilTest.cc
  10557. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10559. received.
  10560. * src/DHTMessageReceiver.cc (receiveMessage)
  10561. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Fixed the bug that a return code is always 0. BUG#1897704
  10563. If error occurred during the download or there exist unfinished
  10564. downloads, aria2 returns with code 1.
  10565. * src/RequestGroupMan.{h, cc}
  10566. * src/MultiUrlRequestInfo.{h, cc}
  10567. * src/main.cc
  10568. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. IPv6 support for SocketCore class.
  10570. TODO: In SocketCore::establishConnection(), this is insufficient to
  10571. determin the failure of connect() here because the socket is
  10572. non-blocking state. The next addresses should be tried after select().
  10573. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10574. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10575. instead which address family independent.
  10576. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10577. information in a compact peer format which is for IPv4 only.
  10578. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10579. this is a spec of BitTorrent protocol.
  10580. * src/SocketCore.{h, cc}
  10581. * src/PeerMessageUtil.cc
  10582. * test/SocketCoreTest.cc
  10583. * test/PeerMessageUtilTest.cc
  10584. * test/DHTConnectionImplTest.cc
  10585. Handle IPv4-mapped addresses.
  10586. * src/DHTNode.cc: Now identity is determined by node id.
  10587. * src/DHTMessageTrackerEntry.cc
  10588. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10589. should handle it.
  10590. * src/DHTRoutingTableDeserializer.cc
  10591. * src/DHTMessageFactoryImpl.cc
  10592. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10593. Change the unit of --stop option from a minute to a second.
  10594. * src/usage_text.h
  10595. * src/DownloadEngineFactory.cc
  10596. * src/OptionHandlerFactory.cc
  10597. * src/message.h
  10598. * src/TimedHaltCommand.cc
  10599. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Make listening socket non-block mode.
  10601. * src/FtpConnection.cc
  10602. * src/FtpNegotiationCommand.{h, cc}
  10603. * src/PeerListenCommand.cc
  10604. Fixed the bug that cause slow ftp negotiation.
  10605. * src/FtpNegotiationCommand.{h, cc}
  10606. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Added basic tag to --enable-dht, --dht-listen-port option.
  10608. * src/HelpItemFactory.cc (createHelpItems)
  10609. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Updated text.
  10611. * src/usage_text.h
  10612. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10614. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. Determin _threadtholdSpeed in each constructor for
  10616. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10617. * src/ActivePeerConnectionCommand.{h, cc}
  10618. * src/PeerReceiveHandshakeCommand.{h, cc}
  10619. * src/BtSetup.cc
  10620. * src/BtConstants.h
  10621. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Added --bt-min-crypto-level and --bt-require-crypto options.
  10623. * src/OptionHandlerFactory.cc
  10624. * src/MSEHandshake.cc
  10625. * src/HelpItemFactory.cc
  10626. * src/option_processing.cc
  10627. * src/ReceiverMSEHandshakeCommand.cc
  10628. * src/prefs.h
  10629. * src/DefaultBtAnnounce.cc
  10630. * src/InitiatorMSEHandshakeCommand.cc
  10631. * src/usage_text.h
  10632. * test/MSEHandshakeTest.cc
  10633. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Bump version number to 0.13.0b
  10635. * configure.ac
  10636. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Updated doc.
  10638. * src/MessageDigestHelper.h:
  10639. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Use raw message digest as a token instead of its hexadecimal
  10641. representation.
  10642. * src/DHTTokenTracker.cc (generateToken)
  10643. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Added Message Stream Encryption(MSE) support.
  10645. Currently, aria2 accepts incoming connections with Obfuscation Header
  10646. and legacy BitTorrent Header and establishes connections with
  10647. Obfuscation Header first and if failed then retry with legacy
  10648. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10649. choose ARC4. The new option to change the default behavior is planned.
  10650. For tracker extension, "supportcrypto=1" is added statically.
  10651. * src/PeerInitiateConnectionCommand.{h, cc}
  10652. * src/PeerConnection.{h, cc}
  10653. * src/HandleRegistry.h
  10654. * src/SocketCore.h
  10655. * src/PeerReceiveHandshakeCommand.{h, cc}
  10656. * src/BtRegistry.{h, cc}
  10657. * src/PeerListenCommand.cc
  10658. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10659. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10660. * src/MSEHandshake.{h, cc}
  10661. * src/ARC4Encryptor.h
  10662. * src/ARC4Decryptor.h
  10663. * src/LibgcryptARC4Encryptor.h
  10664. * src/LibgcryptARC4Decryptor.h
  10665. * src/LibgcryptARC4Context.h
  10666. * src/LibsslARC4Encryptor.h
  10667. * src/LibsslARC4Decryptor.h
  10668. * src/LibsslARC4Context.h
  10669. * src/DHKeyExchange.h
  10670. * src/LibgcryptDHKeyExchange.h
  10671. * src/LibsslDHKeyExchange.h
  10672. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10673. * test/DefaultBtAnnounceTest.cc
  10674. * test/ARC4Test.cc
  10675. * test/DHKeyExchangeTest.cc
  10676. Removed prepareForRetry() because it is not used.
  10677. * src/PeerAbstractCommand.{h, cc}
  10678. * src/PeerInteractionCommand.{h, cc}
  10679. * src/PeerInitiateConnectionCommand.{h, cc}
  10680. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Added the ability to load nodes from torrent file. These nodes are
  10682. added to the routing table when downloading that torrent.
  10683. * src/BtContext.h
  10684. * src/DefaultBtContext.{h, cc}
  10685. * src/DHTSetup.cc
  10686. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10687. hostname and port pair, and resolves all of them.
  10688. * src/NameResolver.{h, cc}: Added reset().
  10689. * src/RequestGroup.cc
  10690. * test/DefaultBtContextTest.cc
  10691. * test/MockBtContext.h
  10692. Removed assert() from DefaultBtContext and throw exception instead.
  10693. * src/DefaultBtContext.cc
  10694. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Fixed segmentation fault bug when exiting if dht is disabled.
  10696. * src/RequestGroup.cc
  10697. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. Fixed typo in log message and define the message in message.h
  10699. * src/TimedHaltCommand.cc
  10700. * src/message.h
  10701. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Included RecoverableException.h to fix compilation error.
  10703. * test/DHTMessageFactoryImplTest.cc
  10704. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10706. * test/DHTPingMessageTest.cc
  10707. * test/DHTGetPeersMessageTest.cc
  10708. * test/DHTFindNodeMessageTest.cc
  10709. * test/DHTAnnouncePeerMessageTest.cc
  10710. * test/MockDHTMessage.h
  10711. * test/MockDHTMessageFactory.h
  10712. * test/MockDHTMessageDispatcher.h: New class.
  10713. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10715. virtual.
  10716. * src/DHTMessageDispatcher.h
  10717. * src/DHTMessageDispatcherImpl.{h, cc}
  10718. * src/DHTSetup.cc
  10719. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Adding handling of DHT error message. Just log error message and
  10721. throw exception.
  10722. * src/DHTMessageFactoryImpl.cc
  10723. * test/DHTMessageFactoryImplTest.cc
  10724. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Added handling of dynamic cast failure.
  10726. * src/DHTNodeLookupTask.cc
  10727. * src/DHTPeerLookupTask.cc
  10728. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Added the ability to stop aria2 itself when given time has passed
  10730. from start. Use --stop option to specify time in minutes.
  10731. When 0 is given, this feature is disabled.
  10732. * src/OptionHandlerFactory.cc
  10733. * src/TimeBasedCommand.h: Make _interval protected scope.
  10734. * src/HelpItemFactory.cc
  10735. * src/option_processing.cc
  10736. * src/prefs.h
  10737. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10738. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10739. Without this modification, the result list shows "ERR" when aria2 is
  10740. stopped by --stop option. It should be "INPR".
  10741. * src/DownloadEngine.{h, cc}
  10742. * src/DownloadEngineFactory.cc
  10743. * src/usage_text.h
  10744. * src/TimedHaltCommand.{h, cc}: New class.
  10745. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Bootstrap through node added by port message.
  10747. Currently bootstrap is executed if the number of buckets in routing
  10748. table is 1.
  10749. * src/BtPortMessage.{h, cc}
  10750. * src/DefaultBtMessageFactory.{h, cc}
  10751. * src/PeerInteractionCommand.cc
  10752. * test/BtPortMessageTest.cc
  10753. * test/MockDHTTask.h
  10754. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Extract the Peer class's member variables, which are only needed after
  10756. PeerInteractionCommand, into PeerSessionResource class.
  10757. This class is instantiated in PeerInteractionCommand class's ctor and
  10758. released in its dtor.
  10759. This will make Peer class lightweight and uses less memory for peers
  10760. which are not connected and wait in the queue.
  10761. * src/PeerChokeCommand.cc
  10762. * src/PeerSessionResource.{h, cc}
  10763. * src/PeerInteractionCommand.cc
  10764. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10765. * src/DefaultBtInteractive.cc
  10766. * src/BtPieceMessage.cc
  10767. * src/BtInterestedMessage.cc
  10768. * src/BtUnchokeMessage.cc
  10769. * src/DefaultPeerStorage.{h, cc}
  10770. * src/PeerInitiateConnectionCommand.cc
  10771. * src/ActivePeerConnectionCommand.cc
  10772. * src/BtNotInterestedMessage.cc
  10773. * src/DefaultBtMessageDispatcher.cc
  10774. * src/BtChokeMessage.cc
  10775. * src/BtRequestMessage.cc
  10776. * src/Peer.{h, cc}
  10777. * src/BtRegistry.h
  10778. * src/TrackerWatcherCommand.cc
  10779. * src/PeerReceiveHandshakeCommand.cc
  10780. * test/BtExtendedMessageTest.cc
  10781. * test/BtAllowedFastMessageTest.cc
  10782. * test/BtCancelMessageTest.cc
  10783. * test/DefaultPieceStorageTest.cc
  10784. * test/BtBitfieldMessageTest.cc
  10785. * test/BtHaveMessageTest.cc
  10786. * test/BtNotInterestedMessageTest.cc
  10787. * test/BtRequestMessageTest.cc
  10788. * test/PeerSessionResourceTest.cc
  10789. * test/DefaultBtMessageDispatcherTest.cc
  10790. * test/PeerTest.cc
  10791. * test/BtInterestedMessageTest.cc
  10792. * test/BtRejectMessageTest.cc
  10793. * test/BtChokeMessageTest.cc
  10794. * test/DefaultPeerStorageTest.cc
  10795. * test/BtHaveNoneMessageTest.cc
  10796. * test/BtHaveAllMessageTest.cc
  10797. * test/DefaultExtensionMessageFactoryTest.cc
  10798. * test/BtUnchokeMessageTest.cc
  10799. * test/DefaultBtMessageFactoryTest.cc
  10800. * test/HandshakeExtensionMessageTest.cc
  10801. * test/UTPexExtensionMessageTest.cc
  10802. * test/DefaultBtRequestFactoryTest.cc
  10803. * test/BtPieceMessageTest.cc
  10804. Removed typedef PeerStats.
  10805. * src/PeerStat.h
  10806. * src/SegmentMan.cc
  10807. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Added std namespace to copy, remove_copy, back_inserter,
  10809. front_inserter.
  10810. * src/RequestGroupMan.cc
  10811. * src/DefaultPieceStorage.cc
  10812. * src/StreamFileAllocationEntry.cc
  10813. * src/BtFileAllocationEntry.cc
  10814. * src/RequestGroup.cc
  10815. * src/MetalinkEntry.cc
  10816. * src/DelegatingPeerListProcessor.cc
  10817. * src/DefaultBtRequestFactory.cc
  10818. * src/DefaultBtMessageDispatcher.cc
  10819. * src/version_usage.cc: Included <algorithm>
  10820. * src/main.cc
  10821. * src/MetalinkParserController.cc
  10822. * src/DefaultBtContext.cc
  10823. * src/DownloadEngineFactory.cc
  10824. * src/a2algo.h
  10825. Removed.
  10826. * test/StreamUriListParserTest.cc
  10827. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10828. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10829. ActivePeerConnectionCommand when it is given and
  10830. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10831. * src/ActivePeerConnectionCommand.{h, cc}
  10832. * src/BtSetup.cc
  10833. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Only add socket to DownloadEngine's select routine when peer or
  10835. localhost is unchoked and interested. This lowers CPU usage a
  10836. little bit.
  10837. * src/PeerInteractionCommand.cc
  10838. * src/PeerAbstractCommand.{h, cc}
  10839. * src/BtInteractive.h
  10840. * src/DefaultBtInteractive.{h, cc}
  10841. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. Revert previous change because get_peers message is needed for
  10843. announce_peer anyway.
  10844. * src/DHTGetPeersCommand.cc
  10845. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Request peers thought DHT only when download hasn't finished.
  10847. * src/DHTGetPeersCommand.cc
  10848. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10850. * src/DHTBucketRefreshTask.{h, cc}
  10851. * src/DHTSetup.cc
  10852. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10854. standard classes.
  10855. Included string.h where mem* function are used.
  10856. Added namespace aria2.
  10857. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Create directory before saving DHT routing table.
  10859. Now ios::failure is now handled properly.
  10860. * src/DHTAutoSaveCommand.cc
  10861. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. Removed unnecessary cerr.
  10863. * src/DownloadEngine.cc
  10864. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Catch exception inside DHTMessageReceiver::receiveMessage().
  10866. Log unknown message.
  10867. * src/DHTMessageReceiver.{h, cc}
  10868. * src/DHTMessageFactory.h
  10869. * src/DHTMessageFactoryImpl.{h, cc}
  10870. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10871. * src/DHTInteractionCommand.cc
  10872. * src/DHTUnknownMessage.{h, cc}
  10873. * test/DHTUnknownMessageTest.cc
  10874. * test/MockDHTMessageFactory.h
  10875. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Commented out ip address comparison because a host can have multiple
  10877. ip addresses and it is hard to predict the hostname is resolved into
  10878. which one.
  10879. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10880. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. * po/Makefile.in: Removed since this is generated by configure.
  10882. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Fixed compiler warning about redefinition of SIZE_MAX.
  10884. Use common.h instead of config.h directly here.
  10885. * src/Platform.{h, cc}
  10886. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10887. here.
  10888. * common.h
  10889. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10890. Updated gettext related files.
  10891. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10892. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10893. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Added DHT functionality, compatible with mainline.
  10895. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10896. You may need to specify entry point to DHT network using
  10897. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10898. Use --dht-listen-port to specify port number. Make sure that your
  10899. firewall configuration can pass through UDP traffic to the port.
  10900. The routing table is saved in $HOME/.aria2/dht.dat.
  10901. * src/DHT*
  10902. * src/BNode.{h, cc}
  10903. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10904. particular torrent.
  10905. * src/Data.cc: Rewritten ctor.
  10906. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10907. --dht-entry-point.
  10908. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10909. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10910. ends, remove BtContext from DHTPeerAnnounceStorage.
  10911. * src/BtPortMessage.{h, cc}: Rewritten.
  10912. * src/message.h
  10913. * src/OptionHandlerImpl.cc
  10914. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10915. --dht-entry-point.
  10916. * src/Dictionary.{h, cc} (remove): New function.
  10917. * src/prefs.h
  10918. * src/DefaultBtMessageFactory.h
  10919. * src/BtHandshakeMessage.cc
  10920. * src/ActivePeerConnectionCommand.cc
  10921. * src/SocketCore.{h, cc}: Added datagram socket support.
  10922. * src/DefaultBtMessageFactory.cc
  10923. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10924. Create DHT commands.
  10925. * src/BtMessageFactory.h
  10926. * src/PeerMessageUtil.{h, cc}
  10927. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10928. Fixed the bug that log file is not written when configuration file doesn't exist.
  10929. This is caused by using Logger class before LogFactory is not configured.
  10930. BUG #1875079
  10931. * src/option_processing.cc
  10932. Warning message "configuration doesn't exist" is only printed when --conf is
  10933. given.
  10934. * src/option_processing.cc
  10935. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10937. ShaVisitor is now deprecated and slated to be removed.
  10938. * src/DefaultBtContext.cc
  10939. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10940. Externalize message to message.h
  10941. * src/Platform.cc
  10942. * src/message.h
  10943. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10944. Set default domain and default path to cookie.
  10945. * src/HttpResponse.cc
  10946. * src/CookieBox.{h, cc}
  10947. * src/CookieParser.{h, cc}
  10948. * test/CookieParserTest.cc
  10949. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. Added --no-conf and --conf-path command-line option.
  10951. --no-conf option disables loading aria2.conf file.
  10952. --conf-path option changes the configuration file path. The default
  10953. file path is $HOME/.aria2/aria2.conf
  10954. Added a warning message when the configuration file is not found.
  10955. * src/HelpItemFactory.cc
  10956. * src/option_processing.cc
  10957. * src/prefs.h
  10958. * src/usage_text.h
  10959. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Added the message to inform users that other help categories are
  10961. available in -h option.
  10962. * src/version_usage.cc
  10963. * src/TagContainer.{h, cc}
  10964. * test/TagContainerTest.cc
  10965. * src/TaggedItem.{h, cc}
  10966. * test/TaggedItemTest.cc
  10967. * src/HelpItem.h
  10968. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10970. from PiecedSegment's ctor.
  10971. Previously Piece::getAllMissingBlockIndexes() is called from
  10972. PiecedSegment() but it is rather expensive since only first element is
  10973. used.
  10974. * src/PiecedSegment.cc
  10975. * src/Piece.{h, cc}
  10976. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10978. each time these functions are called.
  10979. * src/BitfieldMan.{h, cc}
  10980. * test/BitfieldManTest.cc
  10981. * src/array_fun.h
  10982. * test/array_funTest.cc
  10983. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10984. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10985. filtered. Removed unnecessary cast to int32_t.
  10986. * src/BitfieldMan.{h, cc}
  10987. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10989. payload length(4bytes) are received. This happens because lenbufLength
  10990. is not updated in this particular case and successive call of
  10991. receiveMessage() overwrites payload length with bytes recieved which
  10992. are payload body.
  10993. * src/PeerConnection.{h, cc}
  10994. * src/message.h
  10995. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10997. peer if there are peers that have same ipaddr and port.
  10998. I've experiened segmentation fault and "pure virtual function was
  10999. called" error.
  11000. * src/Peer.h
  11001. * test/PeerTest.cc
  11002. * src/DefaultPeerStorage.cc
  11003. * test/DefaultPeerStorageTest.cc
  11004. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Removed a call to isPowerOf() because it is no longer necessary here
  11006. and a request block is not always power of 2.
  11007. BUG#1866924
  11008. * src/PeerMessageUtil.cc (checkLength)
  11009. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Fixed the bug that always first found Segment is removed from
  11011. usedSegmentEntries. Removed unused functions.
  11012. * src/SegmentMan.{h, cc}
  11013. * test/SegmentManTest.cc
  11014. Fixed the bug that ServerHost is not removed.
  11015. * src/RequestGroup.cc
  11016. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Fixed the bug that SegmentMan::completeSegment() is not called
  11018. even if Segment is complete when --lowest-speed-limit is enabled.
  11019. BUG#1864525
  11020. * src/DownloadCommand.{h, cc}
  11021. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11022. Fixed: hash algorithm 'sha1' is always used.
  11023. * src/DownloadCommand.cc (validatePieceHash)
  11024. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Added --enable-peer-exchange command-line option.
  11026. * src/OptionHandlerFactory.cc
  11027. * src/HelpItemFactory.cc
  11028. * src/option_processing.cc
  11029. * src/usage_text.h
  11030. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11031. Move extension from BtRuntime to ExtensionMessageFactory, because
  11032. extension can be specified per peer, not per torrent.
  11033. * src/DefaultBtInteractive.cc
  11034. * src/BtRuntime.h
  11035. * src/ExtendedMessagingAware.h
  11036. * src/ExtensionMessageFactory.h
  11037. * src/DefaultExtensionMessageFactory.cc
  11038. * test/DefaultExtensionMessageFactoryTest.cc
  11039. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Added categorized option help. Specify category using --help option.
  11041. Also added the ability to search options in forward match.
  11042. * src/HelpItem.{h, cc}
  11043. * test/HelpItemTest.cc
  11044. * src/HelpItemFactory.{h, cc}
  11045. * src/TagContainer.{h, cc}
  11046. * test/TagContainerTest.cc
  11047. * src/option_processing.cc
  11048. * src/prefs.h
  11049. * src/TaggedItem.{h, cc}
  11050. * test/TaggedItemTest.cc
  11051. * src/version_usage.cc
  11052. * src/help_tags.h
  11053. * src/usage_text.h
  11054. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. Fixed segmentation fault when bad torrent metainfo is parsed.
  11056. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11057. and then throw exception or skip it.
  11058. * src/DefaultBtContext.{h, cc}
  11059. * test/DefaultBtContextTest.cc
  11060. * src/AnnounceList.cc
  11061. * src/CompactPeerListProcessor.cc
  11062. * src/message.h
  11063. * src/DefaultBtAnnounce.{h, cc}
  11064. * test/DefaultBtAnnounceTest.cc
  11065. * src/BencodeVisitor.cc
  11066. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11067. Added missing "B"(=Byte). So now the message looks like this:
  11068. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11069. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11070. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Show the seed ratio after torrent downloads.
  11072. For example, after torrent download completed and --seed-time and
  11073. --seed-ratio conditions are fulfilled, following message is printed
  11074. right after "Download complete: .....":
  11075. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11076. * src/RequestGroupMan.cc
  11077. * src/RequestGroup.{h, cc}
  11078. * src/message.h
  11079. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Remove a defunct control file. A defunct control file means that while
  11081. it exists, but the corresponding download file is missing.
  11082. After its removal, a download restarts from the beginning.
  11083. * src/RequestGroup.cc
  11084. * src/message.h
  11085. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Allocate bitfield in Peer when it is really used. More specifically,
  11087. bitfield in Peer is allocated after the connection is established and
  11088. deallocated when the connection is dropped.
  11089. Since 2 parameters(piece length and total length) was removed from the
  11090. constructor of Peer class, many test classes were modified accordingly.
  11091. See svn log for more detailed information.
  11092. * src/PeerInteractionCommand.cc
  11093. * src/CompactPeerListProcessor.cc
  11094. * src/Peer.cc
  11095. * src/DefaultPeerListProcessor.cc
  11096. * src/PeerListenCommand.cc
  11097. * src/PeerReceiveHandshakeCommand.cc
  11098. Fixed memory leak
  11099. * src/Piece.cc
  11100. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11102. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11103. command-line options.
  11104. * src/option_processing.cc
  11105. * src/ActivePeerConnectionCommand.cc
  11106. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Send have message to peer if it already has the piece.
  11108. * src/BtHaveMessage.{h, cc}
  11109. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11111. port.
  11112. * src/DefaultPeerStorage.{h, cc}
  11113. * test/DefaultPeerStorageTest.cc
  11114. * src/HandshakeExtensionMessage.cc
  11115. * test/HandshakeExtensionMessageTest.cc
  11116. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11117. * src/PeerStorage.h
  11118. * test/MockPeerStorage.h
  11119. * src/PeerListenCommand.cc
  11120. * src/PeerReceiveHandshakeCommand.cc
  11121. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. Added --metalink-enable-unique-protocol option.
  11123. * src/Metalink2RequestGroup.cc
  11124. * src/option_processing.cc
  11125. * src/prefs.h
  11126. * src/version_usage.cc
  11127. * doc/aria2c.1.txt
  11128. * doc/aria2c.1
  11129. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Allow a peer in incomingPeer to be added peers.
  11131. * src/DefaultPeerStorage.cc
  11132. * test/DefaultPeerStorageTest.cc
  11133. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11135. I could reproduce this bug in following procedure:
  11136. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11137. 2. Restart aria2.
  11138. 3. You see the download stopped around 99%.
  11139. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11140. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11141. If timeout is reached, then _nextCommand is unused and it may contains
  11142. segments and they won't be canceled. Actually, timeout is not needed
  11143. here because if the server dropped connection, then retry is made.
  11144. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Added uTorrent compatible Peer Exchange.
  11146. * src/BencodeVisitor.{h, cc}
  11147. * test/BencodeVisitorTest.cc
  11148. * src/BtConstants.h
  11149. * src/BtContext.h: Added 'private' flag.
  11150. * src/BtExtendedMessage.{h, cc}
  11151. * test/BtExtendedMessageTest.cc
  11152. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11153. reserved field.
  11154. * test/BtHandshakeMessageTest.cc
  11155. * src/BtMessageFactory.h
  11156. * src/BtRegistry.h
  11157. * src/BtRuntime.h: This class holds default extension message IDs for
  11158. aria2. By default, aria2 uses ID 8 for ut_pex.
  11159. * src/DefaultBtContext.cc
  11160. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11161. When it is true, aria2 enables ut_pex. This value is set by
  11162. PeerInteractionCommand.
  11163. * src/DefaultBtMessageFactory.{h, cc}
  11164. * test/DefaultBtMessageFactoryTest.cc
  11165. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11166. handling to DefaultBtInteractive class.
  11167. * src/DefaultExtensionMessageFactory.{h, cc}
  11168. * test/DefaultExtensionMessageFactoryTest.cc
  11169. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11170. the container(peers and incomingPeers. The equality is determined by
  11171. Peer::id).
  11172. * test/DefaultPeerStorageTest.cc
  11173. * src/ExtensionMessage.h
  11174. * test/MockExtensionMessage.h
  11175. * src/ExtensionMessageFactory.h
  11176. * test/MockExtensionMessageFactory.h
  11177. * src/HandshakeExtensionMessage.{h, cc}
  11178. * test/HandshakeExtensionMessageTest.cc
  11179. * src/MetaEntry.h
  11180. * src/Peer.{h, cc}
  11181. * src/PeerInteractionCommand.cc
  11182. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11183. addIncomingPeer.
  11184. * src/PeerMessageUtil.{h, cc}
  11185. * src/PeerObject.h
  11186. * src/UTPexExtensionMessage.{h, cc}
  11187. * test/UTPexExtensionMessageTest.cc
  11188. * src/message.h
  11189. * src/prefs.h
  11190. Fixed the bug that returns incomplete data when it contains null
  11191. character. A convenient constructor was also added.
  11192. * src/Data.{h, cc}
  11193. Rewritten.
  11194. * src/CompactPeerListProcessor.cc
  11195. Fixed typos.
  11196. * src/message.h
  11197. * src/MetaFileUtil.cc
  11198. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11199. Added "Status Legend" label to the explanation text of 'stat' in
  11200. download result and moved it to the last. BUG#1848214
  11201. * src/RequestGroupMan.cc
  11202. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11204. * src/Makefie.am
  11205. * test/Makefile.am
  11206. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Fixed the bug that prevents aria2 from loading cookie file when expire
  11208. value is greater than 2^31-1. BUG#1851066
  11209. * src/CookieBoxFactory.cc
  11210. * test/CookieBoxFactoryTest.cc
  11211. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Fixed possible memory leak when an exception is thrown.
  11213. * src/XML2SAXMetalinkProcessor.cc
  11214. Added Expat support. If both libxml2 and Expat are installed, then
  11215. libxml2 is used by default.
  11216. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11217. ExpatMetalinkProcessor according to the configuration.
  11218. * src/ExpatMetalinkProcessor.{h, cc}
  11219. * src/main.cc: Removed libxml2 specific header and init/free function.
  11220. * src/MetalinkProcessorFactory.{h, cc}
  11221. * src/MetalinkHelper.cc
  11222. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11223. * src/MetalinkProcessor.h
  11224. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11225. MetalinkProcessorTest is used instead.
  11226. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11227. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11228. MetalinkProcessorFactory::newInstance().
  11229. * m4/libexpat.m4
  11230. * configure.ac: Added configuration options for libexpat.
  11231. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. Disabled -s option in metalink download.
  11233. * src/Metalink2RequestGroup.cc
  11234. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11235. If several protocols are available for a mirror in metalink file,
  11236. aria2 now use one of them. --metalink-preferred-protocol option was
  11237. added to specify the preference of protocol.
  11238. * src/AbstractCommand.cc
  11239. * src/OptionHandlerFactory.cc
  11240. * src/ServerHost.{h, cc}
  11241. * src/Metalink2RequestGroup.cc
  11242. * src/RequestGroup.{h, cc}
  11243. * test/RequestGroupTest.cc
  11244. * src/option_processing.cc
  11245. * src/prefs.h
  11246. * src/HttpResponseCommand.cc
  11247. * src/MetalinkResource.{h, cc}
  11248. * src/FtpNegotiationCommand.cc
  11249. * src/MetalinkEntry.{h, cc}
  11250. * src/MetalinkEntryTest.cc
  11251. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Code cleanup and added debug log.
  11253. * src/PeerConnection.cc
  11254. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. Compiler error fix: applied the patch by Tiziano Mueller
  11256. * src/RequestGroup.cc
  11257. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11259. in stopped and completed event.
  11260. * src/AnnounceList.{h, cc}
  11261. * test/AnnounceListTest.cc
  11262. * src/DefaultBtAnnounce.cc
  11263. * test/DefaultBtAnnounceTest.cc
  11264. Sorted URLs.
  11265. * test/Metalink2RequestGroupTest.cc
  11266. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11267. Removed unnecessary string copy. Updated doc and corrected indentation.
  11268. * src/Base64.cc
  11269. Fixed compilation warnings
  11270. * test/DataTest.cc
  11271. * test/HttpRequestTest.cc
  11272. * test/MetaFileUtilTest.cc
  11273. * test/RequestTest.cc
  11274. * Release 0.12.0
  11275. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Updated translations
  11277. * po/{de,fr,ja,nl,ru}.po
  11278. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11279. translations. Many thanks to translators.
  11280. * po/{ca,es,it,pt_BR,sv}.po
  11281. * po/LINGUAS
  11282. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Added a notice about URL
  11284. * src/version_usage.cc
  11285. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11286. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11287. aria2 repeatedly sends stopped request when tracker returns error code.
  11288. * src/AnnounceList.cc
  11289. * test/AnnounceListTest.cc
  11290. * src/AnnounceTier.h
  11291. Added a message when ctrl-c is hit.
  11292. Now second ctrl-c is also handled in signal handler.
  11293. * src/RequestGroupMan.{h, cc}
  11294. * src/RequestGroup.{h, cc}
  11295. * src/MultiUrlRequestInfo.cc
  11296. * src/DownloadEngine.cc
  11297. * src/TrackerWatcherCommand.cc
  11298. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. Code cleanup
  11300. * src/Base64.cc (encode)
  11301. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11302. Changed Direct/IO enable/disable procesure in file allocation routine.
  11303. * src/SingleFileAllocationIterator.cc
  11304. (SingleFileAllocationIterator):
  11305. Disable directIO if offset is not multiple of 512.
  11306. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11307. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11308. Enable created SingleFileAllocationIterator's directIO.
  11309. * src/FileAllocationEntry.cc
  11310. (FileAllocationEntry): Enable directIO here.
  11311. (~FileAllocationEntry): Disable directIO here.
  11312. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11313. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11314. * src/Peer.{h, cc}
  11315. * src/DefaultPieceStorage.cc
  11316. * test/DefaultPieceStorageTest.cc
  11317. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11318. Rewritten direct I/O support routine
  11319. * src/SingleFileAllocationIterator.cc
  11320. * src/MultiDiskAdaptor.{h, cc}
  11321. * src/ByteArrayDiskWriter.h
  11322. * src/AbstractSingleDiskAdaptor.h
  11323. * src/AbstractDiskWriter.cc
  11324. * src/DefaultPieceStorage.cc
  11325. * src/DiskWriter.h
  11326. * src/BinaryStream.h
  11327. * src/IteratableChunkChecksumValidator.cc
  11328. * src/IteratableChecksumValidator.cc
  11329. * src/CheckIntegrityEntry.cc
  11330. * src/FileAllocationEntry.cc
  11331. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11332. Fixed typo
  11333. * src/version_usage.cc
  11334. Updated doc
  11335. * doc/aria2c.1.txt
  11336. * doc/aria2c.1
  11337. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11338. Fixed compile error without message digest support.
  11339. * src/FileMetalinkParserState.cc
  11340. * src/MetalinkParserController.{h, cc}
  11341. * test/XML2SAXMetalinkProcessorTest.cc
  11342. * test/MetalinkParserControllerTest.cc
  11343. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Enable direct I/O support in checksum checking.
  11345. * src/IteratableChunkChecksumValidator.{h, cc}
  11346. * test/IteratableChunkChecksumValidatorTest.cc
  11347. * src/CheckIntegrityEntry.cc
  11348. * src/PieceHashCheckIntegrityEntry.cc
  11349. * src/IteratableChecksumValidator.{h, cc}
  11350. * src/BtCheckIntegrityEntry.cc: Added doc.
  11351. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Added --allow-piece-length-change option.
  11353. * src/DefaultBtProgressInfoFile.cc
  11354. * test/DefaultBtProgressInfoFileTest.cc
  11355. * src/OptionHandlerFactory.cc
  11356. * src/option_processing.cc
  11357. * src/prefs.h
  11358. * src/version_usage.cc
  11359. * doc/aria2c.1.txt
  11360. * doc/aria2c.1
  11361. Fixed: duplicated result entry appears when exception is thrown in
  11362. RequestGroup::createInitiateConnectionCommand().
  11363. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11364. Add RequestGroup to _requestGroup after RequetGroup::
  11365. createInitiateConnectionCommand() succeeds.
  11366. Externalized message
  11367. * src/XML2SAXMetalinkProcessor.cc
  11368. * src/message.h
  11369. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Forced download abort when received negative response from http/ftp
  11371. server.
  11372. * src/HttpResponseCommand.cc
  11373. * src/FtpNegotiationCommand.cc
  11374. * src/HttpResponse.cc
  11375. * src/FtpConnection.cc
  11376. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11378. the predecessor, Xml2MetalinkParser class.
  11379. I tested them against 94KB metalink file with 1234 chunk checksums.
  11380. The new one parsed it in 22msec, while it took 6000msec with old one.
  11381. * src/XML2SAXMetalinkProcessor.{h, cc}
  11382. * test/XML2SAXMetalinkProcessorTest.cc
  11383. * src/MetalinkParserController.{h, cc}
  11384. * test/MetalinkParserControllerTest.cc
  11385. * src/MetalinkParserState.h: Also added 16 subclasses.
  11386. * src/main.cc
  11387. * src/Metalink2RequestGroup.cc
  11388. * src/MetalinkHelper.cc
  11389. * src/MetalinkEntry.cc
  11390. * src/ChunkChecksum.h
  11391. Rewritten Base64 class for better performance.
  11392. * src/Base64.{h, cc}
  11393. * test/Base64Test.cc
  11394. * src/HttpRequest.cc
  11395. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Fixed the bug#1841757: aria2 will connect to server to only get
  11397. file size.
  11398. * src/StreamFileAllocationEntry.cc
  11399. * src/option_processing.cc
  11400. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11401. downloads.
  11402. * src/FtpNegotiationCommand.cc
  11403. Suppressed wrong message when finding PreDownloadHandler
  11404. * src/RequestGroup.cc
  11405. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Updated usage
  11407. * src/version_usage.cc
  11408. Updated man page
  11409. * doc/aria2c.1.txt
  11410. * doc/aria2c.1
  11411. Updated po files
  11412. * po/aria2c.pot
  11413. * po/*.po
  11414. * po/*.gmo
  11415. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11416. Eliminated g++-4.2 warning
  11417. * src/DownloadHandlerConstants.{h, cc}
  11418. * src/Util.cc
  11419. * test/MetaFileUtilTest.cc
  11420. * test/PStringBuildVisitorTest.cc
  11421. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11422. * src/RequestGroup.cc
  11423. * src/BtCheckIntegrityEntry.cc
  11424. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11425. Fixed a2io.h
  11426. * src/a2io.h
  11427. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. Added direct I/O support. The current implementation uses O_DIRECT,
  11429. which is not posix standard and is tested on linux 2.6.21.
  11430. Currently only file allocation uses direct I/O.
  11431. * src/SingleFileAllocationIterator.{h, cc}
  11432. * test/SingleFileAllocationIteratorTest.cc
  11433. * src/MultiFileAllocationIterator.{h, cc}
  11434. * test/MultiFileAllocationIteratorTest.cc
  11435. * src/BinaryStream.h
  11436. * src/DiskWriter.h
  11437. * src/AbstractDiskWriter.{h, cc}
  11438. * src/ByteArrayDiskWriter.h
  11439. * src/DiskAdaptor.h
  11440. * src/AbstractSingleDiskAdaptor.{h, cc}
  11441. * src/MultiDiskAdaptor.{h, cc}
  11442. * src/FileAllocationEntry.cc
  11443. * src/Util.{h, cc}
  11444. * src/OptionHandlerFactory.cc
  11445. * src/prefs.h
  11446. * src/version_usage.cc
  11447. * src/option_processing.cc
  11448. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11449. handleException.
  11450. * src/MultiFileAllocationIterator.cc
  11451. Added EINTR handling
  11452. * src/SocketCore.cc
  11453. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11454. Updated usage
  11455. * src/version_usage.cc
  11456. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11457. Applied Ross's patch for MinGW port.
  11458. * src/DownloadEngine.h
  11459. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Set Content-Type to SingleFileDownloadContext when http response is
  11461. received.
  11462. * src/HttpResponseCommand.cc
  11463. * src/HttpResponse.{h, cc}
  11464. * test/HttpResponseTest.cc
  11465. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11466. Rewritten to add content-type support.
  11467. * src/DownloadHandler.{h, cc}
  11468. * src/BtPostDownloadHandler.{h, cc}
  11469. * test/BtPostDownloadHandlerTest.cc
  11470. * src/MetalinkPostDownloadHandler.{h, cc}
  11471. * test/MetalinkPostDownloadHandlerTest.cc
  11472. * src/PostDownloadHandler.{h, cc}
  11473. * src/DownloadHandlerConstants.{h, cc}
  11474. * src/RequestGroup.cc
  11475. * src/HttpResponseCommand.cc
  11476. * src/FtpNegotiationCommand.cc
  11477. * src/SingleFileDownloadContext.{h, cc}
  11478. * src/RequestGroup.h
  11479. * src/RequestGroupCriteria.h
  11480. * src/ContentTypeRequestGroupCriteria.h
  11481. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11482. If it is give, metalink/torrent file is not written to the disk, but
  11483. just is kept in memory. Parsing is occurred on memory.
  11484. * src/MetalinkHelper.{h, cc}
  11485. * src/MetalinkProcessor.h
  11486. * src/Xml2MetalinkProcessor.{h, cc}
  11487. * test/Xml2MetalinkProcessorTest.cc
  11488. * src/DownloadHandlerFactory.{h, cc}
  11489. * test/DownloadHandlerFactoryTest.cc
  11490. * src/PreDownloadHandler.{h, cc}
  11491. * src/OptionHandlerFactory.cc
  11492. * src/DefaultBtContext.{h, cc}
  11493. * test/DefaultBtContextTest.cc
  11494. * src/version_usage.cc
  11495. * src/Metalink2RequestGroup.{h, cc}
  11496. * src/RequestGroup.{h, cc}
  11497. * src/a2functional.h
  11498. * test/a2functionalTest.cc
  11499. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11500. * src/OptionHandlerImpl.h
  11501. * src/prefs.h
  11502. * src/Util.{h, cc}
  11503. * test/UtilTest.cc
  11504. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11505. memory usage.
  11506. * src/RequestGroupMan.{h, cc}
  11507. * src/DownloadEngine.cc
  11508. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11509. WeakHandle to SharedHandle because WeakHandle could be null.
  11510. * src/RequestGroup.{h, cc}
  11511. * src/DownloadEngineFactory.cc
  11512. * src/DownloadResult.h
  11513. Set totalLength after download finished
  11514. * src/UnknownLengthPieceStorage.{h, cc}
  11515. Keep torrent file specified in metalink in memory.
  11516. * src/Metalink2RequestGroup.cc
  11517. * src/BtDependency.cc
  11518. * src/TrueRequestGroupCriteria.h
  11519. Fixed the bug: seekg is used where seekp should be used.
  11520. * src/ByteArrayDiskWriter.cc
  11521. * test/ByteArraydiskWriterTest.cc
  11522. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11523. Fixed syntax error
  11524. * test/SequenceTest.cc
  11525. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11526. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11527. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11528. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11529. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11530. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11531. Added the check to see whether ares_host_callback accepts timeouts
  11532. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11533. * src/NameResolver.{h, cc}
  11534. * m4/libcares.m4
  11535. * configure.ac: Set C++ for language choice.
  11536. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Fixed: compilation fails without c-ares/ares
  11538. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11539. Generate http/ftp commands only when download is incomplete.
  11540. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11541. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Corrected typo. Examples are removed since they are available in man
  11543. page.
  11544. * src/version_usage.cc
  11545. Updated man page.
  11546. * doc/aria2c.1
  11547. * doc/aria2c.1.txt
  11548. * doc/makeman: Commented out sed command.
  11549. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. Throw DlAbortEx when a remote file is not found.
  11551. * src/HttpResponse.cc
  11552. * src/FtpNegotiationCommand.cc
  11553. * src/message.h
  11554. Overwrite an existing file if --allow-overwrite=true is given.
  11555. * src/RequestGroup.cc
  11556. Removed unused functions
  11557. * src/AbstractCommand.h
  11558. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11559. Removed 'extern' from 'extern typedef ...' in src/*.h
  11560. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. Updated usage
  11562. * src/version_usage.cc
  11563. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11564. Trim announce URL
  11565. * src/DefaultBtContext.cc
  11566. * test/ShaVisitorTest.cc
  11567. Trim argument s. Give trimed s to exception constructor.
  11568. * src/Util.cc (parseInt)(parseLLInt)
  11569. * test/UtilTest.cc
  11570. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. Set precision back to 1.
  11572. * src/ConsoleStatCalc.cc (calculateStat)
  11573. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. Replaced strtol with Util::parseInt
  11575. * src/ChunkedEncoding.cc
  11576. * src/HttpConnection.cc
  11577. * src/CookieBoxFactory.cc
  11578. * src/ParameterizedStringParser.cc
  11579. * src/Util.cc
  11580. * test/UtilTest.cc
  11581. * test/OptionHandlerTest.cc
  11582. * src/Request.cc
  11583. Throw exception when empty string is given. The message for exception
  11584. changed.
  11585. * src/Util.cc (parseInt)(parseLLInt)
  11586. * src/message.h
  11587. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11589. set to 1.
  11590. * src/ConsoleStatCalc.cc (calculateStat)
  11591. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. Preallocate non-requested file which is adjacent forward to requested
  11593. file('requested' files means the files given in --select-file option)
  11594. if they share a same piece.
  11595. This fixes long pause in the file system which doesn't support sparse
  11596. files like FAT32 while downloading.
  11597. * src/MultiFileAllocationIterator.{h, cc}
  11598. * test/MultiFileAllocationIteratorTest.cc
  11599. * src/FileEntry.{h, cc}
  11600. Removed unused _option.
  11601. * src/MultiDiskAdaptor.h
  11602. * test/MultiDiskAdaptorTest.cc
  11603. * src/DefaultPieceStorage.cc
  11604. Set the default value of --seed-ratio to 1.0.
  11605. If 0.0 is given, then seeding continues regardless of share ratio.
  11606. * src/version_usage.cc
  11607. * src/option_processing.cc
  11608. * src/BtSetup.cc
  11609. * doc/aria2c.1.txt
  11610. * doc/aria2c.1
  11611. Fixed: Selective download is not working in BitTorrent
  11612. * src/RequestGroup.cc
  11613. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11614. * src/PieceStorage.h
  11615. * test/MockPieceStorage.h
  11616. * src/UnknownLengthPieceStorage.h
  11617. * src/DefaultPieceStorage.{h, cc}
  11618. * src/Metalink2RequestGroup.cc
  11619. * src/RequestGroup.cc
  11620. * src/Sequence.h
  11621. * test/SequenceTest.cc
  11622. * src/IntSequence.h
  11623. * src/message.h
  11624. * src/Util.{h, cc}
  11625. * test/UtilTest.cc
  11626. Added new function 'parse' to catch exception thrown by subclass's
  11627. parseArg
  11628. * src/OptionHandler.h
  11629. * src/OptionParser.cc
  11630. * src/NameMatchOptionHandler.h
  11631. * src/OptionHandlerImpl.h
  11632. * test/OptionHandlerTest.cc
  11633. Added IntegerRangeOptionHandler. Used for --listen-port and
  11634. --select-file. Now --listen-port accepts range of port.
  11635. * src/OptionHandlerFactory.cc
  11636. * src/version_usage.cc
  11637. * src/OptionHandlerImpl.h
  11638. * src/option_processing.cc
  11639. * src/BtSetup.cc
  11640. * src/PeerListenCommand.{h, cc}
  11641. * doc/aria2c.1.txt
  11642. * doc/aria2c.1
  11643. Implemented operator< for Exception class to provide easy way to print
  11644. exception stack trace.
  11645. * src/Exception.{h, cc}
  11646. * src/main.cc
  11647. * src/option_processing.cc
  11648. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. * src/version_usage.cc
  11650. (showVersion): Reworked.
  11651. (showUsage): Added examples.
  11652. Removed Hint for total length and file name.
  11653. * src/Metalink2RequestGroup.cc
  11654. * src/RequestGroup.{h, cc}
  11655. * src/HttpResponseCommand.cc
  11656. * src/FtpNegotiationCommand.cc
  11657. Now --follow-torrent and --follow-metalink option work properly.
  11658. * src/RequestGroup.cc
  11659. Updated man page
  11660. * doc/aria2c.1.txt
  11661. * doc/aria2c.1
  11662. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11663. Removed.
  11664. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11665. Use Segment::operator==()
  11666. * src/HttpConnection.cc
  11667. * src/Segment.h
  11668. Updated usage
  11669. * src/version_usage.cc
  11670. Added EINTR treatment.
  11671. * src/SocketCore.cc
  11672. * src/AbstractDiskWriter.cc
  11673. Rewritten.
  11674. * src/Util.cc (rangedFileCopy)
  11675. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11676. Fixed typo.
  11677. * src/version_usage.cc
  11678. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Implemented. Now -c option works fine.
  11680. * src/DefaultPieceStorage.cc (markPiecesDone)
  11681. * test/DefaultPieceStorageTest.cc
  11682. Removed.
  11683. * src/SegmentMan.{h, cc}
  11684. (markAllPiecesDone)
  11685. (markPieceDone)
  11686. Synchronized po files with
  11687. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11688. * src/fr.po
  11689. * src/ru.po
  11690. * src/de.po
  11691. * src/ja.po
  11692. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Added ifdef and some modifications to compile without BitTorrent,
  11694. Metalink, MessageDigest
  11695. support.
  11696. * src/PieceHashCheckIntegrityEntry.cc
  11697. * src/MetalinkEntry.h
  11698. * src/version_usage.cc
  11699. * src/main.cc
  11700. * src/DownloadEngine.{h, cc}
  11701. * src/Metalink2RequestGroup.cc
  11702. * src/Peer.cc
  11703. * src/RequestGroup.cc
  11704. * src/MetalinkHelper.cc
  11705. * test/DefaultPieceStorageTest.cc
  11706. * test/MetalinkPostDownloadHandlerTest.cc
  11707. * test/Metalink2RequestGroupTest.cc
  11708. Hide TOTAL SPD when all downloads complete.
  11709. * src/ConsoleStatCalc.cc
  11710. Log target system information.
  11711. * src/main.cc
  11712. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. Now --metalink-location accepts a comma-deliminated list of locations.
  11714. * src/MetalinkEntry.{h, cc}
  11715. * test/MetalinkEntryTest.cc
  11716. * src/version_usage.cc
  11717. * src/Metalink2RequestGroup.cc
  11718. * src/Xml2MetalinkProcessor.cc
  11719. * test/Xml2MetalinkProcessorTest.cc
  11720. * doc/aria2c.1.txt
  11721. * doc/aria2c.1
  11722. * src/Util.cc (toUpper)(toLower): Rewritten.
  11723. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. Added the ability to detect duplicate download entry which is about to
  11725. download the same file other RequestGroup is downloading.
  11726. * src/RequestGroup.cc
  11727. * src/HttpResponseCommand.cc
  11728. * src/FtpNegotiationCommand.cc
  11729. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11730. Recalculates download progress when loading a control file,
  11731. if the piece length of DownloadContext is different from the one saved
  11732. in the control file. Currently in-flight pieces are ignored.
  11733. * src/DefaultBtProgressInfoFile.cc
  11734. * test/DefaultBtProgressInfoFileTest.cc
  11735. * src/Util.{h, cc}
  11736. * test/UtilTest.cc
  11737. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. Do not rotate tiers in announce-list.
  11739. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11740. AnnounceList::allTiersFailed() used instead to detect whether all
  11741. tiers are tried and failed.
  11742. * test/DefaultBtAnnounceTest.cc
  11743. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11744. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11745. * test/AnnounceListTest.cc
  11746. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11747. clause. Catch RecoverableException instead of DlRetryEx instead.
  11748. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Implemented checksum validation feature(1 checksum for each file)
  11750. The validation takes place after the download.
  11751. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11752. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11753. * src/CheckIntegrityCommand.cc: Changed log message.
  11754. * src/Metalink2RequestGroup.cc: Set checksum to
  11755. SingleFileDownloadContext.
  11756. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11757. PieceHashCheckIntegrity class.
  11758. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11759. PieceHashCheckIntegrity class.
  11760. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11761. * src/IteratableValidator.h: New class.
  11762. * src/message.h
  11763. * src/CheckIntegrityEntry.{h, cc}
  11764. * src/IteratableChunkChecksumValidator.{h, cc}
  11765. * src/SingleFileDownloadContext.h
  11766. * src/DownloadCommand.cc
  11767. --allow-overwrite=true is no longer needed to check file integrity
  11768. before download in BitTorrent download.
  11769. * src/RequestGroup.cc (getInitialCommand)
  11770. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11771. throws exception.
  11772. * src/RequestGroupMan.cc (getInitialCommands)
  11773. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. urlencode the given url inside Request::parseUrl(...)
  11775. * src/Request.{h, cc}
  11776. * src/Util.{h, cc}
  11777. * test/RequestTest.cc
  11778. Removed #!metalink3! notation support because it is deleted from
  11779. the metalink specification.
  11780. * src/Request.{h, cc}
  11781. * test/RequestTest.cc
  11782. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Don't connect server before checking file integrity at startup, if
  11784. filesize and output file path are known.
  11785. * src/AbstractCommand.cc
  11786. * src/StreamFileAllocationEntry.cc
  11787. * src/Metalink2RequestGroup.cc
  11788. * src/RequestGroup.{h, cc}
  11789. * src/HttpResponseCommand.cc
  11790. * src/FtpNegotiationCommand.cc
  11791. Added DownloadFailureException. If it is thrown, RequestGroup should
  11792. halt.
  11793. * src/AbstractCommand.cc
  11794. * src/DownloadFailureException.h
  11795. * src/RequestGroup.cc
  11796. Catch RecoverableException, instead of DlAbortEx.
  11797. * src/RequestGroupMan.cc
  11798. * src/FillRequestGroupCommand.cc
  11799. * src/MetaFileUtil.cc
  11800. * src/IteratableChunkChecksumValidator.cc
  11801. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11802. getGID())
  11803. * src/CheckIntegrityCommand.cc
  11804. * src/message.h
  11805. Print gid instead of idx.
  11806. * src/RequestGroupMan.cc
  11807. Removed exception throwers declaration.
  11808. * src/DirectDiskAdaptor.{h, cc}
  11809. * src/SocketCore.{h, cc}
  11810. * src/MultiDiskAdaptor.{h, cc}
  11811. * src/HttpConnection.{h, cc}
  11812. * src/HttpResponse.{h, cc}
  11813. * src/DiskAdaptor.{h, cc}
  11814. * src/CopyDiskAdaptor.{h, cc}
  11815. * src/MultiDiskAdaptor.{h, cc}
  11816. * src/HttpHeaderProcessor.{h, cc}
  11817. * src/AbstractSingleDiskAdaptor.{h, cc}
  11818. * src/Util.{h, cc}
  11819. * test/UtilTest.cc
  11820. * src/DefaultDiskWriter.{h, cc}
  11821. * src/FtpConnection.{h, cc}
  11822. * src/AbstractDiskWriter.{h, cc}
  11823. Removed duplicate code.
  11824. * src/StreamCheckIntegrityEntry.cc
  11825. Removed unnecessary include.
  11826. * src/DiskWriter.h
  11827. Included Exception.h
  11828. * src/option_processing.cc
  11829. Included 2 files and added doc
  11830. * src/TrackerWatcherCommand.cc
  11831. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11832. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11833. Changed CheckIntegrityEntry interface so that it can define
  11834. the action when all the chunk checksums are valid.
  11835. * src/CheckIntegrityEntry.h
  11836. * src/StreamCheckIntegrityEntry.{h, cc}
  11837. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11838. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11839. to exit rather than doing seeding. So, it would be good to toggle this
  11840. behavior.
  11841. * src/CheckIntegrityCommand.cc
  11842. * src/AbstractCommand.cc
  11843. * src/RequestGroup.cc
  11844. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. Reflect the download length of in-flight pieces.
  11846. It makes the download length readout more precise.
  11847. * src/DefaultPieceStorage.{h, cc}
  11848. * test/DefaultPieceStorageTest.cc
  11849. * src/a2functional.h
  11850. * test/a2functionalTest.cc
  11851. Lower CPU load when --max-download-limit is used.
  11852. There is up and down in speed indicator when enabling
  11853. http-pipelining but a download goes well. I think the problem is that
  11854. because http-pipelining is enabled, DownloadCommand is created for
  11855. each segment and in its constructor, PeerStat::downloadStart() is
  11856. called. In PeerStat::downloadStart(), speed calculation object is
  11857. reseted, which makes download speed zero.
  11858. * src/DownloadCommand.cc
  11859. Rewritten using accumulate.
  11860. * src/RequestGroupMan.cc (calculateStat)
  11861. Code clearnup.
  11862. * src/FtpNegotiationCommand.cc
  11863. * src/HttpResponseCommand.cc
  11864. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. Fixed: Can not resume: aria2 reports download already finished.
  11866. * src/AbstractCommand.{h, cc}
  11867. * src/HttpResponseCommand.cc
  11868. * src/FtpNegotiateCommand.cc
  11869. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11870. Now a file is stored in the directory specified in .metalnk file
  11871. (file[@name]).
  11872. * src/Metalink2RequestGroup.cc
  11873. Create the directory structure when opening the file if it doesn't
  11874. exist.
  11875. * src/AbstractDiskWriter.cc
  11876. * src/Util.{h, cc}
  11877. * src/File.h
  11878. * test/UtilTest.cc
  11879. Removed file name comparison
  11880. * src/Metalink2RequestGroup.cc
  11881. * src/HttpResponseCommand.cc
  11882. Rewritten using Util::mkdirs()
  11883. * src/FileEntry.cc (setupDir)
  11884. * test/FileEntryTest.cc
  11885. Updated doc
  11886. * src/SingleFileDownloadContext.h
  11887. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. Now SleepCommand dispatches nextCommand when halt is requested.
  11889. It avoids a possible long wait after hitting CTRL-C.
  11890. * src/SleepCommand.{h, cc}
  11891. * src/RequestGroupAware.{h, cc}
  11892. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11894. to open listen port, then remove the port number from the tracker
  11895. request.
  11896. * src/DefaultBtAnnounce.cc
  11897. * test/DefaultBtAnnounceTest.cc
  11898. * test/MockPieceStorage.h
  11899. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11900. them more testable.
  11901. * src/DefaultBtAnnounce.{h, cc}
  11902. * src/DefaultBtContext.{h, cc}
  11903. * src/Util.{h, cc}
  11904. * test/DefaultBtAnnounceTest.cc
  11905. * test/DefaultBtContextTest.cc
  11906. * test/UtilTest.cc
  11907. Added 'B' to upload bytes readout.
  11908. * src/ConsoleStatCalc.cc
  11909. Now the listen port for BitTorrent download is opened when it is
  11910. needed.
  11911. * src/DownloadEngineFactory.cc
  11912. * src/BtSetup.{h, cc}
  11913. * src/PeerListenCommand.{h, cc}
  11914. Now an exception thrown while parsing tracker response is now logged.
  11915. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11916. called, which means no retry is made in this case, assuming a tracker
  11917. has a problem.
  11918. * src/TrackerWatcherCommand.cc
  11919. Fixed: downloading a file whose length is unkown fails.
  11920. * src/DownloadCommand.cc
  11921. Simplified prepareForNextSegment()
  11922. * src/DownloadCommand.cc
  11923. Updated
  11924. * po/POTFILES.in
  11925. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. Re-implemented a file listing for Metalink, which was dropped while
  11927. http/ftp/torrent integration was being implemented.
  11928. * src/MetalinkHelper.{h, cc}: New class.
  11929. * test/MetalinkHelperTest.cc
  11930. * src/main.cc
  11931. * src/Metalink2RequestGroup.cc
  11932. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Added the ability to display the detailed torrent file information.
  11934. Now -S option gives not only a file listing, but also total download
  11935. length, info hash, announce URI, piece length, the number of pieces,
  11936. and mode(single or multi-torrent).
  11937. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11938. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11939. KiB)
  11940. * test/UtilTest.cc
  11941. * src/main.cc
  11942. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. Added ftp://USER:PASSWD@Servername automatic parsing.
  11944. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11945. _password. Recognize username and password in URI.
  11946. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11947. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11948. * src/RequestFactory.{h, cc}: Removed.
  11949. * src/AuthConfigFactory.{h, cc}: New class.
  11950. * src/FtpConnection.cc: Use AuthConfigFactory.
  11951. * src/HttpRequest.cc: Use AuthConfigFactory.
  11952. * test/HttpRequestTest.cc: Updated.
  11953. * test/RequestTest.cc: Updated.
  11954. * test/AuthConfigFactoryTest.cc: New class.
  11955. * test/RequestFactoryTest.cc: Removed.
  11956. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. Use RequestGroup::allDownloadFinished() to decide whether the control
  11958. file should be removed or saved.
  11959. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11960. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11961. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11962. Use File::renameTo()
  11963. * src/DefaultBtProgressInfoFile.cc
  11964. Added --no-file-allocation-limit command-line option.
  11965. * src/version_usage.cc
  11966. * src/option_processing.cc
  11967. * src/OptionHandlerFactory.cc
  11968. * src/RequestGroup.{h, cc}
  11969. * src/BtCheckIntegrityEntry.cc
  11970. * src/StreamCheckIntegrityEntry.cc
  11971. * src/prefs.h
  11972. * doc/aria2c.1.txt
  11973. * doc/aria2c.1
  11974. Now prealloc is the default value for --file-allocation option.
  11975. * src/version_usage.cc
  11976. * src/option_processing.cc
  11977. * doc/aria2c.1.txt
  11978. * doc/aria2c.1
  11979. Don't URL-encode user-agent.
  11980. * src/HttpRequest.cc
  11981. Updated translations
  11982. * po/LINGUAS: Added nl for Dutch translation.
  11983. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11984. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11985. * po/POTFILES.in: Updated.
  11986. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. Added the ability to recognize url-list in a torrent file.
  11988. The retrieved URLs are attached to the corresponding FileEntry.
  11989. * src/DefaultBtContext.{h, cc}
  11990. * src/FileEntry.{h, cc}
  11991. * test/DefaultBtContextTest.cc
  11992. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11993. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11994. after the download finishes.
  11995. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11996. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11997. the data smaller than block length.
  11998. A block length can be specified by constructor's argument.
  11999. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12000. Get a missing piece in the range of given FileEntry. This function is
  12001. not used in the program yet.
  12002. * src/Util.h: Added some macros.
  12003. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. Added HTTP/1.1 keep alive and pipelining support.
  12005. See --enable-http-keep-alive and --enable-http-pipelining option.
  12006. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12007. Segment.
  12008. * src/HttpDownloadCommand.{h, cc}
  12009. * src/OptionHandlerFactory.cc
  12010. * src/HttpConnection.{h, cc}
  12011. * src/version_usage.cc
  12012. * src/HttpInitiateConnectionCommand.cc
  12013. * src/FtpInitiateConnectionCommand.cc
  12014. * src/Segment.h
  12015. * src/HttpRequestCommand.{h, cc}
  12016. * src/option_processing.cc
  12017. * src/prefs.h
  12018. * src/HttpResponseCommand.cc
  12019. * src/SegmentMan.{h, cc}
  12020. * src/FtpNegotiateCommand.cc
  12021. * src/HttpProxyResponseCommand.cc
  12022. * src/Request.cc
  12023. * src/HttpRequest.cc
  12024. * src/DownloadCommand.cc
  12025. * test/HttpRequestTest.cc
  12026. * test/RequestTest.cc
  12027. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12028. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12029. finished.
  12030. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12032. catching it inside the method.
  12033. When no file entry is found in a metalink without querying user
  12034. preferences, throw the exception with the error message that suggests
  12035. metalink file is probably broken.
  12036. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12037. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12039. processed.
  12040. * src/RequestGroupMan.cc (removeStoppedGroup)
  12041. Added debug message.
  12042. * src/BtPostDownloadHandler.cc
  12043. * src/MetalinkPostDownloadHandler.cc
  12044. * src/PostDownloadHandler.{h, cc}
  12045. * src/RequestGroup.cc
  12046. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12047. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12048. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12049. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12050. stops and there are any unfinished or in-progress downloads.
  12051. Added the legend of "stat".
  12052. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12053. Throw exception when chunck checksum verification fails.
  12054. * src/DownloadCommand.cc (validatePieceHash): New function.
  12055. * src/PiecedSegment.{h, cc} (clear): New function.
  12056. * src/GrowSegment.{h, cc} (clear): New function.
  12057. * src/Segment.h (clear): New function.
  12058. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12059. * test/SegmentTest.cc
  12060. * test/GrowSegmentTest.cc
  12061. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12062. Do not send referer when redirected.
  12063. * src/Request.cc (redirectUrl)
  12064. * test/RequestTest.cc
  12065. * test/HttpRequestTest.cc
  12066. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12067. Implemented BitTorrent/http/ftp integrated download.
  12068. I've rewritten lots of files and now some headers have forward
  12069. class declarations to reduce compile time.
  12070. The implementation is extremely alpha stage, I recommend to use this
  12071. for testing purpose only.
  12072. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. Fixed the compilation error on 64bit platform.
  12074. * test/HttpHeaderProcessorTest.cc
  12075. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Merged Ross's patch that fixes compilation problem in MinGW
  12077. * test/DefaultBtProgressInfoFileTest.cc
  12078. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12079. Updated fr.po by sebone
  12080. * po/fr.po
  12081. Updated man page.
  12082. * doc/aria2c.1.txt
  12083. * Release 0.11.3
  12084. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12085. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12086. failure in Metalink.
  12087. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. Automatically save *.aria2 control file of http/ftp download in every
  12089. 60 seconds.
  12090. * src/AutoSaveCommand.{h, cc}: New class.
  12091. * src/TimeBasedCommand.{h, cc}: New class.
  12092. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12093. Disable parameterized URI support by default. Added -P option to
  12094. enable the feature.
  12095. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12096. * src/OptionHandlerFactory.cc
  12097. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12098. Updated Japanese translation.
  12099. * po/ja.po
  12100. Updated man page.
  12101. * doc/aria2c.1.txt
  12102. * Release 0.11.3-rc
  12103. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12105. it is successful, then renamed to *.aria2.
  12106. This prevents *.aria2 file from being truncated or corrupted when
  12107. file system becomes out of space.
  12108. * src/DefaultBtProgressInfoFile.cc (save)
  12109. * src/SegmentMan.cc (save)
  12110. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12111. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12112. Reduced the fragmentation of bitfield in http/ftp download.
  12113. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12114. * test/BitfieldManTest.cc
  12115. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. Added the ability to disable segmented download in .metalink.
  12117. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12118. 'url' tag.
  12119. * src/MetalinkEntry.{h, cc}
  12120. * src/RequestResource.{h, cc}
  12121. * src/MetalinkRequestInfo.cc
  12122. * src/Xml2MetalinkProcessor.cc
  12123. * test/Xml2MetalinkProcessorTest.cc
  12124. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12125. Added parameterized URI support.
  12126. * src/main.cc: -Z option added.
  12127. * src/OptionHandlerFactory.cc
  12128. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12129. * src/PStringDatum.h: New class.
  12130. * src/PStringSegment.{h,cc}: New class.
  12131. * src/PStringNumLoop.h: New class.
  12132. * src/PStringSelect.h: New class.
  12133. * src/NumberDecorator.h: New class.
  12134. * src/FixedWidthNumberDecorator.h: New class.
  12135. * src/AlphaNumberDecorator.h: New class.
  12136. * src/PStringVisitor.h: New class.
  12137. * src/PStringBuildVisitor.{h,cc}: New class.
  12138. * src/ParameterizedStringParser.{h,cc}: New class.
  12139. * src/Util.{h,cc}
  12140. (isNumber): New function.
  12141. (isLowercase): New function.
  12142. (isUppercase): New function.
  12143. (alphaToNum): New function.
  12144. * test/ParameterizedStringParserTest.cc: New class.
  12145. * test/AlphaNumberDecoratorTest.cc: New class.
  12146. * test/PStringBuildVisitorTest.cc: New class.
  12147. * test/UtilTest.cc
  12148. (testIsNumber): New function.
  12149. (testIsLowercase): New function.
  12150. (testIsUppercase): New function.
  12151. (testAlphaToNum): New function.
  12152. Added '\n' after the error message
  12153. * src/RequestInfo.h (printDownloadAbortMessage)
  12154. Added auto file renaming feature in http(s)/ftp download.
  12155. * src/main.cc: Added --auto-file-renaming command-line option.
  12156. * src/OptionHandlerFactory.cc
  12157. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12158. * src/RequestGroup.{h, cc}
  12159. (shouldCancelDownloadForSafety): Rewritten
  12160. (tryAutoFileRenaming): New function.
  12161. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12162. * src/HttpResponseCommand.cc
  12163. (executeInternal): Removed the call to RequestGroupMan::
  12164. isSameFileBeingDownloaded()
  12165. * src/FtpNegotiateCommand.cc
  12166. (recvSize): Removed the call to RequestGroupMan::
  12167. isSameFileBeingDownloaded()
  12168. * test/RequestGroupTest.cc: New class.
  12169. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12171. IO.
  12172. * src/DefaultBtProgressInfoFile.cc
  12173. * src/MetaFileUtil.cc
  12174. * src/SimpleLogger.cc
  12175. * src/SegmentMan.cc
  12176. * src/Util.cc
  12177. * src/Platform.cc
  12178. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12179. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12180. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12181. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12182. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12183. Fixed the bug that prevents file allocation is not done when
  12184. dowloading multi-torrent file.
  12185. * src/AbstractDiskWriter.cc (openFile)
  12186. Increase the maximum number of -j option from 15 to 45.
  12187. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12188. Added fr.po, thanks to Charles Landemaine.
  12189. * po/fr.po
  12190. * po/LINGUAS
  12191. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12192. gcc 3.4.4 support:
  12193. * src/DefaultBtContext.cc: int32_t -> int
  12194. * src/main.cc: int -> int32_t, int32_t -> int
  12195. * src/messageDigest.h: uint32_t -> unsigned int
  12196. * src/NameResolver.h: int32_t -> int
  12197. * src/PeerConnection.cc: int -> int32_t
  12198. * src/SpeedCalc.cc: int32_t -> int
  12199. * src/TrackerUpdateCommand.h: int -> int32_t
  12200. * src/Util.cc: int32_t -> int
  12201. * src/Util.h: int32_t -> int
  12202. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12203. * test/AnnounceListTest.cc: int -> int32_t
  12204. * test/ChunkedEncodingTest.cc: int -> int32_t
  12205. * test/DataTest.cc: int -> int32_t
  12206. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12207. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12208. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12209. * test/FeatureConfigTest.cc: int -> int32_t
  12210. * test/MetalinkEntryTest.cc: int -> int32_t
  12211. * test/MockBtRequestFactory.h: int -> int32_t
  12212. * test/MockPieceStorage.h: int -> int32_t
  12213. * test/OptionTest.cc: int -> int32_t
  12214. * test/RequestTest.cc: int -> int32_t
  12215. * test/SegmentManTest.cc: int -> int32_t
  12216. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12217. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12218. Move sleep functions to Util class:
  12219. * src/Util.cc
  12220. (sleep): New function.
  12221. (usleep): New function.
  12222. * src/DownloadCommand.cc: sleep -> Util::sleep
  12223. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12224. MinGW build enhancements. The following files are added:
  12225. * src/timegm.{c,h}
  12226. Changes to support the above new files:
  12227. * configure.ac
  12228. * src/Makefile.am
  12229. * src/a2time.h
  12230. * src/Util.cc:
  12231. * src/strptime.c: Added support for %Z option.
  12232. Fixed MinGW non-blocking bug.
  12233. * src/SocketCore.cc
  12234. * src/HttpRequestCommand.cc
  12235. Miscellenous build fixes/enhancements.
  12236. * configure.ac: Added summary report.
  12237. * src/Platform.h: Tweaked #include's.
  12238. * src/a2netcompat.h: Tweaked #include's.
  12239. * src/strptime.h: Tweaked #include's.
  12240. * src/gai_strerror.c: Tweaked #include's.
  12241. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12242. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12243. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12244. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12245. Increased the initial connection size in BitTorrent download to 40.
  12246. * src/BtRuntime.h
  12247. Added the usage message of --peer-id-prefix option.
  12248. * src/main.cc
  12249. * Release 0.11.2
  12250. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12251. MessageDigestHelper is introduced in order to simplify the use
  12252. of message digest. Removed repeated code.
  12253. The message digest algorithm is now specified by string, like "sha1",
  12254. "md5".
  12255. * src/messageDigest.{h, cc}
  12256. * src/MessageDigestHelper.{h, cc}: New class.
  12257. * src/DefaultPieceStorage.cc
  12258. * src/DefaultBtContext.{h, cc}
  12259. (computeFastSet): New function.
  12260. (setInfoHash): Added for unit testing.
  12261. (setNumPieces): Added for unit testing.
  12262. * src/DefaultBtInteractive.cc
  12263. * src/BtPieceMessage.cc
  12264. * src/Peer.cc
  12265. * src/Checksum.h
  12266. * src/message.h
  12267. * src/IteratableChecksumValidator.h
  12268. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12269. inside it.
  12270. * src/SegmentMan.{h, cc}
  12271. (checkIntegrity): Removed.
  12272. * src/IteratableChunkChecksumValidator.{h, cc}
  12273. * src/Util.h
  12274. (sha1Sum): Removed.
  12275. (simpleMessageDigest): Removed.
  12276. (fileChecksum): Removed.
  12277. (computeFastSet): Removed.
  12278. * src/ShaVisitor.cc
  12279. * src/ChunkChecksum.h
  12280. * src/DownloadCommand.cc
  12281. Removed messageDigest virtual functions.
  12282. * src/MultiDiskAdaptor.{h, cc}
  12283. * src/DiskAdaptor.h
  12284. * src/ByteArrayDiskWriter.h
  12285. * src/DiskWriter.h
  12286. * src/DiskAdaptorWriter.h
  12287. * src/AbstractSingleDiskAdaptor.{h, cc}
  12288. * src/AbstractDiskWriter.{h, cc}
  12289. Fixed comilation error when message digest is disabled.
  12290. * src/MetalinkEntry.{h, cc}
  12291. * src/MetalinkRequestInfo.cc
  12292. Removed srandom and random.
  12293. * src/SimpleRandomizer.h
  12294. Added size() virtual function to DiskAdaptor
  12295. * src/MultiDiskAdaptor.h
  12296. Fixed the bug that causes that files are not opened correctly in
  12297. multi-file torrent.
  12298. * src/TorrentRequestInfo.cc
  12299. * src/MultiDiskAdaptor.cc
  12300. Added SHA256 support
  12301. * src/messageDigest.cc
  12302. * src/Xml2MetalinkProcessor.cc
  12303. Show supported message digest algorithms
  12304. * src/main.cc
  12305. Updated contact info.
  12306. * src/main.cc
  12307. Applied Ross's patch
  12308. * src/a2netcompat.h
  12309. * src/main.cc
  12310. Fixed the bug that prevents a remote metalink from not being processed
  12311. even if '-o foo.metalink' is specified.
  12312. * src/MetalinkRequestInfo.cc
  12313. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12314. Merged Dan's patch:
  12315. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12316. Use va_copy to avoid core dump on amd64:
  12317. * src/SimpleLogger.cc
  12318. Updated contact info.
  12319. * src/main.cc
  12320. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12321. digest is not available.
  12322. * src/MetalinkEntry.h
  12323. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12324. Make a2netcompat.h include a2io.h to fix compilation error:
  12325. * src/a2netcompat.h
  12326. * src/SocketCore.cc: Removed include of a2io.h
  12327. * src/Util.cc: Removed include of a2io.h
  12328. Gather time related functions to a2time.h:
  12329. * src/a2time.h: New file.
  12330. * src/DefaultPeerStorage.cc
  12331. * src/SimpleLogger.cc
  12332. * src/Util.{h, cc}
  12333. * src/SimpleRandomizer.h
  12334. * src/TimeA2.{h,cc}
  12335. * src/DownloadCommand.cc
  12336. * src/main.cc
  12337. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12338. a2netcompat.h:
  12339. * src/NameResolver.cc
  12340. Fixed compilation error without openssl:
  12341. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12342. Added default block to suppress compiler warnings:
  12343. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12344. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12345. MinGW build enhancements. The following files are added:
  12346. * src/gai_strerror.{c,h}
  12347. * src/gettimeofday.{c,h}
  12348. Changes to support the above new files:
  12349. * configure.ac
  12350. * src/Makefile.am
  12351. * src/a2netcompat.h
  12352. * src/TimeA2.cc
  12353. * src/DefaultPeerStorage.cc
  12354. * src/NameResolver.cc: removed mingw_strerror() function.
  12355. * src/SocketCore.cc: removed mingw_strerror() function.
  12356. Miscellaneous MinGW build fixes.
  12357. * src/a2io.h: Use _lseeki64() instead of lseek()
  12358. * src/common.h
  12359. * src/DefaultFileAllocator.cc
  12360. * src/GlowFileAllocator.cc
  12361. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12362. * src/NameResolver.cc
  12363. (callback): Changed int32_t to int.
  12364. (resolve): Changed int32_t to int.
  12365. * src/Platform.cc
  12366. * src/Platform.h
  12367. * test/MultiDiskWriterTest.cc
  12368. * test/PeerMessageUtilTest.cc
  12369. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12370. Other enhancements and fixes.
  12371. * src/HttpRequestCommand.cc
  12372. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12373. * src/SocketCore.cc:
  12374. (error): New function to abstract errno/WSAGetLastError().
  12375. (errorMsg): New function to abstract errno/WSAGetLastError().
  12376. (initiateSecureConnection): Added more detailed error reporting.
  12377. * src/SocketCore.h: Added private variable blocking, to allow
  12378. proper handling of OpenSSL psuedo-errors.
  12379. * src/message.h
  12380. (EX_SSL_INIT_FAILURE)
  12381. (EX_SSL_IO_ERROR)
  12382. (EX_SSL_PROTOCOL_ERROR)
  12383. (EX_SSL_UNKNOWN_ERROR)
  12384. (EX_SSL_CONNECT_ERROR)
  12385. (EX_SOCKET_BLOCKING)
  12386. (EX_SOCKET_NONBLOCKING)
  12387. (EX_SOCKET_UNKNOWN_ERROR)
  12388. * src/Util.cc
  12389. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12390. reserved name.
  12391. (httpGMT): Fixed typo.
  12392. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Merged Ross's win32 patch(manually)
  12394. In the course of merging, following files are added.
  12395. * src/strptime.{h,c}
  12396. * src/libgen.{h,c}
  12397. * src/inet_aton.{h,c}
  12398. * src/Platform.{h,cc}
  12399. * src/localtime_r.{h,c}
  12400. * src/getaddrinfo.{h,c}
  12401. I've gethered network related things, and put them to following file:
  12402. * src/a2netcompat.h
  12403. Also io related things are put to following file:
  12404. * src/a2io.h
  12405. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12406. * src/message.h
  12407. (MSG_ALLOCATION_COMPLETED)
  12408. (EX_TOO_LARGE_FILE)
  12409. (EX_SIZE_MISMATCH)
  12410. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12411. (EX_INVALID_CHUNK_CHECKSUM)
  12412. (EX_INVALID_RANGE_HEADER)
  12413. * src/FileAllocationCommand.cc
  12414. * src/HttpResponse.cc
  12415. * src/RequestGroup.cc
  12416. * src/MultiDiskAdaptor.cc
  12417. * src/OptionHandlerImpl.h
  12418. * src/HttpResponseCommand.cc
  12419. * src/FtpNegotiateCommand.cc
  12420. * src/IteratableChecksumValidator.cc
  12421. * src/SegmentMan.cc
  12422. * src/ChunkChecksumValidator.cc
  12423. Added Randomizer::getRandomNumber(long int)
  12424. * src/Randomizer.h (getRandomNumber)
  12425. * src/SimpleRandomizer.h (getRandomNumber)
  12426. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12427. * src/Util.cc (randomAlpha): Use this new function.
  12428. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. Converted int's to in32_t. long long int's are also converted to
  12430. int64_t
  12431. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Fixed the bug that prevents cookies from being sent to the server
  12433. if the domain of cookie is FQDN and starts with ".".
  12434. * src/Cookie.cc (match)
  12435. To add the ability to change peer id.
  12436. * src/DefaultBtContext.h
  12437. (_peerIdPrefix): New variable
  12438. (setPeerIdPrefix): New function.
  12439. * src/torrentRequestInfo.cc
  12440. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12441. DefaultBtContext.
  12442. * src/main.cc (main): Added peer-id-prefix command-line option.
  12443. The usage message is not added yet.
  12444. * src/DefaultBtContext.cc
  12445. (generatePeerId): Use _peerIdPrefix.
  12446. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12447. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12448. Fixed the bug that prevents filename in content-disposition from
  12449. being retrieved when filename is not quoted.
  12450. * src/Util.cc (getContentDispositionFilename)
  12451. Fixed the bug that causes infinate loop and memory leak when file open
  12452. operation failed.
  12453. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12454. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Fixed the bug that causes segfault when all URIs specified are
  12456. unsupported.
  12457. * src/RequestGroupMan.cc (getInitialCommands)
  12458. Check if RequestGroup::createNextCommand() returns empty list of
  12459. commands.
  12460. * src/RequestGroup.cc (createNextCommand)
  12461. Change log level from info to error so that users can notice that
  12462. an error occurred.
  12463. Fixed the bug that causes segfault when a zero-sized file is
  12464. downloaded.
  12465. * src/BitfieldMan.cc (isAllBitSet)
  12466. Return true if bitfieldLength is 0.
  12467. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. * src/main.cc
  12469. (showUsage): Added 3 usage examples for metalink download.
  12470. Replace MetalinkChunkChecksum with ChunkChecksum.
  12471. * src/MetalinkChunkChecksum.h: Removed.
  12472. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12473. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12474. * src/Xml2MetalinkProcessor.cc
  12475. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12476. * src/MetalinkRequestInfo.cc (execute)
  12477. * Release 0.11.1
  12478. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12479. Reads URIs from stdin when "-i -" is specified.
  12480. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12481. * src/UriListParser.h, src/UriListParser.cc: New class.
  12482. * src/StreamUriListParser.h: New class.
  12483. * src/FileUriListParser.h: New class.
  12484. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12485. instead of UriFileListParser.
  12486. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12487. Made console readout more readable.
  12488. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12489. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12490. Fix the bug that causes -s option not to work.
  12491. * src/main.cc (main)
  12492. * src/a2algo.h: New file.
  12493. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. Create directory structure specified in metalink file.
  12495. * src/RequestGroup.h, src/RequestGroup.cc
  12496. (initAndOpenFile): Create a directory to store files if it does not
  12497. exist.
  12498. (getDir): New function.
  12499. Added ETA and download speed for an individual file to readout.
  12500. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12501. * src/RequestGroup.h
  12502. (calculateDownloadSpeed): New function.
  12503. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Made -S option work with metalink file and provided selective download
  12505. to metalink.
  12506. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12507. (filename): Removed.
  12508. (file): New variable.
  12509. (size): Removed.
  12510. (operator=): Updated.
  12511. (getPath): New function.
  12512. (getLength): New function.
  12513. (toFileEntry): New function.
  12514. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12515. (execute): Use toStream.
  12516. (showFileEntry): Removed.
  12517. * src/MetalinkRequestInfo.h
  12518. (targetFiles): New variable.
  12519. (setTargetFiles): New variable.
  12520. * src/MetalinkRequestInfo.cc
  12521. (execute): Added the ability to print file information included in
  12522. a metalink file.
  12523. Added selective download mode to metalink.
  12524. * src/main.cc
  12525. (showUsage): Updated to denote that -S and --select-file options are
  12526. applicable to metalink.
  12527. * src/FileEntry.h
  12528. (operator=): New function.
  12529. (getBasename): New function.
  12530. (getDirname): New function.
  12531. * src/Util.h, src/Util.cc
  12532. (toStream): New function.
  12533. * src/Xml2MetalinkProcessor.cc: Updated.
  12534. Made aria2 work with metalink with directory structure.
  12535. * src/File.h, src/File.cc
  12536. (getBasename): New function.
  12537. (getDirname): New function.
  12538. * src/RequestGroup.h, src/RequestGroup.cc
  12539. (_topDir): New variable.
  12540. (setTopDir): New function.
  12541. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12542. Rewrote HTTP header parsing with stringstream.
  12543. * src/HttpConnection.h, src/HttpConnection.cc
  12544. (HttpRequestEntry): New class.
  12545. (headerBuf): Removed.
  12546. (headerBufLength): Removed.
  12547. (outstandingHttpRequests): Now its element type is
  12548. HttpRequestEntryHandle.
  12549. (findEndOfHeader): Removed.
  12550. (receiveResponse): Rewritten.
  12551. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12552. Updated doc for -j option to notice that it should be used with -i
  12553. option.
  12554. * src/main.cc (showUsage)
  12555. Removed unused classes.
  12556. * src/RequestInfo.h
  12557. (FileInfo): Removed.
  12558. (checksum): Removed.
  12559. (fileInfo): Removed.
  12560. (setChecksum): Removed.
  12561. (getChecksum): Removed.
  12562. (getFileInfo): Removed.
  12563. Use ISO units.
  12564. * src/ConsoleDownloadEngine.cc
  12565. * src/TorrentConsoleDownloadEngine.cc
  12566. * src/Util.cc (abbrevSize)
  12567. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12568. Added the default listening ports to the help message.
  12569. * src/main.cc (showUsage)
  12570. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12571. Reduce the number of calls to gettimeofday to lower CPU load.
  12572. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12573. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12574. * src/Peer.h (calculateUploadSpeed): New function.
  12575. (calculateDownloadSpeed): New function.
  12576. * src/DefaultPeerStorage.cc
  12577. (CalculateStat): Added _now variable.
  12578. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12579. and Peer::calculateUploadSpeed(const struct timeval&)
  12580. Drop connection if no request or piece message is exchanged in
  12581. a certain interval.
  12582. * src/DefaultBtInteractive.h
  12583. (btRuntime): New variable.
  12584. (inactiveCheckPoint): New variable.
  12585. (checkActiveInteraction): New function.
  12586. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12587. request or piece message is received.
  12588. (checkActiveInteraction): New function.
  12589. (doInteractionProcessing): Call checkActiveInteraction.
  12590. Fixed the bug that causes remote Metalink and Torrent files are not
  12591. processed.
  12592. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12593. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12594. Changed format of log file.
  12595. * src/SimpleLogger.cc
  12596. * Release 0.11.0
  12597. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. * src/AbstractCommand.cc
  12599. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12600. MSG_MAX_TRY from error to info.
  12601. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12602. * src/message.h
  12603. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12604. (MSG_DOWNLOAD_ABORTED): Added %s.
  12605. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12606. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12607. * src/PeerAbstractCommand.cc
  12608. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12609. * src/Request.h
  12610. (cookieBox): Made ShardHandle.
  12611. * src/RequestGroup.h, src/RequestGroup.cc
  12612. (createNextCommandWithAdj): New function.
  12613. * src/FileAllocationCommand.cc
  12614. (executeInternal): Use createNextCommandWithAdj().
  12615. * src/CheckIntegrityCommand.cc
  12616. (executeInternal): Use createNextCommandWithAdj().
  12617. Added --load-cookies command-option.
  12618. * src/OptionHandlerFactory.cc
  12619. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12620. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12621. Now aria2 can handle cookie's expiration date.
  12622. * src/Cookie.h (expires): Changed its type to time_t.
  12623. * src/main.cc: Added --load-cookies command-line option.
  12624. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12625. * src/Util.h, src/Util.cc (httpGMT): New function.
  12626. * src/Request.cc (Request): Initialize cookieBox using
  12627. CookieBoxFactory.
  12628. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12629. * src/CookieParser.h, src/CookieParser.cc: New class.
  12630. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12631. * src/HttpResponseCommand.cc
  12632. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12633. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12634. download.
  12635. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. Added -j command-line option.
  12637. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12638. * src/main.cc
  12639. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12640. Rewritten using stringstream.
  12641. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12642. Rewritten using stringstream.
  12643. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Make download size shown in MB, KB.
  12645. * src/ConsoleDownloadEngine.h (sendStatistics)
  12646. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12647. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. Accept incoming connections if download rate is low.
  12649. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12650. (_lowestSpeedLimit): New variable.
  12651. (setLowestSpeedLimit): New function.
  12652. (execute): Accept incoming connections if download rate is low.
  12653. MAX_PEERS is ignored in this case.
  12654. Disable PREF_OUT in multiple concurrent download:
  12655. * src/RequestGroup.h, src/RequestGroup.cc
  12656. (setUserDefinedFilename): New function.
  12657. * src/DownloadEngineFactory.cc
  12658. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12659. concurrent download.
  12660. * src/DefaultSegmentManFactory.cc
  12661. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12662. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12664. Added its overloaded method.
  12665. * src/RequestGroup.h
  12666. (_numConcurrentCommand): New variable.
  12667. (setNumConcurrentCommand): New function.
  12668. * src/RequestGroup.cc
  12669. Abort download if same file is being downloaded concurrently.
  12670. * src/RequestGroup.h, src/RequestGroupMan.cc
  12671. (isSameFileBeingDownloaded): New function.
  12672. * src/HttpResponseCommand.cc (executeInternal)
  12673. * src/FtpNegotiateCommand.cc (recvSize)
  12674. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12675. * main.cc: Added help message for -i option.
  12676. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12678. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12679. * src/MetalinkEntry.h
  12680. (checksum): Changed to ChecksumHandle
  12681. * src/MetalinkRequestInfo.cc
  12682. (checksum): Changed to ChecksumHandle
  12683. * src/File.cc
  12684. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12685. * src/common.h
  12686. (DIR_OPEN_MODE): New definition
  12687. * src/RequestGroup.cc
  12688. (prepareForNextAction): Added an argument.
  12689. * src/message.h
  12690. (MSG_GOOD_CHECKSUM): New definition
  12691. (MSG_BAD_CHECKSUM): New definition
  12692. * src/HttpResponseCommand.cc
  12693. (handleDefaultEncoding): Continue download sequence in new
  12694. non-segmented download.
  12695. * src/FileAllocationEntry.h
  12696. (_nextDownloadCommand): New variable.
  12697. * src/DownloadCommand.cc
  12698. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12699. available.
  12700. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12701. * src/IteratableChecksumValidator.h,
  12702. src/IteratableChecksumValidator.cc: New class.
  12703. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12704. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. Change file mode to 666:
  12706. * src/common.h (OPEN_MODE): New definition.
  12707. * src/File.cc
  12708. * src/Util.cc
  12709. * src/Directry.cc
  12710. * src/AbstractDiskWriter.cc
  12711. Change the level of log message "download aborted" to debug:
  12712. * src/PeerAbstractCommand.cc (execute)
  12713. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12714. * src/TrackerWatcherCommand.cc
  12715. (createCommand): Sleep some seconds after request failed.
  12716. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12717. then abort tracker request.
  12718. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12719. * Added the simultaneous download feature.
  12720. * src/main.cc: Print "Exception caught: " when exception is caught.
  12721. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12722. * src/ActivePeerConnectionCommand.cc
  12723. * src/PeerInteractionCommand.cc
  12724. * src/BtRuntime.h
  12725. (cuidCounter): Removed.
  12726. (getNewCuid): Removed.
  12727. * src/DownloadEngineFactory.cc
  12728. * src/PeerListenCommand.cc
  12729. * src/TrackerUpdateCommand.cc
  12730. * src/PeerInitiateConnectionCommand.cc
  12731. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. * src/PeerAbstractCommand.cc
  12733. (onAbort): Call PeerStorage::returnPeer()
  12734. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12735. (incomingPeers): New variable.
  12736. (addIncomingPeer): New function.
  12737. (returnPeer): New function.
  12738. (onErasingPeer): New function.
  12739. (addPeer): push_back -> push_front
  12740. (getActivePeers): Rewritten.
  12741. (calculateStat): Rewritten.
  12742. * src/PeerStorage.h
  12743. (TransferStat::copy): New function.
  12744. (TransferStat::TransferStat): New function.
  12745. (TransferStat::operator=): New function.
  12746. (addIncomingPeer): New function.
  12747. (returnPeer): New function.
  12748. * src/PeerListenCommand.cc
  12749. (execute): Use PeerStorage::addIncomingPeer() instead of
  12750. Peer::addPeer().
  12751. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12752. Connect to a peer actively when download speed is lower than specified
  12753. speed in torrent download:
  12754. * src/ActivePeerConnectionCommand.h: New class.
  12755. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12757. * src/main.cc: Fixed the bug that prevents download if .netrc
  12758. doesn't exist.
  12759. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12760. To cache resolved hostname:
  12761. * src/AbstractCommand.h, src/AbstractCommand.cc
  12762. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12763. Added dns cache.
  12764. * src/FtpInitiateConnectionCommand.cc
  12765. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12766. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12767. NameResolver working without ares.
  12768. * src/TorrentRequestInfo.cc
  12769. (execute): Don't cache dns in torrent download.
  12770. * src/HttpInitiateConnectionCommand.cc
  12771. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12772. * src/DNSCache.h: New class.
  12773. * src/UrlRequestInfo.cc
  12774. (execute): Use dns cache.
  12775. In http request, suppress port number in http request header if port
  12776. is 80 or 443:
  12777. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12778. request header if port is 80 or 443.
  12779. (createProxyRequest): Allways send port number.
  12780. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12781. To add the command-line option which disables netrc support:
  12782. * src/OptionHandlerFactory.cc
  12783. (createOptionHandlers): Added PREF_NO_NETRC.
  12784. * src/main.cc: Added -n option.
  12785. * src/prefs.h (PREF_NO_NETRC): New definition.
  12786. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12787. V_TRUE.
  12788. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12789. is V_FALSE. This may get configurable in the future release.
  12790. To clear peer's error status by time basis:
  12791. * src/PeerAbstractCommand.cc
  12792. (onAbort): Call Peer::startBadCondition().
  12793. * src/Peer.h, src/Peer.cc
  12794. (error): Removed.
  12795. (_badConditionStartTime): New variable.
  12796. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12797. (startBadCondition): New function.
  12798. (isGood): New function.
  12799. * src/DefaultPeerStorage.cc
  12800. (addPeer): Use Peer::isGood().
  12801. (FindFinePeer): Use Peer::isGood().
  12802. Always include port number in http request header:
  12803. * src/HttpRequest.cc (getHostText): Always include port number in
  12804. http request header.
  12805. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12806. To the ability to read options from a config file:
  12807. * src/main.cc: Command-line parameter validation is delegated to
  12808. OptionHandler class.
  12809. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12810. * src/Option.h, src/Option.cc (clear): New function.
  12811. * src/OptionParser.h, src/OptionParser.cc: New class.
  12812. * src/OptionHandler.h: New class.
  12813. * src/NameMatchOptionHandler.h: New class.
  12814. * src/OptionHandlerImpl.h: New classes.
  12815. * src/prefs.h: '_' -> '-'
  12816. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12817. (FTP_PASV): New definition.
  12818. * src/Util.h, src/Util.cc (getRealSize): New function.
  12819. To disable netrc support if .netrc file does not have correct
  12820. permissions:
  12821. * src/File.h, src/File.cc (mode): New function.
  12822. To prevent confidential information to be logged:
  12823. * src/HttpConnection.h, src/HttpConnection.cc
  12824. (eraseConfidentialInfo): New function.
  12825. (sendRequest): Call eraseConfidentialInfo().
  12826. (sendProxyRequest): Call eraseConfidentialInfo().
  12827. * src/main.cc: Validate permissions of .netrc file.
  12828. To add --user-agent command-line option:
  12829. * src/main.cc: Added new command line option: --user-agent
  12830. * src/prefs.h (PREF_USER_AGENT): New definition.
  12831. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12832. parameter to HttpRequest object.
  12833. * src/AbstractProxyRequestCommand.cc
  12834. (executeInternal): Set user-agent option parameter to HttpRequest
  12835. object.
  12836. Marged the patches from Dan Fandrich.
  12837. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12838. Use filename and size from Metalink file instead of sending HEAD
  12839. request:
  12840. * src/UrlRequestInfo.h
  12841. (_filename): New variable.
  12842. (_totalLength): New variable.
  12843. (setTotalLength): New variable.
  12844. (setFilename): New variable.
  12845. * src/MetalinkRequestInfo.cc
  12846. (execute): Set filename and size to UrlRequestInfo
  12847. * src/UrlRequestInfo.cc
  12848. (execute): Use filename and size from Metalink instead of seding
  12849. HEAD request to servers.
  12850. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12851. To add the ability to resume downloading a partially downloaded file
  12852. which is downloaded from the beginning:
  12853. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12854. takes this role.
  12855. * src/main.cc: Added -c option.
  12856. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12857. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12858. * src/prefs.h (PREF_CONTINUE): New definition.
  12859. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12860. * src/DefaultDiskWriter.cc
  12861. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12862. * src/AbstractDiskWriter.h
  12863. (glowFileAllocator): New variable.
  12864. * src/AbstractDiskWriter.cc
  12865. (openExistingFile): Now preallocate file space from the end of the
  12866. existing file if totalLength argument is specified and grater than 0.
  12867. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12868. to download exists in local, continue the download of the file.
  12869. --allow-overwrite=true is assumed in this context.
  12870. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12871. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12872. Throw exception if --check-integrity=true is specified but chunk
  12873. checksums are not provided:
  12874. * src/UrlRequestInfo.cc
  12875. Do not print URLs to stdout:
  12876. * src/UrlRequestInfo.cc
  12877. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12878. * src/Request.h: Use AuthResolver to get authentication information.
  12879. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12880. set to RequestFactory object.
  12881. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12882. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12883. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12884. create Request object.
  12885. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12886. To integrate Netrc into exsiting classes:
  12887. * src/Request.h
  12888. (_userDefinedAuthConfig): New variable.
  12889. (findNetrcAuthenticator): New function.
  12890. (segment): Removed.
  12891. (setUserDefinedAuthConfig): New function.
  12892. (resolveHttpAuthConfigItem): New function.
  12893. (resolveFtpAuthConfigItem): New function.
  12894. (resolveHttpProxyAuthConfigItem): New function.
  12895. * src/HttpRequest.h
  12896. (authConfig): Removed.
  12897. (proxyAuthConfig): Removed.
  12898. (setAuthConfig): Removed.
  12899. (setProxyAuthConfig): Removed.
  12900. * src/UrlRequest.h
  12901. (getHeadResult): Added a parameter: authConfigHandle
  12902. * src/common.h
  12903. (SingletonHolder.h): New include.
  12904. * src/main.cc
  12905. (Netrc.h): New include.
  12906. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12907. Added initial value of PREF_NETRC_PATH.
  12908. Added the initialization of netrc.
  12909. * src/AuthConfig.h: New class.
  12910. * src/prefs.h
  12911. (PREF_NETRC_PATH): New definition.
  12912. * src/HttpAuthConfig.h: Removed.
  12913. * src/Netrc.cc
  12914. (getRequiredNextToken): New function.
  12915. (skipMacdef): New function.
  12916. (parse): Rewritten.
  12917. * src/Netrc.h
  12918. (getRequiredNextToken): New function.
  12919. (skipMacdef): New function.
  12920. * src/Util.h, src/Util.cc
  12921. (getHomeDir): New function.
  12922. * src/TrackerWatcherComand.cc
  12923. (createRequestCommand): Use AuthConfig.
  12924. * src/FtpConnection.cc
  12925. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12926. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12927. * src/Request.cc
  12928. (findNetrcAuthenticator): New function.
  12929. (resolveHttpAuthConfigItem): New function.
  12930. (resolveFtpAuthConfigItem): New function.
  12931. (resolveHttpProxyAuthConfigItem): New function.
  12932. * src/UrlRequestInfo.cc: Use AuthConfig.
  12933. * src/HttpRequest.cc
  12934. (createRequest): Use authConfig.
  12935. (getProxyAuthString): Use authConfig.
  12936. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12937. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12938. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12939. To reduce overhead to find commands whose socket is either
  12940. readable or writable in the download engine loop:
  12941. * src/Command.h, src/Command.cc
  12942. (STATUS): New enum.
  12943. (status): New variable.
  12944. (statusMatch): New function.
  12945. (setStatusActive): New function.
  12946. (setStatusInactive): New function.
  12947. * src/DownloadEngine.h, src/DownloadEngine.cc
  12948. (executeCommand): New function.
  12949. (run): Simplified.
  12950. (waitData): Call Command::setStatusActive() when command's socket is
  12951. readable or writable.
  12952. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. To handle Segment as SegmentHandle:
  12954. * src/AbstractCommand.cc (execute): Rewritten.
  12955. * src/SegmentMan.h: Segment -> SegmentHandle
  12956. Introducded HttpResponse class, HttpRequest class to improve code
  12957. extensiveness and make it clear:
  12958. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12959. HttpResponse class.
  12960. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12961. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12962. * src/HttpConnection.cc: Contruction of http request were moved to
  12963. HttpRequest class.
  12964. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12965. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12966. * src/HttpAuthConfig.h: New class.
  12967. * src/Range.h: New class.
  12968. To make FtpTunnel{Request, Response}Command and
  12969. HttpProxy{Request, Response}Command derived from
  12970. AbstractProxy{Request, Response}Command:
  12971. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12972. Derived from AbstractProxyRequestCommand class.
  12973. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12974. Derived from AbstractProxyResponseCommand class.
  12975. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12976. Derived from AbstractProxyRequestCommand class.
  12977. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12978. Derived from AbstractProxyResponseCommand class.
  12979. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12980. : New class.
  12981. * src/AbstractProxyResponseCommand.h,
  12982. src/AbstractProxyResponseCommand.cc: New class.
  12983. To add netrc support:
  12984. * src/Netrc.h, src/Netrc.cc: New class.
  12985. * src/Util.h, src/Util.cc (split): New function.
  12986. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12987. "Content-Range" header instead of "Range" header.
  12988. * src/HttpHeader.h
  12989. (getStatus): Removed.
  12990. (setStatus): Removed.
  12991. * src/Segment.h
  12992. (getPositionToWrite): New function.
  12993. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. * src/HttpHeader.h
  12995. (Range.h): New include.
  12996. (status): New variable.
  12997. (HttpHeader): Initialized status with 0.
  12998. (getStatus): New function.
  12999. (setStatus): New function.
  13000. (getRange): New function.
  13001. (HttpHeaderHandle): New function.
  13002. * src/HttpHeader.cc
  13003. (getRange): New function.
  13004. * src/Request.h
  13005. (RequestWeakHandle): New definition.
  13006. * src/HttpConnection.h
  13007. (HttpConnectionHandle): New type definition.
  13008. * src/HttpConnection.cc
  13009. (receiveResponse): Set HTTP status to headers.
  13010. * src/main.cc
  13011. (showUsage): Fixed typo.
  13012. * src/Segment.h
  13013. (SegmentHandle): New type definition.
  13014. * src/BitfieldMan.h
  13015. (getMissingUnusedLength): New function.
  13016. * src/BitfieldMan.cc
  13017. (getMissingUnusedLength): New function.
  13018. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. To fix static initialization order problem:
  13020. * src/BitfieldManFactory.h
  13021. (defaultRandomizer): Removed.
  13022. (factory): New variable.
  13023. (getNewFactory): Removed.
  13024. (getFactoryInstance): New function.
  13025. (setDefaultRandomizer): Rewritten.
  13026. (getDefaultRandomizer): Rewritten.
  13027. * src/BitfieldManFactory.cc
  13028. (defaultRandomizer): Removed.
  13029. (factory): Initialized to 0.
  13030. (BitfieldManFactory): Initialized randomizer to 0.
  13031. * src/DefaultPieceStorage.cc
  13032. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13033. * src/Peer.cc
  13034. (Peer): getNewFactory() -> getFactoryInstance()
  13035. * src/SegmentMan.cc
  13036. (initBitfield): getNewFactory() -> getFactoryInstance()
  13037. * src/Piece.cc
  13038. (Piece): getNewFactory() -> getFactoryInstance()
  13039. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13040. To fix the bug that causes crash on Max OS X:
  13041. * src/SimpleRandomizer.h
  13042. (getInstance): Create new instance if the static variable is null.
  13043. * src/SimpleRandomizer.cc
  13044. (randomizer): Initialized to 0.
  13045. * src/BitfieldManFactory.h
  13046. (getNewFactory): Removed the call to setRandomizer().
  13047. To fix the miscalculation of the range of checksum:
  13048. * src/BitfieldMan.h
  13049. (isBitSetOffsetRange): New function.
  13050. * src/BitfieldMan.cc
  13051. (isBitSetOffsetRange): New function.
  13052. * src/SegmentMan.cc
  13053. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13054. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13055. * Release 0.10.1
  13056. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. To lower CPU usage in BitTorrent download when --max-upload-limit
  13058. command-line option specified:
  13059. * src/DefaultBtMessageDispatcher.cc
  13060. (sendMessages): Calculate uploading speed only when current message
  13061. is uploading data and is not sent yet.
  13062. * src/DefaultPeerStorage.h
  13063. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13064. * src/HttpResponseCommand.cc
  13065. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13066. This fixes compile error in Soralis 10.
  13067. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13068. To fix segfault in Metalink download:
  13069. * src/UrlRequestInfo.h
  13070. (filename): Removed.
  13071. (totalLength): Removed.
  13072. (setTotalLength): Removed.
  13073. (setFilename): Removed.
  13074. * src/MetalinkRequestInfo.cc
  13075. (execute): Do not set filename and totalLength to reqInfo.
  13076. Set chunk checksum to reqInfo if it is not null.
  13077. * src/HttpResponseCommand.cc
  13078. (executeInternal): Fixed filename in log.
  13079. (handleDefaultEncoding): Removed the call to initBitfield() and
  13080. markAllPiecesDone().
  13081. (handleOtherEncoding): Added HEAD method handling.
  13082. * src/FtpNegotiateCommand.cc
  13083. (executeInternal): Added SEQ_HEAD_OK handling.
  13084. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13085. return false.
  13086. * src/FtpNegotiateCommand.h
  13087. (SEQ_HEAD_OK): New definition.
  13088. * src/SegmentMan.cc
  13089. (initBitfield): Delete bitfield.
  13090. (isChunkChecksumValidationReady): Fixed the condition.
  13091. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13092. works fine.
  13093. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13094. * src/Xml2MetalinkProcessor.h
  13095. (xpathExists): New function.
  13096. * src/Xml2MetalinkProcessor.cc
  13097. (xpathExists): New function.
  13098. Not to send HEAD request if filename and size are available in Metalink
  13099. file:
  13100. * src/UrlRequestInfo.h
  13101. (filename): New variable.
  13102. (totalLength): New variable.
  13103. (setTotalLength): New function.
  13104. (setFilename): New function.
  13105. * src/MetalinkRequestInfo.cc
  13106. (execute): Set filename and size to UrlRequestInfo.
  13107. * src/MetalinkEntry.cc
  13108. (MetalinkEntry): Initialize size with 0.
  13109. * src/UrlRequestInfo.cc
  13110. (execute): Set filename and size to SegmentMan.
  13111. Not to download rest of the files after selected files are downloaded
  13112. in BitTorrent:
  13113. * src/PieceStorage.h
  13114. (allDownloadFinished): New function.
  13115. * src/DefaultBtAnnounce.cc
  13116. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13117. downloadFinished.
  13118. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13119. * src/DefaultPieceStorage.cc
  13120. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13121. Commented out the call to finishSelectiveDownloadingMode().
  13122. (downloadFinished): Call isFilteredAllBitSet() instead of
  13123. isAllBitSet().
  13124. (allDownloadFinished): New function.
  13125. * src/DefaultBtInteractive.cc
  13126. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13127. downloadFinished().
  13128. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13129. * src/TorrentDownloadEngine.cc
  13130. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13131. * src/BitfieldMan.h
  13132. (isFilteredAllBitSet): New function.
  13133. * src/ShareRatioSeedCriteria.h
  13134. (PieceStorage.h): New include.
  13135. (pieceStorage): New variable.
  13136. (evaluate):
  13137. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13138. * src/BitfieldMan.cc
  13139. (isFilteredAllBitSet): New function.
  13140. (isAllBitSet): Filter is not took into account.
  13141. Rename --force-truncate as --allow-overwrite:
  13142. * src/TorrentRequestInfo.cc
  13143. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13144. * src/main.cc
  13145. (showUsage): --force-truncate -> --allow-overwrite
  13146. * src/message.h
  13147. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13148. * src/prefs.h
  13149. (PREF_FORCE_TRUNCATE): Removed.
  13150. (PREF_ALLOW_OVERWRITE): New definition.
  13151. * src/SegmentMan.cc
  13152. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13153. * src/MetalinkRequestInfo.cc
  13154. (execute): Queueing message are now logged in info level.
  13155. * src/common.h
  13156. (LONG_LONG_MAX): Removed.
  13157. (LONG_LONG_MIN): Removed.
  13158. * src/HttpResponseCommand.cc
  13159. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13160. * src/FtpNegotiateCommand.cc
  13161. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13162. * src/main.cc
  13163. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13164. command-line option.
  13165. (main): Added --check-integriy and --realtime-chunk-checksum
  13166. command-line option.
  13167. --force-truncate -> --allow-overwrite
  13168. Set initial value of --check-integrity option to false.
  13169. Don't show usage when error occurs while persing command-line options.
  13170. Removed deprecated --upload-limit option.
  13171. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13172. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13173. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13174. * src/BtAllowedFastMessage.cc:
  13175. * src/BtBitfieldMessage.cc
  13176. * src/BtCancelMessage.cc
  13177. * src/BtChokeMessage.cc
  13178. * src/BtHaveAllMessage.cc
  13179. * src/BtHaveMessage.cc
  13180. * src/BtHaveNoneMessage.cc
  13181. * src/BtInterestedMessage.cc
  13182. * src/BtNotInterestedMessage.cc
  13183. * src/BtPieceMessage.cc
  13184. * src/BtPortMessage.cc
  13185. * src/BtRejectMessage.cc
  13186. * src/BtRequestMessage.cc
  13187. * src/BtSuggestPieceMessage.cc
  13188. * src/BtUnchokeMessage.cc
  13189. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13190. files are affected.
  13191. * src/ChunkChecksumValidator.cc
  13192. * src/SegmentMan.cc
  13193. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13194. To add chunk checksum validation:
  13195. * src/MetalinkEntry.h
  13196. (MetalinkChunkChecksum.h): New include.
  13197. (chunkChecksum): New variable.
  13198. * src/Request.h
  13199. (method): New variable.
  13200. (setMethod): New function.
  13201. (getMethod): New function.
  13202. (METHOD_GET): New static constant.
  13203. (METHOD_HEAD): New static constant.
  13204. * src/Xml2MetalinkProcessor.h
  13205. (getPieceHash): New function.
  13206. * src/PieceStorage.h
  13207. (markAllPiecesDone): New function.
  13208. (checkIntegrity): New function.
  13209. * src/FileAllocator.h
  13210. (NullFileAllocationMonitor.h): New include.
  13211. (FileAllocator): Initialize fileAllocationMonitor with new
  13212. NullFileAllocationMonitor().
  13213. * src/MultiDiskAdaptor.h
  13214. (messageDigest.h): Remove include.
  13215. (ctx): Removed.
  13216. (hashUpdate): Added ctx.
  13217. (MultiDiskAdaptor): Removed ctx.
  13218. (sha1Sum): Renamed as messageDigest.
  13219. (messageDigest): New function.
  13220. * src/UrlRequestInfo.h
  13221. (HeadResult): New class.
  13222. (digestAlgo): New variable.
  13223. (chunkChecksumLength): New variable.
  13224. (chunkChecksums): New variable.
  13225. (getHeadResult): New function.
  13226. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13227. (setDigestAlgo): New function.
  13228. (setChunkChecksumLength): New function.
  13229. (setChunkChecksums): New function.
  13230. * src/DefaultPieceStorage.cc
  13231. (DiskAdaptorWriter.h): New include.
  13232. (ChunkChecksumValidator.h): New include.
  13233. (markAllPiecesDone): New function.
  13234. (checkIntegrity): New function.
  13235. * src/DefaultBtContext.h
  13236. (getPieceHashes): New function.
  13237. * src/TorrentRequestInfo.cc
  13238. (execute): Try to validate chunk checksum if file already exists and
  13239. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13240. * src/messageDigest.h
  13241. (~MessageDigestContext): Added digestFree().
  13242. * src/MetalinkRequestInfo.cc
  13243. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13244. * src/DiskAdaptor.h
  13245. (messageDigest.h): New include.
  13246. (sha1Sum): Renamed as messageDigest.
  13247. (messageDigest): New function.
  13248. * src/DownloadCommand.h
  13249. (PeerStat.h): New include.
  13250. (maxDownloadSpeedLimit): New variable.
  13251. (startupIdleTime): New variable.
  13252. (lowestDownloadSpeedLimit): New variable.
  13253. (peerStat): New variable.
  13254. (setMaxDownloadSpeedLimit): New function.
  13255. (setStartupIdleTime): New function.
  13256. (setLowestDownloadSPeedLimit): New function.
  13257. * src/BtContext.h
  13258. (getPieceHashes): New function.
  13259. * src/main.cc
  13260. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13261. option to true for testing purpose.
  13262. * src/BtPieceMessage.cc
  13263. (checkPieceHash): Use messageDigest
  13264. * src/DownloadEngine.cc
  13265. (SetDescriptor): Removed.
  13266. (AccumulateActiveCommand): Removed.
  13267. (waitData): Rewritten.
  13268. (updateFdSet): Rewritten.
  13269. * src/MultiDiskAdaptor.cc
  13270. (hashUpdate): Added ctx.
  13271. (sha1Sum): Renamed as messageDigest.
  13272. (messageDigest): New function.
  13273. * src/BitfieldMan.h
  13274. (isBitRangeSet): New function.
  13275. (unsetBitRange): New function.
  13276. * src/ByteArrayDiskWriter.h
  13277. (sha1Sum): Renamed as messageDigest.
  13278. (messageDigest): New function.
  13279. * src/ConsoleDownloadEngine.cc
  13280. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13281. * src/DiskWriter.h
  13282. (messageDigest.h): New include.
  13283. (sha1Sum): Renamed as messageDigest.
  13284. (messageDigest): New function.
  13285. * src/ChunkChecksumValidator.h: New class.
  13286. * src/DiskAdaptorWriter.h: New class.
  13287. * src/prefs.h
  13288. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13289. (PREF_CHECK_INTEGRITY): New definition.
  13290. * src/HttpResponseCommand.cc
  13291. (handleDefaultEncoding): Added method "HEAD" handling.
  13292. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13293. (handleOtherEncoding):
  13294. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13295. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13296. startupIdleTime, lowestDownloadSpeedLimit to command.
  13297. * src/SegmentMan.h
  13298. (getSegmentEntryByIndex): New function.
  13299. (getSegmentEntryByCuid): New function.
  13300. (getSegmentEntryIteratorByCuid): New function.
  13301. (diskWriter): DiskWriter -> DiskWriterHandle
  13302. (pieceHashes): New variable.
  13303. (chunkHashLength): New variable.
  13304. (digestAlgo): New variable.
  13305. (FindPeerStat): Removed.
  13306. (getPeerStat): Rewritten.
  13307. (markAllPiecesDone): New function.
  13308. (checkIntegrity): New function.
  13309. (tryChunkChecksumValidation): New function.
  13310. (isChunkChecksumValidationReady): New function.
  13311. * src/BitfieldMan.cc
  13312. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13313. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13314. blocks to 0.
  13315. (isBitRangeSet): New function.
  13316. (unsetBitRange): New function.
  13317. * src/FtpNegotiateCommand.cc
  13318. (executeInternal): Set maxDownloadSpeedLimit,
  13319. startupIdleTime, lowestDownloadSpeedLimit to command.
  13320. (recvSize): Added method "HEAD" handling.
  13321. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13322. * src/AbstractSingleDiskAdaptor.cc
  13323. (sha1Sum): Renamed as messageDigest.
  13324. (messageDigest): New function.
  13325. * src/AbstractSingleDiskAdaptor.h
  13326. (sha1Sum): Renamed as messageDigest.
  13327. (messageDigest): New function.
  13328. * src/Util.h
  13329. (indexRange): New function.
  13330. * src/MetalinkEntry.cc
  13331. (MetalinkEntry): Initialized chunkChecksum to 0.
  13332. * src/ShaVisitor.cc
  13333. (~ShaVisitor): Removed the call to ctx.digestFree().
  13334. * src/SegmentMan.cc
  13335. (ChunkChecksumValidator.h): New include.
  13336. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13337. to DIGEST_ALGO_SHA1.
  13338. (~SegmentMan): Removed diskWriter.
  13339. (FindSegmentEntryByIndex): Removed.
  13340. (FindSegmentEntryByCuid): Removed.
  13341. (checkoutSegment): Rewritten.
  13342. (findSlowerSegmentEntry): Rewritten.
  13343. (getSegment): Rewritten.
  13344. (updateSegment): Rewritten.
  13345. (completeSegment): Rewritten.
  13346. (markAllPiecesDone): New function.
  13347. (checkIntegrity): New function.
  13348. (isChunkChecksumValidationReady): New function.
  13349. (tryChunkChecksumValidation): New function.
  13350. * src/Xml2MetalinkProcessor.cc
  13351. (getEntry): Get size and set it to entry.
  13352. Get chunk checksum and set it to entry.
  13353. (getPieceHash): New function.
  13354. * src/Util.cc
  13355. (sha1Sum): Removed ctx.digestFree()
  13356. (fileChecksum): Removed ctx.digestFree()
  13357. (indexRange): New function.
  13358. * src/Request.cc
  13359. (METHOD_GET): New variable.
  13360. (METHOD_HEAD): New variable.
  13361. (Request): Added method.
  13362. * src/UrlRequestInfo.cc
  13363. (FatalException.h): New include.
  13364. (message.h): New include.
  13365. (operator<<): Added operator<< for class HeadResult.
  13366. (getHeadResult): New function.
  13367. (execute): Get filename and size in separate download engine.
  13368. * src/ChunkChecksumValidator.cc: New class.
  13369. * src/DownloadCommand.cc:
  13370. (DownloadCommand): Added peerStat.
  13371. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13372. the value from Option.
  13373. The buffer size is now 16KB.
  13374. Use peerStat member instead of getting it from SegmentMan.
  13375. Use startupIdleTime member instead of gettingit from Option.
  13376. Added chunk checksum validation.
  13377. * src/AbstractDiskWriter.cc
  13378. (AbstractDiskWriter): Removed ctx.
  13379. (~AbstractDiskWriter): Removed ctx.digestFree()
  13380. (writeDataInternal): Returns the return value of write.
  13381. (readDataInternal): Returns the return value of read.
  13382. (sha1Sum): Renamed as messageDigest
  13383. (messageDigest): New function.
  13384. * src/AbstractDiwkWriter.h
  13385. (messageDigest.h): Removed include.
  13386. (ctx): Removed.
  13387. (sha1Sum): Renamed as messageDigest
  13388. (messageDigest): New function.
  13389. * src/DefaultPieceStorage.h
  13390. (markAllPiecesDone): New function.
  13391. (checkIntegrity): New function.
  13392. * src/NullFileAllocationMonitor.h: New class.
  13393. * src/MetalinkChunkChecksum.h: New class.
  13394. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. To decrease CPU usage in bittorrent download, calculation results in
  13396. BitfieldMan were cached and realtime fetching PeerObject was removed
  13397. with WeakHandle introduced. Option values are set to the objects
  13398. by setter before download begins.
  13399. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13400. * src/DefaultBtRequestFactory.h
  13401. (dispatcher): BtMessageDispatcherHandle ->
  13402. BtMessageDispatcherWeakHandle.
  13403. (messageFactory): New variable.
  13404. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13405. BtMessageDispatcherWeakHandle.
  13406. (setBtMessageFactory): New function.
  13407. * src/DefaultBtMessageDispatcher.cc:
  13408. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13409. from Option.
  13410. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13411. feating the value from Option.
  13412. Use messageFactory member.
  13413. * src/PeerInteractionCommand.cc
  13414. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13415. Add reverse dependencies to factory object.
  13416. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13417. dispatcher.
  13418. Set messageFactory to receiver.
  13419. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13420. btInteractive.
  13421. Set receiver to peerObject.
  13422. Set maxDownloadSpeedLimit to this.
  13423. (executeInternal): Use maxDownloadSpeedLimit member.
  13424. * src/BtChokeMessage.cc
  13425. (doReceivedAction): Use dispatcher, requestFactory member.
  13426. (onSendComplete): Use dispatcher member.
  13427. * src/PeerInteractionCommand.h
  13428. (maxDownloadSpeedLimit): New variable.
  13429. * src/DefaultBtMessageReceiver.h
  13430. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13431. (dispatcher):
  13432. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13433. (messageFactory): New variable.
  13434. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13435. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13436. (setDispatcher):
  13437. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13438. (setBtMessageFactory): New function.
  13439. * src/DefaultBtInteractive.cc
  13440. (initiateHandshake): Use messageFactory member.
  13441. (addBitfieldMessageToQueue): Use messageFactory member.
  13442. (addAllowedFastMessageToQueue): Use messageFactory member.
  13443. (decideChoking): Use messageFactory member.
  13444. (checkHave): Use messageFactory member.
  13445. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13446. (receiveMessages): Use maxDownloadSpeedLimit member.
  13447. (decideInterest): Use messageFactory member.
  13448. * src/BtRequestMessage.cc
  13449. (doReceivedAction): Use messageFactory, dispatcher member.
  13450. (onQueued): Use dispatcher member.
  13451. * src/BtPieceMessage.cc
  13452. (doReceivedAction): Use dispatcher member.
  13453. (send): Use peerConnection member.
  13454. (onWrongPiece): Use requestFactory member.
  13455. (handleChokingEvent): Use messageFactory, dispatcher member.
  13456. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13457. * src/BtMessageDispatcher.h
  13458. (BtMessageDispatcherWeakHandle): New type definition.
  13459. * src/SimpleBtMessage.cc
  13460. (send): Use peerConnection member.
  13461. * src/BtRejectMessage.cc
  13462. (doReceivedAction): Use dispatcher member.
  13463. * src/DefaultBtMessageDispatcher.h
  13464. (Option.h): Removed include.
  13465. (messageFactory): New variable.
  13466. (option): Removed.
  13467. (maxUploadSpeedLimit): New variable.
  13468. (requestTimeout): New variable.
  13469. (DefaultBtMessageDispatcher): Removed option.
  13470. Added maxUploadSpeedLimit, requestTimeout.
  13471. (setOption): Removed.
  13472. (getOption): Removed.
  13473. (setMaxUploadSpeedLimit): New function.
  13474. (setRequestTimeout): New function.
  13475. (setBtMessageFactory): New function.
  13476. * src/DefaultBtInteractive.h
  13477. (btMessageReceiver):
  13478. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13479. (dispatcher):
  13480. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13481. (btRequestFactory):
  13482. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13483. (peerConnection):
  13484. PeerConnectionHandle -> PeerConnectionWeakHandle
  13485. (messageFactory): New variable.
  13486. (option): Removed.
  13487. (keepAliveInterval): New variable.
  13488. (maxDownloadSpeedLimit): New variable.
  13489. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13490. (setBtMessageReceiver):
  13491. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13492. (setDispatcher):
  13493. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13494. (setBtRequestFactory):
  13495. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13496. (setPeerConnection):
  13497. PeerConnectionHandle -> PeerConnectionWeakHandle
  13498. (setOption): Removed.
  13499. (setKeepAliveInterval): New function.
  13500. (setMaxDownloadSpeedLimit): New function.
  13501. (setBtMessageFactory): New function.
  13502. * src/BitfieldMan.h
  13503. (cachedNumMissingBlock): New variable.
  13504. (cachedNumFilteredBlock): New variable.
  13505. (cachedCompletedLength): New variable.
  13506. (cachedFilteredComletedLength): New variable.
  13507. (cachedFilteredTotalLength): New variable.
  13508. (countMissingBlockNow): New function.
  13509. (countFilteredBlockNow): New function.
  13510. (getFilteredTotalLengthNow): New function.
  13511. (getCompletedLengthNow): New function.
  13512. (getFilteredCompletedLengthNow): New function.
  13513. (updateCache): New function.
  13514. * src/AbstractBtMessage.h
  13515. (BtMessageDispatcher.h): New include.
  13516. (PeerConnection.h): New include.
  13517. (BtRequestFactory.h): New include
  13518. (BtMessageFactory.h): New include.
  13519. (dispatcher): New variable.
  13520. (messageFactory): New variable.
  13521. (peerConnection: New variable.
  13522. (setBtMessageDispatcher): New function.
  13523. (setPeerConnection): New function.
  13524. (setBtMessageFactory): New function.
  13525. (setBtRequestFactory): New function.
  13526. * src/DefaultBtMessageFactory.cc
  13527. (setCommonProperty): Set dispatcher, requestFactory, this,
  13528. peerConnection to msg.
  13529. * src/BtRegistry.h
  13530. (BT_MESSAGE_RECEIVER): New macro.
  13531. * src/PeerConnection.h
  13532. (PeerConnectionWeakHandle): New type definition.
  13533. * src/BtMessageFactory.h
  13534. (BtMessageFactoryWeakHandle): New type definition.
  13535. * src/BitfieldMan.cc
  13536. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13537. cachedCompletedLength, cachedFilteredComletedLength,
  13538. cachedFilteredTotalLength.
  13539. Call updateCache().
  13540. (countMissingBlock): Return cachedNumMissingBlock.
  13541. (countMissingBlockNow): New function.
  13542. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13543. (countFilteredBlockNow): New function.
  13544. (setBit): Call updateCache().
  13545. (unsetBit): Call updateCache().
  13546. (setBitfield): Call updateCache().
  13547. (clearAllBit): Call updateCache().
  13548. (setAllBit): Use setBitInternal instead of setBit.
  13549. Call updateCache().
  13550. (addFilter): Call updateCache().
  13551. (enableFilter): Call updateCache().
  13552. (disableFilter): Call updateCache().
  13553. (clearFilter): Call updateCache().
  13554. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13555. (getFilteredTotalLengthNow): New function.
  13556. (getCompletedLength): Return cachedCompletedLength.
  13557. (getCompletedLengthNow): New function.
  13558. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13559. (getFilteredCompletedLengthNow): New function.
  13560. (updateCache): New function.
  13561. * src/BtMessageReceiver.h
  13562. (BtMessageReceiverWeakHandle): New type definition.
  13563. * src/DefaultBtMessageReceiver.cc
  13564. (receiveHandshake): Use messageFactory member.
  13565. (sendHandshake): Use messageFactory member.
  13566. (receiveMessage): Use messageFactory member.
  13567. * src/DefaultBtMessageFactory.h
  13568. (dispatcher): New variable.
  13569. (requestFactory): New variable.
  13570. (peerConnection): New variablle.
  13571. (setBtMessageDispatcher): New function.
  13572. (setBtRequestFactory): New function.
  13573. (setPeerConnection): New function.
  13574. * src/SharedHandle.h
  13575. (RefCount): New class.
  13576. (WeakHandle): New class.
  13577. * src/PeerObject.h
  13578. (BtMessageReceiver.h): New include.
  13579. (PeerObject): Added btMessageReceiver.
  13580. (btMessageReceiver): New variable.
  13581. * src/Util.cc
  13582. (countBit): Simplified.
  13583. * src/BtCancelMessage.cc
  13584. (doReceivedAction): Use dispatcher member.
  13585. * src/BtRequestFactory.h
  13586. (BtRequestFactoryWeakHandle): New type definition.
  13587. * src/PeerStorage.h
  13588. (downloadSpeed): int -> uint32_t
  13589. (uploadSpeed): int -> uint32_t
  13590. (sessionDownloadLength): long long int -> uint64_t
  13591. (sessionUploadLength): long long int -> uint64_t
  13592. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13593. To add RecoverableException, FatalException:
  13594. * src/AbstractCommand.cc
  13595. (onAbort): Exception -> RecoverableException
  13596. * src/PeerAbstractCommand.h
  13597. (RecoverableException.h): New include.
  13598. (onAbort): Exception -> RecoverableException.
  13599. * src/PeerInteractionCommand.cc
  13600. (onAbort): Exception -> RecoverableException.
  13601. * src/PeerAbstractCommand.cc
  13602. (execute): Exception -> RecoverableException.
  13603. (onAbort): Exception -> RecoverableException.
  13604. * src/TorrentRequestInfo.cc
  13605. (execute): Exception -> RecoverableException.
  13606. * src/MetalinkRequestInfo.cc
  13607. (execute): Exception -> RecoverableException.
  13608. * src/MetaFileUtil.cc: RecoverableException.
  13609. * src/AbstractCommand.h
  13610. (onAbort): Exception -> RecoverableException.
  13611. * src/DlRetryEx.h: Exception -> RecoverableException.
  13612. * src/DlAbortEx.h: Exception -> RecoverableException.
  13613. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13614. * src/Util.cc: Exception -> RecoverableException.
  13615. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13616. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13617. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13618. To make ID static const int
  13619. * src/BtInterestedMessage.h
  13620. (ID_t): Removed.
  13621. (ID): New variable.
  13622. (getId): Made non-const.
  13623. * src/BtPieceMessage.h
  13624. (ID_t): Removed.
  13625. (ID): New variable.
  13626. (getId): Made non-const.
  13627. * src/BtChokeMessage.h
  13628. (ID_t): Removed.
  13629. (ID): New variable.
  13630. (getId): Made non-const.
  13631. * src/BtHaveAllMessage.h
  13632. (ID_t): Removed.
  13633. (ID): New variable.
  13634. (getId): Made non-const.
  13635. * src/BtKeepAliveMessage.h
  13636. (ID_t): Removed.
  13637. (ID): New variable.
  13638. (getId): Made non-const.
  13639. * src/BtHandshakeMessage.h
  13640. (ID): New variable.
  13641. (getId): Made non-const.
  13642. * src/BtSuggestPieceMessage.h
  13643. (ID_t): Removed.
  13644. (ID): New variable.
  13645. (getId): Made non-const.
  13646. * src/BtPortMessage.h
  13647. (ID_t): Removed.
  13648. (ID): New variable.
  13649. (getId): Made non-const.
  13650. * src/AbstractBtMessage.h
  13651. (id): Removed.
  13652. (AbstractBtMessage): Removed id.
  13653. (getId): Removed.
  13654. * src/BtHaveMessage.h
  13655. (ID_t): Removed.
  13656. (ID): New variable.
  13657. (getId): Made non-const.
  13658. * src/BtAllowedFastMessage.h
  13659. (ID_t): Removed.
  13660. (ID): New variable.
  13661. (getId): Made non-const.
  13662. * src/BtCancelMessage.h
  13663. (ID_t): Removed.
  13664. (ID): New variable.
  13665. (getId): Made non-const.
  13666. * src/BtNotInterestedMessage.h
  13667. (ID_t): Removed.
  13668. (ID): New variable.
  13669. (getId): Made non-const.
  13670. * src/BtChokeMessage.h
  13671. (ID_t): Removed.
  13672. (ID): New variable.
  13673. (getId): Made non-const.
  13674. * src/BtRejectMessage.h
  13675. (ID_t): Removed.
  13676. (ID): New variable.
  13677. (getId): Made non-const.
  13678. * src/BtBitfieldMessage.h
  13679. (ID_t): Removed.
  13680. (ID): New variable.
  13681. (getId): Made non-const.
  13682. * src/BtUnchokeMessage.h
  13683. (ID_t): Removed.
  13684. (ID): New variable.
  13685. (getId): Made non-const.
  13686. * src/BtRequestMessage.h
  13687. (ID_t): Removed.
  13688. (ID): New variable.
  13689. (getId): Made non-const.
  13690. * src/BtHaveMessage.h
  13691. (ID_t): Removed.
  13692. (ID): New variable.
  13693. (getId): Made non-const.
  13694. To add --force-truncate command-line option and a check whether
  13695. the file already exists:
  13696. * src/DirectDiskAdaptor.h
  13697. (getFilePath): Made virtual public.
  13698. * src/MultiDiskAdaptor.h
  13699. (File.h): New include.
  13700. (DiskWriterEntry::fileEntry): Made private.
  13701. (DiskWriterEntry::fileExists): New function.
  13702. (DiskWriterEntry::getFileEntry): New function.
  13703. (fileExists): New function.
  13704. (getFilePath): New function.
  13705. * src/TorrentRequestInfo.cc
  13706. (FatalException.h): New include.
  13707. (message.h): New include.
  13708. (RecoverableException.h): New include.
  13709. (execute): Added a check whether file is already exists or not.
  13710. * src/DiskAdaptor.h
  13711. (fileExists): New function.
  13712. (getFilePath): New function.
  13713. * src/main.cc
  13714. (showUsage): Added an explanation of --force-truncate command-line
  13715. option.
  13716. (main): Added --force-truncate command-line option.
  13717. * src/Exception.h
  13718. (setMsg): buf[256] -> buf[1024]
  13719. * src/CopyDiskWriter.h
  13720. (getFilePath): Made public virtual.
  13721. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13722. (fileExists): New function.
  13723. * src/DownloadEngineFactory.cc
  13724. (newTorrentConsoleEngine): Don't open file here.
  13725. * src/message.h
  13726. (EX_FILE_ALREADY_EXISTS): New definition.
  13727. * src/prefs.h
  13728. (PREF_FOECE_TRUNCATE): New definition.
  13729. * src/HttpResponseCommand.cc
  13730. (handleDefaultEncoding): Added a check whether the file already exists.
  13731. * src/SegmentMan.h
  13732. (fileExists): New function.
  13733. (shouldCancelDownloadForSafety): New function.
  13734. * src/FtpNegotiateCommand.cc
  13735. (recvSize): Added a check whether the file already exists.
  13736. * src/AbstractSingleDiskAdaptor.cc
  13737. (File.h): New include.
  13738. (fileExists): New function.
  13739. * src/AbstractSingleDiskAdaptor.h
  13740. (getFilePath): Removed.
  13741. (fileExists): New function.
  13742. * src/SegmentMan.cc
  13743. (fileExists): New function.
  13744. (shouldCancelDownloadForSafety): New function.
  13745. To fix regression bug in torrent downloading:
  13746. * src/DefaultBtRequestFactory.cc
  13747. (doChokedAction): New function.
  13748. * src/DefaultBtRequestFactory.h
  13749. (doChokedAction): New function.
  13750. * src/DefaultBtMessageDispatcher.cc
  13751. (doChokedAction): Do not delete request if its target is in allowed
  13752. fast set.
  13753. * src/DefaultBtInteractive.cc
  13754. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13755. (sendKeepAlive): Send keep alive message even if the outgoing message
  13756. queue is not empty.
  13757. (decideInterest): Simplified the code.
  13758. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13759. it is already called when BtChokeMessage is received from a peer.
  13760. * src/BtRequestFactory.h
  13761. (doChokedAction): New function.
  13762. To clean up code:
  13763. * src/PeerInteractionCommand.h
  13764. (executeInternal): Added virtual keyword explicitly.
  13765. (prepareForRetry): Added virtual keyword explicitly.
  13766. (prepareForNextPeer): Added virtual keyword explicitly.
  13767. (onAbort): Added virtual keyword explicitly.
  13768. * src/RequestSlot.cc
  13769. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13770. * src/BtPieceMessage.cc
  13771. (doReceivedAction): Added a debug log of piece's bitfield.
  13772. * src/Piece.h
  13773. (getBitfieldLength): New function.
  13774. * src/ByteArrayDiskWriter.cc
  13775. (clear): Added buf = 0 to avoid double free corruption.
  13776. * src/FileAllocator.cc
  13777. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13778. Added cp.reset().
  13779. * src/BitfieldMan.h
  13780. (operator=): Rewritten.
  13781. * src/BitfieldMan.cc
  13782. (BitfieldMan): Initialized bitfield, useBitfield.
  13783. * src/PeerConnection.cc
  13784. (receiveMessage): Added a call to socket->readable() after getting
  13785. message length to avoid possible EOF.
  13786. * src/Util.cc
  13787. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13788. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13789. To add an ability to pre-allocate file space:
  13790. * src/DirectDiskAdaptor.h: Rewritten.
  13791. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13792. * src/MultiDiskAdaptor.h: Rewritten.
  13793. * src/DefaultPieceStorage.cc
  13794. (MultiDiskWriter.h): Removed include.
  13795. (PreAllocationDiskWriter.h): Removed include.
  13796. (FileAllocationMonitor.h): New include.
  13797. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13798. (initStorage): Rewritten.
  13799. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13800. * src/FileAllocator.h: New class.
  13801. * src/FileAllocator.cc: New class.
  13802. * src/FileAllocationMonitor.h: New class.
  13803. * src/FileAllocationMonitor.cc: New class.
  13804. * src/ConsoleFileAllocationMonitor.h: New class.
  13805. * src/ConsoleFileAllocationMonitor.cc: New class.
  13806. * src/AbstractSingleDiskAdaptor.h: New class.
  13807. * src/AbstractSingleDiskAdaptor.cc: New class.
  13808. * src/DiskAdaptor.h
  13809. (Directory.h): Removed include.
  13810. (DiskWriter.h): Removed include.
  13811. (FileEntry.h): Removed include.
  13812. (diskWriter): Removed.
  13813. (DiskAdaptor): Removed diskWriter.
  13814. (openFile): Made pure virtual.
  13815. (closeFile): Made pure virtual.
  13816. (openExistingFile): Made pure virtual.
  13817. (initAndOpenFile): Made pure virtual.
  13818. (writeData): Made pure virtual.
  13819. (readData): Made pure virtual.
  13820. (sha1Sum): Made pure virtual.
  13821. (getStoreDir): Returns const reference of storeDir.
  13822. (DiskAdaptorHandle): New type definition.
  13823. * src/main.cc
  13824. (ConsoleFileAllocationMonitor.h): New include.
  13825. (showUsage): Added default value description of -s option.
  13826. Added the description of --file-allocation option.
  13827. (main): Set default value of --file-allocation option to 'none'.
  13828. Added --file-allocation command-line option.
  13829. Setup FileAllocationMonitorFactory.
  13830. * src/FtpInitiateConnectionCommand.cc
  13831. (executeInternal): Removed diskWriter related processing, which was
  13832. moved to FtpNegotiationCommand.cc.
  13833. * src/DirectDiskAdaptor.cc
  13834. (getFilePath): Made non-const.
  13835. * src/CopyDiskAdaptor.h
  13836. (DiskAdaptor.h): Removed include.
  13837. (DiskWriter.h): Removed include.
  13838. (AbstractSingleDiskAdaptor.h): New include.
  13839. (getFilePath): Made non-const. Added virtual keyword.
  13840. (CopyDiskAdaptor): Removed diskWriter.
  13841. (getTempFile): Returns const reference.
  13842. (CopyDiskAdaptorHandle): New type definition.
  13843. * src/ByteArrayDiskWriter.cc
  13844. (clear): Simplified.
  13845. (initAndOpenFile): Rewritten.
  13846. (openFile): Call initAndOpenFile()
  13847. * src/MultiDiskAdaptor.cc: Rewritten.
  13848. * src/DownloadEngineFactory.cc
  13849. (FileAllocator.h): New include.
  13850. (FileAllocationMonitor.h): New include.
  13851. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13852. create DefaultDiskWriter with file allocator.
  13853. * src/DiskWriter.h
  13854. (initAndOpenFile): Added totalLength argument.
  13855. (openFile): Added totalLength argument.
  13856. * src/prefs.h
  13857. (PREF_FILE_ALLOCATION): New definition.
  13858. (V_PREALLOC): New definition.
  13859. (V_NONE): New definition.
  13860. * src/HttpResponseCommand.cc
  13861. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13862. size.
  13863. * src/FtpNegotiateCommand.cc
  13864. (Util.h): New include.
  13865. (recvSize): Open file here.
  13866. * src/Util.h
  13867. (ullitos): New function.
  13868. * src/CopyDiskWriter.h
  13869. (getFilePath): Made non-const.
  13870. * src/DefaultDiskWriter.h
  13871. (Option.h): New include.
  13872. (totalLength): Removed.
  13873. (DefaultDiskWriter): Removed totalLength.
  13874. (initAndOpenFile): Added totalLength argument.
  13875. (DefaultDiskWriterHandle): New type definition.
  13876. (createNewDiskWriter): New function.
  13877. * src/Util.cc
  13878. (ullitos): New function.
  13879. * src/DefaultDiskWriter.cc
  13880. (message.h): New include.
  13881. (FileAllocator.h): New include.
  13882. (prefs.h): New include.
  13883. (Util.h): New include.
  13884. (DefaultDiskWriter): Removed totalLength.
  13885. (initAndOpenFile): Added file allocation.
  13886. (createNewDiskWriter): New function. Just for temporary solution.
  13887. It will be rewritten later.
  13888. * src/DiskAdaptor.cc
  13889. (DiskAdaptor): Removed diskWriter.
  13890. * src/AbstractDiskWriter.cc
  13891. (LogFactory.h): New include.
  13892. (AbstractDiskWriter): Added fileAllocator, logger.
  13893. (openFile): Added totalLength argument.
  13894. * src/AbstractDiskWriter.h
  13895. (FileAllocator.h): New include.
  13896. (Logger.h): New include.
  13897. (fileAllocator): New variable.
  13898. (logger): New variable.
  13899. (openFile): Added totalLength argument. Added virtual keyword
  13900. explicitly.
  13901. (openExistingFile): Added totalLength argument. Added virtual keyword
  13902. explicitly.
  13903. (closeFile): Added virtual keyword explicitly.
  13904. (sha1Sum): Added virtual keyword explicitly.
  13905. (writeData): Added virtual keyword explicitly.
  13906. (readData): Added virtual keyword explicitly.
  13907. (setFileAllocator): New function.
  13908. * src/DefaultPieceStorage.h
  13909. (FileAllocator.h): New include.
  13910. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13911. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13912. * src/FileProgressMonitor.h: New class.
  13913. To compile aria2 on PC-BSD:
  13914. * src/DefaultBtContext.cc
  13915. (libgen.h): New include.
  13916. To fix memory leak:
  13917. * src/Exception.h
  13918. (~Exception): Delete cause. Fixed memory leak.
  13919. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13920. Rewritten a portion of bittorrent implementation:
  13921. * src/BtMessageValidator.h: New class.
  13922. * src/BtBitfieldMessageValidator.h: New class.
  13923. * src/BtHandshakeMessageValidator.h: New class.
  13924. * src/BtRequestMessageValidator.h: New class.
  13925. * src/BtSuggestPieceMessageValidator.h: New class.
  13926. * src/BtAllowedFastMessageValidator.h: New class.
  13927. * src/BtRejectMessageValidator.h: New class.
  13928. * src/BtCancelMessageValidator.h: New class.
  13929. * src/BtPieceMessageValidator.h: New class.
  13930. * src/BtHaveMessageValidator.h: New class.
  13931. * src/BtEventListener.h: New class.
  13932. * src/AbstractBtEventListener.h: New class.
  13933. * src/BtEvent.h: New class.
  13934. * src/BtChokingEvent.h: New class.
  13935. * src/BtChokedEvent.h: New class.
  13936. * src/BtCancelSendingPieceEvent.h: New class.
  13937. * src/BtAbortOutstandingRequestEvent.h: New class.
  13938. * src/Randomizer.h: New class.
  13939. * src/SimpleRandomizer.h: New class.
  13940. * src/BtMessage.h: New class.
  13941. * src/AbstractBtMessage.h: New class.
  13942. * src/SimpleBtMessage.h: New class.
  13943. * src/BtHaveMessage.h: New class.
  13944. * src/BtInterestedMessage.h: New class.
  13945. * src/BtAllowedFastMessage.h: New class.
  13946. * src/BtUnchokeMessage.h: New class.
  13947. * src/BtCancelMessage.h: New class.
  13948. * src/BtNotInterestedMessage.h: New class.
  13949. * src/BtChokeMessage.h: New class.
  13950. * src/BtHaveNoneMessage.h: New class.
  13951. * src/BtHandshakeMessage.h: New class.
  13952. * src/BtSuggestPieceMessage.h: New class.
  13953. * src/BtHaveMessage.h: New class.
  13954. * src/BtPieceMessage.h: New class.
  13955. * src/BtHaveAllMessage.h: New class.
  13956. * src/BtKeepAliveMessage.h: New class.
  13957. * src/BtPortMessage.h: New class.
  13958. * src/BtRejectMessage.h: New class.
  13959. * src/BtBitfieldMessage.h: New class.
  13960. * src/BtRequestMessage.h: New class.
  13961. * src/DefaultBtRequestFactory.h: New class.
  13962. * src/DefaultBtMessageReceiver.h: New class.
  13963. * src/BtInteractive.h: New class.
  13964. * src/BtMessageDispatcher.h: New class.
  13965. * src/DefaultBtMessageDispatcher.h: New class.
  13966. * src/DefaultBtInteractive.h: New class.
  13967. * src/BitfieldManFactory.h: New class.
  13968. * src/HandleRegistry.h: New class.
  13969. * src/BtMessageFactory.h: New class.
  13970. * src/BtMessageReceiver.h: New class.
  13971. * src/DefaultBtMessageFactory.h: New class.
  13972. * src/PeerObject.h: New class.
  13973. * src/BtRequestFactory.h: New class.
  13974. * src/SuggestPieceMessage.h: Removed.
  13975. * src/PortMessage.h: Removed.
  13976. * src/SuggestPieceMessage.h: Removed.
  13977. * src/KeepAliveMessage.h: Removed.
  13978. * src/HandshakeMessage.h: Removed.
  13979. * src/PeerInteraction.h: Removed.
  13980. * src/UnchokeMessage.h: Removed.
  13981. * src/PieceMessage.h: Removed.
  13982. * src/RequestMessage.h: Removed.
  13983. * src/InterestedMessage.h: Removed.
  13984. * src/HaveMessage.h: Removed.
  13985. * src/CancelMessage.h: Removed.
  13986. * src/RejectMessage.h: Removed.
  13987. * src/AllowedFastMessage.h: Removed.
  13988. * src/HaveNoneMessage.h: Removed.
  13989. * src/SimplePeerMessage.h: Removed.
  13990. * src/HaveAllMessage.h: Removed.
  13991. * src/BitfieldMessage.h: Removed.
  13992. * src/PeerMessageFactory.h: Removed.
  13993. * src/NotInterestedMessage.h: Removed.
  13994. * src/ChokeMessage.h: Removed.
  13995. * src/PeerMessage.h: Removed.
  13996. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. To know root cause of exception:
  13998. * src/Exception.h
  13999. (cause): New variable.
  14000. (Exception): Added a parameter.
  14001. (getMsg): Return const reference to msg.
  14002. (getCause): New function.
  14003. * src/DlRetryEx.h
  14004. (DlRetryEx): Added a parameter 'cause'.
  14005. Added an overloaded constructor.
  14006. (DlAbortEx): Added a parameter 'cause'.
  14007. Added an overloaded constructor.
  14008. * src/SimpleLogger.cc
  14009. (writeLog): Log nested exception messages recursively.
  14010. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14011. * src/DefaultBtProgressInfoFile.cc
  14012. (load): Fixed memory leak when the infohash doesn't match.
  14013. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14014. * src/DefaultPeerStorage.cc
  14015. (calculateStat): Simplified the code by combining 2 loops into 1.
  14016. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14017. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14018. for BitTorrent download:
  14019. * src/PeerAbstractCommand.cc
  14020. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14021. * src/main.cc:
  14022. (timeoutSpecified): Removed.
  14023. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14024. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14025. * src/TorrentRequestInfo.cc
  14026. (timeoutSpecified): Removed.
  14027. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14028. timeout value.
  14029. * src/prefs.h
  14030. (PREF_BT_TIMEOUT): New definition.
  14031. Delete unused variables:
  14032. * src/TorrentRequestInfo.cc
  14033. (requestInfo): Removed.
  14034. Move setSignalHander to Util::setGlobalSignalHandler:
  14035. * src/TorrentRequestInfo.cc:
  14036. setSignalHander -> Util::setGlobalSignalHandler
  14037. * src/main.cc
  14038. (setSignalHander): Removed.
  14039. (main): setSignalHander -> Util::setGlobalSignalHandler
  14040. * src/Util.h
  14041. (setGlobalSignalHandler): New function.
  14042. * src/Util.cc
  14043. (setGlobalSignalHandler): New function.
  14044. * src/UrlRequestInfo.cc:
  14045. setSignalHander -> Util::setGlobalSignalHandler
  14046. Reset peer status in order to exit gracefully:
  14047. * src/PeerAbstractCommand.cc
  14048. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14049. To fix the bug that causes the number of bytes uploaded is not saved
  14050. to .aria2 file:
  14051. * src/DefaultPeerStorage.h
  14052. (removedPeerSessionDownloadLength): New variable.
  14053. (removedPeerSessionUploadLength): New variable.
  14054. * src/DefaultPeerStorage.cc
  14055. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14056. removedPeerSessionUploadLength(0).
  14057. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14058. through all peers, and then add removedPeerSessionDownloadLength(
  14059. removedPeerSessionUploadLength) to it.
  14060. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14061. (to) the peer to removedPeerSessionDownloadLength
  14062. (removedPeerSessionUploadLength).
  14063. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14064. To add Metalink location option:
  14065. * src/MetalinkRequestInfo.cc
  14066. (execute): Call MetalinkEntry::setLocationPreference()
  14067. * src/main.cc
  14068. (showUsage): Added the help message for --metalink-location option.
  14069. (main): Added --metalink-location option.
  14070. * src/prefs.h
  14071. (PREF_METALINK_LOCATION): New definition.
  14072. * src/MetalinkEntry.cc
  14073. (AddLocationPreference): New function object.
  14074. (setLocationPreference): New function.
  14075. * src/Xml2MetalinkProcessor.cc
  14076. (getResource): Set location attribute to MetalinkResource
  14077. To show URLs to download
  14078. * src/UrlRequestInfo.h
  14079. (printUrls): New function.
  14080. To add multiple <file> Metalink support:
  14081. * src/MetalinkEntry.h
  14082. (MetalinkResources): Removed.
  14083. (setLocationPreference): New function.
  14084. (MetalinkEntryHandle): New type definition.
  14085. (MetalinkEntries): New type definition.
  14086. * src/Xml2MetalinkProcessor.h
  14087. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14088. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14089. (parseFile): Metalinker* -> MetalinkerHandle
  14090. * src/UrlRequestInfo.h
  14091. (execute): RequestInfo* -> RequestInfos
  14092. * src/MetalinkRequestInfo.cc
  14093. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14094. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14095. (execute): RequestInfo* -> RequestInfos
  14096. Added multiple <file> support. Print filename when it is queued.
  14097. * src/MetalinkRequestInfo.h
  14098. (execute): RequestInfo* -> RequestInfos
  14099. (getDownloadEngine): Removed.
  14100. * src/RequestInfo.h
  14101. (RequestInfoHandle): New type definition.
  14102. (RequestInfos): New type definition.
  14103. (execute): RequestInfo* -> RequestInfos
  14104. (getDownloadEngine): Removed.
  14105. * src/MetalinkResource.h
  14106. (MetalinkResourceHandle): New type definition.
  14107. (MetalinkResources): New type definition.
  14108. * src/MetalinkEntry.cc
  14109. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14110. because the element is now of type MetalinkResourceHandle.
  14111. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14112. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14113. (dropUnsupportedResource): Removed the deletion of the elements of
  14114. resources because the element is now of type MetalinkResourceHandle.
  14115. * src/Xml2MetalinkProcessor.cc
  14116. (parseFile): Metalinker* -> MetalinkerHandle
  14117. MetalinkEntry* -> MetalinkEntryHandle
  14118. Removed try-catch block.
  14119. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14120. MetalinkResource* -> MetalinkResourceHandle
  14121. Removed try-catch block.
  14122. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14123. Free result by using xmlXPathFreeObject()
  14124. * src/Metalinker.cc
  14125. (~Metalinker): Removed the deletion of entries.
  14126. MetalinkEntry* -> MetalinkEntryHandle
  14127. (queryEntry): Add multiple <file> Metalink support.
  14128. * src/Metalinker.h
  14129. (MetalinkEntries): Removed.
  14130. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14131. * src/MetalinkProcessor.h
  14132. (parseFile): Metalinker* -> MetalinkerHandle
  14133. Bug fixes:
  14134. * src/PeerChokeCommand.cc
  14135. (execute): cat01->cat02
  14136. * src/DefaultPieceStorage.cc
  14137. (DefaultPieceStorage): Added diskAdaptor(0)
  14138. * src/TrackerWatcherComand.cc:
  14139. (execute): Use btAnnounce->noMoreAnnounce()
  14140. to determin whether the function returns true or not.
  14141. * src/TrackerUpdateCommand.cc:
  14142. (execute): Use btAnnounce->noMoreAnnounce()
  14143. to determin whether the function returns true or not.
  14144. * src/FtpConnection.cc
  14145. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14146. This is the fix of the busy loop bug.
  14147. * src/DownloadCommand.cc
  14148. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14149. cached PeerStat.
  14150. The value of "name" entry in torrent file is now set by
  14151. *DiskAdaptor::setTopDir(...) methods.
  14152. * src/MultiDiskAdaptor.h
  14153. (topDir): New variable.
  14154. (setTopDir): New function.
  14155. (getTopDir): New function.
  14156. * src/MultiDiskAdaptor.cc
  14157. (getFilePath): Concat storDir, "/" and topDir.
  14158. (mkdir): Use getFilePath() to get the directory path for output.
  14159. * src/DefaultPieceStorage.cc
  14160. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14161. CopyDiskAdaptor.
  14162. * src/CopyDiskAdaptor.h
  14163. (topDir): New variable.
  14164. (setTopDir): New function.
  14165. (getTopDir): New function.
  14166. * src/CopyDiskAdaptor.cc
  14167. (fixFilename): Updated.
  14168. Misc
  14169. * src/UrlRequestInfo.h
  14170. (e): Removed.
  14171. (UrlRequestInfo): Removed e.
  14172. (getDownloadEngine): Removed.
  14173. * src/UrlRequestInfo.cc
  14174. (handler): Rewritten.
  14175. (printUrls): New function.
  14176. (execute): Call printUrls().
  14177. * src/HandshakeMessage.cc
  14178. (check): peerinteraction->getBtContext() -> btContext
  14179. * src/PeerInteraction.h
  14180. (getBtContext): Removed.
  14181. * src/TorrentRequestInfo.h
  14182. (execute): RequestInfo* -> RequestInfos
  14183. (getDownloadEngine): Removed.
  14184. * src/TorrentRequestInfo.cc
  14185. (haltRequested): Removed.
  14186. (btHaltRequested): New variable.
  14187. (torrentHandler): haltRequested -> btHaltRequested
  14188. (execute): RequestInfo* -> RequestInfos
  14189. * src/TorrentConsoleDownloadEngine.cc
  14190. (afterEachIteration): haltRequested -> btHaltRequested.
  14191. * src/ConsoleDownloadEngine.h
  14192. (initStatistics): Added virtual.
  14193. (calculateStatistics): Added virtual.
  14194. (onEndOfRun): Added virtual.
  14195. (afterEachIteration): Added virtual.
  14196. * src/ConsoleDownloadEngine.cc
  14197. (haltRequested): New variable.
  14198. (afterEachIteration): New function.
  14199. * src/main.cc
  14200. (requestInfo): Removed.
  14201. * src/SegmentMan.cc
  14202. (findSlowerSegmentEntry): Refactored.
  14203. * Release 0.9.0
  14204. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14205. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14206. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14207. * src/TorrentMan.h: Removed.
  14208. * src/TorrentMan.cc: Removed.
  14209. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14210. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14211. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14212. * src/PeerAbstractCommand.cc: Use btRuntime.
  14213. * src/BtContextAwareCommand.h: New class.
  14214. * src/FileEntry.h: Added accessor methods for following variables.
  14215. (path): Made private.
  14216. (length): Made private.
  14217. (offset): Made private.
  14218. (extracted): Made private.
  14219. (requested): Made private.
  14220. (FileEntries): New definition.
  14221. (FileEntryHandle): New definition.
  14222. * src/FileEntry.cc: New file.
  14223. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14224. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14225. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14226. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14227. * src/PieceStorage.h: New file.
  14228. * src/PeerInteractionCommand.h: Use btContext.
  14229. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14230. btRuntime.
  14231. * src/DefaultBtProgressInfoFile.h: New file.
  14232. * src/DefaultBtProgressInfoFile.cc: New file.
  14233. * src/File.cc
  14234. (Util.h): New include.
  14235. (mkdirs): New function.
  14236. * src/MultiDiskAdaptor.h
  14237. (mkdir): New function.
  14238. * src/PeerListProcessor.h
  14239. (Peers): Removed.
  14240. * src/PeerInteraction.h
  14241. (torrentMan): Removed.
  14242. (btContext): New variable.
  14243. (peerStorage): New variable.
  14244. (pieceStorage): New variable.
  14245. (btAnnounce): New variable.
  14246. (getTorrentMan): Removed.
  14247. (getBtContext): New function.
  14248. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14249. btAnnounce.
  14250. * src/HandshakeMessage.h
  14251. (TorrentMan.h): Removed.
  14252. * src/HandshakeMessage.cc: Use btContext.
  14253. * src/DefaultBtAnnounce.cc: New file.
  14254. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14255. * src/DefaultPieceStorage.cc: New file.
  14256. * src/DefaultBtContext.h: New file.
  14257. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14258. Use the accessor methods of FileEntry.
  14259. * src/CookieBox.cc: Updated to use Util::slice().
  14260. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14261. * src/common.h (SharedHandle.h): New include.
  14262. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14263. pieceStorage.
  14264. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14265. * src/DiskAdaptor.h
  14266. (topDir): Removed.
  14267. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14268. (setTopDir): Removed.
  14269. (getTopDir): Removed.
  14270. * src/BtContext.h: New file.
  14271. * src/DefaultPeerStorage.h: New file.
  14272. * src/PieceMessage.h (TorrentMan.h): Removed.
  14273. * src/RequestMessage.h (TorrentMan.h): Removed.
  14274. * src/TorrentDownloadEngine.h
  14275. (uploadLength): New variable.
  14276. (btContext): New variable.
  14277. (btRuntime): New variable.
  14278. (pieceStorage): New variable.
  14279. (peerStorage): New variable.
  14280. (btAnnounce): New variable.
  14281. (btProgressInfoFile): New variable.
  14282. (torrentMan): Removed.
  14283. (setBtContext): New function.
  14284. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14285. peerStorage, btAnnounce, btProgressInfoFile.
  14286. * src/Piece.h
  14287. (toString): New function.
  14288. (Pieces): New type definition.
  14289. * src/Peer.h
  14290. (active): New variable.
  14291. (Peer): Added active.
  14292. (activate): Set active to true.
  14293. (deactivate): Set active to false.
  14294. (isActive): New function.
  14295. (Peers): New type definition.
  14296. * src/DirectDiskAdaptor.cc
  14297. (getFilePath): Use the accessor methods of FileEntry.
  14298. * src/TorrentConsoleDownloadEngine.h
  14299. (afterEachIteration): New function.
  14300. * src/TorrentConsoleDownloadEngine.cc
  14301. (haltRequested): New variable.
  14302. (sendStatistics): Use pieceStorage, btRuntime.
  14303. (afterEachIteration): New function.
  14304. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14305. * src/Directry.h
  14306. (Directory): New function.
  14307. (DirectoryHandle): New type definition.
  14308. * src/BtProgressInfoFile.h: New file.
  14309. * src/RequestMessage.cc: Use pieceStorage.
  14310. * src/BtRuntime.h: New file.
  14311. * src/DefaultBtContext.cc: New file.
  14312. * src/BitfieldMan.h
  14313. (getCompletedLength): New function(private).
  14314. (getCompletedLength): New function.
  14315. (getFilteredCompletedLength): New function.
  14316. * src/BitfieldMan.h
  14317. (getCompletedLength): New function(private).
  14318. (getCompletedLength): New function.
  14319. (getFilteredCompletedLength): New function.
  14320. * src/MultiDiskAdaptor.cc
  14321. (mkdir): New function.
  14322. (openFile): Call mkdir().
  14323. (initAndOpenFile): Call mkdir().
  14324. * src/CancelMessage.h
  14325. (TorrentMan.h): Removed.
  14326. * src/RejectMessage.h
  14327. (TorrentMan.h): Removed.
  14328. * src/DownloadEngineFactory.cc
  14329. (DefaultPieceStorage.h): New include.
  14330. (DefaultPeerStorage.h): New include.
  14331. (DefaultBtAnnounce.h): New include.
  14332. (DefaultBtProgressInfoFile.h): New include.
  14333. (newTorrentConsoleEngine): Rewritten.
  14334. * src/ShareRatioSeedCriteria.h
  14335. (torrentMan): Removed.
  14336. (btContext): New variable.
  14337. (peerStorage): New variable.
  14338. (btRuntime): New variable.
  14339. (evaluate): Use btContext, btRuntime, peerStorage.
  14340. * src/AnnounceTier.h: New file.
  14341. * src/BtAnnounce.h: New file.
  14342. * src/BtRegistry.h: New file.
  14343. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14344. * src/PeerConnection.h (TorrentMan.h): Removed.
  14345. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14346. * src/Util.h
  14347. (slice): Added an argument.
  14348. * src/Util.cc
  14349. (slice): Added an argument to control whether trim is made or not.
  14350. * src/PeerStorage.h: New file.
  14351. * src/BtRegistry.cc: New file.
  14352. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14353. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14354. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14355. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14356. * src/TorrentRequestInfo.h
  14357. (e): Removed.
  14358. (showFileEntry): Added an argument.
  14359. (getDownloadEngine): Return 0.
  14360. * src/DefaultBtAnnounce.h: New file.
  14361. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14362. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14363. * src/PeerMessageFactory.h
  14364. (btContext): New variable.
  14365. (pieceStorage): New variable.
  14366. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14367. btAnnounce.
  14368. * src/DiskAdaptor.cc
  14369. (DiskAdaptor): Removed topDir.
  14370. (~DiskAdaptor): Removed topDir.
  14371. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14372. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14373. * src/File.h (mkdirs): New function.
  14374. * src/DefaultPeerStorage): New file.
  14375. * src/DownloadEngineFactory.h
  14376. (newTorrentConsoleEngine): Use btContext.
  14377. * src/BtContextAwareCommand.cc: New file.
  14378. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14379. * src/PeerMessage.h
  14380. (btContext): New variable.
  14381. (peerStorage): New variable.
  14382. (pieceStorage): New variable.
  14383. (setBtContext): New function.
  14384. * src/Directry.cc
  14385. (Directory): New function.
  14386. (createDir): Do nothing if name.size() == 0.
  14387. * src/AnnounceList.h
  14388. (AnnounceTier): Removed.
  14389. (AnnounceTiers): Removed.
  14390. * src/DefaultPieceStorage.h: New file.
  14391. * src/Piece.cc (toString): New function.
  14392. To fix typo:
  14393. * src/main.cc (showVersion): Fixed typo.
  14394. To fix compile warning:
  14395. * src/DelegatingPeerListProcessor.cc
  14396. (canHandle): Added "return false".
  14397. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14398. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14399. make the process of announce request testable.
  14400. * src/TrackerWatcherCommand.h
  14401. (TimeA2.h): Removed.
  14402. (interval): Removed.
  14403. (checkPoint): Removed.
  14404. (createRequestCommand): Added an argument 'url'.
  14405. (TrackerWatherCommand): Removed interval.
  14406. (createCommand): New function.
  14407. * src/DownloadEngineFactory.cc
  14408. (newTorrentConsoleEngine): Updated according to the changes in
  14409. TrackerWatherCommand.
  14410. * src/TorrentMan.cc
  14411. (DelegatingPeerListProcessor.h): New includes.
  14412. (TorrentMan): Added the initialization of announceInterval.
  14413. (isStoppedAnnounceReady): New function.
  14414. (isCompletedAnnounceReady): New function.
  14415. (isDefaultAnnounceReady): New function.
  14416. (isAnnounceReady): New function.
  14417. (getAnnounceUrl): New function.
  14418. (announceStart): New function.
  14419. (announceFailure): New function.
  14420. (announceSuccess): New function.
  14421. (isAllAnnounceFailed): New function.
  14422. (resetAnnounce): New function.
  14423. (processAnnounceResponse): New function.
  14424. (needMorePeerConnection): New function.
  14425. (noMoreAnnounce): New function.
  14426. * src/TrackerUpdateCommand.h
  14427. (getTrackerResponse): int->size_t
  14428. * src/TorrentMan.h
  14429. (isStoppedAnnounceReady): New function.
  14430. (isCompletedAnnounceReady): New function.
  14431. (isDefaultAnnounceReady): New function.
  14432. (announceInterval): New variable.
  14433. (isAnnounceReady): New function.
  14434. (getAnnounceUrl): New function.
  14435. (announceStart): New function.
  14436. (announceFailure): New function.
  14437. (announceSuccess): New function.
  14438. (isAllAnnounceFailed): New function.
  14439. (resetAnnounce): New function.
  14440. (processAnnounceResponse): New function.
  14441. (needMorePeerConnection): New function.
  14442. (noMoreAnnounce): New function.
  14443. * src/TrackerWatcherCommand.cc
  14444. (TrackerWatherCommand): Removed interval and checkPoint.
  14445. (execute): Rewritten.
  14446. (createCommand): New function.
  14447. (createRequestCommand): Rewritten.
  14448. * src/TrackerUpdateCommand.cc
  14449. (MetaFileUtil.h): Removed.
  14450. (DelegatingPeerListProcessor.h): Removed.
  14451. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14452. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14453. Request -> RequestHandle:
  14454. * src/HttpResponseCommand.h: Request->RequestHandle
  14455. * src/AbstractCommand.cc: Request->RequestHandle
  14456. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14457. * src/HttpRequestCommand.cc: Request->RequestHandle
  14458. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14459. * src/AbstractCommand.h: Request->RequestHandle
  14460. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14461. * src/HttpResponseCommand.cc: Request->RequestHandle
  14462. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14463. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14464. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14465. * src/HttpConnection.h: Request->RequestHandle
  14466. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14467. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14468. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14469. * src/DownloadCommand.h: Request->RequestHandle
  14470. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14471. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14472. * src/HttpRequestCommand.h: Request->RequestHandle
  14473. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14474. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14475. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14476. * src/HttpDownloadCommand.h: Request->RequestHandle
  14477. * src/FtpConnection.cc: Request->RequestHandle
  14478. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14479. * src/UrlRequestInfo.cc: Request->RequestHandle
  14480. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14481. * src/HttpConnection.h: Request->RequestHandle
  14482. * src/DownloadCommand.cc: Request->RequestHandle
  14483. * src/FtpConnection.h: Request->RequestHandle
  14484. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14485. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14486. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14487. * src/Request.h
  14488. (SharedHandle.h): New include.
  14489. (RequestHandle): New type definition.
  14490. (Requests): Redefined.
  14491. To add MULTITRACKER support:
  14492. * src/TrackerWatcherCommand.h
  14493. (createRequestCommand): New function.
  14494. * src/DownloadEngineFactory.cc
  14495. (newTorrentConsoleEngine): Removed req.
  14496. * src/prefs.h
  14497. (PREF_TRACKER_MAX_TRIES): New definition.
  14498. * src/TorrentMan.cc
  14499. (TorrentMan): Removed req. Added trackerNumTry.
  14500. (~TorrentMan): Removed req.
  14501. (setupInternal1): Added announceList.
  14502. * src/TorrentRequestInfo.cc
  14503. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14504. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14505. * src/main.cc
  14506. (main): Added PREF_TRACKER_MAX_TRIES.
  14507. * src/TorrentMan.h
  14508. (Request.h): Removed.
  14509. (AnnounceList.h): New include.
  14510. (trackerNumTry): New variable.
  14511. (req): Removed.
  14512. (announceList): New variable.
  14513. * src/TrackerWatcherCommand.cc
  14514. (execute): Rewritten.
  14515. (createRequestCommand): New function.
  14516. * src/TrackerUpdateCommand.cc
  14517. (execute): Updated with the use of AnnounceList.
  14518. * src/AnnounceList.cc: New class.
  14519. * src/AnnounceList.h: New class.
  14520. To fix typo:
  14521. * src/prefs.h
  14522. (PREF_MAX_TRIES): max_try->max_tries
  14523. To not to decode "+" as space in URL decode:
  14524. * src/Util.cc
  14525. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14526. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14527. To add timeout to async name resolution:
  14528. * src/AbstractCommand.h
  14529. (nameResolveFinished): New function. This is not elegant way. It needs
  14530. to be more refined.
  14531. (nameResolverCheck): New variable.
  14532. * src/AbstractCommand.cc
  14533. (AbstractCommand): Added nameResolverCheck.
  14534. (execute): Added the check whether the name resolution has finished.
  14535. (setNameResolverCheck): Set nameResolverCheck to true.
  14536. (disableNameResolverCheck): Set nameResolverCheck to false.
  14537. (nameResolverFinished): New function.
  14538. * src/FtpInitiateConnectionCommand.h
  14539. (nameResolverFinished): New function.
  14540. * src/FtpInitiateConnectionCommand.cc
  14541. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14542. * src/HttpInitiateConnectionCommand.h
  14543. (nameResolverFinished): New function.
  14544. * src/HttpInitiateConnectionCommand.cc
  14545. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14546. * src/prefs.h
  14547. (PREF_DNS_TIMEOUT): New definition.
  14548. * src/main.cc
  14549. (main): Added PREF_DNS_TIMEOUT.
  14550. To add the support for a non-compact response from a tracker:
  14551. * src/PeerListProcessor.h: New class.
  14552. * src/DefaultPeerListProcessor.h: New class.
  14553. * src/DefaultPeerListProcessor.cc: New class.
  14554. * src/CompactPeerListProcessor.h: New class.
  14555. * src/CompactPeerListProcessor.cc: New class.
  14556. * src/DelegatingPeerListProcessor.h: New class.
  14557. * src/DelegatingPeerListProcessor.cc: New class.
  14558. * src/TorrentMan.cc
  14559. (addPeer): New function(overload).
  14560. (addPeer): Delete unused peers only when new peer is added.
  14561. * src/TorrentMan.h
  14562. (PeerListProcessor.h): Included.
  14563. (Peers): Removed.
  14564. (addPeer): New function(overload).
  14565. * src/TrackerUpdateCommand.cc
  14566. (netinet/in.h): Removed.
  14567. (DelegatingPeerListProcessor.h): Included.
  14568. (execute): Updated to use DelegatingPeerListProcessor.
  14569. To fix the memory leak in TorrentMan::peers:
  14570. * src/PeerAbstractCommand.cc
  14571. (onAbort): Added peer->resetStatus().
  14572. * src/Peer.h
  14573. (resetStatus): Made public.
  14574. To improve the precision of the speed calculation:
  14575. * src/SpeedCalc.h
  14576. (nextInterval): New variable.
  14577. * src/SpeedCalc.cc
  14578. (reset): Added nextInterval.
  14579. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14580. (changeSw): Set nextInterval to 15 seconds relative to the current
  14581. instant time.
  14582. * src/main.cc
  14583. (showVersion): Updated.
  14584. (showUsage): Updated.
  14585. * Release 0.8.1
  14586. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14587. * src/main.cc
  14588. (showUsage): Commented out --min-segment-size option.
  14589. (main): Commented out --min-segment-size option.
  14590. * Release 0.8.0
  14591. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14592. * src/*.{h,cc}:
  14593. Added an exception to the license which allows linking with OpenSSL.
  14594. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14595. * src/AbstractCommand.cc
  14596. (execute): Check whether the download has finished before checking
  14597. socket status.
  14598. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14599. Do not exit even if no segment is available.
  14600. * src/prefs.h
  14601. (PREF_STARTUP_IDLE_TIME): New definition.
  14602. * src/PeerInteractionCommand.cc
  14603. (executeInternal): Removed max speed limit. Because it performs bad.
  14604. (receiveMessages): Added max speed limit. This was better than above,
  14605. but still a little bit to be desired. Sometimes the download speed
  14606. became much faster than I specified.
  14607. * src/SpeedCalc.h
  14608. (start): New variable.
  14609. (accumulatedLength): New variable.
  14610. (getAvgSpeed): New function.
  14611. * src/SpeedCalc.cc
  14612. (reset): Added start, accumulatedLength.
  14613. (update): Added calculation of an average speed.
  14614. (getAvgSpeed): New function.
  14615. * src/DownloadCommand.h
  14616. (sw): Removed.
  14617. * src/main.cc
  14618. (main): Added PREF_STARTUP_IDLE_TIME.
  14619. * src/PeerStat.h
  14620. (STATUS): Added REQUEST_IDLE.
  14621. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14622. (getAvgDownloadSpeed): New function
  14623. (requestIdle): New function.
  14624. * src/SegmentMan.h
  14625. (SegmentEntryHandle): New type definition.
  14626. (SegmentEntries): Now holds SegmentEntryHandle.
  14627. (findSlowerSegmentEntry): New funtion.
  14628. * src/SegmentMan.cc
  14629. (save): Updated according to the changes in SegmentEntries.
  14630. (read): Updated according to the changes in SegmentEntries.
  14631. (FindSegmentEntryByIndex): Updated according to the changes in
  14632. SegmentEntries.
  14633. (FindSegmentEntryByCuid): Updated according to the changes in
  14634. SegmentEntries.
  14635. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14636. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14637. Renamed uitr as itr.
  14638. (findSlowerSegmentEntry): New function.
  14639. (getSegment): Updated according to the changes in SegmentEntries.
  14640. Added the feature that cancels the segment with slow server and fast
  14641. one takes it over.
  14642. (cancelSegment): Updated according to the changes in SegmentEntries.
  14643. (getDownloadLength): Updated according to the changes in
  14644. SegmentEntries.
  14645. (init): Assigned 0 to bitfield after deleting it.
  14646. * src/DownloadCommand.cc
  14647. (STARTUP_IDLE_TIME): Removed.
  14648. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14649. * src/PeerChokeCommand.cc
  14650. (optUnchokingPeer): Updated according to the changes in Peer.
  14651. (ResetDelta): Removed.
  14652. (UploadFaster): Updated according to the changes in Peer.
  14653. (DownloadFaster): Updated according to the changes in Peer.
  14654. (execute): I clarify the meaning of "upload" and "download" here.
  14655. "upload" means the transfer from localhost to remote host.
  14656. "download" means the transfer from remote host to localhost.
  14657. Based on this rule, I swapped orderByUploadRate and
  14658. orderByDownloadRate.
  14659. * src/PeerInteractionCommand.cc
  14660. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14661. (executeInternal): Removed the argument of
  14662. peerInteraction->sendMessages().
  14663. (receiveMessages): Rewritten download speed limit.
  14664. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14665. * src/HttpResponseCommand.cc
  14666. (handleDefaultEncoding): If file size is unknown in torrent request,
  14667. do not call segmentMan->initBitfield() here.
  14668. Disabled persistent connection feature in torrent request.
  14669. * src/UrlRequestInfo.h
  14670. (UrlRequestInfo): Removed const qualifier from option.
  14671. * src/TorrentMan.h
  14672. (TransferStat): New class.
  14673. (deltaDownloadLength): Removed.
  14674. (deltaUploadLength): Removed.
  14675. (addDeltaDownloadLength): Removed.
  14676. (getDeltaDownloadLength): Removed.
  14677. (resetDeltaDownloadLength): Removed.
  14678. (addDeltaUploadLength): Removed.
  14679. (getDeltaUploadLength): Removed.
  14680. (resetDeltaUploadLength): Removed.
  14681. (addActivePeer): Added peer->activate().
  14682. (deleteActivePeer): Added peer->deactivate().
  14683. (calculateStat): New function.
  14684. * src/TorrentMan.cc
  14685. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14686. (calculateStat): New function.
  14687. * src/PeerInteraction.h
  14688. (uploadLimit): Removed.
  14689. (option): New variable.
  14690. (setUploadLimit): Removed.
  14691. (getUploadSpeed): Removed.
  14692. (sendMessages): Removed the argument "currentUploadSpeed".
  14693. * src/PeerInteraction.cc
  14694. (prefs.h): Included.
  14695. (PeerInteraction): Removed uploadLimit. Added option.
  14696. (sendMessages): Rewritten upload speed limit.
  14697. (sendHandshake): Removed the argument from sendMessages().
  14698. (sendBitfield): Removed the argument from sendMessages().
  14699. * src/PeerAbstractCommand.cc
  14700. (execute): Commented out the portion of upload limit.
  14701. (onAbort): Removed peer->resetStatus().
  14702. * src/TorrentRequestInfo.cc
  14703. (timeoutSpecified): Declared extern.
  14704. (execute): Set timeout to 180 if timeout is not specified by.
  14705. command-line.
  14706. * src/PieceMessage.cc
  14707. (receivedAction): Added peer->updateDownloadLength().
  14708. Removed peer->addPeerUpload().
  14709. Removed torrentMan->addDeltaDownloadLength().
  14710. (send): Added peer->updateUploadLength().
  14711. Removed peer->addPeerDownload().
  14712. Removed torrentMan->addDeltaUploadLength().
  14713. * src/main.cc
  14714. (timeoutSpecified): New variable.
  14715. (main): Set timeoutSpecified to false.
  14716. If the command-line option "--upload-limit" is specified, then
  14717. timeoutSpecified is set to true. This option will remain in the next
  14718. release, but be deprecated in the future release.
  14719. * src/TorrentRequestInfo.h
  14720. (TorrentRequestInfo): Removed const qualifier from op.
  14721. * src/PeerStat.h
  14722. (uploadSpeed): New variable.
  14723. (PeerStat): Added default value to cuid.
  14724. (calculateUploadSpeed): New function.
  14725. (updateUploadLength): New function.
  14726. (getMaxUploadSpeed): New function.
  14727. (getAvgUploadSpeed): New function.
  14728. (reset): Added uploadSpeed. Set status to IDLE.
  14729. * src/TorrentDownloadEngine.h
  14730. (cp): Declared as Time.
  14731. (sessionDownloadLengthArray): Removed.
  14732. (sessionUploadLengthArray): Removed.
  14733. (currentCp): Removed.
  14734. (lastCalcStat): New variable
  14735. (lastElapsed): Removed.
  14736. (sessionDownloadLength): Removed.
  14737. (calculateStat): New function.
  14738. * src/TorrentDownloadEngine.cc
  14739. (initStatistics): Removed lastElapsed, cp[],
  14740. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14741. currentCp, sessionDownloadLength.
  14742. Added cp.reset() and lastCalcStat.reset().
  14743. (calculateSpeed): Changed the name of the argument.
  14744. (calculateStatistics): Rewritten.
  14745. (calculateStat): New function.
  14746. * src/Peer.h
  14747. (PeerStat.h): Included.
  14748. (peerUpload): Removed.
  14749. (peerDownload): Removed.
  14750. (peerStat): New variable.
  14751. (sessionUploadLength): New variable.
  14752. (sessionDownloadLength): New variable.
  14753. (deltaUpload): Removed.
  14754. (deltaDownload): Removed.
  14755. (resetStatus): Made private.
  14756. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14757. Removed peerUpload, peerDownload.
  14758. (updateUploadLength): New function.
  14759. (addDeltaUpload): Removed.
  14760. (updateDownloadLength): New function.
  14761. (resetDeltaUpload): Removed.
  14762. (getDeltaUpload): Removed.
  14763. (addDeltaDownload): Removed.
  14764. (calculateUploadSpeed): New function.
  14765. (resetDeltaDownload): Removed.
  14766. (getDeltaDownload): Removed.
  14767. (calculateDownloadSpeed): New function.
  14768. (getSessionUploadLength): New function.
  14769. (getSessionDownloadLength): New function.
  14770. (activate): New function.
  14771. (deactivate): New function.
  14772. (addPeerUpload): Removed.
  14773. (setPeerUpload): Removed.
  14774. (getPeerUpload): Removed.
  14775. (addPeerDownload): Removed.
  14776. (setPeerDownload): Removed.
  14777. (getPeerDownload): Removed.
  14778. * src/Peer.cc
  14779. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14780. * src/MetalinkRequestInfo.h
  14781. (MetalinkRequestInfo): Removed const qualifier from op.
  14782. * src/RequestInfo.h
  14783. (op): Removed const qualifier.
  14784. (RequestInfo): Removed const qualifier from op.
  14785. * src/prefs.h
  14786. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14787. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14788. * src/PeerInteractionCommand.cc
  14789. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14790. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14791. * src/PeerInteraction.cc
  14792. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14793. * src/main.cc
  14794. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14795. Added the description of "--max-download-limit" option.
  14796. Removed the description of "--upload-limit" option.
  14797. Added the description of "--max-upload-limit" option.
  14798. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14799. Added "--max-download-limit" option and "--max-upload-limit" option.
  14800. Added the warning message if "--upload-limit" option is used.
  14801. * src/DownloadCommand.cc
  14802. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14803. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14804. To rewrite segment download mechanism for HTTP/FTP download.
  14805. Use BitfieldMan to manage segment download.
  14806. * src/HttpResponseCommand.h
  14807. (executeInternal): Pass the reference of segment.
  14808. * src/AbstractCommand.cc
  14809. (prepareForRetry): Call segmentMan->cancelSegment here.
  14810. (onAbort): Call segmentMan->cancelSegment here.
  14811. * src/HttpDownloadCommand.cc
  14812. (prepareForNextSegment): New function.
  14813. * src/DownloadEngineFactory.cc
  14814. (newConsoleEngine): Removed splitter.
  14815. (newTorrentConsoleEngine): Removed splitter.
  14816. * src/Request.h
  14817. (segment): Renamed from seg.
  14818. * src/FtpInitiateConnectionCommand.h
  14819. (executeInternal): Pass the reference of segment.
  14820. * src/AbstractCommand.h
  14821. (executeInternal): Pass the reference of segment.
  14822. * src/pref.h
  14823. (PREF_SEGMENT_SIZE): New definition.
  14824. * src/HttpProxyRequestCommand.h
  14825. (executeInternal): Pass the reference of segment.
  14826. * src/HttpResponseCommand.cc
  14827. (checkResponse): Allowed status 206 when a request range starts 0.
  14828. (handleDefaultEncoding): Rewritten the code related to Segment.
  14829. (handleOtherEncoding): Rewritten the code related to Segment.
  14830. * src/SegmentMan.h
  14831. (SegmentEntry): New class.
  14832. (SegmentEntries): New type definition.
  14833. (bitfield): New variable.
  14834. (usedSegmentEntries): New variable.
  14835. (onNullBitfield): New function.
  14836. (checkoutSegment): New function.
  14837. (segments): Removed.
  14838. (splitter): Removed.
  14839. (unregisterId): Removed.
  14840. (getSegment): New function(overload)
  14841. (getDownloadedSize): Removed.
  14842. (cancelSegment): New function.
  14843. (completeSegment): New function.
  14844. (initBitfield): New function.
  14845. (hasSegment): New function.
  14846. (getDownloadLength): New function.
  14847. * src/BitfieldMan.h
  14848. (getStartIndex): New function.
  14849. (getEndIndex): New function.
  14850. (getMissingUnusedIndex): New function(overload).
  14851. (getSparseMissingUnusedIndex): New function.
  14852. * src/BitfieldMan.cc
  14853. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14854. (getMissingUnusedIndex): New function(overload).
  14855. (Range): New class.
  14856. (getStartIndex): New function.
  14857. (getEndIndex): New function.
  14858. (getSparseMissingUnusedIndex): New function.
  14859. (isBitSetInternal): Return false if the given index is less than 0.
  14860. * src/HttpInitiateConnectionCommand.h
  14861. (executeInternal): Pass the reference of segment.
  14862. * src/FtpNegotiateCommand.h
  14863. (executeInternal): Pass the reference of segment.
  14864. * src/FtpNegotiateCommand.cc
  14865. (recvSize): Initialize bitfield here.
  14866. * src/FtpTunnelResponseCommand.h
  14867. (executeInternal): Pass the reference of segment.
  14868. * src/HttpConnection.cc
  14869. (createRequest): Rewritten range header processing.
  14870. * src/DownloadCommand.h
  14871. (executeInternal): Pass the reference of segment.
  14872. (prepareForRetry): Removed.
  14873. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14874. function.
  14875. * src/main.cc
  14876. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14877. * src/SegmentMan.cc
  14878. (SegmentMan): Added bitfield. Removed splitter.
  14879. (~SegmentMan): Added bitfield. Removed splitter.
  14880. (unregisterId): Removed.
  14881. (getSegment): Rewritten.
  14882. (updateSegment): Rewritten.
  14883. (save): Rewritten.
  14884. (read): Rewritten.
  14885. (finished): Rewritten.
  14886. (getDownloadedSize): Removed.
  14887. (initBitfield): New function.
  14888. (FindSegmentEntryByIndex): New function object.
  14889. (FindSegmentEntryByCuid): New function object.
  14890. (checkoutSegment): New function.
  14891. (onNullBitfield): New function.
  14892. (getSegment): New function(overload).
  14893. (CancelSegment): New function object.
  14894. (cancelSegment): New function.
  14895. (completeSegment): New function.
  14896. (hasSegment): New function.
  14897. (getDownloadLength): New function.
  14898. * src/FtpInitiateConnectionCommand.cc
  14899. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14900. * src/Segment.h: Rewritten.
  14901. * src/Segment.cc (operator<<): New function.
  14902. * src/HttpDownloadCommand.h
  14903. (prepareForNextSegment): New function.
  14904. * src/Request.cc
  14905. (resetUrl): Made segment null.
  14906. * src/DownloadEngine.cc
  14907. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14908. * src/HttpProxyRequestCommand.h
  14909. (executeInternal): Pass the reference of segment.
  14910. * src/DownloadCommand.cc
  14911. (executeInternal): Rewritten the code related to Segment.
  14912. (prepareForRetry): Removed.
  14913. (prepareForNextSegment): Rewritten.
  14914. * src/FtpTunnelResponseCommand.h
  14915. (executeInternal): Pass the reference of segment.
  14916. To add HTTP 1.1 persistent connection support(experimental)
  14917. * src/HttpRequestCommand.cc
  14918. (executeInternal): Disable keep alive if it is disabled by
  14919. configuration.
  14920. * src/Request.h
  14921. (keepAlive): New variable.
  14922. (isKeepAlive): New function.
  14923. (setKeepAlive): New function.
  14924. * src/pref.h
  14925. (PREF_HTTP_KEEP_ALIVE): New definition.
  14926. * src/HttpResponseCommand.cc
  14927. (executeInternal): Check the remote server supports keep alive.
  14928. * src/HttpConnection.cc
  14929. (createRequest): Send "Connection: close" only if keep alive is
  14930. disabled.
  14931. * src/main.cc
  14932. (main):
  14933. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14934. To add max download speed limit:
  14935. * src/pref.h
  14936. (PREF_MAX_SPEED_LIMIT): New definition.
  14937. * src/PeerInteractionCommand.cc
  14938. (executeInternal): Added max download speed limit. Not tested yet.
  14939. * src/SegmentMan.h
  14940. (PeerStats): New type definition.
  14941. (peerStats): New variable.
  14942. (registerPeerStat): New function.
  14943. (FindPeerStat): New function object.
  14944. (getPeerStat): New function.
  14945. (calculateDownloadSpeed): New function.
  14946. * src/SpeedCalc.h: New class.
  14947. * src/SpeedCalc.cc: New class.
  14948. * src/main.cc
  14949. (main):
  14950. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14951. download speed is not restricted).
  14952. * src/PeerStat.h: New class.
  14953. * src/SegmentMan.cc
  14954. (registerPeerStat): New function.
  14955. (calculateDownloadSpeed): New function.
  14956. * src/DownloadCommand.cc
  14957. (STARTUP_IDLE_TIME): New definition.
  14958. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14959. downloadStart.
  14960. (~DownloadCommand): Call peerStat->downloadStop.
  14961. (executeInternal): Added download speed limitter. Rewritten lowest
  14962. speed limitter.
  14963. * src/HttpConnection.cc
  14964. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14965. * src/AbstractCommand.cc
  14966. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14967. Added hostname to the error message.
  14968. * src/ConsoleDownloadEngine.cc
  14969. (calculateStatistics): Initialize psize with dlSize.
  14970. * src/PieceMessage.cc
  14971. (receivedAction): Do not call peerInteraction->abortPiece here.
  14972. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14973. * src/BitfieldMan.h
  14974. (clearAllUseBit): New function.
  14975. (setAllUseBit): New function.
  14976. * src/BitfieldMan.cc
  14977. (clearAllBit): Do not clear useBitfield here.
  14978. (clearAllUseBit): New function.
  14979. (setAllUseBit): New function.
  14980. * src/Piece.cc
  14981. (clearAllBlock): Call bitfield->clearAllUseBit().
  14982. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14983. To make filename URL-decoded:
  14984. * src/HttpResponseCommand.h: Updated doc.
  14985. * src/HttpResponseCommand.cc
  14986. (determinFilename): Made filename URL-decoded.
  14987. * src/FtpInitiateConnectionCommand.cc
  14988. (executeInternal): Made filename URL-decoded.
  14989. * src/Util.h (urldecode): New function.
  14990. * src/Util.cc (urldecode): New function.
  14991. To fix a bug that caused assertion failure in ares_strerror:
  14992. * src/NameResolver.cc (callback): Fixed the bug.
  14993. * Release 0.7.3
  14994. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14995. To add --seed-time and --seed-ratio command-line option:
  14996. * src/Option.h (getAsDouble): New function.
  14997. * src/Option.cc (getAsDouble): New function.
  14998. * src/SeedCheckCommand.h: New class.
  14999. * src/SeedCheckCommand.cc: New class.
  15000. * src/DownloadEngineFactory.cc
  15001. (SeedCheckCommand.h): Included.
  15002. (UnionSeedCriteria.h): Included.
  15003. (TimeSeedCriteria.h): Included.
  15004. (ShareRatioSeedCriteria.h): Included.
  15005. (newTorrentConsoleEngine): Added the processing of seed option.
  15006. * src/SeedCriteria.h: New class.
  15007. * src/ShareRatioSeedCriteria.h: New class.
  15008. * src/TimeSeedCriteria.h: New class.
  15009. * src/UnionSeedCriteria.h: New class.
  15010. * src/prefs.h
  15011. (PREF_SEED_TIME): New definition.
  15012. (PREF_SEED_RATIO): New definition.
  15013. * src/main.cc
  15014. (showUsage): Added --seed-time and --seed-ratio option.
  15015. (main): Added --seed-time and --seed-ratio option.
  15016. Made default log file name "/dev/null".
  15017. * src/SharedHandle.h
  15018. (SharedHandle): Copy constructor. Made it assignable from the
  15019. SharedHandle of the subclasses.
  15020. (operator=): Made it assignable from the SharedHandle of the
  15021. subclasses.
  15022. (getRefCount): New function.
  15023. To add notice log level and the switch to write log to stdout. This
  15024. switch is configurable per log level.
  15025. * src/Logger.h
  15026. (notice): New function.
  15027. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15028. constant.
  15029. * src/LogFactory.cc
  15030. (getInstance): The use of NullLogger was removed. A log message with
  15031. notice log level was made written to stdout along with log file.
  15032. * src/NullLogger.h
  15033. (notice): New function.
  15034. * src/SimpleLogger.h
  15035. (writeHeader): Added the 'file' argument.
  15036. (writeLog): Added the 'file' argument.
  15037. (writeFile): New function.
  15038. (stdoutField): New variable.
  15039. (SimpleLogger): Removed the default constructor.
  15040. (SimpleLogger): Made the default value of logfile 0.
  15041. (debug): Added 'virtual' keyword.
  15042. (info): Added 'virtual' keyword.
  15043. (warn): Added 'virtual' keyword.
  15044. (error): Added 'virtual' keyword.
  15045. (notice): New function.
  15046. (setStdout): New function.
  15047. * src/SimpleLogger.cc
  15048. (WRITE_LOG): Replaced writeLog with writeFile.
  15049. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15050. (SimpleLogger): Removed the default constructor.
  15051. (setStdout): New function.
  15052. (writeLog): Added the handling of NOTICE log level.
  15053. (writeFile): New function.
  15054. (notice): New function.
  15055. * src/TorrentMan.h: Updated doc.
  15056. * src/BitfieldMan.h: Updated doc.
  15057. * src/TrackerWatcherCommand.cc
  15058. (execute): Return true if error occurred in the request to the tracker
  15059. and halt is requested.
  15060. * src/TrackerUpdateCommand.cc
  15061. (execute): Return true if error occurred in the request to the tracker
  15062. and halt is requested.
  15063. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15064. DownloadEngine:
  15065. * src/TorrentConsoleDownloadEngine.h
  15066. (onSelectiveDownloadingCompletes): Removed.
  15067. * src/TorrentConsoleDownloadEngine.cc
  15068. (onSelectiveDownloadingCompletes): Removed.
  15069. * src/TorrentDownloadEngine.h
  15070. (onEndOfRun): Added 'virtual' keyword.
  15071. (afterEachIteration): Removed.
  15072. (onSelectiveDownloadingCompletes): Removed.
  15073. * src/TorrentDownloadEngine.cc
  15074. (onEndOfRun): Removed filenameFixed.
  15075. (afterEachIteration): Removed.
  15076. * src/TorrentMan.cc
  15077. (completePiece): Call onDownloadComplete here.
  15078. (onDownloadComplete): Added 2 log messages.
  15079. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15080. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15081. * src/NameResolver.h: Added the prototype declaration of callback().
  15082. To support c-ares library:
  15083. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15084. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15085. * src/FtpInitiateConnectionCommand.h:
  15086. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15087. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15088. * src/HttpInitiateConnectionCommand.h:
  15089. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15090. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15091. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15092. #1542285 by tizianomueller)
  15093. * src/HttpInitiateConnectionCommand.cc:
  15094. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15095. * src/FtpInitiateConnectionCommand.cc:
  15096. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15097. * src/DownloadEngine.h:
  15098. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15099. * src/DownloadEngine.cc:
  15100. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15101. To fix the bug that causes compilation failure with metalink-support
  15102. disabled(bug#1543587):
  15103. * src/main.cc: Fixed with the patch by tizianomueller.
  15104. * Release 0.7.2
  15105. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15106. * src/main.cc
  15107. (main): Added a message to inform users that aria2 is starting to
  15108. verify checksum.
  15109. * src/RequestInfo.cc
  15110. (printDownloadAbortMessage): Added a message to inform users that
  15111. transfer can be resumed.
  15112. * src/FeatureConfig.cc
  15113. (FEATURE_ASYNC_DNS): New definition.
  15114. (FeatureConfig): Added aysnc DNS entry.
  15115. To replace CommandUuid with Command* in SocketEntry and
  15116. NameResolverEntry:
  15117. * src/DownloadEngine.h
  15118. (CommandUuids): Removed.
  15119. (SocketEntry::commandUuid): Removed.
  15120. (SocketEntry::command): New variable.
  15121. (SocketEntry::SocketEntry): Updated.
  15122. (SocketEntry::operator==): Updated.
  15123. (NameResolverEntry::commandUuid): Removed.
  15124. (NameResolverEntry::command): New variable.
  15125. (NameResolverEntry::NameResolverEntry): Updated.
  15126. (NameResolverEntry::operator==): Updated.
  15127. (waitData): Changed the argument type.
  15128. (addSocketForReadCheck): Changed the argument type.
  15129. (deleteSocketForReadCheck): Changed the argument type.
  15130. (addSocketForWriteCheck): Changed the argument type.
  15131. (deleteSocketForWriteCheck): Changed the argument type.
  15132. (addNameResolverCheck): Changed the argument type.
  15133. (deleteNameResolverCheck): Changed the argument type.
  15134. * src/DownloadEngine.cc
  15135. (FindCommand): Removed.
  15136. (run): Removed activeUuid. Added activeCommands instead.
  15137. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15138. (AccumulateActiveCommand): New function object.
  15139. (waitData): Use AccumulateActiveCommand.
  15140. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15141. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15142. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15143. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15144. (addNameResolverCheck): Use Command instead of CommandUuid.
  15145. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15146. * src/AbstractCommand.cc
  15147. (disableReadCheckSocket): Updated according to the changes in
  15148. DownloadEngine.
  15149. (setReadCheckSocket): Updated according to the changes in
  15150. DownloadEngine.
  15151. (disableWriteCheckSocket): Updated according to the changes in
  15152. DownloadEngine.
  15153. (setWriteCheckSocket): Updated according to the changes in
  15154. DownloadEngine.
  15155. (setNameResolverCheck): Updated according to the changes in
  15156. DownloadEngine.
  15157. (disableNameResolverCheck): Updated according to the changes in
  15158. DownloadEngine.
  15159. * src/AbstractCommand.cc
  15160. (disableReadCheckSocket): Updated according to the changes in
  15161. DownloadEngine.
  15162. (setReadCheckSocket): Updated according to the changes in
  15163. DownloadEngine.
  15164. (disableWriteCheckSocket): Updated according to the changes in
  15165. DownloadEngine.
  15166. (setWriteCheckSocket): Updated according to the changes in
  15167. DownloadEngine.
  15168. * release 0.7.1
  15169. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15170. To handle the case where some BitTorrent tracker requires all letters
  15171. except for [A-Za-z0-9] is URL encoded.
  15172. * src/Util.h
  15173. (torrentUrlencode): New function.
  15174. * src/Util.cc
  15175. (ctype.h): Included.
  15176. (torrentUrlencode): New function.
  15177. * src/TrackerWatcherCommand.cc
  15178. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15179. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15180. To add asynchronous DNS support(libares):
  15181. * src/AbstractCommand.h
  15182. (setNameResolverCheck): New function.
  15183. (disableNameResolverCheck): New function
  15184. (resolveHostname): New function.
  15185. * src/AbstractCommand.cc
  15186. (setNameResolverCheck): New function.
  15187. (disableNameResolverCheck): New function
  15188. (resolveHostname): New function.
  15189. * src/FtpInitiateConnectionCommand.h
  15190. (nameResolver): New function.
  15191. * src/FtpInitiateConnectionCommand.cc
  15192. (Util.h): Included.
  15193. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15194. disableWriteCheckSocket.
  15195. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15196. (executeInternal): Added async DNS support.
  15197. * src/HttpInitiateConnectionCommand.h
  15198. (nameResolver): New function.
  15199. * src/HttpInitiateConnectionCommand.cc
  15200. (DlRetryEx.h): Included.
  15201. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15202. disableWriteCheckSocket.
  15203. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15204. (executeInternal): Added async DNS support.
  15205. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15206. by extern "C" declaration.
  15207. * src/NameResolver.cc: New class.
  15208. * src/Util.h:
  15209. (isNumberAndDotsNotation): New function
  15210. * src/Util.cc
  15211. (isNumberAndDotsNotation): New function.
  15212. * src/DownloadEngine.h
  15213. (NameResolver.h): Included.
  15214. (NameResolverEntry): New class.
  15215. (NameResolverEntries): New type definition.
  15216. (addNameResolverCheck): New function.
  15217. (deleteNameResolverCheck): New function.
  15218. * src/DownloadEngine.cc
  15219. (run): Initialize cp with 0.
  15220. (SetDescriptor::operator()): Added for NameResolverEntry.
  15221. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15222. (waitData): Check nameResolver entries.
  15223. (updateFdSet): Update fds in nameResolver entries.
  15224. (addNameResolverCheck): New function.
  15225. (deleteNameResolverCheck): new function.
  15226. * src/PeerInteractionCommand.cc
  15227. (executeInternal): Fixed wrong socket handling.
  15228. * src/main.cc
  15229. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15230. * src/Util.cc
  15231. (fileChecksum): Removed the call to ctx.digestReset().
  15232. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15233. * po/ru.po: Azamat sent me Russian translation.
  15234. * src/FtpNegotiateCommand.cc
  15235. (recvGreeting): Call disableWriteCheckSocket just after
  15236. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15237. (recvRetr): Recognized status code 125 as a acceptable response code.
  15238. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15239. case-insesitive filesystem(BUG#1531057).
  15240. * src/Time.h: Renamed as TimeA2.h.
  15241. * src/Time.cc: Renamed as TimeA2.cc.
  15242. * src/TimeA2.h: New class.
  15243. * src/TimeA2.cc: New class.
  15244. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15245. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15246. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15247. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15248. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15249. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15250. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15251. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15252. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15253. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15254. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15255. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15256. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15257. * release 0.7.0
  15258. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15259. * src/PeerChokeCommand.h
  15260. (PeerChokeCommand): Rearranged the arguments.
  15261. * src/PeerChokeCommand.cc
  15262. (PeerChokeCommand): Rearranged the arguments.
  15263. * src/MetalinkEntry.h
  15264. (Checksum.h): Included.
  15265. (md5): Removed.
  15266. (sha1): Removed.
  15267. (checksum): New variable.
  15268. (operator=): Updated.
  15269. (check): Removed.
  15270. * src/prefs.h
  15271. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15272. (PREF_FOLLOW_TORRENT): New definition.
  15273. (PREF_SELECT_FILE): New definition.
  15274. (PREF_FOLLOW_METALINK): New definition.
  15275. * src/MetalinkResource.h
  15276. (TYPE_HTTPS): Added to enum TYPE.
  15277. * src/TorrentMan.cc
  15278. (~TorrentMan): Rewritten.
  15279. * src/MultiDiskWriter.cc
  15280. (MultiDiskAdaptor): Updated according to the changes in
  15281. MessageDigestContext.
  15282. (~MultiDiskAdaptor): Updated according to the changes in
  15283. MessageDigestContext.
  15284. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15285. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15286. * src/Util.h
  15287. (fileChecksum): Updated according to the changes in
  15288. MessageDigestContext.
  15289. * src/Util.cc
  15290. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15291. (fileChecksum): Updated according to the changes in
  15292. MessageDigestContext.
  15293. * src/messageDigest.h: Rewritten.
  15294. * src/MetalinkEntry.cc
  15295. (check): Removed.
  15296. (Supported): Updated.
  15297. (dropUnsupportedResource): Fixed a memory leak.
  15298. * src/ShaVisitor.cc
  15299. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15300. (~ShaVisitor): Updated according to the changes in
  15301. MessageDigestContext.
  15302. (visit): Updated according to the changes in MessageDigestContext.
  15303. * src/main.cc
  15304. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15305. command-line option added.
  15306. * src/DownloadEngine.h
  15307. (SocketEntry): New class.
  15308. (SocketEntries): New definition.
  15309. (PairFind): Removed.
  15310. (SockCmdMap): Removed.
  15311. * src/DownloadEngine.cc
  15312. (DownloadEngine): Rewritten.
  15313. (~DownloadEngine): Rewritten.
  15314. (run): Renamed activeCommandUuids as activeUuids.
  15315. (SetDescriptor): Rewritten.
  15316. (AccumulateActiveCommandUuid): Removed.
  15317. (AccumulateActiveUuid): New function object.
  15318. (waitData): Rewritten.
  15319. (updateFdSet): Rewritten.
  15320. (addSocket): Rewritten.
  15321. (deleteSocket): Rewritten.
  15322. (addSocketForReadCheck): Rewritten.
  15323. (deleteSocketForReadCheck): Rewritten.
  15324. (addSocketForWriteCheck): Rewritten.
  15325. (deleteSocketForWriteCheck): Rewritten.
  15326. * src/Xml2MetalinkProcessor.cc
  15327. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15328. * src/DownloadCommand.cc
  15329. (executeInternal): Added the check routine for lowest speed limit.
  15330. * src/AbstractDiskWriter.cc
  15331. (AbstractDiskWriter): Updated according to the changes in
  15332. MessageDigestContext.
  15333. (~AbstractDiskWriter): Updated according to the changes in
  15334. MessageDigestContext.
  15335. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15336. * src/RequestInfo.h: New class.
  15337. * src/UrlRequestInfo.h: New class.
  15338. * src/UrlRequestInfo.cc: New class.
  15339. * src/TorrentRequestInfo.h: New class.
  15340. * src/TorrentRequestInfo.cc: New class.
  15341. * src/MetalinkRequestInfo.h: New class.
  15342. * src/MetalinkRequestInfo.cc: New class.
  15343. * src/Checksum.h: New class.
  15344. * src/DownloadEngineFactory.h: New class.
  15345. * src/DownloadEngineFactory.cc: New class.
  15346. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15347. * src/Option.h
  15348. (getAsBool): New function.
  15349. * src/Option.cc
  15350. (prefs.h): Included.
  15351. (defined): 0-length value is now recognized as undefined.
  15352. (getAsInt): Rewritten.
  15353. (getAsLLInt): Rewritten.
  15354. (getAsBool): New function.
  15355. * src/FeatureConfig.h: Rewritten.
  15356. * src/FeatureConfig.cc: Rewritten.
  15357. * src/prefs.h
  15358. (PREF_STDOUT_LOG): New definition.
  15359. (PREF_LOG): New definition.
  15360. (PREF_DIR): New definition.
  15361. (PREF_OUT): New definition.
  15362. (PREF_SPLIT): New definition.
  15363. (PREF_DAEMON): New definition.
  15364. (PREF_REFERER): New definition.
  15365. (PREF_TORRENT_FILE): New definition.
  15366. (PREF_LISTEN_PORT): New definition.
  15367. (PREF_METALINK_FILE): New definition.
  15368. (PREF_METALINK_VERSION): New definition.
  15369. (PREF_METALINK_LANGUAGE): New definition.
  15370. (PREF_METALINK_OS): New definition.
  15371. (PREF_METALINK_SERVERS): New definition.
  15372. * src/main.cc
  15373. (main): Following command-line parameters are now put into Option
  15374. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15375. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15376. metalinkLanguage, metalinkOs, metalinkServers
  15377. To fix the bug that aria2 can not handle http response header properly.
  15378. * src/HttpHeader.cc
  15379. (put): Made name lowercased.
  15380. (defined): Made name lowercased.
  15381. (getFirst): Made name lowercased.
  15382. (get): Made name lowercased.
  15383. (getFirstAsInt): Rewritten.
  15384. (getFirstAsLLInt): Rewritten.
  15385. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15386. * src/TorrentMan.h:
  15387. (advertisePiece): Updated doc.
  15388. (getAdvertisedPieceIndexes): Updated doc.
  15389. (removeAdvertisedPiece); New function.
  15390. * src/TorrentMan.cc
  15391. (FindElapsedHave): New function object.
  15392. (removeAdvertisedPiece): New function.
  15393. * src/HaveEraseCommand.h: New class.
  15394. * src/HaveEraseCommand.cc: New class.
  15395. * src/FeatureConfig.h: New class.
  15396. * src/FeatureConfig.cc: New class.
  15397. * src/Request.h
  15398. (defaultPorts): Removed.
  15399. * src/Request.cc
  15400. (FeatureConfig.h): Included.
  15401. (Request): Removed the statements related to defaultPorts.
  15402. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15403. A default port number is now retrieved from FeatureConfig.
  15404. * src/main.cc
  15405. (HaveEraseCommand.h): Included.
  15406. (showVersion): Added the output of feature list.
  15407. (main): Added HaveEraseCommand to command queue in BitTorrent
  15408. downloading.
  15409. * src/PeerInteractionCommand.h
  15410. (chokeCheckPoint): Commented out.
  15411. (periodicExecPoint): New variable.
  15412. * src/PeerInteractionCommand.cc
  15413. (executeInternal): Following methods are now called in at least every
  15414. 0.5 seconds to reduce CPU usage:
  15415. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15416. checkHave(), sendKeepAlive().
  15417. (checkLongTimePeerChoking): Commented out.
  15418. * src/BitfieldMan.h
  15419. (getNthBitIndex): Changed the method signature.
  15420. (getMissingIndexRandomly): Changed the method signature.
  15421. * src/BitfieldMan.cc
  15422. (getNthBitIndex): Rewritten
  15423. (getMissingIndexRandomly): Rewritten.
  15424. (hasMissingPiece): Rewritten.
  15425. (getMissingIndex): Refactored.
  15426. (getMissingUnusedIndex); Refactored.
  15427. (getMissingIndex): Refactored.
  15428. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15429. * src/PeerMessage.h
  15430. (Piece.h): Included.
  15431. (SharedHandle.h): Included.
  15432. (invalidate): New variable.
  15433. (uploading): New variable.
  15434. (isInvalidate): New function.
  15435. (isUploading): New function.
  15436. (onPush): New function.
  15437. (onChoked): New function.
  15438. (onCanceled): New function.
  15439. (onAbortPiece): New function.
  15440. (PeerMessageHandle): New type definition.
  15441. * src/PeerMessage.cc
  15442. (PeerMessage): Added the initialization for invalidate and uploading.
  15443. * src/CancelMessage.h
  15444. (CancelMessage): Rewritten.
  15445. * src/RejectMessage.h
  15446. (RejectMessage): Rewritten.
  15447. * src/Metalinker.h
  15448. (operator=): Defined.
  15449. * src/MetaEntry.h
  15450. (operator=): Defined.
  15451. * src/MetalinkResource.h
  15452. (operator=): Defined.
  15453. * src/AllowedFastMessage.h
  15454. (AllowedFastMessage): Rewritten.
  15455. * src/HandshakeMessage.h
  15456. (HandshakeMessage): New function(overload).
  15457. * src/HandshakeMessage.cc
  15458. (HandshakeMessage): Rewritten.
  15459. (init): New function.
  15460. * src/HaveMessage.h
  15461. (HaveMessage): Rewritten.
  15462. * src/Time.h
  15463. (operator=): Defined the function body here.
  15464. * src/Time.cc
  15465. (operator=): Removed.
  15466. * src/SocketCore.h
  15467. (operator==): Defined here.
  15468. (operator!=): Defined here.
  15469. (operator<): Defined here.
  15470. * src/SocketCore.cc
  15471. (operator==): Removed.
  15472. (operator<): Removed.
  15473. * src/BitfieldMan.h
  15474. (operator=): Defined the function body here.
  15475. * src/BitfieldMan.cc
  15476. (operator=): Removed.
  15477. * src/TorrentMan.h
  15478. (deleteErrorPeer): Removed.
  15479. (deleteUnusedPeer); New function.
  15480. * src/TorrentMan.cc
  15481. (addPeer): Call deleteUnusedPeer.
  15482. (deleteErrorPeer): Removed.
  15483. (deleteUnusedPeer): New function.
  15484. * src/PeerAbstractCommand.h
  15485. (setNoCheck): New function.
  15486. (noCheck): New variable.
  15487. * src/PeerAbstractCommand.cc
  15488. (PeerAbstractCommand): Added the initialization of noCheck.
  15489. (execute): Added a check for noCheck.
  15490. (setNoCheck): New function.
  15491. * src/Util.h
  15492. (stdio.h): Included.
  15493. * src/Util.cc
  15494. (unistd.h): Included.
  15495. * src/DefaultDiskWriter.cc
  15496. (unistd.h): Included.
  15497. * src/Peer.h
  15498. (operator==): Defined the function body here.
  15499. (operator!=): Defined the function body here.
  15500. * src/Peer.cc
  15501. (operator==): Removed.
  15502. (operator!=): Removed.
  15503. * src/Piece.h
  15504. (Piece): Defined the function body here(copy constructor).
  15505. (operator=): Defined the function body here.
  15506. (operator==): Defined the function body here.
  15507. * src/Piece.cc
  15508. (Piece): Removed(copy constructor).
  15509. (operator=): Removed.
  15510. (operator==): Removed.
  15511. * src/PeerMessageUtil.h
  15512. (ChokeMessage.h): Removed.
  15513. (UnchokeMessage.h): Removed.
  15514. (InterestedMessage.h): Removed.
  15515. (NotInterestedMessage.h): Removed.
  15516. (HaveMessage.h): Removed.
  15517. (BitfieldMessage.h): Removed.
  15518. (RequestMessage.h): Removed.
  15519. (CancelMessage.h): Removed.
  15520. (PieceMessage.h): Removed.
  15521. (HandshakeMessage.h): Removed.
  15522. (KeepAliveMessage.h): Removed.
  15523. (PortMessage.h): Removed.
  15524. (HaveAllMessage.h): Removed.
  15525. (HaveNoneMessage.h): Removed.
  15526. (PeerConnection.h): Removed.
  15527. (HandshakeMessage.h): Included.
  15528. * src/BitfieldMessage.h
  15529. (init): New function.
  15530. (BitfieldMessage): Rewritten.
  15531. (BitfieldMessage): New function(overload).
  15532. * src/RequestSlot.h
  15533. (operator=): Defined the function body here.
  15534. (operator==): Defined the function body here.
  15535. * src/RequestSlot.cc
  15536. (operator=): Removed.
  15537. (operator==): Removed.
  15538. To remove the dependency on the PeerMessage subclass from
  15539. PeerInteraction:
  15540. * src/PeerMessageFactory.h: New class.
  15541. * src/PeerMessageFactory.cc: New class.
  15542. * src/SimplePeerMessage.cc
  15543. (send): If invalidate is true then do nothing.
  15544. * src/PeerInteractionCommand.cc
  15545. (HandshakeMessage.h): Included.
  15546. (KeepAliveMessage.h): Included.
  15547. (ChokeMessage.h): Included.
  15548. (UnchokeMessage.h): Included.
  15549. (HaveMessage.h): Included.
  15550. (executeInternal): Call setNoCheck().
  15551. Removed setWriteCheckSocket(socket).
  15552. * src/PeerInteraction.h
  15553. (ChokeMessage.h): Removed.
  15554. (UnchokeMessage.h): Removed.
  15555. (InterestedMessage.h): Removed.
  15556. (NotInterestedMessage.h): Removed.
  15557. (HaveMessage.h): Removed.
  15558. (BitfieldMessage.h): Removed.
  15559. (RequestMessage.h): Removed.
  15560. (CancelMessage.h): Removed.
  15561. (PieceMessage.h): Removed.
  15562. (HandshakeMessage.h): Removed.
  15563. (KeepAliveMessage.h): Removed.
  15564. (PortMessage.h): Removed.
  15565. (HaveAllMessage.h): Removed.
  15566. (HaveNoneMessage.h): Removed.
  15567. (RejectMessage.h): Removed.
  15568. (AllowedFastMessage.h): Removed.
  15569. (SuggestPieceMessage.h): Removed.
  15570. (PeerMessageFactory.h): Included.
  15571. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15572. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15573. (PeerMessageFactory): New variable.
  15574. (createPeerMessage): Removed.
  15575. (createHandshakeMessage): Removed.
  15576. (setPeerMessageCommonProperty): Removed.
  15577. (addRequestSlot): New function.
  15578. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15579. (getPeerMessageFactory): New function.
  15580. (createRequestMessage): Removed.
  15581. (createCancelMessage): Removed.
  15582. (createPieceMessage): Removed.
  15583. (createHaveMessage): Removed.
  15584. (createChokeMessage): Removed.
  15585. (createUnchokeMessage): Removed.
  15586. (createInterestedMessage): Removed.
  15587. (createNotInterestedMessage): Removed.
  15588. (createBitfieldMessage): Removed.
  15589. (createKeepAliveMessage): Removed.
  15590. (createHaveAllMessage): Removed.
  15591. (createHaveNoneMessage): Removed.
  15592. (createRejectMessage): Removed.
  15593. (createAllowedFastMessage): Removed.
  15594. * src/PeerInteraction.cc
  15595. (PeerInteraction): Allocate PeerMessageFactory here.
  15596. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15597. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15598. PieceMessage::ID.
  15599. (addMessage): Simplified by using PeerMessage::onPush().
  15600. (addRequestSlot): New function.
  15601. (rejectAllPieceMessageInQueue): Simplified by using
  15602. PeerMessage::onChoked().
  15603. (rejectPieceMessageInQueue): Simplified by using
  15604. PeerMessage::onCanceled().
  15605. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15606. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15607. (createHandshakeMessage): Removed.
  15608. (createPeerMessage): Removed.
  15609. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15610. (setPeerMessageCommonProperty): Removed.
  15611. (createRequestMessage): Removed.
  15612. (createCancelMessage): Removed.
  15613. (createPieceMessage): Removed.
  15614. (createHaveMessage): Removed.
  15615. (createChokeMessage): Removed.
  15616. (createUnchokeMessage): Removed.
  15617. (createInterestedMessage): Removed.
  15618. (createNotInterestedMessage): Removed.
  15619. (createBitfieldMessage): Removed.
  15620. (createKeepAliveMessage): Removed.
  15621. (createHaveAllMessage): Removed.
  15622. (createHaveNoneMessage): Removed.
  15623. (createRejectMessage): Removed.
  15624. (createAllowedFastMessage): Removed.
  15625. * src/PieceMessage.h
  15626. (createRejectMessage): New function.
  15627. (PieceMessage): Rewritten.
  15628. (onChoked): New function.
  15629. (onCanceled): New function.
  15630. * src/PieceMessage.cc
  15631. (send): If invalidate is true then do nothing, just return.
  15632. (createRejectMessage): New function.
  15633. (onChoked): New function.
  15634. (onCanceled): New function.
  15635. * src/RequestMessage.h
  15636. (RequestMessage): Rewritten.
  15637. (onPush): New function.
  15638. (onAbortPiece): New function.
  15639. * src/RequestMessage.cc
  15640. (onPush): New function.
  15641. (onAbortPiece): New function.
  15642. Update fd_set when a socket is added or deleted in order to improve
  15643. performance:
  15644. * src/DownloadEngine.h
  15645. (rfdset): New variable.
  15646. (wfdset): New variable.
  15647. (updateFdSet): New function.
  15648. * src/DownloadEngine.cc
  15649. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15650. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15651. (waitData): Copy rfdset and wfdset.
  15652. (updateFdSet): New function.
  15653. (addSocket): Call updateFdSet.
  15654. (deleteSocket): Call updateFdSet.
  15655. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15656. To add the support for Metalink3.0 backward compatible links:
  15657. * src/Request.h
  15658. (SAFE_CHARS): Added '#'.
  15659. (METALINK_MARK): New definition.
  15660. * src/Request.cc
  15661. (parseUrl): Added the support for Metalink3.0 backward compatible
  15662. links.
  15663. etc
  15664. * src/PeerInteraction.cc
  15665. (MsgPushBack): Removed.
  15666. (sendMessages): Use STL copy and back_inserter.
  15667. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15668. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15669. * src/TorrentMan.h
  15670. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15671. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15672. * src/SharedHandle.h: New class.
  15673. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15674. * src/HttpResponseCommand.h
  15675. (HttpResponseCommand): Wrapped Socket.
  15676. * src/SocketCore.h
  15677. (operator==): New function.
  15678. (operator!=): New function.
  15679. (operator<): New function.
  15680. (getSockfd): New function.
  15681. (isOpen): New function.
  15682. (writeData): New function.
  15683. * src/SocketCore.cc
  15684. (operator==): New function.
  15685. (operator!=): New function.
  15686. (operator<): New function.
  15687. * src/AbstractCommand.h
  15688. (socket): Changed its type to SocketHandle.
  15689. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15690. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15691. (disableReadCheckSocket): New function.
  15692. (disableWriteCheckSocket): New function.
  15693. (readCheckTarget): Changed its type to SocketHandle.
  15694. (writeCheckTarget): Changed its type to SocketHandle.
  15695. (AbstractCommand): Replaced Socket with SocketHandle.
  15696. * src/AbstractCommand.cc
  15697. (AbstractCommand): Replaced Socket with SocketHandle.
  15698. (~AbstractCommand): Removed the deallocation for Socket object.
  15699. (disableReadCheckSocket): New function.
  15700. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15701. (disableWriteCheckSocket): New function.
  15702. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15703. * src/HttpDownloadCommand.cc
  15704. (DownloadCommand): Replaced Socket with SocketHandle.
  15705. * src/PeerAbstractCommand.h
  15706. (socket): Changed its type to SocketHandle.
  15707. (peer): Changed its type to PeerHandle.
  15708. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15709. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15710. (disableReadCheckSocket): New function.
  15711. (disableWriteCheckSocket): New function.
  15712. (readCheckTarget): Changed its type to SocketHandle.
  15713. (writeCheckTarget): Changed its type to SocketHandle.
  15714. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15715. Replaced Peer with PeerHandle.
  15716. * src/HttpRequestCommand.cc
  15717. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15718. Use disableReadCheckSocket.
  15719. * src/PeerInitiateConnectionCommand.h
  15720. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15721. * src/PeerChokeCommand.cc
  15722. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15723. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15724. (execute): Use PeerHandle.
  15725. * src/PeerConnection.h
  15726. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15727. (socket): Changed its type to SocketHandle.
  15728. (PeerConnection): Replaced Socket with SocketHandle.
  15729. * src/PeerConnection.cc
  15730. (PeerConnection): Replaced Socket with SocketHandle.
  15731. * src/PeerInteractionCommand.h
  15732. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15733. Replaced Peer with PeerHandle.
  15734. * src/PeerInteractionCommand.cc
  15735. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15736. Replaced Peer with PeerHandle.
  15737. (executeInternal): Use disableWriteCheckSocket.
  15738. Use HandshakeMessageHandle.
  15739. (receiveMessages): Use PeerMessageHandle.
  15740. (prepareForNextPeer): Use PeerHandle.
  15741. * src/HttpProxyRequestCommand.h
  15742. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15743. * src/HttpResponseCommand.cc
  15744. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15745. * src/TorrentMan.cc
  15746. (nullPeer): Added external reference.
  15747. (~TorrentMan): Removed the deallocation of the elements of peers.
  15748. (addPeer): Rewritten.
  15749. (isPeerAvailable): Use nullPeer.
  15750. (deleteOldpeers): Replaced with deleteErrorPeer.
  15751. (deleteErrorPeer): New function.
  15752. (getPeer): Use PeerHandle and nullPeer.
  15753. (hasMissingPiece): Replaced Peer with PeerHandle.
  15754. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15755. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15756. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15757. (getMissingPiece): Replaced Peer with PeerHandle.
  15758. * src/FtpNegotiateCommand.cc
  15759. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15760. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15761. (recvGreeting): Use disableWriteCheckSocket.
  15762. (recvPasv): Removed the allocation of Socket.
  15763. Use disableReadCheckSocket.
  15764. (sendRestPasv): Use disableWriteCheckSocket.
  15765. (recvRetr): Changed assertion.
  15766. * src/PeerInteraction.h
  15767. (SharedHandle.h): Included SharedHandle.h.
  15768. (PeerMessageHandle): New type definition.
  15769. (HandshakeMessageHandle): New type definition.
  15770. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15771. (peer): Changed its type to PeerHandle.
  15772. (createHandshakeMessage): Replaced HandshakeMessage with
  15773. HandshakeMessageHandle.
  15774. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15775. (PeerInteraction): Replaced Peer with PeerHandle.
  15776. Replaced Socket with SocketHandle.
  15777. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15778. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15779. (receiveHandshake): Replaced HandshakeMessage with
  15780. HandshakeMessageHandle.
  15781. * src/PeerInteraction.cc
  15782. (PeerInteraction): Replaced Peer with PeerHandle.
  15783. Replaced Socket with SocketHandle.
  15784. (~PeerInteraction): Removed the deallocation of the elements of
  15785. messageQueue.
  15786. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15787. (isSendingMessageInProgress): Replaced PeerMessage with
  15788. PeerMessageHandle.
  15789. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15790. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15791. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15792. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15793. (abortPiece): Use PeerMessageHandle.
  15794. (receiveHandshake): Replaced HandshakeMessage with
  15795. HandshakeMessageHandle. Removed try-catch block.
  15796. (createHandshakeMessage): Replaced HandshakeMessage with
  15797. HandshakeMessageHandle.
  15798. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15799. Removed try-catch block.
  15800. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15801. * src/HttpProxyResponseCommand.cc
  15802. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15803. * src/FtpTunnelResponseCommand.h
  15804. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15805. * src/HttpConnection.cc
  15806. (HttpConnection): Replaced Socket with SocketHandle.
  15807. * src/PeerAbstractCommand.cc
  15808. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15809. (~PeerAbstractCommand): Removed the deallocation of socket.
  15810. Use disableReadCheckSocket, disableWriteCheckSocket.
  15811. (disableReadCheckSocket): New function.
  15812. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15813. (disableWriteCheckSocket): New function.
  15814. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15815. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15816. * src/FtpTunnelRequestCommand.cc
  15817. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15818. (~FtpTunnelRequestCommand): Corrected indentation.
  15819. * src/DownloadCommand.h
  15820. (DownloadCommand): Replaced Socket with SocketHandle.
  15821. * src/PeerListenCommand.cc
  15822. (PeerListenCommand): Removed the initialization of socket.
  15823. (~PeerListenCommand): Removed the deallocation of socket.
  15824. (bindPort): Use SocketHandle.
  15825. (execute): Use SocketHandle and PeerHandle.
  15826. * src/FtpDowndloadCommand.cc
  15827. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15828. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15829. * src/main.cc
  15830. (main): Corrected indentation.
  15831. * src/HttpInitiateConnectionCommand.cc
  15832. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15833. (executeInternal): Removed the allocation of socket.
  15834. * src/HttpRequestCommand.h
  15835. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15836. * src/FtpNegotiationCommand.h
  15837. (dataSocket): Changed its type to SocketHandle.
  15838. (serverSocket): Changed its type to SocketHandle.
  15839. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15840. * src/TorrentMan.h
  15841. (MAX_PEER_UPDATE): Removed.
  15842. (MAX_PEERS): New definition.
  15843. (Peers): The element is now of type PeerHandle.
  15844. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15845. (getPeer): Replaced Peer with PeerHandle.
  15846. (deleteOldErrorPeers): Removed.
  15847. (deleteErrorPeer): New function.
  15848. (hasMissingPiece): Replaced Peer with PeerHandle.
  15849. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15850. (getMissingPiece): Replaced Peer with PeerHandle.
  15851. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15852. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15853. (addActivePeer): Replaced Peer with PeerHandle.
  15854. (deleteActivePeer): Replaced Peer with PeerHandle.
  15855. Added a check for the return value of find.
  15856. * src/FtpTunnelResponseCommand.cc
  15857. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15858. * src/FtpInitiateConnectionCommand.cc
  15859. (executeInternal): Removed the allocation of socket.
  15860. * src/DownloadEngine.h
  15861. (Sockets): An element is now of type SocketHandle.
  15862. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15863. (CommandUuids): New type definition.
  15864. (rsockets): Changed its type to SockCmdMap.
  15865. (wsockets): Changed its type to SockCmdMap.
  15866. (addSocket): Rewritten.
  15867. (deleteSocket): Rewritten.
  15868. (addSocketForReadCheck): Rewritten.
  15869. (deleteSocketForReadCheck): Rewritten.
  15870. (addSocketForWriteCheck): Rewritten.
  15871. (deleteSocketForWriteCheck): Rewritten.
  15872. (PairFind): New template class.
  15873. * src/HttpDownloadCommand.h
  15874. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15875. * src/FtpConnection.cc
  15876. (FtpConnection): Replaced Socket with SocketHandle.
  15877. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15878. block.
  15879. * src/InitiateConnectionCommandFactory.cc
  15880. (DlAbortEx.h): Included DlAbortEx.h.
  15881. (createInitiateConnectionCommand): Throw exception if the protocol of
  15882. requested URI is not supported.
  15883. * src/Peer.cc
  15884. (nullPeer): Changed its type to PeerHandle.
  15885. (operator==): New function.
  15886. (operator!=): New function.
  15887. * src/Peer.h
  15888. (SharedHandle.h): Included SharedHandle.h.
  15889. (operator==): New function.
  15890. (operator!=): New function.
  15891. (Peer): Added the default constructor.
  15892. Use resetStatus() to initialize member variables.
  15893. (nullPeer): Removed.
  15894. * src/TrackerUpdateCommand.cc
  15895. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15896. with MIN_PEERS.
  15897. * src/PeerListenCommand.h
  15898. (socket): Changed its type to SocketHandle.
  15899. * src/Command.h
  15900. (CommandUuid): New type definition.
  15901. (uuid): New variable.
  15902. (uuidGen): New variable.
  15903. (Command): Added the initialization of uuid.
  15904. (getUuid): New function.
  15905. * src/Socket.h
  15906. (Socket): Removed.
  15907. (SocketHandle): New type definition.
  15908. * src/DownloadEngine.h
  15909. (FindCommand): New function object.
  15910. (run): The portion of socket check was rewritten.
  15911. (SetDescriptor): New function object.
  15912. (AccumulateActiveCommandUuid): New function object.
  15913. (waitData): Rewritten.
  15914. (addSocket): Rewritten.
  15915. (deleteSocket): Rewritten.
  15916. (addSocketForReadCheck): Rewritten.
  15917. (addSocketForWriteCheck): Rewritten.
  15918. (deleteSocketForReadCheck): Rewritten.
  15919. (deleteSocketForWriteCheck): Rewritten.
  15920. * src/HttpProxyResponseCommand.h
  15921. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15922. * src/HttpConnection.h
  15923. (socket): Changed its type to SocketHandle.
  15924. (HttpConnection): Replaced Socket with SocketHandle.
  15925. * src/PeerInitiateConnectionCommand.cc
  15926. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15927. (executeInternal): Removed the allocation of socket.
  15928. (prepareForNextPeer): Use PeerHandle.
  15929. * src/PeerMessage.h
  15930. (peer): Changed its type to PeerHandle.
  15931. (getPeer): Replaced Peer with PeerHandle.
  15932. (setPeer): Replaced Peer with PeerHandle.
  15933. * src/DownloadCommand.cc
  15934. (DownloadCommand): Replaced Socket with SocketHandle.
  15935. * src/FtpConnection.h
  15936. (socket): Changed its type to SocketHandle.
  15937. (FtpConnection): Replaced Socket with SocketHandle.
  15938. (sendPort); Replaced Socket with SocketHandle.
  15939. * src/FtpDowndloadCommand.h
  15940. (ctrlSocket): Changed its type to SocketHandle.
  15941. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15942. * src/HttpProxyRequestCommand.cc
  15943. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15944. * src/FtpTunnelRequestCommand.h
  15945. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15946. etc
  15947. * src/PeerChokeCommand.h
  15948. (setAllPeerChoked): Removed.
  15949. (setAllPeerResetDelta): Removed.
  15950. * src/PeerChokeCommand.cc
  15951. (setAllPeerChoked): Removed.
  15952. (ChokePeer): New function object.
  15953. (setAllPeerResetDelta): Removed.
  15954. (ResetDelta): New function object.
  15955. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15956. (execute): Show download speed when the local node is a seeder.
  15957. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15958. using STL.
  15959. * src/TrackerWatcherCommand.h
  15960. (MIN_PEERS): Removed.
  15961. * src/TorrentMan.cc
  15962. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15963. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15964. To fix the bug that .aria2 file is not saved if downloading is stopped
  15965. by the errors:it results that aria2 can not resume downloading:
  15966. * src/main.cc
  15967. (normalDownload): Added the call to save().
  15968. (main): Added the deletion of the elements in 'reserved'.
  15969. To fix log:
  15970. * src/PeerInteraction.cc
  15971. (receiveHandshake): Fixed log.
  15972. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15973. To improve download performance in BitTorrent:
  15974. * src/TorrentMan.cc
  15975. (getPeer): Check the number of connections. Return nullPeer if
  15976. it is greater than MAX_PEER_UPDATE.
  15977. This code was originally here, but was removed in 0.5.1.
  15978. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15979. To improve the conditional compilation:
  15980. * src/MultiDiskWriter.h:
  15981. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15982. * src/MultiDiskWriter.cc:
  15983. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15984. * src/Util.h:
  15985. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15986. Added ENABLE_BITTORRENT around computeFastSet().
  15987. * src/Util.cc:
  15988. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15989. Added ENABLE_BITTORRENT around computeFastSet().
  15990. * src/messageDigest.h:
  15991. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15992. * src/ShaVisitor.h:
  15993. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15994. * src/ShaVisitor.cc:
  15995. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15996. * src/main.cc:
  15997. Added ENABLE_BITTORRENT around includes and blocks related to
  15998. BitTorrent.
  15999. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16000. digest support is not available.
  16001. * src/AbstractDiskWriter.h:
  16002. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16003. * src/AbstractDiskWriter.cc:
  16004. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16005. * src/MetalinkEntry.cc
  16006. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16007. support is not available.
  16008. To add command-line options for Metalink:
  16009. * src/main.cc:
  16010. Added metalink-version, metalink-language, metalink-os,
  16011. follow-metalink.
  16012. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16013. * src/main.cc: Use these definition.
  16014. * Release 0.6.0
  16015. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16016. To add Metalink support(http/ftp only):
  16017. * src/AbstractCommand.h
  16018. (tryReserved): New function.
  16019. * src/AbstractCommand.cc
  16020. (execute): Call tryReserved().
  16021. (tryReserved): New function.
  16022. * src/Request.h
  16023. (Requests): New type definition.
  16024. * src/SegmentMan.h
  16025. (reserved): New variable.
  16026. * src/Util.h
  16027. (fileChecksum): New function.
  16028. (toUpper): New function.
  16029. (toLower): New function.
  16030. * src/Util.cc
  16031. (messageDigest.h): Included.
  16032. (trim): Trim \r\n\t.
  16033. (fileChecksum): New function.
  16034. (toUpper): New function.
  16035. (toLower): New function.
  16036. * src/main.cc
  16037. (normalDownload): New function.
  16038. (main): Added 2 command-line options: metalink-file,
  16039. metalink-connection. Their usage has not been written yet.
  16040. * src/MetalinkProcessor.h: New class.
  16041. * src/Xml2MetalinkProcessor.h: New class.
  16042. * src/Xml2MetalinkProcessor.cc: New class.
  16043. * src/MetalinkEntry.h: New class.
  16044. * src/MetalinkEntry.cc: New class.
  16045. * src/MetalinkResource.h: New class.
  16046. * src/MetalinkResource.cc: New class.
  16047. To add md5 message digest checking:
  16048. * src/messageDigest.h: Rewritten.
  16049. * src/MultiDiskWriter.cc: Updated according to the changes in
  16050. messageDigest.h.
  16051. * src/ShaVisitor.cc: Updated according to the changes in
  16052. messageDigest.h.
  16053. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16054. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16055. messageDigest.h.
  16056. To fix a bug that causes segfault when the payload length in peer
  16057. message is less than 0:
  16058. * src/PeerConnection.cc:
  16059. (receiveMessage): Fixed the bug.
  16060. * src/PeerMessageUtil.cc
  16061. (checkLength): Throw an exception if length is less than or equals to
  16062. 0.
  16063. To add new interfaces to Base64 encoding/decoding:
  16064. * src/Base64.h
  16065. (part_encode): Changed the method signature.
  16066. (encode): New function(overload).
  16067. (decode): New function(overload).
  16068. * src/Base64.cc
  16069. (part_encode): Rewritten.
  16070. (encode): Rewritten.
  16071. (encode): New function(overload).
  16072. To prevent a peer to download same piece if there is an error in
  16073. checksum:
  16074. * src/PieceMessage.cc
  16075. (receivedAction): Call peerInteraction->abortPiece().
  16076. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16077. To fix the bug that causes same have message is sent many times to
  16078. a single peer.
  16079. * src/Time.cc
  16080. (isNewer): Use Util::difftv().
  16081. * src/Util.cc
  16082. (difftv): Added a cast to (long long int).
  16083. * src/TorrentMan.cc
  16084. (advertisePiece): Use push_front.
  16085. (getAdvertisedPieceIndexes): A performance improvement was made.
  16086. To fix the bug that sends tracker requests without a sleep interval
  16087. when the number of connections is less than 15.
  16088. * src/TrackerWatcherCommand.cc
  16089. (execute): Now the number of connections is not a factor to decide
  16090. whether or not a tracker request should be sent or not.
  16091. * src/Time.h
  16092. (setTimeInSec): New function.
  16093. * src/Time.cc
  16094. (setTimeInSec): New function.
  16095. etc.
  16096. * src/ChokeMessage.cc
  16097. (receivedAction): Removed peer->snubbing = false
  16098. * src/PeerConnection.h
  16099. (receiveHandshake): Updated doc.
  16100. * src/TorrentMan.h
  16101. (getAdvertisedPieceIndexes): Updated the method signature.
  16102. * src/TorrentMan.cc
  16103. (getAdvertisedPieceIndexes): Updated the method signature.
  16104. * src/Time.h
  16105. (getTimeInMicros): Added a cast to (long long int).
  16106. (getTimeInMillis): Added a cast to (long long int).
  16107. * Release 0.5.2
  16108. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16109. To make a listening socket non-block:
  16110. * src/SocketCore.h
  16111. (setNonBlockingMode): New function.
  16112. * src/SocketCore.cc
  16113. (setNonBlockingMode): New function.
  16114. (beginListen): Added a call to setNonBlockingMode().
  16115. (acceptConnection): Call setNonBlockingMode().
  16116. (setBlockingMode): Updated.
  16117. To handle tracker's NAT-checking:
  16118. * src/PeerConnection.cc
  16119. (receiveHandshake): 'msg' param is filled with received data and
  16120. its length is assigned to 'length' param, even if all handshake
  16121. message is not yet received.
  16122. * src/PeerInteractionCommand.cc
  16123. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16124. a new peer connects to localhost.
  16125. A call to peerInteraction->sendHandshake() was removed because
  16126. it is called from peerInteraction->receiveHandshake(true).
  16127. * src/PeerInteraction.h
  16128. (quickReplied): New variable.
  16129. (receiveHandshake): Added an argument.
  16130. * src/PeerInteraction.cc
  16131. (PeerInteraction): Added the initialization of quickReplied.
  16132. (receiveHandshake): Send handshake message as soon as the info hash
  16133. in a handshake message from a peer is correct.
  16134. To change the random part of peer id and key parameter:
  16135. * src/TorrentMan.h
  16136. (key): New variable.
  16137. * src/TorrentMan.cc
  16138. (setupInternal1): Use Util::randomAlpha() to generate random part
  16139. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16140. key is also generated by Util::randomAlpha() and it is now 8 character
  16141. long.
  16142. * src/Util.h
  16143. (randomAlpha): New function.
  16144. * src/Util.cc
  16145. (randomAlpha): New function.
  16146. * src/TrackerWatcherCommand.cc
  16147. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16148. Added no_peer_id=1.
  16149. Set snubbing flag to false when a choke message is received from a
  16150. snubbed peer.
  16151. * src/ChokeMessage.cc
  16152. (receivedAction): Set snubbing flag to false.
  16153. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16154. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16155. * src/SimpleLogger.h (writeHeader): New function.
  16156. * src/SimpleLogger.cc (writeHeader): New function.
  16157. (writeLog): Fixed the bug that causes segfaults if exception message
  16158. contains an unescaped "%" character.
  16159. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16160. when a tracker request fails.
  16161. * src/Request.cc (parseUrl): Query string is now handled properly.
  16162. * Release 0.5.1
  16163. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16164. To add Time class which represents a specific instant in time and
  16165. its precision is microseconds. Time checking procedures were rewritten
  16166. using this object.
  16167. * src/Time.h: New class.
  16168. * src/Time.cc: New class.
  16169. * src/AbstractCommand.h
  16170. (updateCheckPoint): Removed.
  16171. (isTimeoutDetected): Removed.
  16172. (checkPoint): Changed the type to Time.
  16173. (timeout): New variable.
  16174. (setTimeout): New function.
  16175. * src/AbstractCommand.cc
  16176. (AbstractCommand): Removed the initialization of checkPoint.
  16177. Added the initialization of timeout.
  16178. (updateCheckPoint): Removed.
  16179. (isTimeoutDetected): Removed.
  16180. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16181. * src/PeerChokeCommand.h
  16182. (checkPoint): Changed the type to Time.
  16183. * src/PeerChokeCommand.cc
  16184. (PeerChokeCommand): Removed the initialization of checkPoint.
  16185. (execute): Rewritten using Time object.
  16186. * src/TrackerWatcherCommand.h
  16187. (checkPoint): Changed the type to Time.
  16188. * src/TrackerWatcherCommand.cc
  16189. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16190. (execute): Rewritten.
  16191. * src/ConsoleDownloadEngine.h
  16192. (cp): Changed the type to Time.
  16193. (startup): Changed the type to Time.
  16194. * src/ConsoleDownloadEngine.cc
  16195. (initStatistics): Use cp.reset(), startup.reset().
  16196. (calculateStatistics): Rewritten using Time object.
  16197. * src/PeerAbstractCommand.h
  16198. (updateCheckPoint): Removed.
  16199. (isTimeoutDetected): Removed.
  16200. (checkPoint): Changed the type to Time.
  16201. * src/PeerAbstractCommand.cc
  16202. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16203. (updateCheckPoint): Removed.
  16204. (isTimeoutDetected): Removed.
  16205. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16206. * src/PeerInteractionCommand.cc
  16207. (PeerInteractionCommand): Removed the initializations of struct
  16208. timeval variables.
  16209. * src/PeerInteractionCommand.h
  16210. (keepAliveCheckPoint): Changed the type to Time.
  16211. (chokeCheckPoint): Changed the type to Time.
  16212. (freqCheckPoint): Changed the type to Time.
  16213. (haveCheckTime): Changed the type to Time.
  16214. * src/PeerInteractionCommand.cc
  16215. (executeInternal): Rewritten using Time object.
  16216. (detectMessageFlooding): Rewritten using Time object.
  16217. (checkLongTimePeerChoking): Rewritten using Time object.
  16218. (sendKeepAlive): Rewritten using Time object.
  16219. (checkHave): Rewritten using Time object.
  16220. * src/SleepCommand.h
  16221. (checkPoint): Changed the type to Time.
  16222. * src/SleepCommand.cc
  16223. (SleepCommand): Removed the initialization of checkPoint.
  16224. (execute): Rewritten using Time object.
  16225. * src/TorrentAutoSaveCommand.h
  16226. (checkPoint): Changed the type to Time.
  16227. * src/TorrentAutoSaveCommand.cc
  16228. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16229. (execute): Rewritten.
  16230. * src/DownloadCommand.h
  16231. (sw): Changed the type to Time.
  16232. * src/DownloadCommand.cc
  16233. (DownloadCommand): Removed the initialization of sw.
  16234. (executeInternal): Rewritten.
  16235. * src/RequestSlot.h
  16236. (dispatchedTime): Changed the type to Time.
  16237. * src/RequestSlot.cc
  16238. (RequestSlot): Removed the call to setDispatchedTime().
  16239. (setDispatchedTime): Rewirtten.
  16240. (isTimeout): Rewritten.
  16241. (getLatencyInMillis): Rewritten.
  16242. * src/TorrentDownloadEngine.h
  16243. (cp): Changed the type to Time[2].
  16244. (startup): Changed the type to Time.
  16245. * src/TorrentDownloadEngine.cc
  16246. (initStatistics): Rewritten.
  16247. (calculateStatistics): Rewritten.
  16248. * src/DownloadEngine.cc
  16249. (run): Rewritten.
  16250. To detect all attempts to connect to the tracker are failed:
  16251. * src/AbstractCommand.cc
  16252. (execute): Increment e->segmentMan->errors if a command aborted.
  16253. * src/SegmentMan.h
  16254. (errors): New variable.
  16255. * src/SegmentMan.cc
  16256. (SegmentMan): Added the initialization of errors.
  16257. (init): Added the initialization of errors.
  16258. * src/TrackerWatcherCommand.cc
  16259. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16260. request was failed.
  16261. To handle snubbed peers:
  16262. * src/PeerChokeCommand.cc
  16263. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16264. (execute): Snubbed peers don't get unchoked.
  16265. * src/PeerInteraction.h
  16266. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16267. * src/PeerInteraction.cc
  16268. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16269. back the requested 16k block in 60 seconds.
  16270. * src/PieceMessage.cc
  16271. (receivedAction): A peer's snubbed state is cleard if it sends
  16272. the requested 16k block in 60 seconds.
  16273. * src/Peer.h
  16274. (snubbing): New variable.
  16275. * src/Peer.cc
  16276. (resetStatus): Added snubbed = false.
  16277. To fix the bug that causes have message is not sent:
  16278. * src/PeerInteractionCommand.cc
  16279. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16280. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16281. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16282. * src/TorrentMan.h
  16283. (HaveEntry): New class.
  16284. (advertisePiece): Rewritten.
  16285. (getAdvertisedPieceIndexes): Rewritten.
  16286. (Haves): Changed the type.
  16287. (getAdvertisedPieceIndexes): Added an argument.
  16288. Others:
  16289. * src/TorrentMan.h
  16290. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16291. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16292. * src/TorrentMan.cc
  16293. (getPeer): Don't check the number of connections here.
  16294. (setupInternal1): Changed peerId.
  16295. * src/PeerInteractionCommand.h
  16296. (KEEP_ALIVE_INTERVAL): New definition.
  16297. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16298. * src/main.cc
  16299. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16300. * src/DownloadEngine.h: Removed unnecessary header includes.
  16301. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16302. To fix the bug that causes segfaults if a tracker returns a zero-length
  16303. list as "peers":
  16304. * src/TrackerUpdateCommand.cc
  16305. (execute): Added a check to see wether the type of peers is Data*.
  16306. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16307. * Release 0.5.0
  16308. To fix compile issue with gcc3:
  16309. * src/CancelMessage.h
  16310. (ID): Renamed as ID_t
  16311. (ID_t): New enum.
  16312. * src/RejectMessage.h
  16313. (ID): Renamed as ID_t
  16314. (ID_t): New enum.
  16315. * src/SuggestPieceMessage.h
  16316. (ID): Renamed as ID_t
  16317. (ID_t): New enum.
  16318. * src/AllowedFastMessage.h
  16319. (ID): Renamed as ID_t
  16320. (ID_t): New enum.
  16321. * src/PortMessage.h
  16322. (ID): Renamed as ID_t
  16323. (ID_t): New enum.
  16324. * src/HaveNoneMessage.h
  16325. (ID): Renamed as ID_t
  16326. (ID_t): New enum.
  16327. * src/KeepAliveMessage.h
  16328. (ID): Renamed as ID_t
  16329. (ID_t): New enum.
  16330. * src/HaveAllMessage.h
  16331. (ID): Renamed as ID_t
  16332. (ID_t): New enum.
  16333. * src/UnchokeMessage.h
  16334. (ID): Renamed as ID_t
  16335. (ID_t): New enum.
  16336. * src/BitfieldMessage.h
  16337. (ID): Renamed as ID_t
  16338. (ID_t): New enum.
  16339. * src/PieceMessage.h
  16340. (ID): Renamed as ID_t
  16341. (ID_t): New enum.
  16342. * src/RequestMessage.h
  16343. (ID): Renamed as ID_t
  16344. (ID_t): New enum.
  16345. * src/NotInterestedMessage.h
  16346. (ID): Renamed as ID_t
  16347. (ID_t): New enum.
  16348. * src/ChokeMessage.h
  16349. (ID): Renamed as ID_t
  16350. (ID_t): New enum.
  16351. * src/InterestedMessage.h
  16352. (ID): Renamed as ID_t
  16353. (ID_t): New enum.
  16354. * src/HaveMessage.h
  16355. (ID): Renamed as ID_t
  16356. (ID_t): New enum.
  16357. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16358. * src/PeerAbstractCommand.h
  16359. (beforeSocketCheck): Removed.
  16360. * src/PeerAbstractCommand.cc
  16361. Modified in order to call executeInternal() even if socket check
  16362. and upload limit check fail.
  16363. * src/PeerInteractionCommand.h
  16364. (keepAlive): Removed.
  16365. (sendKeepAlive): New function.
  16366. (checkHave): New function.
  16367. (beforeSocketCheck): Removed.
  16368. * src/PeerInteractionCommand.cc
  16369. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16370. calls to checkHave() and sendKeepAlive().
  16371. (keepAlive): Renamed to sendKeepAlive().
  16372. (sendKeepAlive): New function.
  16373. (beforeSocketCheck): Removed.
  16374. (checkHave): New function.
  16375. * src/BitfieldMan.cc
  16376. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16377. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16378. 0.
  16379. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16380. * src/TorrentMan.h
  16381. (UsedPieces): Removed.
  16382. (Pieces): New type definition.
  16383. * src/Piece.h: Updated doc.
  16384. * src/Peer.h
  16385. (totalLength): Removed.
  16386. * src/Peer.cc
  16387. (updateLatency): Fixed the latency calculation.
  16388. * src/TorrentMan.cc
  16389. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16390. than or equal to MAX_PEER_LIST_SIZE.
  16391. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16392. then return false.
  16393. (deleteOldErrorPeers): Rewritten.
  16394. (deleteUsedPiece): Fixed the miss use of STL remove.
  16395. * src/PeerInteraction.h
  16396. (Pieces): Removed.
  16397. (deleteTimeoutRequestSlot): Removed.
  16398. (deleteCompletedRequestSlot): Removed.
  16399. (checkRequestSlot): New function.
  16400. * src/PeerInteraction.cc
  16401. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16402. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16403. (checkRequestSlot): New function.
  16404. * src/DownloadEngine.cc
  16405. (run): Clear activeSockets before calling waitData().
  16406. (waitData): Removed a call to activeSockets.clear().
  16407. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16408. To attempt to handle EINTR:
  16409. * src/SocketCore.cc
  16410. (isReadable): Added EINTR handling.
  16411. (isWritable): Added EINTR handling.
  16412. To improve the performance:
  16413. * src/AbstractCommand.cc
  16414. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16415. * src/PeerInteractionCommand.h
  16416. (receiveMessage): Renamed as receiveMessages().
  16417. (receiveMessages): New function.
  16418. * src/PeerInteractionCommand.cc
  16419. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16420. () function. detectMessageFlooding() is moved here.
  16421. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16422. (). The flooding detection for have message is comment out.
  16423. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16424. Util::difftv().
  16425. (receiveMessage): Renamed as receiveMessages().
  16426. (receiveMessages): New function.
  16427. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16428. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16429. * src/SleepCommand.cc
  16430. (execute): Use Util::difftvsec() instead of Util::difftv().
  16431. * src/BitfieldMan.h
  16432. (getNthBitIndex): New function.
  16433. (hasMissingPiece): New function.
  16434. (getAllMissingIndexes): New function.
  16435. * src/BitfieldMan.cc
  16436. (countSetBit): Rewritten.
  16437. (getNthBitIndex): New function.
  16438. (getMissingIndexRandomly): Rewritten.
  16439. (hasMissingPiece): New function.
  16440. (getAllMissingIndexes): New function.
  16441. * src/TorrentMan.cc
  16442. (hasMissingPiece): New function.
  16443. (deleteUsedPiece): Rewritten using STL.
  16444. * src/PeerInteraction.cc
  16445. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16446. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16447. (addRequests): Updated the number of pending requests.
  16448. * src/PeerAbstractCommand.cc
  16449. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16450. (execute): Returns true if TorrentMan::isHalt() is true.
  16451. Corrected the condition of upload limit checking.
  16452. * src/Util.h
  16453. (countBit): New function.
  16454. * src/Util.cc
  16455. (nbits): New variable.
  16456. (countBit): New function.
  16457. * src/DownloadEngine.h
  16458. (SockCmdMap): New type definition.
  16459. (waitData): Added an argument.
  16460. (addSocket): Added an argument.
  16461. (addSocketForReadCheck): Added an argument.
  16462. (addSocketForWriteCheck): Added an argument.
  16463. * src/DownloadEngine.cc
  16464. (run): Executes only commands whose sockets are ready to read or write.
  16465. All commands are executed in every 1 second.
  16466. (waitData): Calls select() again if it returned
  16467. EINTR.
  16468. (addSocket): Saves socket and command object pair to the map.
  16469. (deleteSocket): Deletes socket and command object pair from the map.
  16470. (addSocketForReadCheck): Added an argument.
  16471. (addSocketForWriteCheck): Added an argument.
  16472. * src/DownloadCommand.cc
  16473. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16474. To send "event=stopped" to the tracker when the application finishes:
  16475. * src/PeerChokeCommand.h
  16476. (checkPoint): New variable.
  16477. * src/PeerChokeCommand.cc
  16478. (PeerChokeCommand): Added the initialization of checkPoint.
  16479. (execute): The interval check is now done by checkPoint, not
  16480. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16481. * src/TorrentMan.h
  16482. (halt): New function.
  16483. (hasMissingPiece): New function.
  16484. (isHalt): New function.
  16485. (setHalt): New function.
  16486. * src/TorrentMan.cc
  16487. (TorrentMan): Added the initialization of halt.
  16488. * src/TorrentAutoSaveCommand.h
  16489. (checkPoint): New variable.
  16490. * src/PeerListenCommand.cc
  16491. (execute): Returns true if TorrentMan::isHalt() is true.
  16492. * src/main.cc
  16493. (setSignalHander): Added flags argument.
  16494. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16495. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16496. Removed printDownloadAbortMessage() after torrent downloading loop.
  16497. * src/TorrentAutoSaveCommand.cc
  16498. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16499. (execute): Returns true if TorrentMan::isHalt() is true.
  16500. The interval check is now done by checkPoint, not SleepCommand.
  16501. * src/TrackerWatcherCommand.cc
  16502. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16503. event=stopped.
  16504. * src/TrackerUpdateCommand.cc
  16505. (prepareForRetry): Do not use SleepCommand here.
  16506. (execute): Returns true if TorrentMan::isHalt() is true.
  16507. Others:
  16508. * src/TorrentMan.cc
  16509. (getMissingPieceIndex): Updated log message.
  16510. * src/PeerInteraction.cc
  16511. (createPeerMessag): Updated log message.
  16512. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16513. To add the ability to download several pieces in mix in a command and
  16514. increase the number of request slots according to request-cancel
  16515. latency:
  16516. * src/PeerInteractionCommand.cc
  16517. (executeInternal): The number of messages to be received at a time
  16518. is increased from 10 to 50.
  16519. * src/LogFactory
  16520. (getInstance): Added NullLogger.
  16521. * src/NullLogger.h: New class.
  16522. * src/BitfieldMan.h
  16523. (getMissingIndex): New function.
  16524. * src/BitfieldMan.cc
  16525. (getMissingIndex): New function.
  16526. * src/TorrentMan.h
  16527. (checkOutPiece): New function.
  16528. (getMissingPieceIndex): New function.
  16529. (getMissingFastPieceIndex): New function.
  16530. (getMissingFastPiece): New function.
  16531. * src/TorrentMan.cc
  16532. (updatePiece): Rewritten using STL.
  16533. (syncPiece): Rewritten using STL.
  16534. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16535. checkOutPiece().
  16536. (getMissingPieceIndex): New function.
  16537. (getMissingFastPieceIndex): New function.
  16538. (getMissingFastPiece): New function.
  16539. (checkOutPiece): New function.
  16540. * src/PeerInteraction.h
  16541. (Pieces): New type definition.
  16542. (piece): Removed.
  16543. (pieces): New variable.
  16544. (getNewPieceAndSendInterest): Added the "piece" argument.
  16545. (abortPiece): Added the "piece" argument.
  16546. (abortAllPieces): New function.
  16547. (isInRequestSlot): New function.
  16548. (hasDownloadPiece): Added the "index" argument.
  16549. (setDownloadPiece): Removed.
  16550. (getDownloadPiece): Added the "index" argument.
  16551. (updatePiece): New function.
  16552. (createRequestMessage): Added the "index" argument.
  16553. * src/PeerInteraction.cc
  16554. (onChoked): Rewritten.
  16555. (abortPiece): Rewirtten.
  16556. (abortAllPieces): New function.
  16557. (deleteTimeoutRequestSlot): Rewritten.
  16558. Clarified code a little bit.
  16559. (deleteCompletedRequestSlot): Rewritten.
  16560. (isInRequestSlot): New function.
  16561. (syncPiece): Rewritten.
  16562. (updatePiece): New function.
  16563. (getNewPieceAndSendInterest): Rewritten.
  16564. (addRequests): Rewritten.
  16565. (getDownloadPiece): Rewritten.
  16566. (hasDownloadPiece): Rewritten.
  16567. (createRequestMessage): Added the "index" argument.
  16568. * src/common.h
  16569. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16570. (DIV_FLOOR): New definition.
  16571. * src/PieceMessage.cc
  16572. (receivedAction): Update request-piece latency here.
  16573. * src/RequestSlot.h
  16574. (getLatencyInMillis): New function.
  16575. * src/RequestSlot.cc
  16576. (isTimeout): Rewritten using getLatencyInMillis.
  16577. (getLatencyInMillis): New function.
  16578. * src/Piece.h
  16579. (operator==): New function.
  16580. (getMissingBlockIndex): New function.
  16581. * src/Piece.cc
  16582. (operator==): New function.
  16583. (getMissingBlockIndex): New function.
  16584. * src/Peer.h
  16585. (DEFAULT_LATENCY): New definition.
  16586. (latency): New variable.
  16587. (updateLatency): New function.
  16588. (getLatency): New function.
  16589. * src/Peer.cc
  16590. (resetStatus): Reset latecy.
  16591. (updateLatency): New function.
  16592. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16593. * src/SocketCore.cc
  16594. (isReadable): Added secure to the condition.
  16595. * src/HttpConnection.cc
  16596. (receiveResponse): Fixed a bug that causes no response header
  16597. exception.
  16598. * src/Peer.h
  16599. (getFastSet): Fixed the return value type.
  16600. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16601. To remove a wait from download loop:
  16602. * src/DownloadEngine.cc
  16603. (run): Comment out shortSleep.
  16604. To rewrite the message handling:
  16605. * src/SimplePeerMessage.h: New class.
  16606. * src/SimplePeerMessage.cc: New class.
  16607. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16608. (msg): New variable.
  16609. (create): New function.
  16610. (send): Removed.
  16611. (getMessage): New function.
  16612. (getMessageLength): New function.
  16613. * src/CancelMessage.cc
  16614. (create): New function.
  16615. (receivedAction): Replaced deleteRequestMessageInQueue with
  16616. rejectPieceMessageInQueue.
  16617. (send): Removed.
  16618. (getMessage): New function.
  16619. (getMessageLength): New function.
  16620. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16621. (msg): New variable.
  16622. (msgLength): New variable.
  16623. (~BitfieldMessage): Deleted msg.
  16624. (send): Removed.
  16625. (getMessage): New function.
  16626. (getMessageLength): New function.
  16627. * src/BitfieldMessage.cc
  16628. (create): New function.
  16629. (send): Removed.
  16630. (getMessage): New function.
  16631. (getMessageLength): New function.
  16632. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16633. (msg): New variable.
  16634. (sendPredicate): New function.
  16635. (onSendComplete): New function.
  16636. (send): Removed.
  16637. (getMessage): New function.
  16638. (getMessageLength): New function.
  16639. (create): New function.
  16640. * src/ChokeMessage.cc
  16641. (create): New function.
  16642. (send): Removed.
  16643. (sendPredicate): New function.
  16644. (getMessage): New function.
  16645. (getMessageLength): New function.
  16646. (onSendComplete): New function.
  16647. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16648. (msg): New variable.
  16649. (send): Removed.
  16650. (getMessage): New function.
  16651. (getMessageLength): New function.
  16652. * src/KeepAliveMessage.cc
  16653. (send): Removed.
  16654. (getMessage): New function.
  16655. (getMessageLength): New function.
  16656. * src/PortMessage.h
  16657. (create): New function.
  16658. (receivedAction): Updated log message.
  16659. * src/PortMessage.cc: New file.
  16660. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16661. (msg): New variable.
  16662. (sendPredicate): New function.
  16663. (onSendComplete): New function.
  16664. (create): New function.
  16665. (send): Removed.
  16666. (getMessage): New function.
  16667. (getMessageLength): New function.
  16668. * src/UnchokeMessage.cc
  16669. (create): New function.
  16670. (send): Removed.
  16671. (sendPredicate): New function.
  16672. (getMessage): New function.
  16673. (getMessageLength): New function.
  16674. (onSendComplete): New function.
  16675. * src/PieceMessage.h
  16676. (leftPieceDataLength): Removed.
  16677. (leftDataLength): New variable.
  16678. (headerSend): New variable.
  16679. (pendingCount): New variable.
  16680. (msgHeader): New variable.
  16681. (sendPieceData): New function.
  16682. (incrementPendingCount): New function.
  16683. (isPendingCountMax): New function.
  16684. (create): New function.
  16685. (getMessageHeader): New function.
  16686. (getMessageHeaderLength): New function.
  16687. * src/PieceMessage.cc
  16688. (create): New function.
  16689. (getMessageHeader): New function.
  16690. (getMessageHeaderLength): New function.
  16691. (send): Rewritten.
  16692. (sendPieceData): New function.
  16693. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16694. (msg): New variable.
  16695. (create): New function.
  16696. (getMessage): New function.
  16697. (getMessageLength): New function.
  16698. * src/HaveMessage.cc
  16699. (create): New function.
  16700. (send): Removed.
  16701. (sendPieceData): New function.
  16702. (getMessage): New function.
  16703. (getMessageLength): New function.
  16704. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16705. (msg): New variable.
  16706. (create): New function.
  16707. (send): Removed.
  16708. (getMessage): New function.
  16709. (getMessageLength): New function.
  16710. * src/RequestMessage.cc
  16711. (create): New function.
  16712. (receivedAction): Added the handling of fast extension.
  16713. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16714. (send): Removed.
  16715. (getMessage): New function.
  16716. (getMessageLength): New function.
  16717. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16718. (msg): New variable.
  16719. (sendPredicate): New function.
  16720. (onSendComplete): New function.
  16721. (create): New function.
  16722. (getMessage): New function.
  16723. (getMessageLength): New function.
  16724. * src/InterestedMessage.cc
  16725. (create): New function.
  16726. (send): Removed.
  16727. (sendPieceData): New function.
  16728. (getMessage): New function.
  16729. (getMessageLength): New function.
  16730. (onSendComplete): New function.
  16731. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16732. (msg): New variable.
  16733. (sendPieceData): New function.
  16734. (onSendComplete): New function.
  16735. (create): New function.
  16736. (send): Removed.
  16737. (getMessage): New function.
  16738. (getMessageLength): New function.
  16739. * src/NotInterestedMessage.cc
  16740. (create): New function.
  16741. (send): Removed.
  16742. (sendPredicate): New function.
  16743. (getMessage): New function.
  16744. (getMessageLength): New function.
  16745. (onSendComplete): New function.
  16746. * src/AllowedFastMessage.h: New class.
  16747. * src/AllowedFastMessage.cc: New class.
  16748. * src/RejectMessage.h: New class.
  16749. * src/RejectMessage.cc: New class.
  16750. * src/SuggestPieceMessage.h: New class.
  16751. * src/SuggestPieceMessage.cc: New class.
  16752. * src/HaveAllMessage.h: New class.
  16753. * src/HaveAllMessage.cc: New class.
  16754. * src/HaveNoneMessage.h: New class.
  16755. * src/HaveNoneMessage.cc: New class.
  16756. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16757. (msg): New variable.
  16758. (reserved): New variable.
  16759. (create): New function.
  16760. (getId): New function.
  16761. (receivedAction): New function.
  16762. (getMessage): New function.
  16763. (getMessageLength): New function.
  16764. (isFastExtensionSupported): New function.
  16765. * src/HandshakeMessage.cc
  16766. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16767. (create): New function.
  16768. (getMessage): New function.
  16769. (getMessageLength): New function.
  16770. (toString): Added the output of reserved field.
  16771. (check): Added const qualifier.
  16772. (isFastExtensionSupported): New function.
  16773. * src/PeerMessageUtil.h
  16774. (createChokeMessage): Removed.
  16775. (createUnchokeMessage): Removed.
  16776. (createInterestedMessage): Removed.
  16777. (createNotInterestedMessage): Removed.
  16778. (createHaveMessage): Removed.
  16779. (createBitfieldMessage): Removed.
  16780. (createRequestMessage): Removed.
  16781. (createCancelMessage): Removed.
  16782. (createPieceMessage): Removed.
  16783. (createPortMessage): Removed.
  16784. (createChokeMessage): Removed.
  16785. (createUnchokeMessage): Removed.
  16786. (createInterestedMessage): Removed.
  16787. (createNotInterestedMessage): Removed.
  16788. (createHaveMessage): Removed.
  16789. (createBitfieldMessage): Removed.
  16790. (createRequestMessage): Removed.
  16791. (createCancelMessage): Removed.
  16792. (createPieceMessage): Removed.
  16793. (createKeepAliveMessage): Removed.
  16794. (createHandshakeMessage): Removed.
  16795. (setIntParam): New function.
  16796. (createPeerMessageString): New function.
  16797. * src/PeerMessageUtil.cc
  16798. (createChokeMessage): Removed.
  16799. (createUnchokeMessage): Removed.
  16800. (createInterestedMessage): Removed.
  16801. (createNotInterestedMessage): Removed.
  16802. (createHaveMessage): Removed.
  16803. (createBitfieldMessage): Removed.
  16804. (createRequestMessage): Removed.
  16805. (createCancelMessage): Removed.
  16806. (createPieceMessage): Removed.
  16807. (createPortMessage): Removed.
  16808. (createRequestMessage): Removed.
  16809. (createCancelMessage): Removed.
  16810. (createPieceMessage): Removed.
  16811. (createHaveMessage): Removed.
  16812. (createChokeMessage): Removed.
  16813. (createUnchokeMessage): Removed.
  16814. (createInterestedMessage): Removed.
  16815. (createNotInterestedMessage): Removed.
  16816. (createBitfieldMessage): Removed.
  16817. (createKeepAliveMessage): Removed.
  16818. (createHandshakeMessage): Removed.
  16819. (setIntParam): New function.
  16820. (createPeerMessageString): New function.
  16821. * src/PeerConnection.h
  16822. (peer): Removed.
  16823. (torrentMan): Removed.
  16824. (createNLengthMessage): Removed.
  16825. (setIntParam): Removed.
  16826. (writeOutgoingMessageLog): Removed all overloaded functions.
  16827. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16828. (sendMessage): New function.
  16829. (sendHandshake): Removed.
  16830. (sendKeepAlive): Removed.
  16831. (sendChoke): Removed.
  16832. (sendUnchoke): Removed.
  16833. (sendInterested): Removed.
  16834. (sendNotInterested): Removed.
  16835. (sendHave): Removed.
  16836. (sendBitfield): Removed.
  16837. (sendRequest): Removed.
  16838. (sendPiece): Removed.
  16839. (sendPieceHeader): Removed.
  16840. (sendPieceData): Removed.
  16841. (sendCancel): Removed.
  16842. (getPeer): Removed.
  16843. * src/PeerConnection.cc
  16844. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16845. (sendHandshake): Removed.
  16846. (sendKeepAlive): Removed.
  16847. (createNLengthMessage): Removed.
  16848. (setIntParam): Removed.
  16849. (writeOutgoingMessageLog): Removed all overloaded functions.
  16850. (sendChoke): Removed.
  16851. (sendUnchoke): Removed.
  16852. (sendInterested): Removed.
  16853. (sendNotInterested): Removed.
  16854. (sendHave): Removed.
  16855. (sendBitfield): Removed.
  16856. (sendRequest): Removed.
  16857. (sendPiece): Removed.
  16858. (sendPieceHeader): Removed.
  16859. (sendPieceData): Removed.
  16860. (sendMessage): New function.
  16861. (sendCancel): Removed.
  16862. * src/PeerInteractionCommand.cc
  16863. (PeerInteractionCommand): Call setUploadLimit.
  16864. (executeInternal): Call setUploadLimit.
  16865. Added the handling of "inProgress" state of handshake message.
  16866. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16867. sendNow().
  16868. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16869. sendNow().
  16870. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16871. * src/TorrentMan.h
  16872. (PEER_ID_LENGTH): New definition.
  16873. (hasAllPieces): New function.
  16874. * src/TorrentMan.cc
  16875. (getMissingPiece): Added the handling of fast extension.
  16876. (cancelPiece): Call updatePiece().
  16877. (hasAllPieces): New function.
  16878. * src/PeerInteraction.h
  16879. (fastSet): New variable.
  16880. (getNewPieceAndSendInterest): Changed the return type to void.
  16881. (send): Renamed as sendMessages.
  16882. (deleteAllRequestSlot): Removed.
  16883. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16884. (cancelAllRequest): Removed all overloaded functions.
  16885. (deleteAllRequestSlot): Removed.
  16886. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16887. (rejectPieceMessageInQueue): New function.
  16888. (rejectAllPieceMessageInQueue): New function.
  16889. (onChoked): New function.
  16890. (isSendingMessageInProgress): New function.
  16891. (getCorrespondingRequestSlot): Changed its arguments.
  16892. (isInFastSet): New function.
  16893. (addFastSetIndex): New function.
  16894. (addRequests): New function.
  16895. (sendNow): Removed.
  16896. (trySendNow): Removed.
  16897. (sendBitfield): New function.
  16898. (sendAllowdFast): New function.
  16899. (createHaveAllMessage): New function.
  16900. (createHaveNoneMessage): New function.
  16901. (createRejectMessage): New function.
  16902. (createAllowedFastMessage): New function.
  16903. * src/PeerInteraction.cc
  16904. (send): Renamed as sendMessages.
  16905. (sendMessages): New function.
  16906. (MsgPushBack): New class.
  16907. (isSendingMessageInProgress): New function.
  16908. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16909. (rejectAllPieceMessageInQueue): New function.
  16910. Added the handling of fast extension.
  16911. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16912. (rejectPieceMessageInQueue): New function.
  16913. Added the handling of fast extension.
  16914. (deleteRequestSlot): Replaced for loop with std::find.
  16915. (onChoked): New function.
  16916. (deleteAllRequestSlot): Removed.
  16917. (abortPiece): Rewirtten.
  16918. (deleteTimeoutRequestSlot): Updated log messages.
  16919. (getCorrespondingRequestSlot): Changed its arguments.
  16920. (cancelAllRequest): Removed all overloaded functions.
  16921. (receiveHandshake): Added the check to see whether an incoming peer
  16922. supports fast extension.
  16923. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16924. PeerMessageUtil.
  16925. (createPeerMessage): Use create() of each message class instead of
  16926. PeerMessageUtil.
  16927. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16928. AllowedFastMessage were added.
  16929. (getNewPieceAndSendInterest): Changed its return value type to void.
  16930. Added the handling of fast extension.
  16931. (addRequests): New function.
  16932. (sendNow): Removed.
  16933. (sendHandshake): Rewritten.
  16934. (trySendNow): Removed.
  16935. (sendBitfield): New function.
  16936. (sendAllowdFast): New function.
  16937. (isInFastSet): New function.
  16938. (addFastSetIndex): New function.
  16939. (createRequestMessage): Use RequestMessage::create instead of
  16940. PeerMessageUtil.
  16941. (createCancelMessage): Use CancelMessage::create instead of
  16942. PeerMessageUtil.
  16943. (createPieceMessage): Use PieceMessage::create instead of
  16944. PeerMessageUtil.
  16945. (createHaveMessage): Use HaveMessage::create instead of
  16946. PeerMessageUtil.
  16947. (createChokeMessage): Use ChokeMessage::create instead of
  16948. PeerMessageUtil.
  16949. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16950. PeerMessageUtil.
  16951. (createInterestedMessage): Use InterestedMessage::create instead of
  16952. PeerMessageUtil.
  16953. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16954. of PeerMessageUtil.
  16955. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16956. PeerMessageUtil.
  16957. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16958. PeerMessageUtil.
  16959. (createHaveAllMessage): New function.
  16960. (createHaveNoneMessage): New function.
  16961. (createRejectMessage): New function.
  16962. (createAllowedFastMessage: New function.
  16963. * src/Util.h
  16964. (sha1Sum): New function.
  16965. (computeFastSet): New function.
  16966. * src/Util.cc
  16967. (sha1Sum): New function.
  16968. (computeFastSet): New function.
  16969. * src/Peer.h
  16970. (fastExtensionEnabled): New variable.
  16971. (fastSet): New variable.
  16972. (setAllBitfield): New function.
  16973. (setFastExtensionEnabled): New function.
  16974. (isFastExtensionEnabled): New function.
  16975. (addFastSetIndex): New function.
  16976. (getFastSet): New function.
  16977. (isInFastSet): New function.
  16978. (countFastSet): New function.
  16979. * src/Peer.cc
  16980. (isInFastSet): New function.
  16981. (addFastSetIndex): New function.
  16982. (setAllBitfield): New function.
  16983. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16984. sockets.
  16985. * src/PeerAbstractCommand.cc
  16986. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16987. and uploadLimit.
  16988. (execute): Changed the procedure of checking sockets. The upload speed
  16989. checking were added.
  16990. (setUploadLimit): New function.
  16991. (setUploadLimitCheck): New function.
  16992. * src/PeerAbstractCommand.h
  16993. (setUploadLimit): New function.
  16994. (setUploadLimitCheck): New function.
  16995. (uploadLimit): New variable.
  16996. (uploadLimitCheck): New variable.
  16997. To contact a tracker regularly:
  16998. * src/TrackerWatcherCommand.h (interval): New variable.
  16999. (checkPoint): New variable.
  17000. (TrackerWatcherCommand): Added interval argument.
  17001. * src/TrackerWatcherCommand.cc
  17002. (TrackerWatcherCommand): Initialized checkPoint.
  17003. (execute): Now a tracker is contacted in every specified period.
  17004. If peer list is not needed, send request with numwant=0.
  17005. * src/TrackerUpdateCommand.cc
  17006. (execute): Updated log messages.
  17007. * src/DownloadEngine.cc
  17008. (~DownloadEngine): Removed two asserts.
  17009. (waitData): Uncommented wfds. May be a bug fix.
  17010. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17011. * src/PeerInteractionCommand.h
  17012. (checkInactiveConnection): Removed.
  17013. * src/PeerInteractionCommand.cc
  17014. (executeInternal): Removed following function calls:
  17015. detectMessageFlooding(), checkLongTimePeerChoking and
  17016. checkInactiveConnection().
  17017. (checkInactiveConnection): Removed.
  17018. (detectMessageFlooding): Removed function call to
  17019. checkInactiveConnection().
  17020. * src/PeerMessageUtil.h
  17021. (createChokeMessage): New function. Overload.
  17022. (createUnchokeMessage): New function. Overload.
  17023. (createInterestedMessage): New function. Overload.
  17024. (createNotInterestedMessage): New function. Overload.
  17025. (createHaveMessage): New function. Overload.
  17026. (createBitfieldMessage): New function. Overload.
  17027. (createRequestMessage): New function. Overload.
  17028. (createCancelMessage): New function. Overload.
  17029. (createPieceMessage): New function. Overload.
  17030. (createKeepAliveMessage): New function. Overload.
  17031. * src/PeerMessageUtil.cc
  17032. (createChokeMessage): New function. Overload.
  17033. (createUnchokeMessage): New function. Overload.
  17034. (createInterestedMessage): New function. Overload.
  17035. (createNotInterestedMessage): New function. Overload.
  17036. (createHaveMessage): New function. Overload.
  17037. (createBitfieldMessage): New function. Overload.
  17038. (createRequestMessage): New function. Overload.
  17039. (createCancelMessage): New function. Overload.
  17040. (createPieceMessage): New function. Overload.
  17041. (createKeepAliveMessage): New function. Overload.
  17042. * src/SendMessageQueue.cc
  17043. (createRequestMessage): Use PeerMessageUtil.
  17044. (createCancelMessage): Use PeerMessageUtil.
  17045. (createPieceMessage): Use PeerMessageUtil.
  17046. (createHaveMessage): Use PeerMessageUtil.
  17047. (createChokeMessage): Use PeerMessageUtil.
  17048. (createUnchokeMessage): Use PeerMessageUtil.
  17049. (createInterestedMessage): Use PeerMessageUtil.
  17050. (createNotInterestedMessage): Use PeerMessageUtil.
  17051. (createBitfieldMessage): Use PeerMessageUtil.
  17052. (createKeepAliveMessage): Use PeerMessageUtil.
  17053. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17054. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17055. * src/PeerInteraction.h: New class.
  17056. * src/PeerInteraction.cc: New class.
  17057. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17058. Each peer message has its own class.
  17059. * src/PendingMessages.h: Removed.
  17060. * src/PendingMessages.cc: Removed. The sending process was moved to
  17061. each message class.
  17062. * src/RequestSlotMan.h: Removed.
  17063. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17064. SendMessageQueue.
  17065. * src/RequestMessage.h: New class.
  17066. * src/RequestMessage.cc: New class.
  17067. * src/CancelMessage.h: New class.
  17068. * src/CancelMessage.cc: New class.
  17069. * src/BitfieldMessage.h: New class.
  17070. * src/BitfieldMessage.cc: New class.
  17071. * src/ChokeMessage.h: New class.
  17072. * src/ChokeMessage.cc: New class.
  17073. * src/KeepAliveMessage.h: New class.
  17074. * src/KeepAliveMessage.cc: New class.
  17075. * src/PortMessage.h: New class.
  17076. * src/UnchokeMessage.h: New class.
  17077. * src/UnchokeMessage.cc: New class.
  17078. * src/PieceMessage.h: New class.
  17079. * src/PieceMessage.cc: New class.
  17080. * src/HaveMessage.h: New class.
  17081. * src/HaveMessage.cc: New class.
  17082. * src/BitfieldMessage.h: New class.
  17083. * src/BitfieldMessage.cc: New class.
  17084. * src/NotInterestedMessage.h: New class.
  17085. * src/NotInterestedMessage.cc: New class.
  17086. * src/InterestedMessage.h: New class.
  17087. * src/InterestedMessage.cc: New class.
  17088. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17089. (getSendMessageQueue): New function.
  17090. (setSendMessageQueue): New function.
  17091. * src/HandshakeMessage.cc: New class.
  17092. * src/PeerConnection.h (receiveMessage): Changed return value and
  17093. arguments.
  17094. (receiveHandshake): Changed return value and arguments.
  17095. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17096. here.
  17097. (receiveHandshake): Do not create handshake class here.
  17098. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17099. (piece): Removed.
  17100. (syncPiece): Removed.
  17101. (sendInterest): Removed.
  17102. (sendMessages): Removed.
  17103. (createRequestPendingMessage): Removed.
  17104. (checkPieceHash): Removed.
  17105. (erasePieceOnDisk): Removed.
  17106. (getNewPieceAndSendInterest): Removed.
  17107. (onGotNewPice): Removed.
  17108. (onGotWrongPiece): Removed.
  17109. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17110. Removed peerConnection, piece.
  17111. (~PeerInteractionCommand): Removed peerConnection.
  17112. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17113. (syncPiece): Moved to SendMessageQueue.
  17114. (decideChoking): Removed PendingMessage.
  17115. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17116. The action after receiving peer message was moved to each message
  17117. class.
  17118. (onGotNewPice): Moved to SendMessageQueue.
  17119. (onGotWrongPiece): Moved to SendMessageQueue.
  17120. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17121. (sendInterest): Moved to SendMessageQueue.
  17122. (createRequestPendingMessage): Removed.
  17123. (sendMessages): Moved to SendMessageQueue.
  17124. (onAbort): Use SendMessageQueue::abortPiece()
  17125. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17126. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17127. (checkPieceHash): Moved to SendMessageQueue.
  17128. (erasePieceOnDisk): Moved to SendMessageQueue.
  17129. * src/PeerMessageUtil.h
  17130. (createBitfieldMessage): Removed.
  17131. (createHaveMessage): Changed return value and arguments.
  17132. (createBitfieldMessage): Changed return value and arguments.
  17133. (createRequestCancelMessage): Removed.
  17134. (createPieceMessage): Changed return value and arguments.
  17135. (getShortIntParam): New function.
  17136. (checkIndex): Changed arguments.
  17137. (checkBegin): Changed arguments.
  17138. (checkLength): Changed arguments.
  17139. (checkPieceOffset): Removed.
  17140. (checkRange): New function.
  17141. (checkBitfield): Changed arguments.
  17142. (createPeerMessage): Removed.
  17143. (checkIntegrity): Removed.
  17144. (createHandshakeMessage): Changed arguments.
  17145. (createChokeMessage): New function.
  17146. (createUnchokeMessage): New function.
  17147. (createInterestedMessage): New function.
  17148. (createNotInterestedMessage): New function.
  17149. (createRequestMessage): New function.
  17150. (createCancelMessage): New function.
  17151. (createPortMessage): New function.
  17152. * src/PeerMessageUtil.cc
  17153. (createBitfieldMessage): Removed.
  17154. (createHaveMessage): Changed return value and arguments.
  17155. (createBitfieldMessage): Changed return value and arguments.
  17156. (createRequestCancelMessage): Removed.
  17157. (createPieceMessage): Changed return value and arguments.
  17158. (getShortIntParam): New function.
  17159. (checkIndex): Changed arguments.
  17160. (checkBegin): Changed arguments.
  17161. (checkLength): Changed arguments.
  17162. (checkPieceOffset): Removed.
  17163. (checkRange): New function.
  17164. (checkBitfield): Changed arguments.
  17165. (createPeerMessage): Removed.
  17166. (checkIntegrity): Removed.
  17167. (createHandshakeMessage): Changed arguments.
  17168. (createChokeMessage): New function.
  17169. (createUnchokeMessage): New function.
  17170. (createInterestedMessage): New function.
  17171. (createNotInterestedMessage): New function.
  17172. (createRequestMessage): New function.
  17173. (createCancelMessage): New function.
  17174. (createPortMessage): New function.
  17175. * src/PeerMessage.h
  17176. (id): Removed.
  17177. (index): Removed.
  17178. (begin): Removed.
  17179. (length): Removed.
  17180. (bitfield): Removed.
  17181. (bitfieldLength): Removed.
  17182. (block): Removed.
  17183. (blockLength): Removed.
  17184. (inProgress): New variable.
  17185. (cuid): New variable.
  17186. (peer): New variable.
  17187. (sendMessageQueue): New variable.
  17188. (logger): New variable.
  17189. (setBitfield): Removed.
  17190. (getBitfield): Removed.
  17191. (setBlock): Removed.
  17192. (getBlock): Removed.
  17193. (getBitfieldLength): Removed.
  17194. (getBlockLength): Removed.
  17195. (isInProgress): New function.
  17196. (toString): Made pure virtual.
  17197. (check): New function.
  17198. (send): New function.
  17199. (receivedAction): New function.
  17200. (getId): Made pure virtual.
  17201. (setId): Removed.
  17202. (getIndex): Removed.
  17203. (setIndex): Removed.
  17204. (getBegin): Removed.
  17205. (setBegin): Removed.
  17206. (getLength): Removed.
  17207. (setLength): Removed.
  17208. (getCuid): New function.
  17209. (setCuid): New function.
  17210. (getPeer): New function.
  17211. (setPeer): New function.
  17212. (getSendMessageQueue): New function.
  17213. (setSendMessageQueue): New function.
  17214. (ID): Removed.
  17215. * src/PeerMessage.cc
  17216. (setBitfield): Removed.
  17217. (setBlock): Removed.
  17218. (toString): Removed.
  17219. * src/TorrentMan.h
  17220. (getPieceLength): New function.
  17221. (getPieceLength): New function.
  17222. * src/SendMessageQueue.h
  17223. (REQUEST_TIME_OUT): New definition.
  17224. (RequestSlots): New definition.
  17225. (MessageQueue): New definition.
  17226. (requestSlotMan): Removed.
  17227. (pendingMessages): Removed.
  17228. (requestSlots): New variable.
  17229. (messageQueue): New variable.
  17230. (torrentMan): New variable.
  17231. (peerConnection): New variable.
  17232. (peer): New variable.
  17233. (piece): New variable.
  17234. (getNewPieceAndSendInterest): New function.
  17235. (createPeerMessage): New function.
  17236. (createHandshakeMessage): New function.
  17237. (send): Made private.
  17238. (setPeerMessageCommonProperty): New function.
  17239. (deleteAllRequestSlot): New function.
  17240. (deleteRequestMessageInQueue): New function.
  17241. (cancelAllRequest): Made private.
  17242. (cancelAllRequest): Made private.
  17243. (countRequestSlot): Made private.
  17244. (addPendingMessage): Removed.
  17245. (deletePendingPieceMessage): Removed.
  17246. (deletePendingRequestMessage): Removed.
  17247. (addMessage): New function.
  17248. (deletePieceMessageInQueue): New function.
  17249. (deleteTimeoutRequestSlot): Changed argument.
  17250. (deleteCompletedRequestSlot): Changed argument.
  17251. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17252. (getCorrespondingRequestSlot): New function.
  17253. (countPendingMessage): Removed.
  17254. (countMessageInQueue): New function.
  17255. (getTorrentMan): New function.
  17256. (getPeerConnection): New function.
  17257. (hasDownloadPiece): New function.
  17258. (getDownloadPiece): New function.
  17259. (setDownloadPiece): New function.
  17260. (syncPiece): New function.
  17261. (sendMessages): New function.
  17262. (sendNow): New function.
  17263. (trySendNow): New function.
  17264. (abortPiece): New function.
  17265. (sendHandshake): New function.
  17266. (receiveMessage): New function.
  17267. (receiveHandshake): New function.
  17268. (createRequestMessage): New function.
  17269. (createCancelMessage): New function.
  17270. (createPieceMessage): New function.
  17271. (createHaveMessage): New function.
  17272. (createChokeMessage): New function.
  17273. (createUnchokeMessage): New function.
  17274. (createInterestedMessage): New function.
  17275. (createNotInterestedMessage): New function.
  17276. (createBitfieldMessage): New function.
  17277. (createKeepAliveMessage): New function.
  17278. * src/SendMessageQueue.cc
  17279. (SendMessageQueue): Removed requestSlotMan.
  17280. Instantiated peerConnection here.
  17281. (~SendMessageQueue): Removed requestSlotMan.
  17282. Added deletion of peerConnection and the contents of messageQueue.
  17283. (send): Updated according to the change of messageQueue.
  17284. (addPendingMessage): Renamed to addMessage.
  17285. (addMessage): New function.
  17286. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17287. (deletePieceMessageInQueue): New function.
  17288. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17289. (deleteRequestMessageInQueue): New function.
  17290. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17291. here.
  17292. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17293. (...) was moved here.
  17294. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17295. moved here.
  17296. (deleteCompletedRequestSlot):
  17297. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17298. (getCorrespondingRequestSlot):
  17299. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17300. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17301. (countPendingMessage): Renamed to countMessageInQueue.
  17302. (countMessageInQueue): New function.
  17303. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17304. (receiveHandshake): New function.
  17305. (createHandshakeMessage): New function.
  17306. (receiveMessage): New function.
  17307. (createPeerMessage): New function.
  17308. (syncPiece): New function.
  17309. (getNewPieceAndSendInterest): New function.
  17310. (sendMessages): New function.
  17311. (sendNow): New function.
  17312. (trySendNow): New function.
  17313. (sendHandshake): New function.
  17314. (abortPiece): New function.
  17315. (getDownloadPiece): New function.
  17316. (getPeerMessageCommonProperty): New function.
  17317. (createRequestMessage): New function.
  17318. (createCancelMessage): New function.
  17319. (createPieceMessage): New function.
  17320. (createHaveMessage): New function.
  17321. (createChokeMessage): New function.
  17322. (createUnchokeMessage): New function.
  17323. (createInterestedMessage): New function.
  17324. (createNotInterestedMessage): New function.
  17325. (createBitfieldMessage): New function.
  17326. (createKeepAliveMessage): New function.
  17327. To add simple Content-Disposition support:
  17328. * src/HttpResponseCommand.h (determinFilename): New function.
  17329. * src/HttpResponseCommand.cc (executeInternal):
  17330. Use determinFilename(headers) instead of req->getFile() when comparing
  17331. filename.
  17332. (determinFilename): New function.
  17333. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17334. req->getFile().
  17335. (handleOtherEncoding): Use determinFilename(headers) instead of
  17336. req->getFile().
  17337. * src/Util.h (getContentDispositionFilename): New function.
  17338. * src/Util.cc (getContentDispositionFilename): New function.
  17339. * src/LogFactory.h (release): New function.
  17340. * src/LogFactory.cc (release): New function.
  17341. To fix a bug that causes out-of-bound exception when HTTP status
  17342. line is wrong:
  17343. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17344. size.
  17345. * src/common.h (Deleter): New class.
  17346. * src/SegmentMan.cc
  17347. (~SegmentMan): Added deletion of splitter and diskWriter.
  17348. * src/DownloadEngine.h
  17349. (Commands): Use deque.
  17350. (clearQueue): New function.
  17351. * src/DownloadEngine.cc
  17352. (~DownloadEngine): Added deletion of segmentMan.
  17353. (cleanQueue): New function.
  17354. * src/TorrentDownloadEngine.h
  17355. (TorrentDownloadEngine): The implementation was moved to
  17356. TorrentDownloadEngine.cc.
  17357. (~TorrentDownloadEngine): The implementation was moved to
  17358. TorrentDownloadEngine.cc.
  17359. * src/TorrentDownloadEngine.cc
  17360. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17361. * src/main.cc
  17362. (clearRequest): Removed.
  17363. (handler): Added deletion of e.
  17364. (torrentHandler): Added deletion of te.
  17365. (main): Do not share splitter.
  17366. Use Deleter instead of clearRequest.
  17367. Deletion of classes were updated.
  17368. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17369. * src/main.cc (main): Fixed typo.
  17370. * src/message.h: Fixed typo.
  17371. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17372. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17373. To add --select-file command-line option:
  17374. * src/Util.cc
  17375. (unfoldRange): New function.
  17376. (getNum): New function.
  17377. (unfoldSubRange): New function
  17378. * src/main.cc
  17379. (showUsage): Added help message.
  17380. (main): Added --select-file command-line option. Updated the layout of
  17381. file listing.
  17382. * src/common.h
  17383. (Integers): New definition.
  17384. * src/SocketCore.cc
  17385. (writeData): Removed timeout argument.
  17386. (readData): Removed timeout argument.
  17387. (peekData): Removed timeout argument.
  17388. * src/Socket.cc
  17389. (writeData): Removed timeout argument.
  17390. (readData): Removed timeout argument.
  17391. (peekData): Removed timeout argument.
  17392. * Release 0.4.1
  17393. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17394. To deploy upload rate based choking algorithm:
  17395. * src/PeerInteractionCommand.cc
  17396. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17397. peer currently used.
  17398. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17399. download completes. Simplified.
  17400. (receiveMessage): Updated.
  17401. * src/TorrentMan.h
  17402. (activePeers): New variable.
  17403. (addActivePeer): New function.
  17404. (getActivePeers): New function.
  17405. (deleteActivePeer): New function.
  17406. * src/TorrentMan.cc
  17407. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17408. * src/PeerAbstractCommand.cc
  17409. (onAbort): Use peer->resetStatus().
  17410. * src/main.cc
  17411. (PeerChokeCommand.h): Included.
  17412. (main): Added the instance of ChokingCommand to the command queue.
  17413. * src/Peer.h
  17414. (amChoking): Renamed from amChocking
  17415. (chokingRequired): New variable.
  17416. (optUnchoking): New variable.
  17417. (deltaUpload): New variable.
  17418. (deltaDownload): New variable.
  17419. (addDeltaUpload): New function.
  17420. (resetDeltaUpload): New function.
  17421. (addDeltaDownload): New function.
  17422. (resetDeltaDownload): New function.
  17423. (addPeerUpload): Added a call to addDeltaUpload.
  17424. (addPeerDownload): Added a call to addDeltaDownload.
  17425. * src/Peer.cc
  17426. (shouldBeChoking): Renamed from shouldChoke.
  17427. (resetStatus): New function.
  17428. * src/PeerChokeCommand.h: New class.
  17429. * src/PeerChokeCommand.cc: New class.
  17430. To add lazy upload speed limiter:
  17431. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17432. statistics calculation to TorrentDownloadEngine.
  17433. * src/TorrentConsoleDownloadEngine.cc
  17434. (sendStatistics): Renamed from printStatistics.
  17435. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17436. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17437. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17438. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17439. calculation.
  17440. (sendStatistics): New function as pure virtual function.
  17441. (getUploadSpeed): New function.
  17442. * src/TorrentDownloadEngine.cc
  17443. (initStatistics): New function.
  17444. (calculateSpeed): New function.
  17445. (calculateStatistics): New function.
  17446. * src/SendMessageQueue.h
  17447. (uploadLength): New variable.
  17448. (send): Added an argument.
  17449. (setUploadLimit): New function.
  17450. (getUploadLimit): New function.
  17451. * src/SendMessageQueue.cc
  17452. (send): Added upload speed limiter.
  17453. * src/prefs.h
  17454. (PREF_UPLOAD_LIMIT): New definition.
  17455. * src/PeerInteractionCommand.cc
  17456. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17457. * src/main.cc
  17458. (main): Added --upload-limit option
  17459. For bug fixes:
  17460. * src/main.cc
  17461. (showUsage): Corrected --listen-port help
  17462. Other changes:
  17463. * src/TorrentMan.cc
  17464. (getPeer): Return nullPeer if connection is grather than
  17465. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17466. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17467. To add some useful information to the exception message:
  17468. * src/SocketCore.cc : Updated messages.
  17469. * src/SegmentMan.cc :
  17470. * src/TorrentMan.cc : Updated messages.
  17471. * src/MultiDiskWriter.cc : Updated messages.
  17472. * src/Util.cc : Updated messages.
  17473. * src/AbstractDiskWriter.cc : Updated messages.
  17474. * src/PreAllocationDiskWriter.cc : Updated messages.
  17475. * src/message.cc : Added new messages. Updated some messages.
  17476. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17477. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17478. Updated threshold from 30 to 15.
  17479. * src/AbstractDiskWriter.h (filename): New variable.
  17480. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17481. (createFile): Assigned filename.
  17482. * src/main.cc: Updated the help message for http-auth-scheme.
  17483. * Release 0.4.0
  17484. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17485. To add TrackerUpdateCommand with which replaces
  17486. CompactTrackerResponseProcessor:
  17487. * src/TrackerWatcherCommand.h (req): Removed.
  17488. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17489. if the number of peer connections are less than 30.
  17490. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17491. * src/SegmentMan.h (diskWriter): New function.
  17492. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17493. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17494. (main): Use TrackerUpdateCommand.
  17495. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17496. (req): New variable.
  17497. (setTrackerResponseProcessor): Removed.
  17498. (getTrackerResponseProcessor): Removed.
  17499. (processTrackerResponse): Removed.
  17500. * src/DownloadEngine.h (diskWriter): Removed.
  17501. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17502. to torrentMan->processTrackerResponse().
  17503. To add Util::expandBuffer:
  17504. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17505. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17506. * src/Util.h (expandBuffer): New function.
  17507. To fix the bug that causes segmentation fault when "-l ." is specified
  17508. in command-line option:
  17509. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17510. (openFile): New function.
  17511. (closeFile): New function.
  17512. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17513. (~SimpleLogger): Call closeFile();
  17514. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17515. * src/main.cc (main): Added a check to see logger is configured
  17516. properly.
  17517. To enable HTTP authentication without specifying "--http-auth-scheme"
  17518. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17519. * src/HttpConnection.cc (createRequest): Send Authorization header
  17520. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17521. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17522. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17523. * src/Peer.cc (shouldChoke): Updated algorithm.
  17524. * src/message.h (EX_AUTH_FAILED): New definition.
  17525. (EX_FILE_OPEN): New definition.
  17526. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17527. if status == 401.
  17528. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17529. if req->isTorrent == true.
  17530. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17531. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17532. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17533. (createFile): Updated message.
  17534. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17535. To add a readout of estimated remaining time to normal HTTP/FTP
  17536. downloads:
  17537. * src/ConsoleDownloadEngine.h (startup): New variable.
  17538. (startupLength): New variable.
  17539. (isStartupLengthSet): New variable.
  17540. (avgSpeed): New variable.
  17541. (eta): New variable.
  17542. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17543. estimated remaining time.
  17544. (initStatistics): Initialized newly added variables.
  17545. (calculateStatistics): Calculate average speed and estimated remaining
  17546. time.
  17547. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17548. * src/TrackerDownloadCommand.h: Removed.
  17549. * src/TrackerDownloadCommand.cc: Removed.
  17550. * src/TrackerInitCommand.h: Removed.
  17551. * src/TrackerInitCommand.cc: Removed.
  17552. * src/TrackerUpdateCommand.h: Removed.
  17553. * src/TrackerUpdateCommand.cc: Removed.
  17554. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17555. url written in TrackerInitCommand was moved here. Do not create
  17556. tracker request command if torrentMan->trackers != 0.
  17557. * src/CompactTrackerResponseProcessor.h: New class.
  17558. * src/CompactTrackerResponseProcessor.cc: New class.
  17559. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17560. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17561. Decoupled TorrentDownloadEngine from this.
  17562. * src/SegmentMan.h (init): New function.
  17563. * src/SegmentMan.cc (init): New function.
  17564. * src/TorrentMan.h (responseProcessor): New variable.
  17565. (trackers): New variable.
  17566. (setTrackerResponseProcessor): New function.
  17567. (getTrackerResponseProcessor): New function.
  17568. (processTrackerResponse): New function.
  17569. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17570. (processTrackerResponse): New function.
  17571. * src/main.cc (main): Use ByteArrayDiskWriter and
  17572. CompactTrackerResponseProcessor.
  17573. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17574. processTrackerResponse().
  17575. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17576. readout.
  17577. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17578. which indicates download has completed.
  17579. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17580. (closeFile): fd >= 0, not fd > 0
  17581. * src/main.cc (main): Added short cut for show-files.
  17582. Added short cut for torrent-file.
  17583. Added new command-line option listen-port.
  17584. Updated i18n messages.
  17585. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17586. To add LogFactory which creates singleton logger:
  17587. * src/LogFactory.h: New class.
  17588. * src/LogFactory.cc: New class.
  17589. * src/Command.h (logger): New variable.
  17590. (Constructor): Use LogFactory.
  17591. * src/AbstractCommand.cc: Use Command::logger
  17592. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17593. Use LogFactory.
  17594. * src/SegmentSplitter.h : Made logger protected.
  17595. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17596. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17597. * src/DownloadEngine.h : Made logger protected.
  17598. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17599. * src/PeerInteractionCommand.cc : Use Command::logger.
  17600. * src/HttpResponseCommand.cc : Use Command::logger.
  17601. * src/SegmentMan.h : Made logger private.
  17602. * src/TorrentMan.h : Made logger private.
  17603. * src/TorrentMan.cc : Use LogFactory.
  17604. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17605. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17606. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17607. Use LogFactory.
  17608. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17609. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17610. Use LogFactory.
  17611. * src/DownloadCommand.cc : Use Command::logger.
  17612. * src/PeerAbstractCommand.cc : Use Command::logger.
  17613. * src/PeerListenCommand.cc : Use Command::logger.
  17614. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17615. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17616. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17617. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17618. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17619. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17620. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17621. Use LogFactory.
  17622. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17623. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17624. Use LogFactory.
  17625. * src/main.cc (main): Use LogFactory.
  17626. * src/DiskAdaptor.h (logger): New variable.
  17627. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17628. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17629. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17630. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17631. parameter to a tracker request.
  17632. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17633. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17634. * src/main.cc (setSignalHander): New function.
  17635. (main): Added a handler for SIGTERM.
  17636. (handler): Updated message.
  17637. (torrentHandler): Updated message.
  17638. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17639. * src/TorrentConsoleDownloadEngine.cc
  17640. (onPartialDownloadingCompletes): Renamed as
  17641. onSelectiveDownloadingCompletes.
  17642. (onSelectiveDownloadingCompletes): Updated message.
  17643. To add DiskAdaptor which abstract DiskWriter family:
  17644. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17645. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17646. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17647. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17648. MultiDiskAdaptor.h.
  17649. (readFileEntry): Changed its arguments.
  17650. (setup): setupDiskWriter is merged into this function.
  17651. (setupDiskWriter): Removed.
  17652. (setFileFilter): New function.
  17653. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17654. made in readFileEntry.
  17655. (getFilePath): Removed.
  17656. (getTempFilePath): Removed.
  17657. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17658. (fixFilename): Removed.
  17659. (copySingleFile): Removed.
  17660. (splitMultiFile): Removed.
  17661. (deleteTempFile): Removed.
  17662. (setFileEntriesToDownload): Removed.
  17663. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17664. (isSelectiveDownloadingMode): New function.
  17665. (setAllMultiFileRequestedState): Removed.
  17666. (finishPartialDownloadingMode): Renamed as
  17667. finishSelectiveDownloadingMode.
  17668. (finishSelectiveDownloadingMode): New function.
  17669. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17670. (getSelectedTotalLength): New function.
  17671. (onDownloadComplete): Use diskAdaptor.
  17672. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17673. (Range): Removed.
  17674. (setMultiFileEntries): Renamed as setFileEntries.
  17675. (setFileEntries): New function.
  17676. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17677. (pieceLength): New variable.
  17678. * src/main.cc (printDownloadCompeleteMessage): New function.
  17679. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17680. (main): Renamed torrent-show-files to show-files.
  17681. Rewritten file contents listing.
  17682. * src/TorrentMan.h (FileEntry): Removed.
  17683. (multiFileTopDir): Removed.
  17684. (multiFileEntries): Removed.
  17685. (diskWriter): Removed.
  17686. (diskAdaptor): New variable.
  17687. * src/DefaultDiskWriter.h (totalLength): New variable.
  17688. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17689. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17690. diskWriter.
  17691. * src/TorrentConsoleDownloadEngine.h
  17692. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17693. (partialTotalLength): Renamed as selectedTotalLength.
  17694. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17695. openExistingFile, otherwise call initAndOpenFile.
  17696. (closeFile): fd > 0, not fd != 0.
  17697. * src/DirectDiskAdaptor.h: New class.
  17698. * src/DirectDiskAdaptor.cc: New class.
  17699. * src/MultiDiskAdaptor.h: New class.
  17700. * src/MultiDiskAdaptor.cc: New class.
  17701. * src/CopyDiskAdaptor.h: New class.
  17702. * src/CopyDiskAdaptor.cc: New class.
  17703. * src/DiskAdaptor.h: New class.
  17704. * src/DiskAdaptor.cc: New class.
  17705. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17706. (PREF_SHOW_FILES): New definition.
  17707. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17708. To add the ability to download multi torrent into respective files
  17709. directly:
  17710. * src/DiskWriter.h (openFile): New function.
  17711. (seek): Removed.
  17712. * src/MultiDiskWriter.h: New class.
  17713. * src/MultiDiskWriter.cc: New class.
  17714. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17715. protected.
  17716. (openFile): New function.
  17717. * src/AbstractDiskWriter.cc (openFile): New function.
  17718. * src/prefs.h (V_FALSE): New definition.
  17719. (PREF_DIRECT_FILE_MAPPING): New definition.
  17720. * src/TorrentMan.h (setupDiskWriter): New function.
  17721. (setAllMultiFileRequestedState): New function.
  17722. (onDownloadComplete): New function.
  17723. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17724. (setupDiskWriter): New function.
  17725. (getFilePath): Updated.
  17726. (getTempFilePath): Updated.
  17727. (getSegmentFilePath): Updated.
  17728. (fixFilename): Updated.
  17729. (deleteTempFile): Updated.
  17730. (setAllMultiFileRequestedState): New function.
  17731. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17732. (finishPartialDownloadingMode): Reset requested flags.
  17733. (onDownloadComplete): New function.
  17734. * src/main.cc: Added --direct-file-mapping option.
  17735. Use TorrentMan::setupDiskWriter().
  17736. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17737. onDownloadComplete().
  17738. To fix ETA bug:
  17739. * src/Util.h (difftvsec): New function.
  17740. * src/Util.cc (difftvsec): New function.
  17741. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17742. type of "elapsed" instead of long long int.
  17743. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17744. The updates of statistics takes place every 1 seconds.
  17745. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17746. (calculateSpeed): Changed its argument signature.
  17747. * src/PeerMessage.cc (toString): Fixed message.
  17748. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17749. To print ETA:
  17750. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17751. completion handling when dealing with
  17752. TorrentMan::isPartialDownloadingMode() == true.
  17753. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17754. New function.
  17755. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17756. (sessionDownloadLength): New variable.
  17757. (avgSpeed): New variable.
  17758. (eta): New variable.
  17759. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17760. new variables: eta, avgSpeed, startup.
  17761. (calculateSpeed): Calculate average speed and ETA.
  17762. (printStatistics): Added ETA.
  17763. * src/Util.h (secfmt): New function.
  17764. * src/Util.cc (secfmt): New function.
  17765. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17766. To detect "keep alive" flooding:
  17767. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17768. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17769. variable: keepAliveCount.
  17770. (detectMessageFlooding): Added "keep alive" flooding detection.
  17771. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17772. received.
  17773. To add the ability to download only specified files in multi-file
  17774. torrent:
  17775. * src/BitfieldMan.h (filterBitfield): New variable.
  17776. (filterEnabled): New variable.
  17777. (setFilterBit): New function.
  17778. (enableFilter): New function.
  17779. (disableFilter): New function.
  17780. (isFilterEnabled): New function.
  17781. (getFilteredTotalLength): New function.
  17782. (getCompletedLength): New function.
  17783. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17784. filterBitfield, filterEnabled.
  17785. (CopyConstructor): Added filterBitfield and filterEnabled.
  17786. (operator==): Added filterBitfield and filterEnabled.
  17787. (Destructor): Added filterBitfield.
  17788. (getMissingIndex): Use filterBitfield.
  17789. (getMissingUnusedIndex): Use filterBitfield.
  17790. (getFirstMissingUnusedIndex): Use filterBitfield.
  17791. (getFirstMissingUnusedIndex): Use filterBitfield.
  17792. (getAllMissingIndexes): Use filterBitfield.
  17793. (countMissingBlock): Use filterBitfield.
  17794. (countBlock): Use filterBitfield.
  17795. (setBitInternal): Added new argument on.
  17796. (setUseBit): Use setBitInternal.
  17797. (unsetUseBit): Use setBitInternal.
  17798. (setBit): Use setBitInternal.
  17799. (unsetBit): Use setBitInternal.
  17800. (isAllBitSet): Use filterBitfield.
  17801. (setFilterBit): New function.
  17802. (addFilter): New function.
  17803. (enableFilter): New function.
  17804. (disableFilter): New function.
  17805. (clearFilter): New function.
  17806. (isFilterEnabled): New function.
  17807. (getFilteredTotalLength): New function.
  17808. (getCompletedLength): New function.
  17809. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17810. Initalized newly added variables.
  17811. [FileEntry](offset): New variable.
  17812. [FileEntry](extracted): New variable.
  17813. [FileEntry](requested): New variable.
  17814. (readFileEntry): New function.
  17815. (option): New variable.
  17816. (splitMultiFile): Removed const qualifier.
  17817. (fixFilename): Removed const qualifier.
  17818. (readFileEntryFromMetaInfoFile): New function.
  17819. (finishPartialDownloadingMode): New function.
  17820. (isPartialDownloadingMode): New function.
  17821. (setFileEntriesToDownload): New function.
  17822. (getCompletedLength): New function.
  17823. (getPartialTotalLength): New function.
  17824. * src/TorrentMan.cc (readFileEntry): New function.
  17825. (setup): Use readFileEntry. If no-preallocation option is specified,
  17826. use DefaultDiskWriter.
  17827. (readFileEntryFromMetaInfoFile): New function.
  17828. (fixFilename): Removed const qualifier.
  17829. (splitMultiFile): Removed const qualifier.
  17830. (setFileEntriesToDownload): New function.
  17831. (isPartialDownloadingMode): New function.
  17832. (finishPartialDownloadingMode): New function.
  17833. (getCompletedLength): New function.
  17834. (getPartialTotalLength): New function.
  17835. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17836. New variable.
  17837. (partialTotalLength): New variable.
  17838. (downloadLength): New variable.
  17839. (totalLength): New variable.
  17840. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17841. Added log.
  17842. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17843. partialTotalLength, downloadLength, totalLength.
  17844. (calculate): Calculate downloadLength and totalLength.
  17845. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17846. * src/main.cc (addCommand): Changed argument signature.
  17847. (main): Added new variable: args. Added new option "torrent-show-files"
  17848. "no-preallocation". Usage is not updated yet.
  17849. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17850. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17851. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17852. Attempt to add the ability to listing file entries in a .torrent file.
  17853. This feature is not yet complete.
  17854. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17855. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17856. (getName): New function.
  17857. * src/TorrentMan.h (getMultiFileEntries): New function.
  17858. (getName): New function.
  17859. * src/main.cc (main): Use above 2 funtion.
  17860. * Release 0.3.2
  17861. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17862. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17863. (detectMessageFlooding): Updated threshold value.
  17864. (checkLongTimePeerChoking): Updated timeout value.
  17865. (getNewPieceAndSendInterest): Added debug log.
  17866. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17867. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17868. (getPeer): Updated.
  17869. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17870. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17871. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17872. is localhost.
  17873. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17874. * src/PendingMessage.cc (processMessage): Not to send piece message
  17875. if peer is not interested in the pieces localhost has.
  17876. * src/Peer.cc (shouldChoke): Updated.
  17877. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17878. * src/Util.cc (isPowerOf): New function.
  17879. * src/Util.h (isPowerOf): New function.
  17880. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17881. whether or not it is power of 2.
  17882. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17883. Added new class SendMessageQueue that includes PendingMessages and
  17884. RequestSlotMan.
  17885. * src/SendMessageQueue.h: New class.
  17886. * src/SendMessageQueue.cc: New class.
  17887. * src/PendingMessage.h: Added new member variable blockIndex and its
  17888. accessors.
  17889. (createRequestMessage): Updated.
  17890. * src/PendingMessage.cc (createRequestMessage): Updated.
  17891. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17892. SendMessageQueue.
  17893. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17894. (receiveMessage): Updated with SendMessageQueue.
  17895. (deletePendingPieceMessage): Removed.
  17896. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17897. (sendInterest): Updated with SendMessageQueue.
  17898. (createRequestPendingMessage): Updated with SendMessageQueue.
  17899. (sendMessages): Updated with SendMessageQueue.
  17900. (onAbort): Updated with SendMessageQueue.
  17901. (keepAlive): Updated with SendMessageQueue.
  17902. (beforeSocketCheck): Updated SendMessageQueue.
  17903. * src/PeerInteractionCommand (sendMessages): Shuffle
  17904. missingBLockIndexes before using it.
  17905. Added its own timeout for peer connection.
  17906. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17907. setter.
  17908. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17909. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17910. Added setTimeout() call.
  17911. (executeInternal): Added setTimeout() call.
  17912. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17913. Added timeout.
  17914. (isTimeoutDetected): Updated.
  17915. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17916. option.
  17917. Added *simple* message flooding checker.
  17918. * src/PeerInteractionCommand.cc (executeInternal):
  17919. Added detectMessageFlooding() call.
  17920. (detectMessageFlooding): New function.
  17921. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17922. (beforeSocketCheck): Added detectMessageFlooding() call.
  17923. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17924. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17925. Removed deletePendingPieceMessage(), getRequestSlot(),
  17926. deleteRequestSlot(), deleteAllRequestSlot().
  17927. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17928. Added checkLongTimePeerChoking() call.
  17929. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17930. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17931. if duplicate == false.
  17932. The parameter "uploaded" and "downloaded" in the tracker request are
  17933. the size since the client sent the "started" event to the tracker.
  17934. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17935. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17936. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17937. getSessionDownloadedSize(), getSessionUploadedSize().
  17938. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17939. getSessionUploadedSize() instead of getDownloadedSize(),
  17940. getUploadedSize().
  17941. * src/PendingMessage.cc (processMessage): Do not send request message
  17942. if the peer is choking the client.
  17943. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17944. less than interval.
  17945. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17946. * configure.in: Added gnutls support. Added several CPP macros.
  17947. * m4/openssl.m4: Added.
  17948. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17949. readData(), peekData(). Added gnutls support.
  17950. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17951. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17952. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17953. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17954. Instead, added a check for whether setup method has executed
  17955. successfully.
  17956. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17957. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17958. * src/Makefile.am: Updated.
  17959. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17960. using whether OpenSSL or gcrypt, depending on the result of configure
  17961. script.
  17962. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17963. messageDigest.h.
  17964. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17965. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17966. Fixed memory leak.
  17967. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17968. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17969. Removed instantiation of TrackerInitCommand. Instead,
  17970. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17971. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17972. ENABLE_SSL.
  17973. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17974. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17975. If a piece is already acquired by another command, delete the request
  17976. slots for the piece.
  17977. * src/TrackerUpdateCommand.cc (execute):
  17978. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17979. Added a check whether peer list is null.
  17980. Fixed the bug that causes sending completed event to the tracker
  17981. several times.
  17982. * src/TrackerInitCommand.cc (execute):
  17983. Fixed the bug that causes sending completed event to the tracker
  17984. several times.
  17985. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17986. by using messageDigest.h.
  17987. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17988. * PeerConnection.cc: Replaced log message "keep-alive" with
  17989. "keep alive".
  17990. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17991. localhost long time.
  17992. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17993. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17994. at most 100 failure entry from the list. If with duplicate = false,
  17995. MAX_PEER_LIST is not checked.
  17996. * PeerListenCommand.cc: Fixed the argument order of log message.
  17997. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17998. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17999. Added warn().
  18000. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18001. Implemented warn().
  18002. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18003. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18004. * Request.h: Added AFTER_COMPLETED event.
  18005. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18006. instead of downloaded size and progress(%) after download completes.
  18007. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18008. message to the peer if it is interested in what localhost has
  18009. downloaded.
  18010. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18011. destination instead of just renaming it.
  18012. * TorrentMan.cc: Added deleteTempFile().
  18013. * PeerAbstractCommand.cc: do not stop execution after download
  18014. completes. This makes localhost a seeder.
  18015. * Util.{h,cc}: Added fileCopy().
  18016. * PeerListenCommand.cc: do not stop execution after download completes.
  18017. This makes localhost a seeder.
  18018. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18019. Added TorrentMan::deleteTempFile() to torrentHandler.
  18020. Initialized the variable dir as ".".
  18021. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18022. Deleted renameSingleFile().
  18023. Added copySingleFile(), deleteTempFile().
  18024. * DownloadEngine.h: Added virtual function afterEachIteration().
  18025. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18026. in onEndOfRun() to afterEachIteration().
  18027. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18028. true.
  18029. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18030. In rangedFileCopy(), added try-catch block to properly close file
  18031. descriptors.
  18032. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18033. Added afterEachIteration(), isFilenameFixed().
  18034. * Peer.cc: Changed choking strategy.
  18035. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18036. * TrackerInitCommand.cc: Send completed event only once.
  18037. * DownloadEngine.cc: Added a call to afterEachIteration().
  18038. * TrackerUpdateCommand.cc: Do not stop execution after download
  18039. completes.
  18040. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18041. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18042. received from a tracker.
  18043. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18044. Decreased the number of failure peers to delete to 0(just comment out
  18045. the line).
  18046. * Release 0.3.1
  18047. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18048. * PeerInteractionCommand.cc: added a call to
  18049. TorrentMan::unadvertisePiece in Destructor.
  18050. * PeerInteractionCommand.cc: make have message sent immediately
  18051. if the size of pending message queue is zero.
  18052. * TorrentMan.cc: set the maximum size of peer list to 250.
  18053. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18054. to deque.
  18055. * Util.cc: fixed rangedFileCopy.
  18056. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18057. to Constructor. Also, moved digest cleanup to Destructor.
  18058. * MetaFileUtil.cc: fixed memory leak
  18059. * replaced std::vector with std::deque.
  18060. * AbstractCommand.cc: casted timeout value to long long int.
  18061. * ChunkedEncoding.cc: fixed memory leak.
  18062. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18063. * SleepCommand.cc: casted timeout value to long long int.
  18064. * Data.cc: fixed memory leak.
  18065. * Data.cc: fixed toLLInt().
  18066. * BitfieldMan.cc: fixed memory leak.
  18067. * TorrentMan.cc: initialized storeDir to ".".
  18068. * TorrentMan.cc: fixed memory leak.
  18069. * TorrentMan.cc: corrected file paths of splitted files.
  18070. * PeerAbstractCommand.cc: casted timeout to long long int.
  18071. * main.cc: added delete(req) and delete(te->diskWriter).
  18072. * RequestSlot.cc: casted timeout value to long long int.
  18073. * Request.cc: fixed memory leak.
  18074. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18075. have the piece.
  18076. * Peer.{h,cc}: added hasPiece(int index).
  18077. * main.cc: corrected addCommand.
  18078. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18079. * BitTorrent protocol support added.
  18080. * Release 0.3.0
  18081. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18082. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18083. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18084. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18085. decoding did not work properly.
  18086. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18087. * DownloadEngine.h: included sys/time.h
  18088. * DownloadEngine.cc: remove sys/time.h
  18089. * Makefile.am (SUBDIRS): Add intl.
  18090. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18091. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18092. * main.cc: correct help message for --http-auth-scheme.
  18093. * main.cc: changed e-mail address for bug reports.
  18094. * ja.po: added japanese translation.
  18095. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18096. * SimpleLogger.cc: flush log file instead of stdout.
  18097. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18098. * main.cc: Fixed command-line option: max-tries
  18099. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18100. does not equal to seg.sp.
  18101. * DownloadCommand.cc: If EOF is got from the server and the total size
  18102. of file is not zero, then throw DlRetryEx.
  18103. * main.cc: Set the minium value of min-segment-size to 1024.
  18104. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18105. fails because of a regression since 0.2.0 release.
  18106. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18107. * HttpConnection.cc:
  18108. * common.h: defined the user agent name as macro
  18109. * DownloadEngine.{h, cc}:
  18110. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18111. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18112. * main.cc: Download complete/abort message is now generated by main.
  18113. * Makefile.am (SUBDIRS): Add m4.
  18114. (ACLOCAL_AMFLAGS): New variable.
  18115. (EXTRA_DIST): New variable.
  18116. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18117. * gettext: added gettext functionality
  18118. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18119. * AbstractCommand.cc:
  18120. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18121. unregister its cuid from SegmentMan.
  18122. * DownloadEngine.cc: .aria2 file was written when a downloading
  18123. failed with errors.
  18124. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18125. Added "User-Agent" header to CONNECT proxy request.
  18126. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18127. properly.
  18128. * Logger.h:
  18129. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18130. * ChunkedEncoding.cc: Added #include directive for strings.h
  18131. * Release 0.2.1
  18132. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18133. * Util.{h,cc}: added startsWith().
  18134. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18135. Util::endsWith().
  18136. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18137. * common.h: added #include directive of limit.h.
  18138. * DownloadEngine.cc: added #include directive of sys/time.h and
  18139. algorithm.
  18140. * Exception.h: added #include directive of stdio.h.
  18141. * AbstractCommand.h: added #include directive of sys/time.h.
  18142. * DownloadCommand.h: added #include directive of sys/time.h.
  18143. * *.h: added #include directive of common.h to all base classes.
  18144. subclasses' one was removed.
  18145. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18146. does not define these macros.
  18147. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18148. * Release 0.2.0
  18149. * main.cc:
  18150. * HttpInitiateConnectionCommand.{h,cc}:
  18151. * prefs.h:
  18152. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18153. We can now use GET command in http proxy.
  18154. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18155. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18156. that splits slowest segment of SegmentMan::commands vector.
  18157. This is the default split algorithm of aria2.
  18158. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18159. that splits first segment of SegmentMan::commands vector.
  18160. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18161. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18162. * Segment.h:
  18163. * SegmentMan.cc: Added speed field to Segment.h
  18164. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18165. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18166. * message.h: Change file size related %d to %lld.
  18167. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18168. * FtpInitiateConnectionCommand.{h,cc}:
  18169. * FtpNegotiationCommand.{h,cc}:
  18170. * FtpDownloadCommand.{h,cc}:
  18171. * FtpConnection.{h,cc}: Added FTP support
  18172. * SimpleLogger.cc: Log message now includes time information.
  18173. * main.cc: The value of --http-auth-scheme option is chagned from
  18174. 'BASIC' to 'basic'
  18175. * main.cc: Added --timeout command-line option.
  18176. * main.cc: Added --min-segment-size command-line option.
  18177. * main.cc: Added --max-retries command-line option.
  18178. * prefs.h: option string constants are now defined in prefs.h
  18179. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18180. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18181. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18182. with version 0.1.0's one.
  18183. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18184. * configure.in: Added --enable-ssl option to configure script.
  18185. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18186. cannot permit absoluteURI as Request-URI.
  18187. * HttpConnection.cc: Added Referer support.
  18188. * main.cc: Added referer command-line option.
  18189. * main.cc: Added rety-wait command-line option.
  18190. * Exception.h: Fixed formating bug in Exception::setMsg()
  18191. * SocketCore.{h,cc}:
  18192. * Socket.{h, cc}:
  18193. * Request.cc:
  18194. * InitiateConnectionCommandFactory.cc:
  18195. * HttpRequestCommand.cc: Added HTTPS support.
  18196. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18197. for SocketCore.
  18198. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18199. size is wrong
  18200. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18201. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18202. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18203. * Release 0.1.0