ChangeLog 663 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334
  1. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented getOption and getGlobalOption XML-RPC method in man
  3. page
  4. * doc/aria2c.1.txt
  5. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added getOption and getGlobalOption XML-RPC method. getOption
  7. takes GID as a parameter and returns its options as struct.
  8. getGlobalOption takes no parameter and returns global
  9. options. Because global option is used as a template for the
  10. option of newly added downloads, it includes options returned by
  11. getOption.
  12. * src/Option.h
  13. * src/XmlRpcMethodFactory.cc
  14. * src/XmlRpcMethodImpl.cc
  15. * src/XmlRpcMethodImpl.h
  16. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Sort _optionHandlers in OptionParser by name in ascending order.
  18. Use vector instead of deque for efficiency.
  19. * src/OptionHandler.h
  20. * src/OptionHandlerFactory.h
  21. * src/OptionParser.cc
  22. * src/OptionParser.h
  23. * src/version_usage.cc
  24. * test/OptionParserTest.cc
  25. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Code cleanup
  27. * src/XmlRpcMethod.cc
  28. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Documented about followedBy and belongsTo in man page.
  30. * doc/aria2c.1.txt
  31. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Added following 2 keys, followedBy and belongsTo, to the response
  33. of tellStatus.
  34. followedBy: List of GIDs which are generated by the consequence of
  35. this download. For example, when aria2 downloaded Metalink file,
  36. it generates downloads described in it(see *--follow-metalink*
  37. option). This value is useful to track these auto generated
  38. downloads. If there is no such downloads, this key will not be
  39. included in the response.
  40. belongsTo: GID of a parent download. Some downloads are a part of
  41. another download. For example, if a file in Metalink has
  42. BitTorrent resource, the download of .torrent is a part of that
  43. file. If this download has no parent, this key will not be
  44. included in the response.
  45. * src/BtPostDownloadHandler.cc
  46. * src/DownloadResult.h
  47. * src/Metalink2RequestGroup.cc
  48. * src/MetalinkPostDownloadHandler.cc
  49. * src/RequestGroup.cc
  50. * src/RequestGroup.h
  51. * src/UTMetadataPostDownloadHandler.cc
  52. * src/XmlRpcMethodImpl.cc
  53. * src/XmlRpcMethodImpl.h
  54. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Assigned BObject in BDE() to avoid segmentation fault when calling
  56. methods of BDE::none().
  57. * src/BDE.cc
  58. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Show info hash in Magnet URI in upper case letters in -S output.
  60. * src/bittorrent_helper.cc
  61. * test/BittorrentHelperTest.cc
  62. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Removed old useless comment
  64. * src/MultiUrlRequestInfo.cc
  65. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  67. not properly used in configure script and failed to detect gnutls.
  68. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  69. and the initialization of pkg-config is done in first occurrence
  70. of PKG_CHECK_MODULES which is not executed because it is inside of
  71. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  72. * configure.ac
  73. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Release 1.7.2
  75. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Fixed the bug that RequestGroupMan::downloadFinished() returns
  77. true even if all downloads haven't finished, especially when
  78. PostDownloadHandler is involved. Changed the condition so that it
  79. only returns true if both _requestGroups and _reservedGroups are
  80. empty.
  81. * src/RequestGroupMan.cc
  82. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Log listening port for BitTorrent/DHT in notice level.
  84. * src/DHTConnectionImpl.cc
  85. * src/PeerListenCommand.cc
  86. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Updated po templates.
  88. * po/aria2.pot
  89. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Bump up version number to 1.7.2
  91. * configure.ac
  92. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Changed default value of --enable-dht from 'false' to 'true'.
  94. * doc/aria2c.1.txt
  95. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Enabled DHT by default because of Magnet URI support. To disable
  97. DHT, use --enable-dht=false
  98. * src/OptionHandlerFactory.cc
  99. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Print Magnet URI in -S output.
  101. * src/AnnounceList.cc
  102. * src/bittorrent_helper.cc
  103. * src/bittorrent_helper.h
  104. * test/BittorrentHelperTest.cc
  105. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added --bt-prioritize-piece option to aria2rpc.
  107. * doc/xmlrpc/aria2rpc
  108. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Refer Magnet URI in --help. Made some cosmetic changes.
  110. * src/version_usage.cc
  111. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Updated -T and -M option.
  113. * doc/aria2c.1.txt
  114. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Fixed typo
  116. * doc/aria2c.1.txt
  117. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Fixed the bug that line separator is missing in horizontal bar.
  119. * doc/xmlrpc/aria2mon
  120. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Updated usage text for --metalink-file option.
  122. * src/usage_text.h
  123. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. If '-' is given as an argument to --metalink-file option, aria2
  125. reads Metalink file from stdin.
  126. * src/OptionHandlerFactory.cc
  127. * src/OptionHandlerImpl.h
  128. * src/a2io.h
  129. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Fixed the bug that aria2 listens wrong port if --interface option
  131. is used.
  132. * src/SocketCore.cc
  133. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Fixed the bug that query parameter in magnet URI is not decoded.
  135. * src/magnet.cc
  136. * test/MagnetTest.cc
  137. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Specified defaultSize as an argument for easy testing.
  139. * src/util.cc
  140. * src/util.h
  141. * test/UtilTest.cc
  142. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Release 1.7.1
  144. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Bump up version number to 1.7.1
  146. * configure.ac
  147. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Fixed the bug --bt-prioritize-piece=tail is not working.
  149. * src/util.cc
  150. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Release 1.7.0
  152. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Updated po templates.
  154. * po/aria2.pot
  155. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Updated help message for --bt-prioritize-piece. Some cosmetic
  157. changes.
  158. * doc/aria2c.1.txt
  159. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  161. * src/usage_text.h
  162. * src/util.cc
  163. * test/UtilTest.cc
  164. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Updated Russian, Ukrainian, German and French translations.
  166. Thanks to all translators involved.
  167. * po/de.po
  168. * po/fr.po
  169. * po/ru.po
  170. * po/uk.po
  171. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Mentioned about pkg-config
  173. * README
  174. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Fixed typo. Referred --index-out option in BitTorrent notes.
  176. * README
  177. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Store all addresses found by getifaddrs() and getaddrinfo(). In
  179. bind, try all addresses until success
  180. * src/SocketCore.cc
  181. * src/SocketCore.h
  182. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Updated po templates.
  184. * po/aria2.pot
  185. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Bump up version number to 1.7.0
  187. * configure.ac
  188. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Fixed compile error if ENABLE_BITTORRENT is undefined.
  190. * src/DefaultPieceStorage.cc
  191. * src/DefaultPieceStorage.h
  192. * src/PieceStorage.h
  193. * src/UnknownLengthPieceStorage.cc
  194. * src/UnknownLengthPieceStorage.h
  195. * test/MockPieceStorage.h
  196. * test/ProtocolDetectorTest.cc
  197. * test/XmlRpcMethodTest.cc
  198. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Documented in man page that if getifaddrs() is missing,
  200. --interface option doesn't accept interface name.
  201. * doc/aria2c.1.txt
  202. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  204. * src/DefaultBtAnnounce.cc
  205. * src/DefaultBtAnnounce.h
  206. * test/DefaultBtAnnounceTest.cc
  207. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Fixed the bug that connection is always dropped if handshake
  209. message in extension protocol don't have metadata_size.
  210. src/HandshakeExtensionMessage.cc
  211. * src/HandshakeExtensionMessage.cc
  212. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  214. text saying DHT is recommended when Magnet URI is provided.
  215. * doc/aria2c.1.txt
  216. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  218. URI is supplied. Notify user that they should consider enabling
  219. DHT if they use Magnet URI.
  220. * src/RequestGroup.cc
  221. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Added --disable-ipv6 option to disable IPv6.
  223. * doc/aria2c.1.txt
  224. * src/InitiateConnectionCommand.cc
  225. * src/NameResolver.cc
  226. * src/NameResolver.h
  227. * src/OptionHandlerFactory.cc
  228. * src/main.cc
  229. * src/prefs.cc
  230. * src/prefs.h
  231. * src/usage_text.h
  232. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Updated usage text for --bt-prioritize-piece option.
  234. * doc/aria2c.1.txt
  235. * src/usage_text.h
  236. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. In configure script, if --with-PACKAGE and --enable-FEATURE are
  238. given and PACKAGE is missing in the system or FEATURE cannot be
  239. enabled, print error message and stop the script.
  240. * configure.ac
  241. * m4/aria2_arg.m4
  242. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Halt metadata download immediately when metadata download is done.
  244. Don't wait unresponsive tracker.
  245. * src/ByteArrayDiskWriter.h
  246. * src/DefaultBtInteractive.cc
  247. * src/DefaultExtensionMessageFactory.cc
  248. * src/DefaultExtensionMessageFactory.h
  249. * src/PeerInteractionCommand.cc
  250. * src/UTMetadataDataExtensionMessage.cc
  251. * src/UTMetadataDataExtensionMessage.h
  252. * src/UTMetadataRequestExtensionMessage.cc
  253. * test/UTMetadataDataExtensionMessageTest.cc
  254. * test/UTMetadataRequestExtensionMessageTest.cc
  255. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Documented --interface option in man page.
  257. * doc/aria2c.1.txt
  258. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Try resolved address in the order received from the resolver.
  260. * src/DNSCache.h
  261. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Added debug logs.
  263. * src/SocketCore.cc
  264. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Fixed type of tail to uint64_t
  266. * src/util.cc
  267. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Added --interface option. This feature binds sockets to given
  269. interface. You can specify interface name, IP address and
  270. hostname.
  271. * configure.ac
  272. * src/OptionHandlerFactory.cc
  273. * src/SocketCore.cc
  274. * src/SocketCore.h
  275. * src/main.cc
  276. * src/message.h
  277. * src/prefs.cc
  278. * src/prefs.h
  279. * src/usage_text.h
  280. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Updated man page for bt-prioritize-piece option in -i list.
  282. * doc/aria2c.1.txt
  283. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Added bt-prioritize-piece option to -i list.
  285. * src/download_helper.cc
  286. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Removed --http-auth-scheme option from man page.
  288. * doc/aria2c.1.txt
  289. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Removed --http-auth-scheme option since it doesn't do nothing.
  291. * src/OptionHandlerFactory.cc
  292. * src/prefs.cc
  293. * src/prefs.h
  294. * src/usage_text.h
  295. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Adjusted the number of peer info which get_peers reply message can
  297. carry.
  298. * src/DHTGetPeersReplyMessage.cc
  299. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added extension_message_test_helper.h to aria2c_SOURCES.
  301. * test/Makefile.am
  302. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Documented --bt-prioritize-piece option in man page.
  304. * doc/aria2c.1.txt
  305. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Added option --bt-prioritize-piece. This option instruct aria2 to
  307. try to download first and last pieces of each file first. The
  308. argument can contain 2 keywords:head and tail. To include both
  309. keywords, they must be separated by comma. These keywords can take
  310. one parameter, SIZE. For example , if head=SIZE is specified,
  311. pieces in the range of first SIZE bytes of each file get higher
  312. priority. tail=SIZE means the range of last SIZE bytes of each
  313. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  314. * src/DefaultPieceStorage.h
  315. * src/Makefile.am
  316. * src/OptionHandlerFactory.cc
  317. * src/OptionHandlerImpl.h
  318. * src/PriorityPieceSelector.cc
  319. * src/PriorityPieceSelector.h
  320. * src/RequestGroup.cc
  321. * src/prefs.cc
  322. * src/prefs.h
  323. * src/usage_text.h
  324. * src/util.cc
  325. * src/util.h
  326. * test/Makefile.am
  327. * test/MockPieceSelector.h
  328. * test/PriorityPieceSelectorTest.cc
  329. * test/UtilTest.cc
  330. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Fixed typo
  332. * src/HttpRequest.h
  333. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. In Magnet URI with tr parameter, put each announce URI in separate
  335. tier.
  336. * src/bittorrent_helper.cc
  337. * test/BittorrentHelperTest.cc
  338. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Renamed ExtensionMessage::getBencodedData() as
  340. ExtensionMessage::getPayload()
  341. * src/BtExtendedMessage.cc
  342. * src/ExtensionMessage.h
  343. * src/HandshakeExtensionMessage.cc
  344. * src/HandshakeExtensionMessage.h
  345. * src/UTMetadataDataExtensionMessage.cc
  346. * src/UTMetadataDataExtensionMessage.h
  347. * src/UTMetadataRejectExtensionMessage.cc
  348. * src/UTMetadataRejectExtensionMessage.h
  349. * src/UTMetadataRequestExtensionMessage.cc
  350. * src/UTMetadataRequestExtensionMessage.h
  351. * src/UTPexExtensionMessage.cc
  352. * src/UTPexExtensionMessage.h
  353. * test/HandshakeExtensionMessageTest.cc
  354. * test/MockExtensionMessage.h
  355. * test/UTMetadataDataExtensionMessageTest.cc
  356. * test/UTMetadataRejectExtensionMessageTest.cc
  357. * test/UTMetadataRequestExtensionMessageTest.cc
  358. * test/UTPexExtensionMessageTest.cc
  359. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Updated man page for BitTorrent Magnet URI.
  361. * doc/aria2c.1.txt
  362. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Call DownloadContext::setOwnerRequestGroup() in
  364. RequestGroup::setDownloadContext().
  365. * src/BtDependency.cc
  366. * src/RequestGroup.cc
  367. * src/RequestGroup.h
  368. * src/download_helper.cc
  369. * test/DefaultBtMessageDispatcherTest.cc
  370. * test/DefaultExtensionMessageFactoryTest.cc
  371. * test/HandshakeExtensionMessageTest.cc
  372. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  374. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  375. from metadata, use new metadata2Torrent() function.
  376. * src/BtDependency.cc
  377. * src/UTMetadataPostDownloadHandler.cc
  378. * src/bittorrent_helper.cc
  379. * src/bittorrent_helper.h
  380. * test/BittorrentHelperTest.cc
  381. * test/BtDependencyTest.cc
  382. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Use createRequestGroupForUri to create the download for torrent
  384. file.
  385. * src/Metalink2RequestGroup.cc
  386. * test/Metalink2RequestGroupTest.cc
  387. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Fixed typo
  389. * src/DownloadContext.h
  390. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Use createRequestGroupForBitTorrent()
  392. * src/BtPostDownloadHandler.cc
  393. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Added remove().
  395. * src/Option.cc
  396. * src/Option.h
  397. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Removed options which is only valid for URIs specified in
  399. command-line. If they are left, because op is used as a template
  400. for new RequestGroup(such as created in XML-RPC command,
  401. BtPostDownloadHandler etc), they causes unintentional effect.
  402. * src/main.cc
  403. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Refer to option value of PREF_OUT only in download_helper.
  405. * src/FtpNegotiationCommand.cc
  406. * src/HttpResponseCommand.cc
  407. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  409. * src/download_helper.cc
  410. * src/download_helper.h
  411. * src/XmlRpcMethodImpl.cc
  412. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Updated man page for changeOption XML-RPC method.
  414. * doc/aria2c.1.txt
  415. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Added --bt-max-peers option to changeOption XML-RPC method.
  417. * src/XmlRpcMethod.cc
  418. * src/XmlRpcMethodImpl.cc
  419. * test/XmlRpcMethodTest.cc
  420. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  422. * test/XmlRpcMethodTest.cc
  423. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Removed redundant DownloadContext::hasAttribute(...) calls.
  425. * src/ConsoleStatCalc.cc
  426. * src/RequestGroup.cc
  427. * src/XmlRpcMethodImpl.cc
  428. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Changed the number of tracker request attempt from 5 to 2.
  430. * src/TrackerWatcherCommand.cc
  431. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Use host and protocol in original URI, because URI selector
  433. selects URI based on original URI, not redirected one.
  434. * src/Request.cc
  435. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Fixed the bug which causes segmentation fault with tellWaiting
  437. XML-RPC method when BitTorrent download is waiting. The key of
  438. BtRegistry is changed from info hash to GID, because it is
  439. registered per RequestGroup, not info hash.
  440. * src/BtRegistry.cc
  441. * src/BtRegistry.h
  442. * src/BtSetup.cc
  443. * src/ConsoleStatCalc.cc
  444. * src/InitiatorMSEHandshakeCommand.cc
  445. * src/PeerInitiateConnectionCommand.cc
  446. * src/PeerInteractionCommand.cc
  447. * src/PeerInteractionCommand.h
  448. * src/PeerReceiveHandshakeCommand.cc
  449. * src/RequestGroup.cc
  450. * src/XmlRpcMethodImpl.cc
  451. * test/BtRegistryTest.cc
  452. * test/XmlRpcMethodTest.cc
  453. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Updated man page for changeOption XML-RPC method.
  455. * doc/aria2c.1.txt
  456. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  458. method.
  459. * src/XmlRpcMethod.cc
  460. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Documented about BitTorrent Magnet URI in man page.
  462. * doc/aria2c.1.txt
  463. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Fixed the bug that trackers in BitTorrent Magnet URI are not
  465. inherited to generated RequestGroup.
  466. * src/UTMetadataPostDownloadHandler.cc
  467. * test/UTMetadataPostDownloadHandlerTest.cc
  468. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Prepended "[METADATA]" before dn.
  470. * src/bittorrent_helper.cc
  471. * test/BittorrentHelperTest.cc
  472. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Rewritten Magnet URI parser.
  474. * src/Makefile.am
  475. * src/ProtocolDetector.cc
  476. * src/bittorrent_helper.cc
  477. * src/bittorrent_helper.h
  478. * src/download_helper.cc
  479. * src/magnet.cc
  480. * src/magnet.h
  481. * test/BittorrentHelperTest.cc
  482. * test/MagnetTest.cc
  483. * test/Makefile.am
  484. * test/ProtocolDetectorTest.cc
  485. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Use hton64
  487. * src/base32.cc
  488. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Added Base32 encoded BitTorrent Magnet Link support.
  490. * src/Makefile.am
  491. * src/base32.cc
  492. * src/base32.h
  493. * src/bittorrent_helper.cc
  494. * test/Base32Test.cc
  495. * test/BittorrentHelperTest.cc
  496. * test/Makefile.am
  497. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Added BitTorrent Magnet Link support. Base32 encoded link is not
  499. supported yet. Fixed typo in method name in RequestGroup. In
  500. metadataGetMode, don't show "Your share ratio was ..." message.
  501. * src/DefaultBtInteractive.cc
  502. * src/DefaultBtInteractive.h
  503. * src/DownloadHandlerFactory.cc
  504. * src/DownloadHandlerFactory.h
  505. * src/HandshakeExtensionMessage.cc
  506. * src/Makefile.am
  507. * src/Metalink2RequestGroup.cc
  508. * src/PeerInteractionCommand.cc
  509. * src/RequestGroup.cc
  510. * src/RequestGroup.h
  511. * src/UTMetadataPostDownloadHandler.cc
  512. * src/UTMetadataPostDownloadHandler.h
  513. * src/download_helper.cc
  514. * test/HandshakeExtensionMessageTest.cc
  515. * test/Makefile.am
  516. * test/UTMetadataPostDownloadHandlerTest.cc
  517. * test/UTMetadataRejectExtensionMessageTest.cc
  518. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. In metadataGetMode, don't show SEEDING.
  520. * src/ConsoleStatCalc.cc
  521. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Fixed ut_metadata data handling. Implemented
  523. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  524. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  525. metadata_size is received.
  526. * src/DefaultExtensionMessageFactory.cc
  527. * src/DefaultExtensionMessageFactory.h
  528. * src/HandshakeExtensionMessage.cc
  529. * src/HandshakeExtensionMessage.h
  530. * src/UTMetadataDataExtensionMessage.cc
  531. * src/UTMetadataDataExtensionMessage.h
  532. * src/UTMetadataRequestExtensionMessage.cc
  533. * src/UTMetadataRequestFactory.cc
  534. * src/UTMetadataRequestFactory.h
  535. * src/UTMetadataRequestTracker.cc
  536. * src/UTMetadataRequestTracker.h
  537. * test/DefaultExtensionMessageFactoryTest.cc
  538. * test/HandshakeExtensionMessageTest.cc
  539. * test/MockBtMessage.h
  540. * test/UTMetadataDataExtensionMessageTest.cc
  541. * test/UTMetadataRequestExtensionMessageTest.cc
  542. * test/UTMetadataRequestFactoryTest.cc
  543. * test/UTMetadataRequestTrackerTest.cc
  544. * test/extension_message_test_helper.h
  545. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Drop connection if ut_metadata reject message is received.
  547. * src/UTMetadataRejectExtensionMessage.cc
  548. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  550. get high enough in that mode.
  551. * src/ActivePeerConnectionCommand.cc
  552. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added BitTorrent magnet link support to ProtocolDetector.
  554. * src/ProtocolDetector.cc
  555. * src/ProtocolDetector.h
  556. * test/ProtocolDetectorTest.cc
  557. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Don't inject validator into BtMessage in metadataGetMode because
  559. most of the checks depends on the total length of download but it
  560. is unknown. Delegate metadataGetMode to BtMessage.
  561. * src/DefaultBtMessageFactory.cc
  562. * src/DefaultBtMessageFactory.h
  563. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  565. * src/DefaultPieceStorage.h
  566. * src/PieceStorage.h
  567. * src/UnknownLengthPieceStorage.h
  568. * test/MockPieceStorage.h
  569. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added markTotalLengthIsKnown().
  571. * src/DownloadContext.h
  572. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  574. missing. If metadata is missing, always use DHT when it is ready.
  575. * src/BtSetup.cc
  576. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Added parseMagnetLink(). Hex encoded info hash is supported.
  578. Base32 encoded info hash is not supported yet.
  579. * src/bittorrent_helper.cc
  580. * src/bittorrent_helper.h
  581. * test/BittorrentHelperTest.cc
  582. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Added FromHex()
  584. * src/util.cc
  585. * src/util.h
  586. * test/UtilTest.cc
  587. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added _metadataGetMode member variable. It toggles the action when
  589. messages are received: usually they almost do nothing if
  590. _metadataGetMode is true.
  591. * src/AbstractBtMessage.cc
  592. * src/AbstractBtMessage.h
  593. * src/BtAllowedFastMessage.cc
  594. * src/BtBitfieldMessage.cc
  595. * src/BtCancelMessage.cc
  596. * src/BtChokeMessage.cc
  597. * src/BtHaveAllMessage.cc
  598. * src/BtHaveMessage.cc
  599. * src/BtInterestedMessage.cc
  600. * src/BtNotInterestedMessage.cc
  601. * src/BtPieceMessage.cc
  602. * src/BtRejectMessage.cc
  603. * src/BtRequestMessage.cc
  604. * src/BtUnchokeMessage.cc
  605. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Added bencode::decode overload functions. They have extra argument
  607. 'end', passed by reference. 'end' points to the beyond the last
  608. position of data used in decoding process.
  609. * src/bencode.cc
  610. * src/bencode.h
  611. * test/BencodeTest.cc
  612. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Initial support of Extension for Peers to Send Metadata
  614. Files(BEP9). Currently aria2 only serves metadata and cannot get
  615. metadata from swarm.
  616. * src/BtConstants.h
  617. * src/DefaultBtInteractive.cc
  618. * src/DefaultExtensionMessageFactory.cc
  619. * src/DefaultExtensionMessageFactory.h
  620. * src/ExtensionMessage.h
  621. * src/ExtensionMessageRegistry.h
  622. * src/HandshakeExtensionMessage.cc
  623. * src/HandshakeExtensionMessage.h
  624. * src/Makefile.am
  625. * src/PeerConnection.h
  626. * src/PeerInteractionCommand.cc
  627. * src/UTMetadataDataExtensionMessage.cc
  628. * src/UTMetadataDataExtensionMessage.h
  629. * src/UTMetadataExtensionMessage.cc
  630. * src/UTMetadataExtensionMessage.h
  631. * src/UTMetadataRejectExtensionMessage.cc
  632. * src/UTMetadataRejectExtensionMessage.h
  633. * src/UTMetadataRequestExtensionMessage.cc
  634. * src/UTMetadataRequestExtensionMessage.h
  635. * src/bittorrent_helper.cc
  636. * src/bittorrent_helper.h
  637. * test/BittorrentHelperTest.cc
  638. * test/DefaultExtensionMessageFactoryTest.cc
  639. * test/HandshakeExtensionMessageTest.cc
  640. * test/Makefile.am
  641. * test/UTMetadataDataExtensionMessageTest.cc
  642. * test/UTMetadataRejectExtensionMessageTest.cc
  643. * test/UTMetadataRequestExtensionMessageTest.cc
  644. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Cancel segment in prepareForRetry() because there is a chance that
  646. the command has segments.
  647. * src/CreateRequestCommand.cc
  648. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Fixed the bug that slow server is not knocked down in favor of
  650. faster one.
  651. * src/AbstractCommand.cc
  652. * src/DefaultPieceStorage.cc
  653. * src/DefaultPieceStorage.h
  654. * src/PieceStorage.h
  655. * src/UnknownLengthPieceStorage.cc
  656. * src/UnknownLengthPieceStorage.h
  657. * test/MockPieceStorage.h
  658. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Fixed the bug that Request object is not added to
  660. _inFlightRequests in findFasterRequest().
  661. * src/FileEntry.cc
  662. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Changed the strategry of how to increase the number of outstanding
  664. requests. Now the number is doubled if there are no outstanding
  665. requests after receiving messages.
  666. * src/BtConstants.h
  667. * src/DefaultBtInteractive.cc
  668. * src/DefaultBtInteractive.h
  669. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Check socket for reading if there are outstanding requests.
  671. * src/PeerInteractionCommand.cc
  672. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Moved frequently called methods to header file so they get
  674. inlined.
  675. * src/RequestSlot.cc
  676. * src/RequestSlot.h
  677. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Copied in_addr instead of just casting from char* which might
  679. violate strict aliasing rules.
  680. * src/AsyncNameResolver.cc
  681. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Use dynamic_pointer_cast
  683. * test/BtPieceMessageTest.cc
  684. * test/BtRequestMessageTest.cc
  685. * test/DefaultBtRequestFactoryTest.cc
  686. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Added testSetUrl20()
  688. * test/RequestTest.cc
  689. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Code cleanup
  691. * src/bittorrent_helper.cc
  692. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Use C++ style cast
  694. * src/AsyncNameResolver.cc
  695. * src/Base64.h
  696. * src/BtBitfieldMessage.cc
  697. * src/BtHandshakeMessage.cc
  698. * src/DefaultBtMessageFactory.cc
  699. * src/DefaultBtProgressInfoFile.cc
  700. * src/EpollEventPoll.cc
  701. * src/ExpatMetalinkProcessor.cc
  702. * src/IteratableChecksumValidator.cc
  703. * src/IteratableChunkChecksumValidator.cc
  704. * src/MessageDigestHelper.cc
  705. * src/Platform.cc
  706. * src/RequestGroupMan.cc
  707. * src/SingleFileAllocationIterator.cc
  708. * src/Sqlite3MozCookieParser.cc
  709. * src/XML2SAXMetalinkProcessor.cc
  710. * src/Xml2XmlRpcRequestProcessor.cc
  711. * src/util.cc
  712. * src/util.h
  713. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Fixed integer potential alignment problem.
  715. * src/bitfield.h
  716. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Applied a patch from tizianomueller to fix sigbus errors on Linux
  718. sparc. I modified the patch to eliminate a cast to uint32_t* and
  719. include file ordering.
  720. * src/PeerListProcessor.h
  721. * src/bittorrent_helper.cc
  722. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  724. * src/Request.cc
  725. * src/util.cc
  726. * src/util.h
  727. * test/RequestTest.cc
  728. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Rewritten util::uitos()
  730. * src/util.h
  731. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Code cleanup
  733. * src/Request.cc
  734. * src/Request.h
  735. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Rewritten Request::parseUrl()
  737. * src/Request.cc
  738. * test/RequestTest.cc
  739. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Removed unused macro SAFE_CHARS
  741. * src/Request.cc
  742. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Updated doc
  744. * src/DHTRoutingTableDeserializer.cc
  745. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Release 1.6.3
  747. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Removed unused function.
  749. * test/DHTPeerAnnounceStorageTest.cc
  750. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Only decrement cols if cols > 0
  752. * src/ConsoleStatCalc.cc
  753. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Updated Polish, Catalan, French, Italian, Russian and Japanese
  755. translations. Thanks to all translators.
  756. * po/ca.po
  757. * po/fr.po
  758. * po/it.po
  759. * po/ja.po
  760. * po/pl.po
  761. * po/ru.po
  762. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Updated translation template
  764. * po
  765. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Fixed compile error without ssl library.
  767. * src/util.cc
  768. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Logged received nodes in get_peers reply message.
  770. * src/DHTAbstractNodeLookupTask.cc
  771. * src/DHTAbstractNodeLookupTask.h
  772. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  774. error occurred in DHTMessageDispatcherImpl::sendMessage().
  775. * src/DHTMessageDispatcherImpl.cc
  776. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Don't reuse URI if Request pool is not empty.
  778. * src/CreateRequestCommand.cc
  779. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  781. receive get_peers request for torrent which the client is now
  782. downloading.
  783. * src/BtSetup.cc
  784. * src/DHTPeerAnnounceEntry.cc
  785. * src/DHTPeerAnnounceEntry.h
  786. * src/DHTPeerAnnounceStorage.cc
  787. * src/DHTPeerAnnounceStorage.h
  788. * src/RequestGroup.cc
  789. * test/DHTPeerAnnounceEntryTest.cc
  790. * test/DHTPeerAnnounceStorageTest.cc
  791. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Fixed the bug that in Windows environment new blank line is
  793. inserted when console readout is updated.
  794. * src/ConsoleStatCalc.cc
  795. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Throw exception if binding listening port is failed. Removed
  797. RequestGroupMan::getInitialCommand(). Use
  798. fillRequestGroupFromReserver() instead. Delete commands for
  799. RequestGroup which has errors when it is being added.
  800. * src/BtSetup.cc
  801. * src/DownloadEngine.cc
  802. * src/DownloadEngine.h
  803. * src/DownloadEngineFactory.cc
  804. * src/MultiUrlRequestInfo.cc
  805. * src/RequestGroupMan.cc
  806. * src/RequestGroupMan.h
  807. * test/RequestGroupManTest.cc
  808. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Fixed the bug that when downloading more than one torrent,
  810. listening port is not reported properly to tracker for 2nd or
  811. later torrents.
  812. * src/BtSetup.cc
  813. * src/PeerListenCommand.cc
  814. * src/PeerListenCommand.h
  815. * src/RequestGroup.cc
  816. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Bump up version number to 1.6.3
  818. * configure.ac
  819. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Removed Util.cc from POTFILES.in
  821. * po/POTFILES.in
  822. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Updated man page for previous change.
  824. * doc/aria2c.1.txt
  825. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. If user name is embedded but password is missing in URI, first
  827. resolve password using .netrc. If password is found in .netrc,
  828. then use it as password. If not, use the password specified in
  829. --ftp-passwd.
  830. * src/AuthConfigFactory.cc
  831. * src/Request.cc
  832. * src/Request.h
  833. * test/AuthConfigFactoryTest.cc
  834. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Fixed typo
  836. * doc/aria2c.1.txt
  837. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed typo
  839. * src/usage_text.h
  840. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Added missing bitfield.cc
  842. * src/bitfield.cc
  843. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Renamed Util.{cc,h} as util.{cc,h}
  845. * src/Util.cc
  846. * src/Util.h
  847. * src/util.cc
  848. * src/util.h
  849. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Moved static functions in Util class to namespace util.
  851. * src
  852. * test
  853. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  855. Moved generateRandomKey to bittorrent_helper.cc.
  856. * src/DHTBucket.cc
  857. * src/DHTGetPeersMessage.cc
  858. * src/DHTGetPeersReplyMessage.cc
  859. * src/DHTMessage.cc
  860. * src/DHTNode.cc
  861. * src/DHTTokenTracker.cc
  862. * src/DHTUtil.cc: Removed.
  863. * src/DHTUtil.h: Removed.
  864. * src/Makefile.am
  865. * src/Util.cc
  866. * src/Util.h
  867. * src/bitfield.h
  868. * src/bittorrent_helper.cc
  869. * src/bittorrent_helper.h
  870. * test/ARC4Test.cc
  871. * test/BNodeTest.cc
  872. * test/DHTAnnouncePeerMessageTest.cc
  873. * test/DHTAnnouncePeerReplyMessageTest.cc
  874. * test/DHTFindNodeMessageTest.cc
  875. * test/DHTFindNodeReplyMessageTest.cc
  876. * test/DHTGetPeersMessageTest.cc
  877. * test/DHTGetPeersReplyMessageTest.cc
  878. * test/DHTPingMessageTest.cc
  879. * test/DHTPingReplyMessageTest.cc
  880. * test/DHTTokenTrackerTest.cc
  881. * test/DHTUtilTest.cc: Removed.
  882. * test/Makefile.am
  883. * test/UtilTest.cc
  884. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Removed the call to trim() because trim() is called for each
  886. element in split().
  887. * src/CookieParser.cc
  888. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Replaced Util::slice() with split()
  890. * src/AbstractCommand.cc
  891. * src/CookieParser.cc
  892. * src/File.cc
  893. * src/HttpHeaderProcessor.cc
  894. * src/HttpRequest.cc
  895. * src/Metalink2RequestGroup.cc
  896. * src/MetalinkParserController.cc
  897. * src/Netrc.cc
  898. * src/NsCookieParser.cc
  899. * src/ParameterizedStringParser.cc
  900. * src/ServerStatMan.cc
  901. * src/UriListParser.cc
  902. * src/Util.cc
  903. * src/Util.h
  904. * src/bittorrent_helper.cc
  905. * test/UtilTest.cc
  906. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Use request->getDir() instead of "/" for embedded user/pass in
  908. URI.
  909. * src/AuthConfigFactory.cc
  910. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Fixed wrong insertion point for BasicCred.
  912. * src/AuthConfigFactory.cc
  913. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Allowed non-regular file in LocalFilePathOptionHandler
  915. * src/OptionHandlerImpl.h
  916. * src/message.h
  917. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Fixed the bug that Netrc::parse() cannot recognize comment line.
  919. * src/Netrc.cc
  920. * src/Util.h
  921. * test/NetrcTest.cc
  922. * test/sample.netrc
  923. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Fixed typo
  925. * src/BtDependency.cc
  926. * src/BtRejectMessage.cc
  927. * src/FtpConnection.cc
  928. * src/HttpHeaderProcessor.h
  929. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Fixed lintian report in man page
  931. * doc/aria2c.1.txt
  932. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Release 1.6.2
  934. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Updated Ukrainian translation. Thanks to all translators.
  936. * po/uk.po
  937. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Updated translation template
  939. * po
  940. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Bump up version number to 1.6.2
  942. * configure.ac
  943. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Updated licence message in -v output.
  945. * src/version_usage.cc
  946. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Replaced aria2 with aria2c in help message.
  948. * src/version_usage.cc
  949. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  951. * src/version_usage.cc
  952. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Quoted localedir
  954. * src/Makefile.am
  955. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  957. utime. Check header for utime.h.
  958. * configure.ac
  959. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  961. * configure.ac
  962. * src/daemon.cc
  963. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Don't set localedir manually. Leave it to autoconf.
  965. * configure.ac
  966. * src/Makefile.am
  967. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added --install to ACLOCAL_AMFLAGS.
  969. Removed m4 from SUBDIRS.
  970. Updated automake 1.11 and autoconf 2.64.
  971. Replaced some obsolute macros with new one.
  972. * Makefile.am
  973. * configure.ac
  974. * m4/aria2_arg.m4
  975. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Removed Makefile.am in m4 directory.
  977. * configure.ac
  978. * m4/ChangeLog
  979. * m4/Makefile.am
  980. * m4/Makefile.in
  981. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Removed unused m4 macros.
  983. * m4/intldir.m4
  984. * m4/inttypes.m4
  985. * m4/isc-posix.m4
  986. * m4/libgnutls-extra.m4
  987. * m4/ulonglong.m4
  988. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Fixed the bug that causes segmentation fault if
  990. req->getCurrentUrl() contains printf formatting characters such as
  991. %d. The statement that causes this bug is useless and removed.
  992. * src/AbstractCommand.cc
  993. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. * Release 1.6.1
  995. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Updated Simplified Chinese translation. Thanks to translators.
  997. * po/zh_CN.po
  998. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Updated translation template
  1000. * po
  1001. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Bump up version number to 1.6.1
  1003. * configure.ac
  1004. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Changed interval from 120 to 60 for dropping inactive peer.
  1006. * src/DefaultBtInteractive.cc
  1007. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Updated man page for --user-agent and --peer-id-prefix option.
  1009. * doc/aria2c.1.txt
  1010. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Code clean up
  1012. * src/BtPostDownloadHandler.cc
  1013. * src/ContentTypeRequestGroupCriteria.cc
  1014. * src/ContentTypeRequestGroupCriteria.h
  1015. * src/DownloadHandlerConstants.cc
  1016. * src/DownloadHandlerConstants.h
  1017. * src/DownloadHandlerFactory.cc
  1018. * src/MetalinkPostDownloadHandler.cc
  1019. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Don't save control file when aria2 exists while checking piece
  1021. hash(behavior of -V option). If control file doesn't exist when
  1022. aria2 launched, the completed length in saved control file will be
  1023. 0 byte and this confuses user. disableSaveControlFile() is called
  1024. in RequestGroup::processCheckIntegrityEntry().
  1025. enableSaveControlFile() will be called after hash checking is
  1026. done. See CheckIntegrityCommand.
  1027. * src/CheckIntegrityCommand.cc
  1028. * src/RequestGroup.cc
  1029. * src/RequestGroup.h
  1030. * src/RequestGroupMan.cc
  1031. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Included version number in Peer ID and client version. Peer ID
  1033. now starts with "aria2/VERSION-", where VERSION is
  1034. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1035. * src/DefaultBtInteractive.cc
  1036. * src/OptionHandlerFactory.cc
  1037. * src/bittorrent_helper.cc
  1038. * src/bittorrent_helper.h
  1039. * src/main.cc
  1040. * src/usage_text.h
  1041. * test/BittorrentHelperTest.cc
  1042. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Fixed memory leak.
  1044. * src/DownloadCommand.cc
  1045. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Removed server, port, user and passwd key from options before
  1047. XMLRPC::Client.call since they are not options of aria2.
  1048. * doc/xmlrpc/aria2mon
  1049. * doc/xmlrpc/aria2rpc
  1050. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Included version number in user-agent string.
  1052. * src/OptionHandlerFactory.cc
  1053. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Fixed the bug that the option values changed by XML-RPC
  1055. method(changeOption and changeGlobalOption) are overwritten to the
  1056. previous value by the next these request which doesn't contain
  1057. that option value. Supporse max-download-limit is initially 0. You
  1058. changed this value to 100K by changeOption. Then you issue
  1059. changeOption request to change max-upload-limit to 50K. This
  1060. second request doesn't contain xml-download-limit, so it is back
  1061. to initial value, 0. Another improvement is that exception is
  1062. thrown when changeOption and changeGlobalOption request contains
  1063. option name which doesn't allowed in each request.
  1064. * src/DownloadEngine.h
  1065. * src/XmlRpcMethod.cc
  1066. * src/XmlRpcMethod.h
  1067. * src/XmlRpcMethodImpl.cc
  1068. * src/download_helper.cc
  1069. * src/download_helper.h
  1070. * test/XmlRpcMethodTest.cc
  1071. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Added missing MetalinkParserStateImpl.{cc,h}
  1073. * src/MetalinkParserStateImpl.cc
  1074. * src/MetalinkParserStateImpl.h
  1075. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Put all MetalinkParserState subclasses into
  1077. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1078. * src/FileMetalinkParserState.cc: Removed
  1079. * src/FileMetalinkParserState.h: Removed
  1080. * src/FilesMetalinkParserState.cc: Removed
  1081. * src/FilesMetalinkParserState.h: Removed
  1082. * src/FinMetalinkParserState.cc: Removed
  1083. * src/FinMetalinkParserState.h: Removed
  1084. * src/HashMetalinkParserState.cc: Removed
  1085. * src/HashMetalinkParserState.h: Removed
  1086. * src/InitialMetalinkParserState.cc: Removed
  1087. * src/InitialMetalinkParserState.h: Removed
  1088. * src/LanguageMetalinkParserState.cc: Removed
  1089. * src/LanguageMetalinkParserState.h: Removed
  1090. * src/Makefile.am
  1091. * src/MetalinkMetalinkParserState.cc: Removed
  1092. * src/MetalinkMetalinkParserState.h: Removed
  1093. * src/MetalinkParserState.h
  1094. * src/MetalinkParserStateMachine.cc
  1095. * src/MetalinkParserStateMachine.h
  1096. * src/OSMetalinkParserState.cc: Removed
  1097. * src/OSMetalinkParserState.h: Removed
  1098. * src/PieceHashMetalinkParserState.cc: Removed
  1099. * src/PieceHashMetalinkParserState.h: Removed
  1100. * src/PiecesMetalinkParserState.cc: Removed
  1101. * src/PiecesMetalinkParserState.h: Removed
  1102. * src/ResourcesMetalinkParserState.cc: Removed
  1103. * src/ResourcesMetalinkParserState.h: Removed
  1104. * src/SignatureMetalinkParserState.cc: Removed
  1105. * src/SignatureMetalinkParserState.h: Removed
  1106. * src/SizeMetalinkParserState.cc: Removed
  1107. * src/SizeMetalinkParserState.h: Removed
  1108. * src/SkipTagMetalinkParserState.cc: Removed
  1109. * src/SkipTagMetalinkParserState.h: Removed
  1110. * src/URLMetalinkParserState.cc: Removed
  1111. * src/URLMetalinkParserState.h: Removed
  1112. * src/VerificationMetalinkParserState.cc: Removed
  1113. * src/VerificationMetalinkParserState.h: Removed
  1114. * src/VersionMetalinkParserState.cc: Removed
  1115. * src/VersionMetalinkParserState.h: Removed
  1116. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Move all functions in PeerMessageUtil to bittorrent_helper.
  1118. * src/BtBitfieldMessage.cc
  1119. * src/BtBitfieldMessageValidator.h
  1120. * src/BtExtendedMessage.cc
  1121. * src/BtHandshakeMessage.cc
  1122. * src/BtHandshakeMessageValidator.h
  1123. * src/BtPieceMessage.cc
  1124. * src/BtPieceMessageValidator.h
  1125. * src/BtPortMessage.cc
  1126. * src/DHTFindNodeReplyMessage.cc
  1127. * src/DHTGetPeersReplyMessage.cc
  1128. * src/DHTMessageFactoryImpl.cc
  1129. * src/DHTRoutingTableDeserializer.cc
  1130. * src/DHTRoutingTableSerializer.cc
  1131. * src/DHTTokenTracker.cc
  1132. * src/DefaultBtMessageFactory.cc
  1133. * src/IndexBtMessage.cc
  1134. * src/IndexBtMessage.h
  1135. * src/IndexBtMessageValidator.h
  1136. * src/Makefile.am
  1137. * src/PeerMessageUtil.cc: Removed.
  1138. * src/PeerMessageUtil.h: Removed.
  1139. * src/RangeBtMessage.cc
  1140. * src/RangeBtMessage.h
  1141. * src/RangeBtMessageValidator.h
  1142. * src/UTPexExtensionMessage.cc
  1143. * src/ZeroBtMessage.cc
  1144. * src/ZeroBtMessage.h
  1145. * src/bittorrent_helper.cc
  1146. * src/bittorrent_helper.h
  1147. * test/BittorrentHelperTest.cc
  1148. * test/BtAllowedFastMessageTest.cc
  1149. * test/BtBitfieldMessageTest.cc
  1150. * test/BtCancelMessageTest.cc
  1151. * test/BtChokeMessageTest.cc
  1152. * test/BtExtendedMessageTest.cc
  1153. * test/BtHandshakeMessageTest.cc
  1154. * test/BtHaveAllMessageTest.cc
  1155. * test/BtHaveMessageTest.cc
  1156. * test/BtHaveNoneMessageTest.cc
  1157. * test/BtInterestedMessageTest.cc
  1158. * test/BtNotInterestedMessageTest.cc
  1159. * test/BtPieceMessageTest.cc
  1160. * test/BtPortMessageTest.cc
  1161. * test/BtRejectMessageTest.cc
  1162. * test/BtRequestMessageTest.cc
  1163. * test/BtSuggestPieceMessageTest.cc
  1164. * test/BtUnchokeMessageTest.cc
  1165. * test/DHTFindNodeReplyMessageTest.cc
  1166. * test/DHTGetPeersReplyMessageTest.cc
  1167. * test/DHTMessageFactoryImplTest.cc
  1168. * test/DHTRoutingTableDeserializerTest.cc
  1169. * test/DHTRoutingTableSerializerTest.cc
  1170. * test/DefaultBtMessageFactoryTest.cc
  1171. * test/DefaultExtensionMessageFactoryTest.cc
  1172. * test/Makefile.am
  1173. * test/PeerListProcessorTest.cc
  1174. * test/PeerMessageUtilTest.cc: Removed.
  1175. * test/UTPexExtensionMessageTest.cc
  1176. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Limit the size of values list when sending get_peers reply.
  1178. * src/DHTGetPeersReplyMessage.cc
  1179. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Updated banner
  1181. * doc/xmlrpc/aria2rpc
  1182. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Added missing help message for remove command.
  1184. * doc/xmlrpc/aria2rpc
  1185. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Generated configure and config.h.in
  1187. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1188. Add check for fork(), which is missing on MinGW
  1189. * src/daemon.cc
  1190. * configure.ac
  1191. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1193. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1194. Util::httpGMT().
  1195. * src/Util.cc
  1196. * src/Util.h
  1197. * test/UtilTest.cc
  1198. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. * Release 1.6.0
  1200. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Fixed a path to xmlrpc/README.txt
  1202. * doc/Makefile.am
  1203. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Added XML-RPC in -v Configuration output.
  1205. * src/FeatureConfig.cc
  1206. * src/FeatureConfig.h
  1207. * test/FeatureConfigTest.cc
  1208. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Updated Bulgarian, Russian, Slovak and Japanese
  1210. translations. Thanks to all translators.
  1211. * po/bg.po
  1212. * po/ja.po
  1213. * po/ru.po
  1214. * po/sk.po
  1215. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Removed --retry-wait option from aria2rpc
  1217. * doc/xmlrpc/aria2rpc
  1218. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Removed --retry-wait option from man page.
  1220. * doc/aria2c.1.txt
  1221. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Removed --retry-wait option since the current architecture doesn't
  1223. allow sleep for particular URI.
  1224. * src/AbstractCommand.cc
  1225. * src/OptionHandlerFactory.cc
  1226. * src/download_helper.cc
  1227. * src/prefs.cc
  1228. * src/prefs.h
  1229. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Removed Retry-After header support. Since the current architecture
  1231. doesn't allow sleep for particular URI.
  1232. * src/HttpSkipResponseCommand.cc
  1233. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Updated the help message for --daemon option.
  1235. * doc/aria2c.1.txt
  1236. * src/usage_text.h
  1237. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Added our own daemon() function for systems which desn't have
  1239. daemon(3).
  1240. * configure.ac
  1241. * src/Makefile.am
  1242. * src/daemon.cc
  1243. * src/daemon.h
  1244. * src/option_processing.cc
  1245. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Simplified File::getCurrentDir()
  1247. * src/File.cc
  1248. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Use exit() instead of _exit
  1250. * src/RequestGroupMan.cc
  1251. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Replaced "CATEGORY" with "TAGS".
  1253. * src/usage_text.h
  1254. * doc/aria2c.1.txt
  1255. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Updated the help message for --help option.
  1257. * src/usage_text.h
  1258. * doc/aria2c.1.txt
  1259. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Updated man page for added help tags.
  1261. * doc/aria2c.1.txt
  1262. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Added help category #file. Added #file tag to the options related
  1264. to downloaded file.
  1265. * src/OptionHandlerFactory.cc
  1266. * src/help_tags.h
  1267. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Added help categories: #cookie and #hook. Added #https tag to
  1269. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1270. * src/OptionHandlerFactory.cc
  1271. * src/help_tags.h
  1272. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Made MSG_NOT_FILE translatable.
  1274. * src/message.h
  1275. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Updated man page for --help option.
  1277. * doc/aria2c.1.txt
  1278. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Updated doc.
  1280. * src/XmlRpcMethod.h
  1281. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Help category now starts with "#" to distinguish a category from
  1283. keyword search. For example, "http" categroy is now "#http". You
  1284. can type "--help=#http" to get explanation of options related to
  1285. http. If '#' is omitted, then the argument is treated as a keyword
  1286. and aria2 searches options whose name includes the keyword and
  1287. print matched ones. For example, "--help=http" will show options
  1288. whose name includes "http".
  1289. * src/OptionHandlerFactory.cc
  1290. * src/help_tags.h
  1291. * src/usage_text.h
  1292. * src/version_usage.cc
  1293. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Documented missing experimental tag and newly added xml-rpc tag in
  1295. man page.
  1296. * doc/aria2c.1.txt
  1297. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Added xml-rpc help tag. Tagged xml-rpc related options with
  1299. xml-rpc tag.
  1300. * src/OptionHandlerFactory.cc
  1301. * src/help_tags.h
  1302. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Updated message when a path is not a file. Updated common message
  1304. for wrong option.
  1305. * src/OptionHandlerException.cc
  1306. * src/message.h
  1307. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Use File::isFile() instead of File::exists(). Updated message when
  1309. a path is not a file.
  1310. * src/OptionHandlerImpl.cc
  1311. * src/message.h
  1312. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Fixed the bug that server performence profile is not updated when
  1314. aria2c was terminated by emergency shutdown.
  1315. * src/TrackerWatcherCommand.cc
  1316. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Use LocalFilePathOptionHandler for -T and -M option.
  1318. Updated message of MSG_FILE_NOT_EXIST.
  1319. * src/OptionHandlerFactory.cc
  1320. * src/message.h
  1321. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added LocalFilePathOptionHandler which check whether the specified
  1323. file path does exist or not.
  1324. * src/OptionHandlerImpl.cc
  1325. * src/message.h
  1326. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Updated wiki page URI.
  1328. * README
  1329. * doc/aria2c.1.txt
  1330. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added README.txt for xmlrpc directory.
  1332. * doc/Makefile.am
  1333. * doc/xmlrpc/README.txt
  1334. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Bump up version number to 1.6.0.
  1336. * configure.ac
  1337. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Added XML-RPC client scripts written in ruby.
  1339. * doc/Makefile.am
  1340. * doc/xmlrpc/aria2mon
  1341. * doc/xmlrpc/aria2rpc
  1342. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Added support for IPv6 literal address in URI. Now aria2 can
  1344. handle URI such as http://[::1]/
  1345. * src/HttpRequest.cc
  1346. * src/HttpRequest.h
  1347. * src/Request.cc
  1348. * src/Request.h
  1349. * test/HttpRequestTest.cc
  1350. * test/OptionHandlerTest.cc
  1351. * test/RequestTest.cc
  1352. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Fixed the bug that HTTP request header for XML-RPC request is not
  1354. parsed properly.
  1355. * src/HttpHeader.cc
  1356. * src/HttpHeaderProcessor.cc
  1357. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed the bug that XML-RPC authorization might be done before HTTP
  1359. request header is fully received.
  1360. * src/HttpServerCommand.cc
  1361. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Documented --xml-rpc-listen-all option in man page.
  1363. * doc/aria2c.1.txt
  1364. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Added --xml-rpc-listen-all option. If true is given to this
  1366. option, aria2 listens incoming XML-RPC requests on all network
  1367. interfaces. If false is given, listens only on local loopback
  1368. interface. The default value is false.
  1369. * src/HttpListenCommand.cc
  1370. * src/OptionHandlerFactory.cc
  1371. * src/SocketCore.cc
  1372. * src/SocketCore.h
  1373. * src/prefs.cc
  1374. * src/prefs.h
  1375. * src/usage_text.h
  1376. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. * Release 1.5.2
  1378. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Updated Ukrainian and Russian translations. Thanks to all
  1380. translators.
  1381. * po/ru.po
  1382. * po/uk.po
  1383. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Bump up version number to 1.5.2
  1385. * configure.ac
  1386. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Get comment, comment.utf-8, created by and creation date from
  1388. .torrent file and print them in -S output.
  1389. * src/bittorrent_helper.cc
  1390. * src/bittorrent_helper.h
  1391. * test/BittorrentHelperTest.cc
  1392. * test/test.torrent
  1393. * test/utf8.torrent
  1394. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Show exact file size along in -S option output.
  1396. * src/Util.h
  1397. * src/bittorrent_helper.cc
  1398. * test/UtilTest.cc
  1399. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Avoided unnecessary memory allocation in
  1401. BitfieldMan::getCompletedLength().
  1402. * src/BitfieldMan.cc
  1403. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Fixed the bug that download fails if
  1405. SocketCore::establishConnection() throws exception and aria2
  1406. doesn't try another address.
  1407. * src/AbstractCommand.cc
  1408. * src/InitiateConnectionCommand.cc
  1409. * src/message.h
  1410. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1412. detected properly.
  1413. * m4/sqlite3.m4
  1414. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1416. because it causes compile error if PARAMS macro is defined.
  1417. * src/XmlRpcElements.cc
  1418. * src/XmlRpcElements.h
  1419. * src/XmlRpcRequestParserStateImpl.cc
  1420. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. * Release 1.5.1
  1422. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Bump up version number to 1.5.1
  1424. * configure.ac
  1425. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Fixed compile error without BitTorrent support
  1427. * src/DefaultBtProgressInfoFile.cc
  1428. * src/DownloadEngine.cc
  1429. * src/DownloadEngine.h
  1430. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Added missing '=' in Download Results
  1432. * src/RequestGroupMan.cc
  1433. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Fixed compiler warning
  1435. * src/DefaultBtProgressInfoFile.cc
  1436. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Fixed compiler warning on 32bit systems.
  1438. * src/DownloadCommand.cc
  1439. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Call flush from ServerStatMan::save()
  1441. * src/ServerStatMan.cc
  1442. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Check stream status after file is opened.
  1444. * src/CookieStorage.cc
  1445. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Rewritten Signature::save()
  1447. * src/Signature.cc
  1448. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Rewritten RequestGroupMan::saveServerStat()
  1450. * src/RequestGroupMan.cc
  1451. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Rewritten stream error handling
  1453. * src/DHTAutoSaveCommand.cc
  1454. * src/DHTRoutingTableDeserializer.cc
  1455. * src/DHTRoutingTableSerializer.cc
  1456. * src/DHTSetup.cc
  1457. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Check stream status after file is opened.
  1459. * src/DefaultBtProgressInfoFile.cc
  1460. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Rewritten stream error handling
  1462. * src/DefaultBtProgressInfoFile.cc
  1463. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Make sure that stream is closed before renaming file. Unit test
  1465. fails on mingw32 in the previous implementation.
  1466. * src/CookieStorage.cc
  1467. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Fixed the unit test error without sqlite3
  1469. * test/CookieStorageTest.cc
  1470. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Fixed the undefined reference error
  1472. * test/HttpResponseTest.cc
  1473. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. * Release 1.5.0
  1475. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1477. Ukrainian translations. Thanks to all translators.
  1478. * po/ru.po
  1479. * po/it.po
  1480. * po/da.po
  1481. * po/bg.po
  1482. * po/ja.po
  1483. * po/uk.po
  1484. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Added missing src/Logger.cc
  1486. * src/Logger.cc
  1487. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Rewritten Logger to avoiding constly virtual call.
  1489. * src/LogFactory.cc
  1490. * src/LogFactory.h
  1491. * src/Logger.h
  1492. * src/Makefile.am
  1493. * src/Makefile.in
  1494. * src/NullLogger.h: Removed.
  1495. * src/SimpleLogger.cc
  1496. * src/SimpleLogger.h
  1497. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Updated doc
  1499. * src/main.cc
  1500. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Updated debug log message
  1502. * src/AbstractCommand.cc
  1503. * src/message.h
  1504. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Avoid to create zombie process when commands specified in
  1506. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1507. X and NetBSD.
  1508. * src/main.cc
  1509. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Fixed typo
  1511. * src/usage_text.h
  1512. * doc/aria2c.1.txt
  1513. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Documented 'errorCode' of tellStatus in man page.
  1515. * doc/aria2c.1.txt
  1516. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1518. This key is only available for stopped/completed downloads and its
  1519. value is the error code defined in EXIT STATUS in man page.
  1520. * src/XmlRpcMethodImpl.cc
  1521. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Fixed the bug that session download length is not updated when
  1523. PeerStat is not fastest one.
  1524. * src/SegmentMan.cc
  1525. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Updated doc.
  1527. * doc/aria2c.1.txt
  1528. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Updated doc.
  1530. * src/AbstractCommand.cc
  1531. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Handle the case when DownloadContext has no FileEntry.
  1533. * src/XmlRpcMethodImpl.cc
  1534. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Handle the situation where struct option.name is char *.
  1536. * configure.ac
  1537. * src/OptionParser.cc
  1538. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Code cleanup
  1540. * src/AbstractCommand.cc
  1541. * src/DownloadCommand.cc
  1542. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Use option of each download to create AuthConfig instead of global
  1544. option.
  1545. * src/AuthConfigFactory.cc
  1546. * src/AuthConfigFactory.h
  1547. * src/FtpNegotiationCommand.cc
  1548. * src/HttpRequest.cc
  1549. * src/HttpRequest.h
  1550. * src/HttpRequestCommand.cc
  1551. * src/HttpSkipResponseCommand.cc
  1552. * src/MultiUrlRequestInfo.cc
  1553. * test/AuthConfigFactoryTest.cc
  1554. * test/FtpConnectionTest.cc
  1555. * test/HttpRequestTest.cc
  1556. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Don't call prepareForRetry(1) if all segments are ignored in
  1558. SegmentMan.
  1559. * src/AbstractCommand.cc
  1560. * src/BitfieldMan.cc
  1561. * src/BitfieldMan.h
  1562. * src/SegmentMan.cc
  1563. * src/SegmentMan.h
  1564. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Removed FileEntry::getAssociatedUris()
  1566. * src/FileEntry.h
  1567. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Updated doc: TODO1.5 -> TODO
  1569. * src/FileEntry.cc
  1570. * src/HttpResponseCommand.cc
  1571. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1573. involved.
  1574. * src/RequestGroup.cc
  1575. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Eliminated duplicated filterBitfield initialization code.
  1577. * src/BitfieldMan.cc
  1578. * src/BitfieldMan.h
  1579. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1581. relatively naive approach, though). For DownloadFailureException,
  1582. we handle the case when req is null properly.
  1583. * src/AbstractCommand.cc
  1584. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Added function returning suffix of control file to
  1586. DefaultBtProgressInfoFile.
  1587. * src/DefaultBtProgressInfoFile.cc
  1588. * src/DefaultBtProgressInfoFile.h
  1589. * src/RequestGroup.cc
  1590. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Documented getVersion in man page.
  1592. * doc/aria2c.1.txt
  1593. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Documented type of offset and num for tellWaiting xml-rpc method.
  1595. * doc/aria2c.1.txt
  1596. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Implemented getVersion xml-rpc method. This method returns struct
  1598. which has 2 key-value pairs: "version" key is associated to the
  1599. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1600. associated to the list of enabled features, such as "Async DNS",
  1601. "BitTorrent".
  1602. * src/FeatureConfig.h
  1603. * src/XmlRpcMethodFactory.cc
  1604. * src/XmlRpcMethodImpl.cc
  1605. * src/XmlRpcMethodImpl.h
  1606. * test/XmlRpcMethodTest.cc
  1607. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1609. for compatibility issue.
  1610. * src/SocketCore.cc
  1611. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Fixed compile error with openSSL
  1613. * src/bittorrent_helper.cc
  1614. * src/messageDigest.h
  1615. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Removed bad code: setting certificate type priority to key
  1617. exchange priority.
  1618. * src/SocketCore.cc
  1619. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Disconnect seeder if client is also in seed state.
  1621. * src/BtBitfieldMessage.cc
  1622. * src/BtHaveAllMessage.cc
  1623. * src/BtHaveMessage.cc
  1624. * src/message.h
  1625. * test/BtBitfieldMessageTest.cc
  1626. * test/BtHaveAllMessageTest.cc
  1627. * test/BtHaveMessageTest.cc
  1628. * test/MockPieceStorage.h
  1629. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Keep CreateRequestCommand in queue when no segment is available so
  1631. that they can pick up pieces which slow BitTorrent peers are
  1632. downloading.
  1633. * src/AbstractCommand.cc
  1634. * src/CreateRequestCommand.cc
  1635. * src/CreateRequestCommand.h
  1636. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. --bt-stop-timeout now only checks download speed.
  1638. * src/BtStopDownloadCommand.cc
  1639. * src/BtStopDownloadCommand.h
  1640. * src/BtSetup.cc
  1641. * src/usage_text.h
  1642. * doc/aria2c.1.txt
  1643. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Fixed compile error regarding BUFSIZE.
  1645. * src/DownloadCommand.cc
  1646. * src/DownloadCommand.h
  1647. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Documented tellWaiting xml-rpc method in man page.
  1649. * doc/aria2c.1.txt
  1650. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Bump up version number to 1.5.0
  1652. * configure.ac
  1653. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Removed resolved TODO1.5
  1655. * src/AbstractCommand.cc
  1656. * src/DownloadCommand.cc
  1657. * src/RequestGroup.cc
  1658. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Release pooled and in-flight Request objectsand URIResult objects
  1660. in FileEntry after download completed.
  1661. * src/DownloadContext.cc
  1662. * src/DownloadContext.h
  1663. * src/FileEntry.cc
  1664. * src/FileEntry.h
  1665. * src/RequestGroup.cc
  1666. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Set manual and source attribute in aria2c.1.txt
  1668. * doc/aria2c.1.txt
  1669. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Documented that the default value of --use-head is 'false' in man
  1671. page.
  1672. * doc/aria2c.1.txt
  1673. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Added bt-stop-timeout option to -i list.
  1675. * doc/aria2c.1.txt
  1676. * src/download_helper.cc
  1677. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Fixed typo
  1679. * doc/aria2c.1.txt
  1680. * src/usage_text.h
  1681. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Removed peer-id-prefix option from -i list.
  1683. * doc/aria2c.1.txt
  1684. * src/download_helper.cc
  1685. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Fixed typo
  1687. * doc/aria2c.1.txt
  1688. * src/usage_text.h
  1689. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Documented --bt-stop-timeout option in man page.
  1691. * doc/aria2c.1.txt
  1692. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Updated README regarding multi-file torrent web-seeding.
  1694. * doc/README.txt
  1695. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Updated man page regarding multi-file torrent web-seeding.
  1697. * doc/aria2c.1.txt
  1698. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Updated doc
  1700. * src/version_usage.cc
  1701. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Winsock select() doesn't work if no socket is in FD_SET. To
  1703. overcome this problem, a dummy socket is added to FD_SET and it is
  1704. given to select().
  1705. * src/SelectEventPoll.cc
  1706. * src/SelectEventPoll.h
  1707. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Disabled --use-head option by default because --use-head=true
  1709. causes problems on some web sites.
  1710. * src/OptionHandlerFactory.cc
  1711. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Print URL List in -S option for torrent.
  1713. * src/bittorrent_helper.cc
  1714. * src/bittorrent_helper.h
  1715. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Allocate buffer in ctor of DownloadCommand.
  1717. * src/DownloadCommand.cc
  1718. * src/DownloadCommand.h
  1719. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Removed DiskAdaptor::onDownloadComplete()
  1721. * src/DirectDiskAdaptor.cc
  1722. * src/DirectDiskAdaptor.h
  1723. * src/DiskAdaptor.h
  1724. * src/MultiDiskAdaptor.cc
  1725. * src/MultiDiskAdaptor.h
  1726. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Committed missing BtStopDownloadCommand.{cc,h}
  1728. * src/BtStopDownloadCommand.cc
  1729. * src/BtStopDownloadCommand.h
  1730. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1732. download if the download speed is 0 and the number of seeder is 0
  1733. in consecutive SEC seconds. By default, this function is disabled.
  1734. * src/BtSetup.cc
  1735. * src/Makefile.am
  1736. * src/OptionHandlerFactory.cc
  1737. * src/prefs.cc
  1738. * src/prefs.h
  1739. * src/usage_text.h
  1740. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Removed the call to DiskAdaptor::onDownloadComplete() from
  1742. BtCheckIntegrityEntry and DefaultPieceStorage.
  1743. * src/BtCheckIntegrityEntry.cc
  1744. * src/DefaultPieceStorage.cc
  1745. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Commented out throw statements when number of piece is 0 to
  1747. download 0 length torrent.
  1748. * src/bittorrent_helper.cc
  1749. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Call RequestGroup::createNextCommandWithAdj() from
  1751. BtFileAllocationEntry if at least one FileEntry has URI. The
  1752. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1753. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1754. * src/BtFileAllocationEntry.cc
  1755. * src/FileEntry.h
  1756. * src/RequestGroup.cc
  1757. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Generate peer ID after SimpleRandomizer is initialized.
  1759. * src/main.cc
  1760. * src/option_processing.cc
  1761. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Removed unused method argument.
  1763. * src/CreateRequestCommand.cc
  1764. * src/RequestGroup.cc
  1765. * src/RequestGroup.h
  1766. * src/RequestGroupMan.cc
  1767. * src/TrackerWatcherCommand.cc
  1768. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Made URI reusing function work.
  1770. * src/CreateRequestCommand.cc
  1771. * src/FileEntry.cc
  1772. * src/FileEntry.h
  1773. * test/FileEntryTest.cc
  1774. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Add formerly fastest PeerStat's sessionDownloadLength to new
  1776. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1777. bytes in a session.
  1778. * src/PeerStat.cc
  1779. * src/SegmentMan.cc
  1780. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. If pipelining is enabled, we can always pool socket.
  1782. * src/HttpDownloadCommand.cc
  1783. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. In a single file download, file size becomes known just after
  1785. downloading, set total length to FileEntry object when download
  1786. completed.
  1787. * src/DownloadCommand.cc
  1788. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Use std::vector::reserve() for fileEntries and pieceHashes in
  1790. bittorrent_helper
  1791. * src/bittorrent_helper.cc
  1792. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1794. Removed hidden option PREF_RESET_URI.
  1795. * src/AbstractCommand.cc
  1796. * src/OptionHandlerFactory.cc
  1797. * src/prefs.cc
  1798. * src/prefs.h
  1799. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Removed unused variable/function.
  1801. * src/PeerStat.h
  1802. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Show first URL in Download Results if file path is not available.
  1804. * src/FileEntry.h
  1805. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Throw exception if file path doesn't exist in FTP URL.
  1807. * src/InitiateConnectionCommandFactory.cc
  1808. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1810. * src/BitfieldMan.cc
  1811. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1813. of PeerStat in SegmentMan. peerStats is used for calculating
  1814. download speed. Therefore all active PeerStats should be in
  1815. there. Another one is _fastestPeerStats and it only contains
  1816. fastest PeerStat for each hostname/protocol pair. They are used
  1817. for updating ServerStat.
  1818. * src/DownloadCommand.cc
  1819. * src/Request.h
  1820. * src/RequestGroupMan.cc
  1821. * src/SegmentMan.cc
  1822. * src/SegmentMan.h
  1823. * test/SegmentManTest.cc
  1824. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Try all available addresses returned by DNS until it gets
  1826. connected in HTTP(S)/FTP download
  1827. * src/AbstractCommand.cc
  1828. * src/AbstractCommand.h
  1829. * src/AbstractProxyRequestCommand.cc
  1830. * src/AbstractProxyRequestCommand.h
  1831. * src/DNSCache.h
  1832. * src/DownloadEngine.cc
  1833. * src/DownloadEngine.h
  1834. * src/FtpInitiateConnectionCommand.cc
  1835. * src/FtpInitiateConnectionCommand.h
  1836. * src/FtpNegotiationCommand.cc
  1837. * src/FtpNegotiationCommand.h
  1838. * src/HttpInitiateConnectionCommand.cc
  1839. * src/HttpInitiateConnectionCommand.h
  1840. * src/HttpRequestCommand.cc
  1841. * src/HttpRequestCommand.h
  1842. * src/InitiateConnectionCommand.cc
  1843. * src/InitiateConnectionCommand.h
  1844. * test/DNSCacheTest.cc
  1845. * test/Makefile.am
  1846. * test/SimpleDNSCacheTest.cc
  1847. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Updated doc
  1849. * src/download_helper.cc
  1850. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Refactored fieldMan ctor.
  1852. * src/BitfieldMan.cc
  1853. * src/BitfieldMan.h
  1854. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Don't print "No files to download." message if -S is given.
  1856. * src/main.cc
  1857. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Set referer and method to newly created Request object.
  1859. * src/CreateRequestCommand.cc
  1860. * src/FileEntry.cc
  1861. * src/FileEntry.h
  1862. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1864. * src/AbstractCommand.cc
  1865. * src/AbstractCommand.h
  1866. * src/CreateRequestCommand.cc
  1867. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Get proxy download working
  1869. * src/AbstractProxyRequestCommand.cc
  1870. * src/AbstractProxyRequestCommand.h
  1871. * src/AbstractProxyResponseCommand.cc
  1872. * src/AbstractProxyResponseCommand.h
  1873. * src/FtpInitiateConnectionCommand.cc
  1874. * src/FtpTunnelRequestCommand.cc
  1875. * src/FtpTunnelRequestCommand.h
  1876. * src/FtpTunnelResponseCommand.cc
  1877. * src/FtpTunnelResponseCommand.h
  1878. * src/HttpInitiateConnectionCommand.cc
  1879. * src/HttpProxyRequestCommand.cc
  1880. * src/HttpProxyRequestCommand.h
  1881. * src/HttpProxyResponseCommand.cc
  1882. * src/HttpProxyResponseCommand.h
  1883. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Use SegmentMan::getSegment(cuid) for single file download.
  1885. * src/AbstractCommand.cc
  1886. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Fixed bufSize calculation
  1888. * src/DownloadCommand.cc
  1889. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Don't append "/" if base URI ends with "/".
  1891. * src/bittorrent_helper.cc
  1892. * test/url-list-multiFile.torrent
  1893. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. HTTP pipelining is now working. Fixed Segmention fault in
  1895. BitfieldMan's copy ctor.
  1896. * src/AbstractCommand.cc
  1897. * src/BitfieldMan.cc
  1898. * src/BitfieldMan.h
  1899. * src/DownloadCommand.cc
  1900. * src/HttpDownloadCommand.cc
  1901. * src/HttpRequest.cc
  1902. * src/SegmentMan.cc
  1903. * src/SegmentMan.h
  1904. * test/BitfieldManTest.cc
  1905. * test/SegmentManTest.cc
  1906. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Removed ServerHost. Same functionality is implemented using
  1908. FileEntry's in-flight Request objects.
  1909. * src/AbstractCommand.cc
  1910. * src/BtDependency.cc
  1911. * src/CreateRequestCommand.cc
  1912. * src/FileEntry.cc
  1913. * src/FileEntry.h
  1914. * src/FtpNegotiationCommand.cc
  1915. * src/HttpResponseCommand.cc
  1916. * src/Makefile.am
  1917. * src/Metalink2RequestGroup.cc
  1918. * src/RequestGroup.cc
  1919. * src/RequestGroup.h
  1920. * src/ServerHost.cc: Removed
  1921. * src/ServerHost.h: Removed
  1922. * test/BtDependencyTest.cc
  1923. * test/FileEntryTest.cc
  1924. * test/RequestGroupTest.cc
  1925. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Rewritten PeerStat handling. In the previous implementation,
  1927. faster command tries to find slower command. In this new
  1928. implementation, slower command tries to find faster command.
  1929. PeerStat is now created in each HTTP/FTP request to get download
  1930. rate correctly. If the download range is small, the download rate
  1931. tends to small and this will occur at the later stage of download.
  1932. * src/AbstractCommand.cc
  1933. * src/DownloadCommand.cc
  1934. * src/FileEntry.cc
  1935. * src/FileEntry.h
  1936. * src/Request.cc
  1937. * src/Request.h
  1938. * src/RequestGroup.h
  1939. * src/RequestGroupMan.cc
  1940. * src/SegmentMan.cc
  1941. * src/SegmentMan.h
  1942. * test/SegmentManTest.cc
  1943. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Removed _uris from RequestGroup. All functions that refer to _uris
  1945. were moved to FileEntry. Exit status code are now defined in
  1946. DownloadResultCode.h.
  1947. * src/AbstractCommand.cc
  1948. * src/AdaptiveURISelector.cc
  1949. * src/AdaptiveURISelector.h
  1950. * src/AutoSaveCommand.cc
  1951. * src/BtPostDownloadHandler.cc
  1952. * src/CheckIntegrityDispatcherCommand.cc
  1953. * src/CookieStorage.cc
  1954. * src/DHTAutoSaveCommand.cc
  1955. * src/DHTBucketRefreshCommand.cc
  1956. * src/DHTEntryPointNameResolveCommand.cc
  1957. * src/DHTInteractionCommand.cc
  1958. * src/DHTPeerAnnounceCommand.cc
  1959. * src/DHTTokenUpdateCommand.cc
  1960. * src/DlAbortEx.h
  1961. * src/DlRetryEx.h
  1962. * src/DownloadCommand.cc
  1963. * src/DownloadContext.h
  1964. * src/DownloadFailureException.h
  1965. * src/DownloadResult.h
  1966. * src/DownloadResultCode.h
  1967. * src/FeedbackURISelector.cc
  1968. * src/FeedbackURISelector.h
  1969. * src/FileEntry.cc
  1970. * src/FileEntry.h
  1971. * src/FtpNegotiationCommand.cc
  1972. * src/HttpListenCommand.cc
  1973. * src/HttpResponseCommand.cc
  1974. * src/HttpServerResponseCommand.cc
  1975. * src/HttpSkipResponseCommand.cc
  1976. * src/InOrderURISelector.cc
  1977. * src/InOrderURISelector.h
  1978. * src/Makefile.am
  1979. * src/Makefile.in
  1980. * src/Metalink2RequestGroup.cc
  1981. * src/MultiUrlRequestInfo.cc
  1982. * src/MultiUrlRequestInfo.h
  1983. * src/OptionHandlerFactory.cc
  1984. * src/PeerListenCommand.cc
  1985. * src/RecoverableException.h
  1986. * src/RequestGroup.cc
  1987. * src/RequestGroup.h
  1988. * src/RequestGroupMan.cc
  1989. * src/RequestGroupMan.h
  1990. * src/TimedHaltCommand.cc
  1991. * src/TrackerWatcherCommand.cc
  1992. * src/URIResult.cc
  1993. * src/URIResult.h
  1994. * src/URISelector.h
  1995. * src/XmlRpcMethodImpl.cc
  1996. * src/bittorrent_helper.cc
  1997. * src/bittorrent_helper.h
  1998. * src/download_helper.cc
  1999. * src/main.cc
  2000. * src/option_processing.cc
  2001. * test/BtDependencyTest.cc
  2002. * test/BtPostDownloadHandlerTest.cc
  2003. * test/CookieStorageTest.cc
  2004. * test/DefaultBtMessageDispatcherTest.cc
  2005. * test/DownloadHandlerFactoryTest.cc
  2006. * test/DownloadHelperTest.cc
  2007. * test/FeedbackURISelectorTest.cc
  2008. * test/FileEntryTest.cc
  2009. * test/InOrderURISelectorTest.cc
  2010. * test/Metalink2RequestGroupTest.cc
  2011. * test/MetalinkPostDownloadHandlerTest.cc
  2012. * test/RequestGroupManTest.cc
  2013. * test/RequestGroupTest.cc
  2014. * test/XmlRpcMethodTest.cc
  2015. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Removed MockBtContext.h
  2017. * test/Makefile.am
  2018. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Removed _currentRequest from StreamCheckIntegrityEntry and
  2020. StreamFileAllocationEntry.
  2021. * src/AbstractCommand.cc
  2022. * src/HttpResponseCommand.cc
  2023. * src/RequestGroup.cc
  2024. * src/StreamCheckIntegrityEntry.cc
  2025. * src/StreamCheckIntegrityEntry.h
  2026. * src/StreamFileAllocationEntry.cc
  2027. * src/StreamFileAllocationEntry.h
  2028. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Rewritten DownloadContext and removed SingleFileDownloadContext
  2030. and BtContext and its derived classes. BitTorrent specific
  2031. attributes are now set by DownloadContext::setAttribute() with key
  2032. bittorrent::BITTORRENT.
  2033. * src/AbstractBtMessage.cc
  2034. * src/AbstractBtMessage.h
  2035. * src/AbstractCommand.cc
  2036. * src/AbstractCommand.h
  2037. * src/AbstractProxyRequestCommand.cc
  2038. * src/AbstractProxyResponseCommand.cc
  2039. * src/ActivePeerConnectionCommand.cc
  2040. * src/ActivePeerConnectionCommand.h
  2041. * src/AnnounceList.cc
  2042. * src/BtCheckIntegrityEntry.cc
  2043. * src/BtConstants.h
  2044. * src/BtContext.h: Removed
  2045. * src/BtDependency.cc
  2046. * src/BtExtendedMessage.cc
  2047. * src/BtPieceMessage.cc
  2048. * src/BtPieceMessage.h
  2049. * src/BtPostDownloadHandler.cc
  2050. * src/BtRegistry.cc
  2051. * src/BtRegistry.h
  2052. * src/BtSetup.cc
  2053. * src/CheckIntegrityCommand.cc
  2054. * src/CheckIntegrityEntry.cc
  2055. * src/ChecksumCheckIntegrityEntry.cc
  2056. * src/ConsoleStatCalc.cc
  2057. * src/ContentTypeRequestGroupCriteria.cc
  2058. * src/DHTGetPeersCommand.cc
  2059. * src/DHTGetPeersCommand.h
  2060. * src/DHTPeerLookupTask.cc
  2061. * src/DHTPeerLookupTask.h
  2062. * src/DHTTaskFactory.h
  2063. * src/DHTTaskFactoryImpl.cc
  2064. * src/DHTTaskFactoryImpl.h
  2065. * src/DefaultBtAnnounce.cc
  2066. * src/DefaultBtAnnounce.h
  2067. * src/DefaultBtContext.cc: Removed
  2068. * src/DefaultBtContext.h: Removed
  2069. * src/DefaultBtInteractive.cc
  2070. * src/DefaultBtInteractive.h
  2071. * src/DefaultBtMessageDispatcher.cc
  2072. * src/DefaultBtMessageDispatcher.h
  2073. * src/DefaultBtMessageFactory.cc
  2074. * src/DefaultBtMessageFactory.h
  2075. * src/DefaultBtMessageReceiver.cc
  2076. * src/DefaultBtMessageReceiver.h
  2077. * src/DefaultBtProgressInfoFile.cc
  2078. * src/DefaultBtRequestFactory.cc
  2079. * src/DefaultBtRequestFactory.h
  2080. * src/DefaultExtensionMessageFactory.cc
  2081. * src/DefaultExtensionMessageFactory.h
  2082. * src/DefaultPeerStorage.cc
  2083. * src/DefaultPeerStorage.h
  2084. * src/DefaultPieceStorage.cc
  2085. * src/DefaultSegmentManFactory.cc
  2086. * src/DiskAdaptor.cc
  2087. * src/DiskAdaptor.h
  2088. * src/DownloadContext.cc
  2089. * src/DownloadContext.h
  2090. * src/DownloadEngine.cc
  2091. * src/DownloadEngineFactory.cc
  2092. * src/DownloadHandler.cc
  2093. * src/DownloadResult.h
  2094. * src/FileAllocationCommand.cc
  2095. * src/FileAllocationDispatcherCommand.cc
  2096. * src/FileAllocationEntry.cc
  2097. * src/FileEntry.h
  2098. * src/FillRequestGroupCommand.cc
  2099. * src/FtpDownloadCommand.cc
  2100. * src/FtpFinishDownloadCommand.cc
  2101. * src/FtpInitiateConnectionCommand.cc
  2102. * src/FtpNegotiationCommand.cc
  2103. * src/FtpTunnelRequestCommand.cc
  2104. * src/FtpTunnelResponseCommand.cc
  2105. * src/HandshakeExtensionMessage.cc
  2106. * src/HandshakeExtensionMessage.h
  2107. * src/HaveEraseCommand.cc
  2108. * src/HttpDownloadCommand.cc
  2109. * src/HttpInitiateConnectionCommand.cc
  2110. * src/HttpProxyRequestCommand.cc
  2111. * src/HttpProxyResponseCommand.cc
  2112. * src/HttpRequest.cc
  2113. * src/HttpRequest.h
  2114. * src/HttpRequestCommand.cc
  2115. * src/HttpResponseCommand.cc
  2116. * src/HttpServerBodyCommand.cc
  2117. * src/HttpServerCommand.cc
  2118. * src/HttpSkipResponseCommand.cc
  2119. * src/InitiateConnectionCommandFactory.cc
  2120. * src/InitiatorMSEHandshakeCommand.cc
  2121. * src/InitiatorMSEHandshakeCommand.h
  2122. * src/IteratableChecksumValidator.cc
  2123. * src/IteratableChecksumValidator.h
  2124. * src/IteratableChunkChecksumValidator.cc
  2125. * src/MSEHandshake.cc
  2126. * src/MSEHandshake.h
  2127. * src/Makefile.am
  2128. * src/Makefile.in
  2129. * src/Metalink2RequestGroup.cc
  2130. * src/MetalinkPostDownloadHandler.cc
  2131. * src/MultiDiskAdaptor.cc
  2132. * src/MultiDiskAdaptor.h
  2133. * src/MultiFileAllocationIterator.cc
  2134. * src/MultiUrlRequestInfo.cc
  2135. * src/PeerChokeCommand.cc
  2136. * src/PeerChokeCommand.h
  2137. * src/PeerInitiateConnectionCommand.cc
  2138. * src/PeerInitiateConnectionCommand.h
  2139. * src/PeerInteractionCommand.cc
  2140. * src/PeerInteractionCommand.h
  2141. * src/PeerReceiveHandshakeCommand.cc
  2142. * src/PieceHashCheckIntegrityEntry.cc
  2143. * src/RealtimeCommand.cc
  2144. * src/ReceiverMSEHandshakeCommand.cc
  2145. * src/RequestGroup.cc
  2146. * src/RequestGroup.h
  2147. * src/RequestGroupEntry.cc
  2148. * src/RequestGroupMan.cc
  2149. * src/SeedCheckCommand.cc
  2150. * src/SeedCheckCommand.h
  2151. * src/SegmentMan.cc
  2152. * src/ShareRatioSeedCriteria.h
  2153. * src/SingleFileDownloadContext.cc: Removed
  2154. * src/SingleFileDownloadContext.h: Removed
  2155. * src/SleepCommand.cc
  2156. * src/StreamCheckIntegrityEntry.cc
  2157. * src/TrackerWatcherCommand.cc
  2158. * src/TrackerWatcherCommand.h
  2159. * src/UnknownLengthPieceStorage.cc
  2160. * src/Util.cc
  2161. * src/Util.h
  2162. * src/XmlRpcMethodImpl.cc
  2163. * src/bittorrent_helper.cc
  2164. * src/bittorrent_helper.h
  2165. * src/download_helper.cc
  2166. * src/main.cc
  2167. * src/option_processing.cc
  2168. * test/BitfieldManTest.cc
  2169. * test/BittorrentHelperTest.cc
  2170. * test/BtCancelMessageTest.cc
  2171. * test/BtChokeMessageTest.cc
  2172. * test/BtDependencyTest.cc
  2173. * test/BtPieceMessageTest.cc
  2174. * test/BtPostDownloadHandlerTest.cc
  2175. * test/BtRegistryTest.cc
  2176. * test/BtRejectMessageTest.cc
  2177. * test/BtRequestMessageTest.cc
  2178. * test/DHTPeerAnnounceStorageTest.cc
  2179. * test/DefaultBtAnnounceTest.cc
  2180. * test/DefaultBtContextTest.cc: Removed
  2181. * test/DefaultBtMessageDispatcherTest.cc
  2182. * test/DefaultBtMessageFactoryTest.cc
  2183. * test/DefaultBtProgressInfoFileTest.cc
  2184. * test/DefaultBtRequestFactoryTest.cc
  2185. * test/DefaultExtensionMessageFactoryTest.cc
  2186. * test/DefaultPeerStorageTest.cc
  2187. * test/DefaultPieceStorageTest.cc
  2188. * test/DirectDiskAdaptorTest.cc
  2189. * test/DownloadContextTest.cc
  2190. * test/DownloadHandlerFactoryTest.cc
  2191. * test/DownloadHelperTest.cc
  2192. * test/HandshakeExtensionMessageTest.cc
  2193. * test/HttpRequestTest.cc
  2194. * test/HttpResponseTest.cc
  2195. * test/IteratableChecksumValidatorTest.cc
  2196. * test/IteratableChunkChecksumValidatorTest.cc
  2197. * test/MSEHandshakeTest.cc
  2198. * test/Makefile.am
  2199. * test/Makefile.in
  2200. * test/Metalink2RequestGroupTest.cc
  2201. * test/MetalinkPostDownloadHandlerTest.cc
  2202. * test/MockBtContext.h: Removed
  2203. * test/MockDHTTaskFactory.h
  2204. * test/MockDownloadContext.h: Removed
  2205. * test/MockPieceStorage.h
  2206. * test/MultiDiskAdaptorTest.cc
  2207. * test/MultiFileAllocationIteratorTest.cc
  2208. * test/RequestGroupManTest.cc
  2209. * test/RequestGroupTest.cc
  2210. * test/SegmentManTest.cc
  2211. * test/ShareRatioSeedCriteriaTest.cc
  2212. * test/SingleFileDownloadContextTest.cc: Removed
  2213. * test/UtilTest.cc
  2214. * test/XmlRpcMethodTest.cc
  2215. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Added experimental support of WEB-Seeding for multi-file torrent.
  2217. Due to fundamental changes in file handling in HTTP/FTP code, many
  2218. functions are not working: PeerStat, ServerHost, proxy..etc
  2219. * src/AbstractCommand.cc
  2220. * src/AbstractCommand.h
  2221. * src/BitfieldMan.cc
  2222. * src/BitfieldMan.h
  2223. * src/CreateRequestCommand.cc
  2224. * src/CreateRequestCommand.h
  2225. * src/DefaultPieceStorage.cc
  2226. * src/DefaultPieceStorage.h
  2227. * src/DownloadCommand.cc
  2228. * src/DownloadCommand.h
  2229. * src/DownloadContext.cc
  2230. * src/DownloadContext.h
  2231. * src/FileEntry.cc
  2232. * src/FileEntry.h
  2233. * src/FtpDownloadCommand.cc
  2234. * src/FtpDownloadCommand.h
  2235. * src/FtpFinishDownloadCommand.cc
  2236. * src/FtpFinishDownloadCommand.h
  2237. * src/FtpInitiateConnectionCommand.cc
  2238. * src/FtpInitiateConnectionCommand.h
  2239. * src/FtpNegotiationCommand.cc
  2240. * src/FtpNegotiationCommand.h
  2241. * src/FtpTunnelResponseCommand.cc
  2242. * src/HttpDownloadCommand.cc
  2243. * src/HttpDownloadCommand.h
  2244. * src/HttpInitiateConnectionCommand.cc
  2245. * src/HttpInitiateConnectionCommand.h
  2246. * src/HttpProxyResponseCommand.cc
  2247. * src/HttpRequest.cc
  2248. * src/HttpRequest.h
  2249. * src/HttpRequestCommand.cc
  2250. * src/HttpRequestCommand.h
  2251. * src/HttpResponseCommand.cc
  2252. * src/HttpResponseCommand.h
  2253. * src/HttpSkipResponseCommand.cc
  2254. * src/HttpSkipResponseCommand.h
  2255. * src/InitiateConnectionCommand.cc
  2256. * src/InitiateConnectionCommand.h
  2257. * src/InitiateConnectionCommandFactory.cc
  2258. * src/InitiateConnectionCommandFactory.h
  2259. * src/Makefile.am
  2260. * src/PieceStorage.h
  2261. * src/RequestGroup.cc
  2262. * src/RequestGroup.h
  2263. * src/RequestGroupMan.cc
  2264. * src/SegmentMan.cc
  2265. * src/SegmentMan.h
  2266. * src/SingleFileDownloadContext.h
  2267. * src/StreamFileAllocationEntry.cc
  2268. * src/TrackerWatcherCommand.cc
  2269. * src/UnknownLengthPieceStorage.cc
  2270. * src/UnknownLengthPieceStorage.h
  2271. * src/array_fun.h
  2272. * src/bitfield.h
  2273. * src/download_helper.cc
  2274. * test/DownloadContextTest.cc
  2275. * test/Makefile.am
  2276. * test/MockDownloadContext.h
  2277. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Added tellWaiting XML-RPC method.
  2279. * src/SingleFileDownloadContext.cc
  2280. * src/XmlRpcMethodFactory.cc
  2281. * src/XmlRpcMethodImpl.cc
  2282. * src/XmlRpcMethodImpl.h
  2283. * test/XmlRpcMethodTest.cc
  2284. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Updated CookieStorageTest
  2286. * test/CookieStorageTest.cc
  2287. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2289. handle excepion inside these functions.
  2290. * src/LibgnutlsTLSContext.cc
  2291. * src/LibgnutlsTLSContext.h
  2292. * src/LibsslTLSContext.cc
  2293. * src/LibsslTLSContext.h
  2294. * src/MultiUrlRequestInfo.cc
  2295. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added comment
  2297. * src/RequestGroup.cc
  2298. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. In CookieStorage::load() and saveNsFormat(), handle exception
  2300. inside the functions. When saving Cookies, first write temporary
  2301. file and after successful writes, then renames it to final
  2302. destination.
  2303. * src/CookieStorage.cc
  2304. * src/CookieStorage.h
  2305. * src/MultiUrlRequestInfo.cc
  2306. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. The default value of --dir option is the absolute path to the
  2308. current directory. If getcwd() is failed, then it is ".", which is
  2309. the same value with old implementation. This change is necessary
  2310. because after daemon() call, the current working directory is
  2311. changed to /.
  2312. * src/File.cc
  2313. * src/File.h
  2314. * src/OptionHandlerFactory.cc
  2315. * src/option_processing.cc
  2316. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Call daemon() with arguments(0,0), which means daemon() changes
  2318. current working directory to / and redirects stdin, stdout and
  2319. stderr to /dev/null.
  2320. * src/option_processing.cc
  2321. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Small performance optimizations.
  2323. * src/RequestGroupMan.cc
  2324. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2326. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2327. * src/RequestGroupMan.cc
  2328. * src/RequestGroupMan.h
  2329. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2331. setNoWiat(true) if newly created command calls
  2332. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2333. * src/HttpListenCommand.cc
  2334. * src/HttpServerBodyCommand.cc
  2335. * src/HttpServerCommand.cc
  2336. * src/HttpServerResponseCommand.cc
  2337. * src/InitiateConnectionCommand.cc
  2338. * src/RequestGroup.cc
  2339. * src/StreamFileAllocationEntry.cc
  2340. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Removed include vector
  2342. * src/BtRegistry.h
  2343. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Rewritten BtRegistry
  2345. * src/BtRegistry.cc
  2346. * src/BtRegistry.h
  2347. * src/BtSetup.cc
  2348. * src/ConsoleStatCalc.cc
  2349. * src/PeerInteractionCommand.cc
  2350. * src/PeerReceiveHandshakeCommand.cc
  2351. * src/ReceiverMSEHandshakeCommand.cc
  2352. * src/RequestGroup.cc
  2353. * src/XmlRpcMethodImpl.cc
  2354. * test/BtRegistryTest.cc
  2355. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2357. * src/DefaultBtProgressInfoFile.cc
  2358. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Throw an exception if position is less than 0.
  2360. * src/XmlRpcMethodImpl.cc
  2361. * test/XmlRpcMethodTest.cc
  2362. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Use writeFilePath() in ConsoleStatCalc.cc
  2364. * src/ConsoleStatCalc.cc
  2365. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Receive the return value as const reference from
  2367. DownloadContext::getFileEntries().
  2368. * src/DefaultPieceStorage.cc
  2369. * src/RequestGroupMan.cc
  2370. * src/XmlRpcMethodImpl.cc
  2371. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. DownloadContext now has _fileEntries so that
  2373. DownloadContext::getFileEntries() can returns its const reference.
  2374. * src/DefaultBtContext.cc
  2375. * src/DefaultBtContext.h
  2376. * src/DownloadContext.cc
  2377. * src/DownloadContext.h
  2378. * src/SingleFileDownloadContext.cc
  2379. * src/SingleFileDownloadContext.h
  2380. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2382. writeFilePath() function template from RequestGroupMan.cc to
  2383. FileEntry.h
  2384. * src/FileEntry.h
  2385. * src/RequestGroupMan.cc
  2386. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Documented 'position' parameter is starting from 0 in man page.
  2388. * doc/aria2c.1.txt
  2389. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Updated doc.
  2391. * src/MSEHandshake.cc
  2392. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Removed _acceptFeatures and its accessor functions from
  2394. RequestGroup since they are not used practically.
  2395. * src/HttpRequestCommand.cc
  2396. * src/RequestGroup.cc
  2397. * src/RequestGroup.h
  2398. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Removed member _maxTries from RequestGroup class to avoid
  2400. duplicate option value. Those classes who refer this variable
  2401. should use option value of PREF_MAX_TRIES directly.
  2402. * src/AbstractCommand.cc
  2403. * src/RequestGroup.cc
  2404. * src/RequestGroup.h
  2405. * src/TrackerWatcherCommand.cc
  2406. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. * Release 1.4.1
  2408. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Fixed compiler warnings on netbsd
  2410. * src/DHTConnectionImpl.cc
  2411. * src/PeerListenCommand.cc
  2412. * src/PeerSessionResource.cc
  2413. * src/SegmentMan.cc
  2414. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Updated Ukrainian translation. Thanks to all translators.
  2416. * po/uk.po
  2417. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Bump up version number to 1.4.1.
  2419. * configure.ac
  2420. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Added unit tests for strjoin, strconcat and strappend.
  2422. * test/a2functionalTest.cc
  2423. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Rewritten strconcat and strappend using operator+ instead of
  2425. append().
  2426. * src/a2functional.h
  2427. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2429. is enabled.
  2430. * src/Makefile.am
  2431. * test/Makefile.am
  2432. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Added countSeeder() function which counts seeder in the given
  2434. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2435. * src/ConsoleStatCalc.cc
  2436. * src/Peer.h
  2437. * src/XmlRpcMethodImpl.cc
  2438. * test/PeerTest.cc
  2439. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Documented missing seeder in getPeers xml-rpc method.
  2441. Documented uploadLength and numSeeders.
  2442. * doc/aria2c.1.txt
  2443. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Added uploadLength and numSeeders to the response of tellStatus
  2445. xml-rpc method. Assert that PeerStorage instance is not null
  2446. instead of checking if statement. It should be non-null in this
  2447. context.
  2448. * src/XmlRpcMethodImpl.cc
  2449. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2451. * src/XmlRpcResponse.cc
  2452. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Avoid intermediate object during string concatenation.
  2454. * src/HttpRequest.cc
  2455. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Added strjoin function template. Use it in pathJoin()
  2457. * src/Util.h
  2458. * src/a2functional.h
  2459. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Avoid intermediate object during string concatenation. Replaced
  2461. post-increment unary operator with pre-increment one in for loop.
  2462. * src/AdaptiveURISelector.cc
  2463. * src/AnnounceList.cc
  2464. * src/AuthConfig.h
  2465. * src/BtBitfieldMessage.cc
  2466. * src/BtExtendedMessage.cc
  2467. * src/BtHandshakeMessage.cc
  2468. * src/BtPieceMessage.cc
  2469. * src/BtPortMessage.cc
  2470. * src/Cookie.cc
  2471. * src/DHTAnnouncePeerMessage.cc
  2472. * src/DHTAutoSaveCommand.cc
  2473. * src/DHTGetPeersReplyMessage.cc
  2474. * src/DHTNode.cc
  2475. * src/DHTQueryMessage.cc
  2476. * src/DHTResponseMessage.cc
  2477. * src/DHTUnknownMessage.cc
  2478. * src/DefaultBtAnnounce.cc
  2479. * src/DefaultBtContext.cc
  2480. * src/DefaultBtInteractive.cc
  2481. * src/DefaultBtProgressInfoFile.cc
  2482. * src/DefaultPeerStorage.cc
  2483. * src/DownloadEngine.cc
  2484. * src/FeatureConfig.cc
  2485. * src/File.cc
  2486. * src/FtpConnection.cc
  2487. * src/FtpNegotiationCommand.cc
  2488. * src/HandshakeExtensionMessage.cc
  2489. * src/HttpConnection.cc
  2490. * src/HttpRequest.cc
  2491. * src/HttpResponseCommand.cc
  2492. * src/HttpServer.cc
  2493. * src/IndexBtMessage.cc
  2494. * src/Metalink2RequestGroup.cc
  2495. * src/OptionHandlerImpl.h
  2496. * src/PStringBuildVisitor.cc
  2497. * src/Peer.cc
  2498. * src/PeerListenCommand.cc
  2499. * src/Piece.cc
  2500. * src/RangeBtMessage.cc
  2501. * src/Request.cc
  2502. * src/Request.h
  2503. * src/RequestGroup.cc
  2504. * src/RequestGroupMan.cc
  2505. * src/ServerStat.cc
  2506. * src/ServerStatMan.cc
  2507. * src/UTPexExtensionMessage.cc
  2508. * src/Util.cc
  2509. * src/a2functional.h
  2510. * src/download_helper.cc
  2511. * src/messageDigest.cc
  2512. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Unchoke a peer randomly at first and second choke round in seed
  2514. state.
  2515. * src/BtSeederStateChoke.cc
  2516. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2517. Added (sock_t) to quiet compiler warnings in MinGW
  2518. * src/SocketCore.cc
  2519. * src/SocketCore.h
  2520. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2522. * src/EpollEventPoll.h
  2523. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2524. Added fork() emulation using CreateProcess() in MinGW
  2525. * src/RequestGroupMan.cc
  2526. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. * Release 1.4.0
  2528. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Added utf8.torrent to EXTRA_DIST
  2530. * test/Makefile.am
  2531. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Fixed docs of aria2.addMetalink xml-rpc method.
  2533. * doc/aria2c.1.txt
  2534. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Added Slovak translation. Updated Ukrainian and Brazilian
  2536. Portuguese translation. Thanks to all translators.
  2537. * po/sk.po
  2538. * po/uk.po
  2539. * po/pt_BR.po
  2540. * po/LINGUAS
  2541. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Added test case for XmlRpcProcessor to fail to parse malformed
  2543. document.
  2544. * test/XmlRpcRequestProcessorTest.cc
  2545. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Removed *.gmo files in po because they are generated on 'make
  2547. dist'
  2548. * po/*.gmo
  2549. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Documented max-concurrent-downloads of changeGlobalOption method
  2551. in man page.
  2552. * doc/aria2c.1.txt
  2553. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Added max-concurrent-downloads option to changeGlobalOption
  2555. xml-rpc method. Rewritten loop conditional in
  2556. RequestGroupMan::fillRequestGroupFromReserver().
  2557. * src/RequestGroupMan.cc
  2558. * src/RequestGroupMan.h
  2559. * src/XmlRpcMethod.cc
  2560. * src/XmlRpcMethodImpl.cc
  2561. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Documented position parameter in man page.
  2563. * doc/aria2c.1.txt
  2564. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Added 'position' parameter to addUri, addTorrent and addMetalink
  2566. xml-rpc method.
  2567. * src/RequestGroupMan.cc
  2568. * src/RequestGroupMan.h
  2569. * src/XmlRpcMethodImpl.cc
  2570. * test/XmlRpcMethodTest.cc
  2571. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Removed Peer.cc from compile source list when --disable-bittorrent
  2573. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2574. takes Peer.
  2575. * src/DefaultPieceStorage.cc
  2576. * src/DefaultPieceStorage.h
  2577. * src/Makefile.am
  2578. * src/PieceStorage.h
  2579. * src/UnknownLengthPieceStorage.cc
  2580. * src/UnknownLengthPieceStorage.h
  2581. * test/MockPieceStorage.h
  2582. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Implemented getter methods in header files to give them more
  2584. chance of optimization.
  2585. Return const reference for SharadHandle if possible.
  2586. * src/AbstractAuthResolver.cc
  2587. * src/AbstractAuthResolver.h
  2588. * src/AbstractBtMessage.cc
  2589. * src/AbstractBtMessage.h
  2590. * src/AbstractSingleDiskAdaptor.cc
  2591. * src/AbstractSingleDiskAdaptor.h
  2592. * src/AsyncNameResolver.cc
  2593. * src/AsyncNameResolver.h
  2594. * src/BNode.cc
  2595. * src/BNode.h
  2596. * src/BitfieldMan.cc
  2597. * src/BitfieldMan.h
  2598. * src/BtAbortOutstandingRequestEvent.h
  2599. * src/BtExtendedMessage.cc
  2600. * src/BtExtendedMessage.h
  2601. * src/BtSeederStateChoke.cc
  2602. * src/BtSeederStateChoke.h
  2603. * src/Cookie.cc
  2604. * src/Cookie.h
  2605. * src/DHTBucket.cc
  2606. * src/DHTBucket.h
  2607. * src/DHTConnectionImpl.cc
  2608. * src/DHTConnectionImpl.h
  2609. * src/DHTFindNodeReplyMessage.cc
  2610. * src/DHTFindNodeReplyMessage.h
  2611. * src/DHTGetPeersReplyMessage.cc
  2612. * src/DHTGetPeersReplyMessage.h
  2613. * src/DHTInteractionCommand.cc
  2614. * src/DHTMessage.cc
  2615. * src/DHTMessage.h
  2616. * src/DHTMessageDispatcherImpl.cc
  2617. * src/DHTMessageEntry.cc
  2618. * src/DHTMessageReceiver.cc
  2619. * src/DHTMessageReceiver.h
  2620. * src/DHTMessageTrackerEntry.cc
  2621. * src/DHTMessageTrackerEntry.h
  2622. * src/DHTPeerAnnounceEntry.cc
  2623. * src/DHTPeerAnnounceEntry.h
  2624. * src/DHTPeerLookupTask.cc
  2625. * src/DHTPeerLookupTask.h
  2626. * src/DHTRoutingTableDeserializer.cc
  2627. * src/DHTRoutingTableDeserializer.h
  2628. * src/DefaultBtAnnounce.cc
  2629. * src/DefaultBtAnnounce.h
  2630. * src/DefaultBtMessageDispatcher.cc
  2631. * src/DefaultBtMessageDispatcher.h
  2632. * src/DefaultBtRequestFactory.cc
  2633. * src/DefaultBtRequestFactory.h
  2634. * src/DiskAdaptor.cc
  2635. * src/DiskAdaptor.h
  2636. * src/DownloadContext.cc
  2637. * src/DownloadContext.h
  2638. * src/DownloadEngine.cc
  2639. * src/DownloadEngine.h
  2640. * src/EpollEventPoll.cc
  2641. * src/EpollEventPoll.h
  2642. * src/FtpConnection.cc
  2643. * src/FtpConnection.h
  2644. * src/HttpConnection.cc
  2645. * src/HttpConnection.h
  2646. * src/HttpHeader.cc
  2647. * src/HttpHeader.h
  2648. * src/HttpRequest.cc
  2649. * src/HttpRequest.h
  2650. * src/HttpResponse.cc
  2651. * src/HttpResponse.h
  2652. * src/LibsslTLSContext.cc
  2653. * src/LibsslTLSContext.h
  2654. * src/MSEHandshake.cc
  2655. * src/MSEHandshake.h
  2656. * src/MetalinkEntry.cc
  2657. * src/MetalinkEntry.h
  2658. * src/MetalinkParserController.cc
  2659. * src/MetalinkParserController.h
  2660. * src/MetalinkParserStateMachine.cc
  2661. * src/MetalinkParserStateMachine.h
  2662. * src/MultiDiskAdaptor.cc
  2663. * src/MultiDiskAdaptor.h
  2664. * src/NetrcAuthResolver.cc
  2665. * src/NetrcAuthResolver.h
  2666. * src/Peer.cc
  2667. * src/Peer.h
  2668. * src/PeerSessionResource.cc
  2669. * src/PeerSessionResource.h
  2670. * src/Piece.cc
  2671. * src/Piece.h
  2672. * src/PieceStatMan.cc
  2673. * src/PieceStatMan.h
  2674. * src/Request.cc
  2675. * src/Request.h
  2676. * src/RequestGroup.cc
  2677. * src/RequestGroup.h
  2678. * src/RequestGroupMan.cc
  2679. * src/RequestGroupMan.h
  2680. * src/RequestSlot.cc
  2681. * src/RequestSlot.h
  2682. * src/SegmentMan.cc
  2683. * src/SegmentMan.h
  2684. * src/SelectEventPoll.cc
  2685. * src/SelectEventPoll.h
  2686. * src/ServerStat.cc
  2687. * src/ServerStat.h
  2688. * src/Signature.cc
  2689. * src/Signature.h
  2690. * src/URIResult.cc
  2691. * src/URIResult.h
  2692. * src/UTPexExtensionMessage.cc
  2693. * src/UTPexExtensionMessage.h
  2694. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Fixed compile error without BitTorrent and Metalink support.
  2696. * src/XmlRpcMethod.cc
  2697. * src/XmlRpcMethodFactory.cc
  2698. * src/XmlRpcMethodImpl.cc
  2699. * src/XmlRpcMethodImpl.h
  2700. * test/XmlRpcMethodTest.cc
  2701. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Rewritten the help message for --allow-overwrite option.
  2703. * doc/aria2c.1.txt
  2704. * src/usage_text.h
  2705. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Fixed typo
  2707. * doc/aria2c.1.txt
  2708. * src/usage_text.h
  2709. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Updated README for 1.4.0 release. Use new table syntax of
  2711. asciidoc.
  2712. * README
  2713. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Documented --xml-rpc-max-request-size option in man page.
  2715. * doc/aria2c.1.txt
  2716. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Moved C_* constants from BtContext to DefaultBtContext.
  2718. * src/BtContext.cc: Removed.
  2719. * src/BtContext.h
  2720. * src/DefaultBtContext.cc
  2721. * src/DefaultBtContext.h
  2722. * src/Makefile.am
  2723. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2725. path key respectively when persing .torrent file.
  2726. * src/BtContext.cc
  2727. * src/BtContext.h
  2728. * src/DefaultBtContext.cc
  2729. * test/DefaultBtContextTest.cc
  2730. * test/utf8.torrent
  2731. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Added --xml-rpc-max-request-size option to limit the size of
  2733. XML-RPC request.
  2734. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Documented XML-RPC API in man page.
  2736. * doc/aria2c.1.txt
  2737. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2739. will break strict-aliasing rules
  2740. * src/PeerConnection.cc
  2741. * test/DHTRoutingTableSerializerTest.cc
  2742. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2744. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2745. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2746. PKG_CHECK_MODULES macro uses latter name.
  2747. * m4/sqlite3.m4
  2748. * src/Makefile.am
  2749. * test/Makefile.am
  2750. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Fixed typo
  2752. * configure.ac
  2753. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2755. presence of libgnutls using pkg-config first. If it fails, fall
  2756. back to old macro libgnutls.m4.
  2757. * configure.ac
  2758. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Use s itself instead of !s.bad()
  2760. * src/CookieStorage.cc
  2761. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Documented --on-download-* option and --save-cookies option in man
  2763. page.
  2764. * doc/aria2c.1.txt
  2765. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Set possible values for --load-cookie option to "/path/to/file".
  2767. * src/OptionHandlerFactory.cc
  2768. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Added --save-cookies option.
  2770. * src/Cookie.cc
  2771. * src/Cookie.h
  2772. * src/CookieStorage.cc
  2773. * src/CookieStorage.h
  2774. * src/MultiUrlRequestInfo.cc
  2775. * src/OptionHandlerFactory.cc
  2776. * src/prefs.cc
  2777. * src/prefs.h
  2778. * src/usage_text.h
  2779. * test/CookieStorageTest.cc
  2780. * test/CookieTest.cc
  2781. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Removed tellAll XML-RPC command because its reponse tends to be
  2783. big if stopped/waiting downloads pile up.
  2784. * src/XmlRpcMethodFactory.cc
  2785. * src/XmlRpcMethodImpl.cc
  2786. * src/XmlRpcMethodImpl.h
  2787. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added the ability to execute command when download starts and
  2789. stops. You can also specify command for particular cases such as
  2790. complete/error download. Added --on-download-start,
  2791. --on-download-stop, --on-download-complete and --on-download-error
  2792. option.
  2793. * src/OptionHandlerFactory.cc
  2794. * src/RequestGroupMan.cc
  2795. * src/prefs.cc
  2796. * src/prefs.h
  2797. * src/usage_text.h
  2798. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Fixed test error
  2800. * test/BencodeTest.cc
  2801. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Added unit tests.
  2803. * test/XmlRpcMethodTest.cc
  2804. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Made exception message more verbose.
  2806. * src/bencode.cc
  2807. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2809. space in console readout. Also they are now shown in MiB/s if
  2810. speed > 1024KiB/s.
  2811. * src/ConsoleStatCalc.cc
  2812. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added SEED to console output, which represents the number of
  2814. seeders currently the client is connecting to.
  2815. * src/ConsoleStatCalc.cc
  2816. * src/ConsoleStatCalc.h
  2817. * src/DownloadEngine.cc
  2818. * src/NullStatCalc.h
  2819. * src/StatCalc.h
  2820. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Added source filename(__FILE__) and line number(__LINE__) to
  2822. exception message.
  2823. * src/AbstractCommand.cc
  2824. * src/AbstractDiskWriter.cc
  2825. * src/AbstractProxyResponseCommand.cc
  2826. * src/BDE.h
  2827. * src/BtAllowedFastMessage.cc
  2828. * src/BtHandshakeMessageValidator.h
  2829. * src/BtHaveAllMessage.cc
  2830. * src/BtHaveNoneMessage.cc
  2831. * src/BtPieceMessage.cc
  2832. * src/BtRejectMessage.cc
  2833. * src/ChunkedDecoder.cc
  2834. * src/CookieStorage.cc
  2835. * src/DHTAnnouncePeerMessage.cc
  2836. * src/DHTEntryPointNameResolveCommand.cc
  2837. * src/DHTMessageFactoryImpl.cc
  2838. * src/DHTMessageTracker.cc
  2839. * src/DHTRoutingTableDeserializer.cc
  2840. * src/DHTRoutingTableSerializer.cc
  2841. * src/DHTSetup.cc
  2842. * src/DHTTokenTracker.cc
  2843. * src/DefaultBtAnnounce.cc
  2844. * src/DefaultBtContext.cc
  2845. * src/DefaultBtInteractive.cc
  2846. * src/DefaultBtMessageFactory.cc
  2847. * src/DefaultBtProgressInfoFile.cc
  2848. * src/DefaultExtensionMessageFactory.cc
  2849. * src/DlAbortEx.h
  2850. * src/DlRetryEx.h
  2851. * src/DownloadCommand.cc
  2852. * src/DownloadEngineFactory.cc
  2853. * src/DownloadFailureException.h
  2854. * src/Exception.cc
  2855. * src/Exception.h
  2856. * src/ExpatMetalinkProcessor.cc
  2857. * src/ExpatXmlRpcRequestProcessor.cc
  2858. * src/FallocFileAllocationIterator.cc
  2859. * src/FatalException.h
  2860. * src/FtpConnection.cc
  2861. * src/FtpFinishDownloadCommand.cc
  2862. * src/FtpInitiateConnectionCommand.cc
  2863. * src/FtpNegotiationCommand.cc
  2864. * src/GZipDecoder.cc
  2865. * src/HandshakeExtensionMessage.cc
  2866. * src/HttpConnection.cc
  2867. * src/HttpHeaderProcessor.cc
  2868. * src/HttpInitiateConnectionCommand.cc
  2869. * src/HttpResponse.cc
  2870. * src/HttpResponseCommand.cc
  2871. * src/HttpServer.cc
  2872. * src/HttpSkipResponseCommand.cc
  2873. * src/InitiateConnectionCommandFactory.cc
  2874. * src/IteratableChunkChecksumValidator.cc
  2875. * src/LibgcryptARC4Context.h
  2876. * src/LibgcryptARC4Decryptor.h
  2877. * src/LibgcryptARC4Encryptor.h
  2878. * src/LibgcryptDHKeyExchange.h
  2879. * src/LibgnutlsTLSContext.cc
  2880. * src/LibsslARC4Context.h
  2881. * src/LibsslARC4Decryptor.h
  2882. * src/LibsslARC4Encryptor.h
  2883. * src/LibsslDHKeyExchange.h
  2884. * src/LibsslTLSContext.cc
  2885. * src/MSEHandshake.cc
  2886. * src/MessageDigestHelper.cc
  2887. * src/MetalinkHelper.cc
  2888. * src/MultiDiskAdaptor.cc
  2889. * src/NameMatchOptionHandler.h
  2890. * src/NameResolver.cc
  2891. * src/Netrc.cc
  2892. * src/NsCookieParser.cc
  2893. * src/OptionHandlerException.cc
  2894. * src/OptionHandlerException.h
  2895. * src/OptionHandlerImpl.h
  2896. * src/OptionParser.cc
  2897. * src/ParameterizedStringParser.cc
  2898. * src/PeerAbstractCommand.cc
  2899. * src/PeerConnection.cc
  2900. * src/PeerMessageUtil.cc
  2901. * src/PeerReceiveHandshakeCommand.cc
  2902. * src/Platform.cc
  2903. * src/ReceiverMSEHandshakeCommand.cc
  2904. * src/RecoverableException.h
  2905. * src/RequestGroup.cc
  2906. * src/SimpleLogger.cc
  2907. * src/SocketCore.cc
  2908. * src/Sqlite3MozCookieParser.cc
  2909. * src/UTPexExtensionMessage.cc
  2910. * src/Util.cc
  2911. * src/XML2SAXMetalinkProcessor.cc
  2912. * src/Xml2XmlRpcRequestProcessor.cc
  2913. * src/XmlRpcMethodImpl.cc
  2914. * src/bencode.cc
  2915. * src/download_helper.cc
  2916. * src/messageDigest.h
  2917. * test/ExceptionTest.cc
  2918. * test/TestUtil.cc
  2919. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Bump up version number to 1.4.0
  2921. * configure.ac
  2922. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2923. Added 2files.metalink to EXTRA_DIST
  2924. * test/Makefile.am
  2925. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Added missing 2files.metalink
  2927. * test/2files.metalink
  2928. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Show "[MEMORY]" prefix before filename in download summary if it
  2930. is downloaded into memory.
  2931. * src/DownloadResult.h
  2932. * src/RequestGroup.cc
  2933. * src/RequestGroupMan.cc
  2934. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2936. * src/ExpatXmlRpcRequestProcessor.cc
  2937. * src/Xml2XmlRpcRequestProcessor.cc
  2938. * src/message.h
  2939. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Defined const BDEs to avoid duplicate instantiation.
  2941. Defined MSG_GID_NOT_PROVIDED.
  2942. * src/XmlRpcMethodImpl.cc
  2943. * src/message.h
  2944. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Code cleanup
  2946. * src/Xml2XmlRpcRequestProcessor.cc
  2947. * src/Xml2XmlRpcRequestProcessor.h
  2948. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. Defined ENABLE_XML_RPC
  2950. * configure.ac
  2951. * configure
  2952. * config.h.in
  2953. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Added ExpatXmlRpcRequestProcessor
  2955. * src/ExpatXmlRpcRequestProcessor.cc
  2956. * src/ExpatXmlRpcRequestProcessor.h
  2957. * src/Makefile.am
  2958. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Added tests for addTorrent and addMetalink command.
  2960. * test/TestUtil.cc
  2961. * test/TestUtil.h
  2962. * test/XmlRpcMethodTest.cc
  2963. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Corrected the description of --file-allocation option.
  2965. * doc/aria2c.1.txt
  2966. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Added tellAll command.
  2968. * src/XmlRpcMethodFactory.cc
  2969. * src/XmlRpcMethodImpl.cc
  2970. * src/XmlRpcMethodImpl.h
  2971. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2973. * src/XmlRpcMethodImpl.cc
  2974. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Added changeGlobalOption command. Currently,
  2976. max-overall-download-limit and max-overall-upload-limit option are
  2977. available.
  2978. * src/RequestGroupMan.h
  2979. * src/XmlRpcMethod.cc
  2980. * src/XmlRpcMethod.h
  2981. * src/XmlRpcMethodFactory.cc
  2982. * src/XmlRpcMethodImpl.cc
  2983. * src/XmlRpcMethodImpl.h
  2984. * test/XmlRpcMethodTest.cc
  2985. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Added changeOption command. Currently, max-download-limit,
  2987. max-upload-limit option are available in this command.
  2988. * src/RequestGroup.h
  2989. * src/XmlRpcMethod.cc
  2990. * src/XmlRpcMethod.h
  2991. * src/XmlRpcMethodFactory.cc
  2992. * src/XmlRpcMethodImpl.cc
  2993. * src/XmlRpcMethodImpl.h
  2994. * test/XmlRpcMethodTest.cc
  2995. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Added purgeDownloadResult command.
  2997. * src/RequestGroupMan.cc
  2998. * src/RequestGroupMan.h
  2999. * src/XmlRpcMethodFactory.cc
  3000. * src/XmlRpcMethodImpl.cc
  3001. * src/XmlRpcMethodImpl.h
  3002. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Refactored.
  3004. * src/XmlRpcMethod.cc
  3005. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3007. XmlRpcResponse.
  3008. * src/HttpServerBodyCommand.cc
  3009. * src/Makefile.am
  3010. * src/XmlRpcMethod.cc
  3011. * src/XmlRpcMethod.h
  3012. * src/XmlRpcMethodImpl.cc
  3013. * src/XmlRpcResponse.cc
  3014. * src/XmlRpcResponse.h
  3015. * test/XmlRpcMethodTest.cc
  3016. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. In XML-RPC option struct, header and index-out option can take
  3018. array as value.
  3019. * src/XmlRpcMethod.cc
  3020. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Removed unused option member from PeerConnection.
  3022. * src/InitiatorMSEHandshakeCommand.cc
  3023. * src/PeerConnection.cc
  3024. * src/PeerConnection.h
  3025. * src/PeerInteractionCommand.cc
  3026. * src/PeerReceiveHandshakeCommand.cc
  3027. * src/ReceiverMSEHandshakeCommand.cc
  3028. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Added "seeder" key to getPeers response.
  3030. * src/XmlRpcMethodImpl.cc
  3031. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Added addMetalink XML-RPC command.
  3033. * src/XmlRpcMethodFactory.cc
  3034. * src/XmlRpcMethodImpl.cc
  3035. * src/XmlRpcMethodImpl.h
  3036. * src/download_helper.cc
  3037. * src/download_helper.h
  3038. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Fixed the bug that POU peers are never choked in seeding.
  3040. * src/BtSeederStateChoke.cc
  3041. * src/BtSeederStateChoke.h
  3042. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Added web-seeding URI handling in addTorrent command.
  3044. * src/XmlRpcMethodImpl.cc
  3045. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Added "length" key to getFiles response.
  3047. * src/XmlRpcMethodImpl.cc
  3048. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Moved --no-netrc option from ftp option section to http/ftp option
  3050. section.
  3051. * doc/aria2c.1.txt
  3052. * src/OptionHandlerFactory.cc
  3053. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Removed garbage "\" character before '
  3055. * doc/aria2c.1.txt
  3056. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3057. Removed garbage "\" character before http.
  3058. * doc/aria2c.1.txt
  3059. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Documented additional options that can be specified in -i list.
  3061. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3062. and --xml-rpc-passwd. Removed --enable-http-server and
  3063. --http-server-listen-port.
  3064. * doc/aria2c.1.txt
  3065. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3067. * src/DefaultPeerStorage.cc
  3068. * src/DefaultPeerStorage.h
  3069. * src/PeerStorage.h
  3070. * src/XmlRpcMethodImpl.cc
  3071. * test/MockPeerStorage.h
  3072. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Put a call to Socket::isReadable() in try block.
  3074. * src/HttpServerBodyCommand.cc
  3075. * src/HttpServerCommand.cc
  3076. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3078. exception , so it is now in try block.
  3079. * src/HttpServerResponseCommand.cc
  3080. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Added "amChoking" and "peerChoking" key in getPeers response.
  3082. * src/XmlRpcMethodImpl.cc
  3083. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Added test case for zero-length filter.
  3085. * test/BitfieldManTest.cc
  3086. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. getFiles command now returns file data for finished/stopped
  3088. downloads.
  3089. * src/XmlRpcMethodImpl.cc
  3090. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. DownloadResult now has the list of FileEntry. The download
  3092. summary displays the path of first selected file and the number of
  3093. remaining files for multi-file torrent.
  3094. * src/DownloadResult.h
  3095. * src/RequestGroup.cc
  3096. * src/RequestGroupMan.cc
  3097. * test/RequestGroupTest.cc
  3098. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Fixed segmentation fault error when no file is selected in
  3100. multi-file torrent.
  3101. * src/BitfieldMan.cc
  3102. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Escaped <,>,& character in XML-RPC response.
  3104. * src/XmlRpcMethod.cc
  3105. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Throw DlAbortEx instead of FatalException during parsing options
  3107. because we don't want for aria2 to quit when bad option is passed
  3108. via XML-RPC.
  3109. * src/OptionHandlerException.cc
  3110. * src/OptionHandlerException.h
  3111. * src/OptionHandlerImpl.h
  3112. * src/OptionParser.cc
  3113. * src/OptionParser.h
  3114. * src/PStringSegment.cc
  3115. * src/ParameterizedStringParser.cc
  3116. * src/download_helper.cc
  3117. * test/ParameterizedStringParserTest.cc
  3118. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Selecting files are now done in
  3120. DefaultBtContext::setFileFileter().
  3121. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3122. functions are removed because they are no longer used. Creating
  3123. filter in BitfieldMan is done in new funtion
  3124. PieceStorage::setupFileFilter()
  3125. * src/BtContext.cc
  3126. * src/BtContext.h
  3127. * src/DefaultBtContext.cc
  3128. * src/DefaultBtContext.h
  3129. * src/DefaultPieceStorage.cc
  3130. * src/DefaultPieceStorage.h
  3131. * src/DiskAdaptor.cc
  3132. * src/DiskAdaptor.h
  3133. * src/PieceStorage.h
  3134. * src/RequestGroup.cc
  3135. * src/UnknownLengthPieceStorage.h
  3136. * src/XmlRpcMethodImpl.cc
  3137. * test/DefaultBtContextTest.cc
  3138. * test/MockBtContext.h
  3139. * test/MockPieceStorage.h
  3140. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Fixed compile error on Mac OS X
  3142. * src/HttpServer.cc
  3143. * src/XmlRpcMethod.h
  3144. * src/XmlRpcMethodImpl.cc
  3145. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Use std::binary_search instead of std::find
  3147. * src/DefaultPieceStorage.cc
  3148. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Removed unnecessary BDE() call; leave them to implicit conversion.
  3150. * src/XmlRpcMethodImpl.cc
  3151. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Return connections and gid in string
  3153. * src/XmlRpcMethodImpl.cc
  3154. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3155. Renamed addURI as addUri
  3156. * src/XmlRpcMethodFactory.cc
  3157. * src/XmlRpcMethodImpl.cc
  3158. * src/XmlRpcMethodImpl.h
  3159. * test/XmlRpcMethodTest.cc
  3160. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Renamed addTorrentFile as addTorrent
  3162. * src/XmlRpcMethodFactory.cc
  3163. * src/XmlRpcMethodImpl.cc
  3164. * src/XmlRpcMethodImpl.h
  3165. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. The information for files, URIs, peers are removed from the
  3167. reponse of TellaActive, TellStatus command because they tend to be
  3168. large. Instead they can be retrieved by the dedicated commands:
  3169. getFiles, getUris and getPeers respectively.
  3170. * src/XmlRpcMethodFactory.cc
  3171. * src/XmlRpcMethodImpl.cc
  3172. * src/XmlRpcMethodImpl.h
  3173. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Removed --max-overall-upload-limit and
  3175. --max-overall-download-limit option from listRequestOptions.
  3176. * src/download_helper.cc
  3177. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Log incoming host in HttpListenCommand.
  3179. * src/HttpListenCommand.cc
  3180. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3182. --xml-rpc-passwd option.
  3183. * src/HttpServer.cc
  3184. * src/HttpServer.h
  3185. * src/HttpServerCommand.cc
  3186. * src/OptionHandlerFactory.cc
  3187. * src/prefs.cc
  3188. * src/prefs.h
  3189. * src/usage_text.h
  3190. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3192. processing 0 length request.
  3193. * src/HttpServerBodyCommand.cc
  3194. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Removed --enable-http-server and --http-server-listen-port
  3196. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3197. instead. The original feature for --enable-http-server that
  3198. reports download progress in HTML was officially removed. Persist
  3199. XML-RPC connection if client supports keep-alive.
  3200. * src/DownloadEngineFactory.cc
  3201. * src/HttpServerCommand.cc
  3202. * src/HttpServerResponseCommand.cc
  3203. * src/Makefile.am
  3204. * src/Makefile.in
  3205. * src/OptionHandlerFactory.cc
  3206. * src/RequestGroupMan.cc
  3207. * src/main.cc
  3208. * src/option_processing.cc
  3209. * src/prefs.cc
  3210. * src/prefs.h
  3211. * src/usage_text.h
  3212. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Added "uris" key to the response of tellStatus command. Added
  3214. "connections" key to the response of tellStatus and tellActive
  3215. command.
  3216. * src/XmlRpcMethodImpl.cc
  3217. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3219. Added TellStatusXmlRpcMethod. Remove command can now remove
  3220. waiting RequestGroup.
  3221. * src/RequestGroupMan.cc
  3222. * src/RequestGroupMan.h
  3223. * src/XmlRpcMethodFactory.cc
  3224. * src/XmlRpcMethodImpl.cc
  3225. * src/XmlRpcMethodImpl.h
  3226. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Initialized _peerId
  3228. * src/Peer.cc
  3229. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Return fault structure for error. FailXmlRpcMethod is renamed as
  3231. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3232. in non-torrent download. Return single param value.
  3233. * src/XmlRpcMethod.cc
  3234. * src/XmlRpcMethodFactory.cc
  3235. * src/XmlRpcMethodImpl.cc
  3236. * src/XmlRpcMethodImpl.h
  3237. * test/XmlRpcMethodTest.cc
  3238. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3240. command.
  3241. * src/RequestGroup.cc
  3242. * src/RequestGroup.h
  3243. * src/RequestGroupMan.cc
  3244. * src/XmlRpcMethodImpl.cc
  3245. * test/RequestGroupTest.cc
  3246. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Added more options that can be specified in -i list and xml-rpc
  3248. add* command.
  3249. * src/download_helper.h
  3250. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. The available options in -i list should be listed in
  3252. listRequestOptions().
  3253. * src/download_helper.cc
  3254. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3256. command.
  3257. * src/XmlRpcMethodImpl.cc
  3258. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Now RequestGroup has its own copy of Option object. This will help
  3260. to give custom option for each RequestGroup.
  3261. addTorrentFile command now takes options.
  3262. * src/AbstractCommand.cc
  3263. * src/AbstractCommand.h
  3264. * src/AbstractProxyRequestCommand.cc
  3265. * src/ActivePeerConnectionCommand.cc
  3266. * src/ActivePeerConnectionCommand.h
  3267. * src/AdaptiveURISelector.cc
  3268. * src/BtCheckIntegrityEntry.cc
  3269. * src/BtDependency.cc
  3270. * src/BtDependency.h
  3271. * src/BtFileAllocationEntry.cc
  3272. * src/BtPostDownloadHandler.cc
  3273. * src/CheckIntegrityEntry.cc
  3274. * src/DownloadCommand.cc
  3275. * src/FtpDownloadCommand.cc
  3276. * src/FtpFinishDownloadCommand.cc
  3277. * src/FtpInitiateConnectionCommand.cc
  3278. * src/FtpNegotiationCommand.cc
  3279. * src/HttpInitiateConnectionCommand.cc
  3280. * src/HttpRequestCommand.cc
  3281. * src/HttpResponseCommand.cc
  3282. * src/HttpSkipResponseCommand.cc
  3283. * src/InitiateConnectionCommand.cc
  3284. * src/InitiateConnectionCommandFactory.cc
  3285. * src/InitiatorMSEHandshakeCommand.cc
  3286. * src/InitiatorMSEHandshakeCommand.h
  3287. * src/Metalink2RequestGroup.cc
  3288. * src/Metalink2RequestGroup.h
  3289. * src/MetalinkPostDownloadHandler.cc
  3290. * src/MultiUrlRequestInfo.cc
  3291. * src/MultiUrlRequestInfo.h
  3292. * src/PeerAbstractCommand.cc
  3293. * src/PeerInteractionCommand.cc
  3294. * src/PeerInteractionCommand.h
  3295. * src/PeerReceiveHandshakeCommand.cc
  3296. * src/PeerReceiveHandshakeCommand.h
  3297. * src/RequestGroup.cc
  3298. * src/RequestGroup.h
  3299. * src/TrackerWatcherCommand.cc
  3300. * src/TrackerWatcherCommand.h
  3301. * src/XmlRpcMethod.cc
  3302. * src/XmlRpcMethod.h
  3303. * src/XmlRpcMethodImpl.cc
  3304. * src/download_helper.cc
  3305. * src/download_helper.h
  3306. * src/main.cc
  3307. * test/BtDependencyTest.cc
  3308. * test/BtPostDownloadHandlerTest.cc
  3309. * test/DefaultBtMessageDispatcherTest.cc
  3310. * test/DownloadHandlerFactoryTest.cc
  3311. * test/DownloadHelperTest.cc
  3312. * test/Metalink2RequestGroupTest.cc
  3313. * test/MetalinkPostDownloadHandlerTest.cc
  3314. * test/RequestGroupManTest.cc
  3315. * test/RequestGroupTest.cc
  3316. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Added tellActiveStatus xml-rpc command which reports download
  3318. status of active downloads.
  3319. * src/XmlRpcMethodFactory.cc
  3320. * src/XmlRpcMethodImpl.cc
  3321. * src/XmlRpcMethodImpl.h
  3322. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. Added addTorrentFile xml-rpc command which receives uploaded
  3324. torrent file and add download for it.
  3325. * src/RequestGroupMan.cc
  3326. * src/XmlRpcMethodFactory.cc
  3327. * src/XmlRpcMethodImpl.cc
  3328. * src/XmlRpcMethodImpl.h
  3329. * src/download_helper.cc
  3330. * src/download_helper.h
  3331. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. Added remove xml-rpc command which removes specified download.
  3333. There is a known issue: the removed unfinished downloads are
  3334. reported ERR when aria2 exits. They should be reported as INPR.
  3335. * src/RequestGroupMan.cc
  3336. * src/RequestGroupMan.h
  3337. * src/XmlRpcMethodFactory.cc
  3338. * src/XmlRpcMethodImpl.cc
  3339. * src/XmlRpcMethodImpl.h
  3340. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. If --enable-http-server is enabled, don't stop aria2 when all
  3342. download finished and don't quit when no files to download at
  3343. start up.
  3344. * src/RequestGroupMan.cc
  3345. * src/main.cc
  3346. * src/option_processing.cc
  3347. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3348. Added missing AM_CONDITIONAL
  3349. * configure.ac
  3350. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Added xml-rpc functionality. Currently only addURI commad is
  3352. supported. To enable xml-rpc, run aria2 with
  3353. --enable-http-server. This option name is temporal and will be
  3354. changed. The feature that reports download progress in html format
  3355. is temporarily disabled.
  3356. * src/HttpServer.cc
  3357. * src/HttpServer.h
  3358. * src/HttpServerBodyCommand.cc
  3359. * src/HttpServerBodyCommand.h
  3360. * src/HttpServerCommand.cc
  3361. * src/HttpServerResponseCommand.cc
  3362. * src/Makefile.am
  3363. * src/OptionParser.cc
  3364. * src/OptionParser.h
  3365. * src/RequestGroupMan.cc
  3366. * src/RequestGroupMan.h
  3367. * src/XmlRpcMethod.cc
  3368. * src/XmlRpcMethod.h
  3369. * src/XmlRpcMethodFactory.cc
  3370. * src/XmlRpcMethodFactory.h
  3371. * src/XmlRpcMethodImpl.cc
  3372. * src/XmlRpcMethodImpl.h
  3373. * src/download_helper.cc
  3374. * src/download_helper.h
  3375. * test/Makefile.am
  3376. * test/XmlRpcMethodTest.cc
  3377. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Added xml-rpc request parser. The supported value types are:
  3379. i4/int, string, double, struct, array, base64. Currently only
  3380. libxml2 version is provided.
  3381. * src/Xml2XmlRpcRequestProcessor.cc
  3382. * src/Xml2XmlRpcRequestProcessor.h
  3383. * src/XmlRpcElements.cc
  3384. * src/XmlRpcElements.h
  3385. * src/XmlRpcRequest.h
  3386. * src/XmlRpcRequestParserController.cc
  3387. * src/XmlRpcRequestParserController.h
  3388. * src/XmlRpcRequestParserState.h
  3389. * src/XmlRpcRequestParserStateImpl.cc
  3390. * src/XmlRpcRequestParserStateImpl.h
  3391. * src/XmlRpcRequestParserStateMachine.cc
  3392. * src/XmlRpcRequestParserStateMachine.h
  3393. * src/XmlRpcRequestProcessor.h
  3394. * test/XmlRpcRequestParserControllerTest.cc
  3395. * test/XmlRpcRequestProcessorTest.cc
  3396. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. * Release 1.3.3
  3398. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Fixed compile error since r1202.
  3400. * src/ExpatMetalinkProcessor.cc
  3401. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Updated Ukrainian, Russian and Simplified Chinese
  3403. translations. Thanks to all translators.
  3404. * po/ru.po
  3405. * po/uk.po
  3406. * po/zh_CN.po
  3407. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Pass reference of Option object instead of pointer.
  3409. * src/download_helper.cc
  3410. * src/download_helper.h
  3411. * src/main.cc
  3412. * test/DownloadHelperTest.cc
  3413. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3415. from option directly. Instead, get them from RequestGroup.
  3416. * src/ActivePeerConnectionCommand.cc
  3417. * src/ActivePeerConnectionCommand.h
  3418. * src/PeerReceiveHandshakeCommand.cc
  3419. * src/RequestGroup.h
  3420. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Removed unused uploadLimitCheck and uploadLimit from
  3422. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3423. PeerInteractionCommand.
  3424. * src/PeerAbstractCommand.cc
  3425. * src/PeerAbstractCommand.h
  3426. * src/PeerInteractionCommand.cc
  3427. * src/PeerInteractionCommand.h
  3428. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Fixed broken file renaming feature since r1202.
  3430. * src/FtpNegotiationCommand.cc
  3431. * src/FtpNegotiationCommand.h
  3432. * src/HttpResponseCommand.cc
  3433. * src/RequestGroup.cc
  3434. * src/RequestGroup.h
  3435. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Removed unused debug log
  3437. * src/SocketCore.cc
  3438. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Generated configure and Makefile.in using autoconf 2.63 and
  3440. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3441. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3442. * configure.ac
  3443. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Moved piece statistics stuff to new PieceStatMan class.
  3445. Refactored PieceSelector interface.
  3446. * src/DefaultPieceStorage.cc
  3447. * src/DefaultPieceStorage.h
  3448. * src/LongestSequencePieceSelector.cc
  3449. * src/LongestSequencePieceSelector.h
  3450. * src/Makefile.am
  3451. * src/PieceSelector.h
  3452. * src/PieceStatMan.cc
  3453. * src/PieceStatMan.h
  3454. * src/RarestPieceSelector.cc
  3455. * src/RarestPieceSelector.h
  3456. * src/RequestGroup.cc
  3457. * test/DefaultPieceStorageTest.cc
  3458. * test/InOrderPieceSelector.h
  3459. * test/Makefile.am
  3460. * test/PieceStatManTest.cc
  3461. * test/RarestPieceSelectorTest.cc
  3462. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Added static member _protocolFamily to SocketCore. By default,
  3464. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3465. address. Sometime SocketCore::bind() and
  3466. SocketCore::establishConnection() use difference protocl family
  3467. and latter cannot connect to former. To avoid this situation, we
  3468. limit protocol family to AF_INET for unit tests.
  3469. * src/SocketCore.cc
  3470. * src/SocketCore.h
  3471. * test/AllTest.cc
  3472. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Avoid std::bad_alloc for negative bencode string length.
  3474. * src/bencode.cc
  3475. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Supported segmented downloading with chunked transfer encoding and
  3477. content-length.
  3478. * src/DownloadCommand.cc
  3479. * src/HttpResponseCommand.cc
  3480. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Bump up version number to 1.3.3
  3482. * configure.ac
  3483. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3485. from 4096 to 65536 (for insanely large ftp login banners)
  3486. * src/FtpConnection.h
  3487. * test/FtpConnectionTest.cc
  3488. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. In DefaultBtContext::getActualBasePath(), return first
  3490. FileEntry::getPath() for single file torrent.
  3491. * src/DefaultBtContext.cc
  3492. * test/DefaultBtContextTest.cc
  3493. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3495. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3496. Removed _directIOAllowed member from DiskWriter.
  3497. * src/AbstractDiskWriter.cc
  3498. * src/AbstractDiskWriter.h
  3499. * src/AbstractSingleDiskAdaptor.cc
  3500. * src/AbstractSingleDiskAdaptor.h
  3501. * src/BinaryStream.h
  3502. * src/ByteArrayDiskWriter.h
  3503. * src/DefaultPieceStorage.cc
  3504. * src/DiskWriter.h
  3505. * src/MultiDiskAdaptor.cc
  3506. * src/MultiDiskAdaptor.h
  3507. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Now the constructor of AbstractDiskWriter takes filename as an
  3509. argument and filename argument is removed from openFile(),
  3510. initAndOpenFile(), openExistingFile() interface. storeDir member
  3511. and its accessor functions are removed from DiskAdaptor because it
  3512. is not used anymore. size() member function of DefaultDiskWriter,
  3513. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3514. opening file.
  3515. * src/AbstractDiskWriter.cc
  3516. * src/AbstractDiskWriter.h
  3517. * src/AbstractSingleDiskAdaptor.cc
  3518. * src/AbstractSingleDiskAdaptor.h
  3519. * src/ByteArrayDiskWriter.cc
  3520. * src/ByteArrayDiskWriter.h
  3521. * src/ByteArrayDiskWriterFactory.cc
  3522. * src/ByteArrayDiskWriterFactory.h
  3523. * src/DefaultDiskWriter.cc
  3524. * src/DefaultDiskWriter.h
  3525. * src/DefaultDiskWriterFactory.cc
  3526. * src/DefaultDiskWriterFactory.h
  3527. * src/DefaultPieceStorage.cc
  3528. * src/DirectDiskAdaptor.cc
  3529. * src/DirectDiskAdaptor.h
  3530. * src/DiskAdaptor.h
  3531. * src/DiskWriter.h
  3532. * src/DiskWriterFactory.h
  3533. * src/MessageDigestHelper.cc
  3534. * src/MultiDiskAdaptor.cc
  3535. * src/RequestGroup.cc
  3536. * src/UnknownLengthPieceStorage.cc
  3537. * src/Util.cc
  3538. * test/DefaultDiskWriterTest.cc
  3539. * test/DirectDiskAdaptorTest.cc
  3540. * test/FallocFileAllocationIteratorTest.cc
  3541. * test/MessageDigestHelperTest.cc
  3542. * test/MetalinkProcessorTest.cc
  3543. * test/MultiDiskAdaptorTest.cc
  3544. * test/MultiFileAllocationIteratorTest.cc
  3545. * test/SingleFileAllocationIteratorTest.cc
  3546. * test/UtilTest.cc
  3547. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Fixed the bug that aria2 aborts when --select-file is used. This
  3549. bug was introduced in r1199.
  3550. * src/MultiDiskAdaptor.cc
  3551. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Code cleanup
  3553. * test/MockPieceStorage.cc
  3554. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Fixed the bug that read-only file with wrong file size will cause
  3556. error because it cannot be truncated to the correct size. Now if
  3557. file size is different than the expected one, re-open file in
  3558. writable mode.
  3559. * src/AbstractSingleDiskAdaptor.cc
  3560. * src/AbstractSingleDiskAdaptor.h
  3561. * src/BtCheckIntegrityEntry.cc
  3562. * src/DiskAdaptor.h
  3563. * src/MultiDiskAdaptor.h
  3564. * src/RequestGroup.cc
  3565. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Fixed the bug that with --check-integrity option aria2 reports
  3567. downloaded file size is 0 even if some parts of file is correctly
  3568. downloaded. This bug is reproducible for the download that a file
  3569. includes last piece is missing. This bug doesn't reveal for
  3570. single-torrent with file allocation on.
  3571. * src/IteratableChecksumValidator.cc
  3572. * test/IteratableChecksumValidatorTest.cc
  3573. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3575. * src/RequestGroupMan.cc
  3576. * src/AdaptiveURISelector.cc
  3577. * src/AdaptiveURISelector.h
  3578. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. * Release 1.3.2
  3580. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Updated README
  3582. * README
  3583. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Updated Ukrainian translations. Thanks to Alexander10.
  3585. * po/uk.po
  3586. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Code cleanup
  3588. * src/MetalinkParserStateMachine.cc
  3589. * src/MetalinkParserStateMachine.h
  3590. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3592. and expat simultaneously, MetalinkProcessor is now not base class
  3593. and it is directly implemented in XML2SAXMetalinkProcessor and
  3594. ExpatMetalinkProcessor.
  3595. * src/ExpatMetalinkProcessor.cc
  3596. * src/ExpatMetalinkProcessor.h
  3597. * src/Makefile.am
  3598. * src/MetalinkHelper.cc
  3599. * src/MetalinkProcessor.h
  3600. * src/MetalinkProcessorFactory.cc: Removed.
  3601. * src/MetalinkProcessorFactory.h: Removed
  3602. * src/XML2SAXMetalinkProcessor.cc
  3603. * src/XML2SAXMetalinkProcessor.h
  3604. * test/MetalinkProcessorTest.cc
  3605. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Bump up version number to 1.3.2
  3607. * configure.ac
  3608. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Added missing file.
  3610. * test/Makefile.am
  3611. * test/url-list-singleFileEndsWithSlash.torrent
  3612. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3614. request.
  3615. * src/AnnounceList.cc
  3616. * src/AnnounceList.h
  3617. * src/BDE.cc: Added
  3618. * src/BDE.h: Added
  3619. * src/DHTAbstractMessage.cc
  3620. * src/DHTAbstractMessage.h
  3621. * src/DHTAnnouncePeerMessage.cc
  3622. * src/DHTAnnouncePeerMessage.h
  3623. * src/DHTAnnouncePeerReplyMessage.cc
  3624. * src/DHTAnnouncePeerReplyMessage.h
  3625. * src/DHTFindNodeMessage.cc
  3626. * src/DHTFindNodeMessage.h
  3627. * src/DHTFindNodeReplyMessage.cc
  3628. * src/DHTFindNodeReplyMessage.h
  3629. * src/DHTGetPeersMessage.cc
  3630. * src/DHTGetPeersMessage.h
  3631. * src/DHTGetPeersReplyMessage.cc
  3632. * src/DHTGetPeersReplyMessage.h
  3633. * src/DHTMessageFactory.h
  3634. * src/DHTMessageFactoryImpl.cc
  3635. * src/DHTMessageFactoryImpl.h
  3636. * src/DHTMessageReceiver.cc
  3637. * src/DHTMessageTracker.cc
  3638. * src/DHTMessageTracker.h
  3639. * src/DHTPingMessage.cc
  3640. * src/DHTPingMessage.h
  3641. * src/DHTPingReplyMessage.cc
  3642. * src/DHTPingReplyMessage.h
  3643. * src/DHTQueryMessage.cc
  3644. * src/DHTQueryMessage.h
  3645. * src/DHTResponseMessage.cc
  3646. * src/DHTResponseMessage.h
  3647. * src/DefaultBtAnnounce.cc
  3648. * src/DefaultBtContext.cc
  3649. * src/DefaultBtContext.h
  3650. * src/HandshakeExtensionMessage.cc
  3651. * src/Makefile.am
  3652. * src/PeerListProcessor.h
  3653. * src/UTPexExtensionMessage.cc
  3654. * src/bencode.cc
  3655. * src/bencode.h
  3656. * test/AnnounceListTest.cc
  3657. * test/BDETest.cc: Added
  3658. * test/BencodeTest.cc
  3659. * test/DHTAnnouncePeerMessageTest.cc
  3660. * test/DHTAnnouncePeerReplyMessageTest.cc
  3661. * test/DHTFindNodeMessageTest.cc
  3662. * test/DHTFindNodeReplyMessageTest.cc
  3663. * test/DHTGetPeersMessageTest.cc
  3664. * test/DHTGetPeersReplyMessageTest.cc
  3665. * test/DHTMessageFactoryImplTest.cc
  3666. * test/DHTMessageTrackerTest.cc
  3667. * test/DHTPingMessageTest.cc
  3668. * test/DHTPingReplyMessageTest.cc
  3669. * test/Makefile.am
  3670. * test/MockDHTMessageFactory.h
  3671. * test/PeerListProcessorTest.cc
  3672. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Use url-list (web-seeding) only for single-file torrent. This is
  3674. basically the same behavior with Metalink file with torrent and
  3675. URIs.
  3676. * src/RequestGroup.cc
  3677. * src/DefaultBtContext.cc
  3678. * test/DefaultBtContextTest.cc
  3679. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Rewritten expr
  3681. * src/array_fun.h
  3682. * test/array_funTest.cc
  3683. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3685. * src/DefaultBtMessageDispatcher.cc
  3686. * src/a2algo.h
  3687. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3688. Removed ExtendedMessagingAware. Instead of using inheritance,
  3689. added ExtensionMessageRegistry and it is passed to
  3690. DefaultExtensionMessageFactory.
  3691. * src/DefaultBtInteractive.cc
  3692. * src/DefaultBtInteractive.h
  3693. * src/DefaultExtensionMessageFactory.cc
  3694. * src/DefaultExtensionMessageFactory.h
  3695. * src/ExtendedMessagingAware.h: Removed.
  3696. * src/ExtensionMessageFactory.h
  3697. * src/ExtensionMessageRegistry.h: Added.
  3698. * src/Makefile.am
  3699. * src/PeerInteractionCommand.cc
  3700. * test/DefaultExtensionMessageFactoryTest.cc
  3701. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Fixed typo in log messages
  3703. * src/MSEHandshake.cc
  3704. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Fixed the bug that prevents torrent download from finishing. The
  3706. bug doesn't reveal for all torrents. The torrents affected this
  3707. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3708. of pieces.
  3709. * src/bitfield.h
  3710. * test/bitfieldTest.cc
  3711. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Code cleanup
  3713. * src/PeerListProcessor.h
  3714. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Removed RequestGroupAware
  3716. * src/AbstractCommand.cc
  3717. * src/AbstractCommand.h
  3718. * src/ActivePeerConnectionCommand.cc
  3719. * src/ActivePeerConnectionCommand.h
  3720. * src/DHTGetPeersCommand.cc
  3721. * src/DHTGetPeersCommand.h
  3722. * src/InitiatorMSEHandshakeCommand.cc
  3723. * src/InitiatorMSEHandshakeCommand.h
  3724. * src/Makefile.am
  3725. * src/PeerInitiateConnectionCommand.cc
  3726. * src/PeerInitiateConnectionCommand.h
  3727. * src/PeerInteractionCommand.cc
  3728. * src/PeerInteractionCommand.h
  3729. * src/RealtimeCommand.cc
  3730. * src/RealtimeCommand.h
  3731. * src/RequestGroupAware.cc: Removed
  3732. * src/RequestGroupAware.h: Removed
  3733. * src/SeedCheckCommand.cc
  3734. * src/SeedCheckCommand.h
  3735. * src/SleepCommand.cc
  3736. * src/TrackerWatcherCommand.cc
  3737. * src/TrackerWatcherCommand.h
  3738. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Rewritten PeerListProcessor
  3740. * src/PeerListProcessor.h
  3741. * src/CompactPeerListProcessor.h: Removed
  3742. * src/CompactPeerListProcessor.cc: Removed
  3743. * src/DelegatingPeerListProcessor.cc: Removed.
  3744. * src/DefaultBtAnnounce.cc
  3745. * src/Makefile.am
  3746. * src/UTPexExtensionMessage.cc
  3747. * src/DefaultPeerListProcessor.h: Removed.
  3748. * src/DefaultPeerListProcessor.cc: Removed.
  3749. * src/DelegatingPeerListProcessor.h: Removed.
  3750. * test/Makefile.am
  3751. * test/PeerListProcessorTest.cc
  3752. * test/DefaultPeerListProcessorTest.cc: Removed.
  3753. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Rewritten RequestGroupMan::calculateStat()
  3755. * src/RequestGroupMan.cc
  3756. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Removed unnecessary virtual destructor for Request class.
  3758. * src/Request.cc
  3759. * src/Request.h
  3760. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Avoid dynamic_pointer_cast.
  3762. * src/DHTGetPeersCommand.cc
  3763. * src/DHTGetPeersCommand.h
  3764. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3766. BtEvent.
  3767. * src/AbstractBtEventListener.h: Removed.
  3768. * src/AbstractBtMessage.cc
  3769. * src/AbstractBtMessage.h
  3770. * src/BtAbortOutstandingRequestEvent.h
  3771. * src/BtCancelSendingPieceEvent.h
  3772. * src/BtChokedEvent.h: Removed.
  3773. * src/BtChokingEvent.h
  3774. * src/BtEvent.h: Removed
  3775. * src/BtEventListener.h: Removed.
  3776. * src/BtMessage.h
  3777. * src/BtPieceMessage.cc
  3778. * src/BtPieceMessage.h
  3779. * src/BtRequestMessage.cc
  3780. * src/BtRequestMessage.h
  3781. * src/DefaultBtMessageDispatcher.cc
  3782. * src/Makefile.am
  3783. * src/a2functional.h
  3784. * test/BtPieceMessageTest.cc
  3785. * test/BtRequestMessageTest.cc
  3786. * test/DefaultBtMessageDispatcherTest.cc
  3787. * test/MockBtMessage.h
  3788. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Code cleanup
  3790. * src/RequestGroupMan.cc
  3791. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Code cleanup
  3793. * src/DownloadCommand.cc
  3794. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3796. byte.
  3797. * src/DownloadCommand.cc
  3798. * src/bitfield.h
  3799. * test/bitfieldTest.cc
  3800. Fixed the bug that causes infinite loop if broken web server
  3801. returns chunked response without last "0" chunk-size marker and
  3802. closes connection.
  3803. * src/DownloadCommand.cc
  3804. Instantiate properly configured HttpDownloadCommand for
  3805. non-resumable downlaods.
  3806. * src/HttpResponseCommand.cc
  3807. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Rewritten array operation functions.
  3809. * src/BitfieldMan.cc
  3810. * src/array_fun.h
  3811. * test/array_funTest.cc
  3812. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Removed unused variable 'query'
  3814. * src/Request.cc
  3815. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3817. accidentally set to false in r1162.
  3818. * configure.ac
  3819. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Code cleanup
  3821. * src/BNode.cc
  3822. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3823. Increase prefixLength for the bucket which doesn't own local node
  3824. ID when splitting bucket.
  3825. * src/DHTBucket.cc
  3826. * test/DHTBucketTest.cc
  3827. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. * Release 1.3.1
  3829. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Bump up version number to 1.3.1
  3831. * configure.ac
  3832. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Removed unused variable checkPoint. Also removed include directive
  3834. for TimeA2.h.
  3835. * src/SeedCheckCommand.h
  3836. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Fixed the bug that upload limit exceeds the value specified in
  3838. --seed-ratio option depending on the timing of the execution of
  3839. SeedCheckCommand.
  3840. * src/SeedCheckCommand.cc
  3841. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Fixed the bug that removed peer's session upload/download length
  3843. are counted twice in _cachedTransferStat before it is
  3844. re-calculated. This affected the calculation of shara ratio,
  3845. resulting aria2 wrongly determines that specified share ratio is
  3846. reached. Also fixed the typo in calculateStatFor function name.
  3847. * src/BtSetup.cc
  3848. * src/DefaultPeerStorage.cc
  3849. * src/ShareRatioSeedCriteria.h
  3850. * test/ShareRatioSeedCriteriaTest.cc
  3851. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. * Release 1.3.0
  3853. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3855. Nynorsk translations. Thanks to all translators.
  3856. * po/es.po
  3857. * po/ja.po
  3858. * po/nn.po
  3859. * po/ru.po
  3860. * po/uk.po
  3861. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Rewritten isInRange()
  3863. * src/DHTBucket.cc
  3864. * test/DHTBucketTest.cc
  3865. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Fixed typo
  3867. * doc/aria2c.1.txt
  3868. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3869. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3870. malloc/realloc is not used.
  3871. * src/configure.ac
  3872. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3874. char* bitfield instead of stl container for efficiency.
  3875. PieceSelector::select now takes this
  3876. bitfield. RarestPieceSelector::select now also performs
  3877. efficiently for this change. bitfield namespace is introduced and
  3878. it has several helper functions to handle basic bitfield
  3879. operations such as test, count set bits, etc.
  3880. * src/BitfieldMan.cc
  3881. * src/BitfieldMan.h
  3882. * src/DefaultBtRequestFactory.cc
  3883. * src/DefaultPieceStorage.cc
  3884. * src/DefaultPieceStorage.h
  3885. * src/LongestSequencePieceSelector.cc
  3886. * src/LongestSequencePieceSelector.h
  3887. * src/Makefile.am
  3888. * src/Piece.cc
  3889. * src/Piece.h
  3890. * src/PieceSelector.h
  3891. * src/RarestPieceSelector.cc
  3892. * src/RarestPieceSelector.h
  3893. * src/Util.cc
  3894. * src/Util.h
  3895. * src/bitfield.h
  3896. * test/BitfieldManTest.cc
  3897. * test/LongestSequencePieceSelectorTest.cc
  3898. * test/Makefile.am
  3899. * test/RarestPieceSelectorTest.cc
  3900. * test/UtilTest.cc
  3901. * test/bitfieldTest.cc
  3902. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Made accepted socket non-block.
  3904. * src/FtpNegotiationCommand.cc
  3905. * src/HttpListenCommand.cc
  3906. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3908. * src/AbstractSingleDiskAdaptor.cc
  3909. * src/DefaultPieceStorage.cc
  3910. * src/DiskAdaptor.h
  3911. * src/DiskAdaptor.h
  3912. * src/MultiFileAllocationIterator.cc
  3913. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Run
  3915. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3916. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3917. it doesn't need to be called every time when
  3918. DefaultBtInteractive::doInteractionProcessing() is called.
  3919. * src/DefaultBtInteractive.cc
  3920. * src/DefaultBtInteractive.h
  3921. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Documented 'falloc' in man page.
  3923. * doc/aria2c.1.txt
  3924. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Updated doc
  3926. * src/usage_text.h
  3927. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3929. allocation mode uses posix_fallocate() system call to allocate
  3930. file on disk. If you are using newer file systems such as ext4
  3931. (with extents support), btrfs or xfs, 'falloc' is your best
  3932. choice. It allocates large(few GiB) files almost instantly. Don't
  3933. use 'falloc' with legacy file systems such as ext3 because it
  3934. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3935. until allocation finishes. 'falloc' may not be available if your
  3936. system doesn't have posix_fallocate() system call.
  3937. * configure.ac
  3938. * src/AbstractDiskWriter.cc
  3939. * src/AbstractDiskWriter.h
  3940. * src/AbstractSingleDiskAdaptor.cc
  3941. * src/BinaryStream.h
  3942. * src/BtCheckIntegrityEntry.cc
  3943. * src/ByteArrayDiskWriter.h
  3944. * src/CheckIntegrityEntry.cc
  3945. * src/CheckIntegrityEntry.h
  3946. * src/DefaultPieceStorage.cc
  3947. * src/DiskAdaptor.cc
  3948. * src/DiskAdaptor.h
  3949. * src/DiskWriter.h
  3950. * src/FallocFileAllocationIterator.cc
  3951. * src/FallocFileAllocationIterator.h
  3952. * src/FileAllocationEntry.cc
  3953. * src/FileAllocationEntry.h
  3954. * src/Makefile.am
  3955. * src/MultiFileAllocationIterator.cc
  3956. * src/MultiFileAllocationIterator.h
  3957. * src/OptionHandlerFactory.cc
  3958. * src/RequestGroup.cc
  3959. * src/StreamCheckIntegrityEntry.cc
  3960. * src/prefs.cc
  3961. * src/prefs.h
  3962. * src/usage_text.h
  3963. * test/FallocFileAllocationIteratorTest.cc
  3964. * test/Makefile.am
  3965. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Removed duplicate enableDirectIO() call.
  3967. * src/MultiFileAllocationIterator.cc
  3968. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3970. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3971. cost of std::rotate().
  3972. * src/RarestPieceSelector.cc
  3973. * src/RarestPieceSelector.h
  3974. * test/RarestPieceSelectorTest.cc
  3975. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Updated usage doc for --bt-tracker-interval option.
  3977. * src/usage_text.h
  3978. * doc/aria2c.1.txt
  3979. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Documented --bt-tracker-interval option in man page.
  3981. * doc/aria2c.1.txt
  3982. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Added an option to specify the interval between tracker requests.
  3984. If non-zero value is specified, aria2 uses it and ignores the
  3985. interval value in the response of tracker. If zero is specified,
  3986. aria2 determines the inteval value based on the tarcker response
  3987. and download progress.
  3988. * src/DefaultBtAnnounce.cc
  3989. * src/DefaultBtAnnounce.h
  3990. * src/OptionHandlerFactory.cc
  3991. * src/RequestGroup.cc
  3992. * src/prefs.cc
  3993. * src/prefs.h
  3994. * src/usage_text.h
  3995. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Added operator+=, operator-=, operator-
  3997. * src/TransferStat.cc
  3998. * src/TransferStat.h
  3999. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Refactored RarestPieceSelector to reduce CPU load, especially for
  4001. addPieceStats.
  4002. * src/RarestPieceSelector.cc
  4003. * src/RarestPieceSelector.h
  4004. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4005. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4006. getAllMissingBlockIndexes to reduce a call to
  4007. array_function_base::operator[].
  4008. * src/BitfieldMan.cc
  4009. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Cached TransferStat/download speed to avoid to sum them up in each
  4011. call.
  4012. * src/DefaultPeerStorage.cc
  4013. * src/DefaultPeerStorage.h
  4014. * src/SegmentMan.cc
  4015. * src/SegmentMan.h
  4016. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Typedefed cuid_t as int32_t in Command.h
  4018. * src/CUIDCounter.h
  4019. * src/Command.cc
  4020. * src/Command.h
  4021. * src/DownloadEngine.cc
  4022. * src/DownloadEngine.h
  4023. * src/PeerStat.h
  4024. * src/SegmentMan.cc
  4025. * src/SegmentMan.h
  4026. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Reduced the number of calls to PeerStorage::calculateStat() and
  4028. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4029. transfer rate.
  4030. * src/DefaultBtInteractive.cc
  4031. * src/DefaultBtMessageDispatcher.cc
  4032. * src/DefaultPeerStorage.cc
  4033. * src/DefaultPeerStorage.h
  4034. * src/DownloadCommand.cc
  4035. * src/DownloadEngine.cc
  4036. * src/PeerStorage.h
  4037. * src/SegmentMan.cc
  4038. * src/SegmentMan.h
  4039. * test/MockPeerStorage.h
  4040. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Prepended _dir+"/" after joining path elements in torrent file.
  4042. * src/DefaultBtContext.cc
  4043. * test/DefaultBtContextTest.cc
  4044. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Added missing IndexBtMessageValidator.h
  4046. * src/Makefile.am
  4047. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4049. Chinese translations. Thank you for contributing our project.
  4050. * po/id.po
  4051. * po/it.po
  4052. * po/ru.po
  4053. * po/uk.po
  4054. * po/zh_CN.po
  4055. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Updated README
  4057. * README
  4058. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Bump up version number to 1.3.0
  4060. * configure.ac
  4061. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Updated doc
  4063. * src/DefaultBtContext.h
  4064. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Slice/joinPath for name of single torrent.
  4066. * src/DefaultBtContext.cc
  4067. * test/DefaultBtContextTest.cc
  4068. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Updated man page: Documented --dry-run and --index-out
  4070. options. Changed the default value of --uri-selector and
  4071. --http-auth-challenge options. Removed --direct-file-mapping
  4072. option. Added example for --index-out
  4073. * doc/aria2c.1.txt
  4074. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Updated TEXT_DRY_RUN
  4076. * src/usage_text.h
  4077. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Changed the default value of --uri-selector option from 'inorder'
  4079. to 'feedback'
  4080. * src/OptionHandlerFactory.cc
  4081. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Included current URI in exception message.
  4083. * src/AbstractCommand.cc
  4084. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Renamed ServerStatURISelector as FeedbackURISelector.
  4086. * src/FeedbackURISelector.cc
  4087. * src/FeedbackURISelector.h
  4088. * src/Makefile.am
  4089. * src/RequestGroupMan.cc
  4090. * src/ServerStatURISelector.cc
  4091. * src/ServerStatURISelector.h
  4092. * test/FeedbackURISelectorTest.cc
  4093. * test/Makefile.am
  4094. * test/ServerStatURISelectorTest.cc
  4095. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4097. all URIs are tested and their timeout is not reached.
  4098. * src/AdaptiveURISelector.cc
  4099. * src/AdaptiveURISelector.h
  4100. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Changed the default value of --http-auth-challenge option to false.
  4102. * src/OptionHandlerFactory.cc
  4103. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4104. Reuse URIs when all unused URIs run out.
  4105. * src/OptionHandlerFactory.cc
  4106. * src/RequestGroup.cc
  4107. * src/prefs.cc
  4108. * src/prefs.h
  4109. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4111. and BtRejectMessage are derived from RangeBtMessage class.
  4112. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4113. derived from IndexBtMessage class. BtChokeMessage,
  4114. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4115. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4116. ZeroBtMessage class.
  4117. * src/AbstractBtMessage.cc
  4118. * src/AbstractBtMessage.h
  4119. * src/BtAllowedFastMessage.cc
  4120. * src/BtAllowedFastMessage.h
  4121. * src/BtAllowedFastMessageValidator.h: Removed
  4122. * src/BtBitfieldMessage.cc
  4123. * src/BtBitfieldMessage.h
  4124. * src/BtCancelMessage.cc
  4125. * src/BtCancelMessage.h
  4126. * src/BtCancelMessageValidator.h: Removed
  4127. * src/BtChokeMessage.cc
  4128. * src/BtChokeMessage.h
  4129. * src/BtExtendedMessage.cc
  4130. * src/BtExtendedMessage.h
  4131. * src/BtHandshakeMessage.cc
  4132. * src/BtHandshakeMessage.h
  4133. * src/BtHaveAllMessage.cc
  4134. * src/BtHaveAllMessage.h
  4135. * src/BtHaveMessage.cc
  4136. * src/BtHaveMessage.h
  4137. * src/BtHaveMessageValidator.h: Removed
  4138. * src/BtHaveNoneMessage.cc
  4139. * src/BtHaveNoneMessage.h
  4140. * src/BtInterestedMessage.cc
  4141. * src/BtInterestedMessage.h
  4142. * src/BtKeepAliveMessage.cc
  4143. * src/BtKeepAliveMessage.h
  4144. * src/BtNotInterestedMessage.cc
  4145. * src/BtNotInterestedMessage.h
  4146. * src/BtPieceMessage.cc
  4147. * src/BtPieceMessage.h
  4148. * src/BtPortMessage.cc
  4149. * src/BtPortMessage.h
  4150. * src/BtRejectMessage.cc
  4151. * src/BtRejectMessage.h
  4152. * src/BtRejectMessageValidator.h: Removed
  4153. * src/BtRequestMessage.cc
  4154. * src/BtRequestMessage.h
  4155. * src/BtRequestMessageValidator.h: Removed
  4156. * src/BtSuggestPieceMessage.cc
  4157. * src/BtSuggestPieceMessage.h
  4158. * src/BtSuggestPieceMessageValidator.h: Removed
  4159. * src/BtUnchokeMessage.cc
  4160. * src/BtUnchokeMessage.h
  4161. * src/DefaultBtMessageFactory.cc
  4162. * src/IndexBtMessage.cc
  4163. * src/IndexBtMessage.h
  4164. * src/IndexBtMessageValidator.h
  4165. * src/Makefile.am
  4166. * src/PeerMessageUtil.cc
  4167. * src/PeerMessageUtil.h
  4168. * src/RangeBtMessage.cc
  4169. * src/RangeBtMessage.h
  4170. * src/RangeBtMessageValidator.h
  4171. * src/SimpleBtMessage.cc
  4172. * src/SimpleBtMessage.h
  4173. * src/ZeroBtMessage.cc
  4174. * src/ZeroBtMessage.h
  4175. * test/BtRequestMessageTest.cc
  4176. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Reverted usage_text.h to r1093 to avoid to lose translated
  4178. messages.
  4179. * src/usage_text.h
  4180. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4182. declared as non-const previously is now const and defined in class
  4183. definition.
  4184. * src/AbstractBtMessage.cc
  4185. * src/AbstractBtMessage.h
  4186. * src/BtAllowedFastMessage.cc
  4187. * src/BtAllowedFastMessage.h
  4188. * src/BtBitfieldMessage.h
  4189. * src/BtCancelMessage.cc
  4190. * src/BtCancelMessage.h
  4191. * src/BtChokeMessage.cc
  4192. * src/BtChokeMessage.h
  4193. * src/BtExtendedMessage.cc
  4194. * src/BtExtendedMessage.h
  4195. * src/BtHandshakeMessage.cc
  4196. * src/BtHandshakeMessage.h
  4197. * src/BtHaveAllMessage.cc
  4198. * src/BtHaveAllMessage.h
  4199. * src/BtHaveMessage.cc
  4200. * src/BtHaveMessage.h
  4201. * src/BtHaveNoneMessage.cc
  4202. * src/BtHaveNoneMessage.h
  4203. * src/BtInterestedMessage.cc
  4204. * src/BtInterestedMessage.h
  4205. * src/BtKeepAliveMessage.cc
  4206. * src/BtKeepAliveMessage.h
  4207. * src/BtMessage.h
  4208. * src/BtNotInterestedMessage.cc
  4209. * src/BtNotInterestedMessage.h
  4210. * src/BtPieceMessage.h
  4211. * src/BtPortMessage.cc
  4212. * src/BtPortMessage.h
  4213. * src/BtRejectMessage.cc
  4214. * src/BtRejectMessage.h
  4215. * src/BtRequestMessage.cc
  4216. * src/BtRequestMessage.h
  4217. * src/BtSuggestPieceMessage.cc
  4218. * src/BtSuggestPieceMessage.h
  4219. * src/BtUnchokeMessage.cc
  4220. * src/BtUnchokeMessage.h
  4221. * src/SimpleBtMessage.cc
  4222. * src/SimpleBtMessage.h
  4223. * test/MockBtMessage.h
  4224. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Use FileEntry::exists()
  4226. * src/MultiDiskAdaptor.cc
  4227. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Added exists()
  4229. * src/FileEntry.cc
  4230. * src/FileEntry.h
  4231. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Added missing prefix dir.
  4233. * src/download_helper.cc
  4234. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4236. * src/CopyDiskAdaptor.cc: Removed
  4237. * src/CopyDiskAdaptor.h: Removed
  4238. * src/DefaultPieceStorage.cc
  4239. * src/Makefile.am
  4240. * src/OptionHandlerFactory.cc
  4241. * src/prefs.cc
  4242. * src/prefs.h
  4243. * src/usage_text.h
  4244. * test/CopyDiskAdaptorTest.cc: Removed
  4245. * test/Makefile.am
  4246. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Rewritten isSameFileBeingDownloaded()
  4248. * src/RequestGroupMan.cc
  4249. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Removed getName() from DownloadContext. getName() is declared in
  4251. BtContext.
  4252. * src/BtContext.h
  4253. * src/DownloadContext.h
  4254. * src/SingleFileDownloadContext.cc
  4255. * src/SingleFileDownloadContext.h
  4256. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4257. in AbstractSingleDiskAdaptor.
  4258. * src/AbstractSingleDiskAdaptor.h
  4259. * src/DiskAdaptor.h
  4260. * src/MultiDiskAdaptor.h
  4261. * src/RequestGroup.cc
  4262. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4263. MultiDiskAdaptor.
  4264. * src/DefaultPieceStorage.cc
  4265. * src/MultiDiskAdaptor.cc
  4266. * src/MultiDiskAdaptor.h
  4267. * test/MultiDiskAdaptorTest.cc
  4268. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4269. FileEntry::getPath() contains store(top level) directory to
  4270. simplify path handling operation. In the previous implementation,
  4271. store directory is concatenated to FileEntry::getPath() in
  4272. DownloadContext.
  4273. * src/BtDependency.cc
  4274. * src/BtPostDownloadHandler.cc
  4275. * src/CopyDiskAdaptor.cc
  4276. * src/DefaultBtContext.cc
  4277. * src/DirectDiskAdaptor.cc
  4278. * src/FileEntry.cc
  4279. * src/FileEntry.h
  4280. * src/FtpNegotiationCommand.cc
  4281. * src/HttpResponse.cc
  4282. * src/HttpResponseCommand.cc
  4283. * src/Metalink2RequestGroup.cc
  4284. * src/MultiDiskAdaptor.cc
  4285. * src/MultiDiskAdaptor.h
  4286. * src/MultiFileAllocationIterator.cc
  4287. * src/RequestGroup.cc
  4288. * src/SingleFileDownloadContext.cc
  4289. * src/SingleFileDownloadContext.h
  4290. * src/download_helper.cc
  4291. * test/BtDependencyTest.cc
  4292. * test/CopyDiskAdaptorTest.cc
  4293. * test/DefaultBtContextTest.cc
  4294. * test/DefaultBtProgressInfoFileTest.cc
  4295. * test/DirectDiskAdaptorTest.cc
  4296. * test/DownloadHelperTest.cc
  4297. * test/FileEntryTest.cc
  4298. * test/MultiDiskAdaptorTest.cc
  4299. * test/MultiFileAllocationIteratorTest.cc
  4300. * test/RequestGroupTest.cc
  4301. * test/SingleFileDownloadContextTest.cc
  4302. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Fixed compiler warning
  4304. * src/download_helper.cc
  4305. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Throw exception if same infohash torrent is now downloading.
  4307. * src/RequestGroup.cc
  4308. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4309. Added --dry-run option. In this mode, aria2 just checks whether
  4310. the remote file is available and doesn't download data. This
  4311. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4312. are canceled in this mode.
  4313. * src/FtpNegotiationCommand.cc
  4314. * src/HttpResponseCommand.cc
  4315. * src/HttpResponseCommand.h
  4316. * src/OptionHandlerFactory.cc
  4317. * src/RequestGroup.cc
  4318. * src/RequestGroupMan.cc
  4319. * src/prefs.cc
  4320. * src/prefs.h
  4321. * src/usage_text.h
  4322. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4323. Fixed compiler waring
  4324. * test/UriListParserTest.cc
  4325. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Parse options in -i list using OptionParser.
  4327. * src/UriListParser.cc
  4328. * src/UriListParser.h
  4329. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Don't reset URI in retry to avoid additional round trips because
  4331. of redirects.
  4332. * src/AbstractCommand.cc
  4333. * src/OptionHandlerFactory.cc
  4334. * src/prefs.cc
  4335. * src/prefs.h
  4336. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Declared hide() in OptionHandler.
  4338. * src/NameMatchOptionHandler.h
  4339. * src/OptionHandler.h
  4340. * src/OptionHandlerImpl.h
  4341. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4342. Updated doc
  4343. * src/Peer.h
  4344. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added log message in setStatusInternal()
  4346. * src/ServerStat.cc
  4347. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4348. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4349. effectively exclude failed server.
  4350. * src/AbstractCommand.cc
  4351. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Added --index-out option to specify each file path for torrent.
  4353. Here index shown in --show-files option is used to specify which
  4354. file path should be altered. For example, to change the file path
  4355. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4356. option multiple times: --index-out=1=aria2.tar.bz2
  4357. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4358. available. This option can be specified in -i list.
  4359. * src/DefaultBtContext.cc
  4360. * src/DefaultBtContext.h
  4361. * src/MultiDiskAdaptor.cc
  4362. * src/MultiDiskAdaptor.h
  4363. * src/MultiFileAllocationIterator.cc
  4364. * src/OptionHandlerFactory.cc
  4365. * src/OptionHandlerImpl.h
  4366. * src/Util.cc
  4367. * src/Util.h
  4368. * src/download_helper.cc
  4369. * src/prefs.cc
  4370. * src/prefs.h
  4371. * src/usage_text.h
  4372. * test/DefaultBtContextTest.cc
  4373. * test/MultiDiskAdaptorTest.cc
  4374. * test/MultiFileAllocationIteratorTest.cc
  4375. * test/UtilTest.cc
  4376. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Use Util::pathJoin()
  4378. * src/MetalinkParserController.cc
  4379. * test/test.xml
  4380. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4381. Use Util::pathJoin()
  4382. * src/DefaultBtContext.cc
  4383. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Added Util::pathJoin()
  4385. * src/Util.h
  4386. * test/UtilTest.cc
  4387. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Applied basename function to remove directory element in
  4389. content-disposition value.
  4390. Return empty string if content-disposition value is ".." or ".".
  4391. * src/Util.cc
  4392. * test/UtilTest.cc
  4393. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Added --max-overall-download-limit in man page.
  4395. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4396. * doc/aria2c.1.txt
  4397. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Added --max-overall-download-limit option. Now --max-upload-limit
  4399. option is not ignored when --max-overall-upload-limit option has
  4400. non-zero value. aria2 checks download(upload) speed in the order:
  4401. first checks overall speed limit and if it is not exceeded, then
  4402. checks speed limit per download. Thus you can specify both
  4403. value. For example, set --max-overall-download-limit=1M and
  4404. --max-download-limit=500K to prevent from one download from eating
  4405. all overall speed limit.
  4406. * src/DefaultBtInteractive.cc
  4407. * src/DefaultBtInteractive.h
  4408. * src/DefaultBtMessageDispatcher.cc
  4409. * src/DefaultBtMessageDispatcher.h
  4410. * src/DownloadCommand.cc
  4411. * src/DownloadCommand.h
  4412. * src/FtpNegotiationCommand.cc
  4413. * src/HttpResponseCommand.cc
  4414. * src/OptionHandlerFactory.cc
  4415. * src/PeerInteractionCommand.cc
  4416. * src/RequestGroup.cc
  4417. * src/RequestGroup.h
  4418. * src/RequestGroupMan.cc
  4419. * src/RequestGroupMan.h
  4420. * src/prefs.cc
  4421. * src/prefs.h
  4422. * src/usage_text.h
  4423. * test/DefaultBtMessageDispatcherTest.cc
  4424. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Documented select-file option in Input File section.
  4426. Documented --http-auth-challenge option.
  4427. * doc/aria2c.1.txt
  4428. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Now select-file can be specified in the uri list(-i list).
  4430. * src/BtContext.cc
  4431. * src/BtContext.h
  4432. * src/RequestGroup.cc
  4433. * src/Sequence.h
  4434. * src/download_helper.cc
  4435. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. Made the upper value of --max-concurrent-downloads options unlimited.
  4437. * src/OptionHandlerFactory.cc
  4438. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Fixed the bug that disk writer is not created even if it shares
  4440. same piece with the preceding file if the length of previous file
  4441. is 0.
  4442. * src/MultiDiskAdaptor.cc
  4443. * test/MultiDiskAdaptorTest.cc
  4444. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4445. In BitTorrent, Open files in read-only mode for hash check. After
  4446. that, re-open file in read/write mode only when the download is
  4447. not finished.
  4448. * src/AbstractDiskWriter.cc
  4449. * src/AbstractDiskWriter.h
  4450. * src/AbstractSingleDiskAdaptor.cc
  4451. * src/AbstractSingleDiskAdaptor.h
  4452. * src/BtCheckIntegrityEntry.cc
  4453. * src/DiskAdaptor.h
  4454. * src/DiskWriter.h
  4455. * src/MultiDiskAdaptor.cc
  4456. * src/MultiDiskAdaptor.h
  4457. * src/RequestGroup.cc
  4458. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Added --http-auth-challenge option. If it is set to true(by
  4460. default), aria2 sends HTTP authorization header only when it is
  4461. requested by the server. If false is set, then authorization
  4462. header is always sent to the server. This is useful for servers
  4463. that don't respond 401 code when authentication is required.
  4464. There is an exception: if username and password are embedded in
  4465. URI, authorization header is always sent to the server regardless
  4466. of this option.
  4467. * src/AuthConfigFactory.cc
  4468. * src/HttpSkipResponseCommand.cc
  4469. * src/OptionHandlerFactory.cc
  4470. * src/prefs.cc
  4471. * src/prefs.h
  4472. * src/usage_text.h
  4473. * test/AuthConfigFactoryTest.cc
  4474. * test/HttpRequestTest.cc
  4475. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. * Release 1.2.0
  4477. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4479. Thanks to all translators.
  4480. * po/es.po
  4481. * po/ja.po
  4482. * po/ru.po
  4483. * po/uk.po
  4484. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Call deleteSocketForReadCheck() before socket is closed.
  4486. * src/HttpListenCommand.cc
  4487. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Defined virtual destructor for BObject.
  4489. * src/bencode.h
  4490. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Rewritten BDE to make it efficient.
  4492. * src/bencode.cc
  4493. * src/bencode.h
  4494. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Removed function throw list.
  4496. * src/bencode.cc
  4497. * src/bencode.h
  4498. * test/BencodeTest.cc
  4499. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Enclosed all URLs in double quotes in command-line examples.
  4501. * doc/aria2c.1.txt
  4502. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Updated reference/see also section.
  4504. * README
  4505. * doc/aria2c.1.txt
  4506. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Reorganized man page based on man man-pages.
  4508. * doc/aria2c.1.txt
  4509. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4511. because same documents are available in man page. Added
  4512. References section.
  4513. * README
  4514. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4516. PERFORMANCE PROFILE section.
  4517. * doc/aria2c.1.txt
  4518. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Rewritten the section for configuration file.
  4520. * README
  4521. * doc/aria2c.1.txt
  4522. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Fixed the segmentation fault during execution of choking algorithm
  4524. in leecher state because of broken compare operator
  4525. implementation.
  4526. * src/BtLeecherStateChoke.cc
  4527. * src/BtLeecherStateChoke.h
  4528. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. Open file in binary mode.
  4530. * src/CookieStorage.cc
  4531. * src/DHTSetup.cc
  4532. * src/DHTUtil.cc
  4533. * src/Netrc.cc
  4534. * src/NsCookieParser.cc
  4535. * src/ProtocolDetector.cc
  4536. * src/RequestGroupMan.cc
  4537. * src/Signature.cc
  4538. * src/bencode.cc
  4539. * src/download_helper.cc
  4540. * src/option_processing.cc
  4541. * test/CookieParserTest.cc
  4542. * test/DefaultBtProgressInfoFileTest.cc
  4543. * test/FileTest.cc
  4544. * test/GZipDecoderTest.cc
  4545. * test/RequestGroupManTest.cc
  4546. * test/SignatureTest.cc
  4547. * test/SingleFileAllocationIteratorTest.cc
  4548. * test/UriListParserTest.cc
  4549. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Removed operator[] because it is ambiguous with built-in []
  4551. operator.
  4552. * src/array_fun.h
  4553. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Fixed compile error
  4555. * src/OptionParser.cc
  4556. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Added missing call to arrayWrapperConst
  4558. * test/array_funTest.cc
  4559. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Use array_wrapper instead of array_ptr.
  4561. * src/DHTRoutingTableDeserializer.cc
  4562. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4564. * src/array_fun.h
  4565. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. Added array_wrapper template.
  4567. * src/array_fun.h
  4568. * test/array_funTest.cc
  4569. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Use operator T* of array_ptr.
  4571. * src/OptionParser.cc
  4572. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4573. Use localhost instead of 127.0.0.1
  4574. * test/FtpConnectionTest.cc
  4575. * test/MSEHandshakeTest.cc
  4576. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Added operator T*
  4578. * src/array_fun.h
  4579. * test/array_funTest.cc
  4580. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Use dynamically allocated char array to detect memory access
  4582. violation.
  4583. * src/DHTRoutingTableDeserializer.cc
  4584. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4586. defined.
  4587. * src/PeerMessageUtil.cc
  4588. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4590. * configure.ac
  4591. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Added a check to see struct sockaddr_in has sin_len member.
  4593. * configure.ac
  4594. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4595. Fixed buffer overrun.
  4596. * src/DHTRoutingTableDeserializer.cc
  4597. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4598. Added LL for long long int constant.
  4599. * test/FtpConnectionTest.cc
  4600. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4601. Casted to unsigned int to suppress compiler warning on netbsd.
  4602. * src/BtRuntime.h
  4603. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4605. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4606. type time_t.
  4607. * src/SimpleLogger.cc
  4608. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4609. Added test for FtpConnection::receiveSizeResponse().
  4610. * test/FtpConnectionTest.cc
  4611. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Fix epoll error on the old kernel 2.6.8 or ealier.
  4613. * src/EpollEventPoll.cc
  4614. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Use Util::parseLLInt instead of sscanf for portability. The
  4616. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4617. * src/FtpConnection.cc
  4618. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4620. block. It should not filter anything.
  4621. * src/BitfieldMan.cc
  4622. * src/ConsoleStatCalc.cc
  4623. * test/BitfieldManTest.cc
  4624. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Fixed the bug that the boolean options that don't take arguments
  4626. don't work.
  4627. * src/OptionHandlerImpl.h
  4628. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Fixed broken selected file BitTorrent download.
  4630. * src/MultiDiskAdaptor.cc
  4631. * test/MultiDiskAdaptorTest.cc
  4632. * test/MultiFileAllocationIteratorTest.cc
  4633. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4634. Fixed #define guard for EpollEventPoll
  4635. * src/EpollEventPoll.h
  4636. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Wait 2 seconds. 1 second is sometimes not enough.
  4638. * test/TimeSeedCriteriaTest.cc
  4639. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Use localhost instead of 127.0.0.1.
  4641. * test/DHTConnectionImplTest.cc
  4642. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Suppressed compiler warning.
  4644. * src/AdaptiveURISelector.cc
  4645. * src/DefaultPieceStorage.cc
  4646. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4647. Defined virtual destructor.
  4648. * src/MetalinkParserState.h
  4649. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Give NULL for second argument of getaddrinfo instead of "0".
  4651. * src/NameResolver.cc
  4652. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4653. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4654. included strptime doesn't parse data for this format.
  4655. * src/FtpConnection.cc
  4656. * test/FtpConnectionTest.cc
  4657. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Removed tests giving -1 for unsigned argument.
  4659. * test/SingleFileDownloadContextTest.cc
  4660. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Don't use sha256 in tests because it might not be supported by the
  4662. SSL library.
  4663. * test/MetalinkProcessorTest.cc
  4664. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4665. Removed tests giving -1 for unsigned argument.
  4666. * test/AlphaNumberDecoratorTest
  4667. * test/BitfieldManTest.cc
  4668. * test/DefaultBtContextTest.cc
  4669. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4670. Fixed compile error without libcares when epoll is available.
  4671. * src/EpollEventPoll.cc
  4672. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Included fstream instead of iostream.
  4674. * test/SignatureTest.cc
  4675. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4676. Removed #include <algorithm>
  4677. * test/RequestGroupTest.cc
  4678. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4680. using RequestGroup::extractURIResult().
  4681. * src/AdaptiveURISelector.cc
  4682. * src/RequestGroup.cc
  4683. * src/RequestGroup.h
  4684. * test/RequestGroupTest.cc
  4685. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Added tests for array_ptr.
  4687. * test/array_funTest.cc
  4688. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Don't send ip parameter to a tracker if ip parameter is empty
  4690. string.
  4691. * src/DefaultBtAnnounce.cc
  4692. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Adjusted line feed.
  4694. * src/version_usage.cc
  4695. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Print tags, possible values when OptionHandlerException is caught.
  4697. * src/option_processing.cc
  4698. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Changed the message for FatalException.
  4700. * src/OptionParser.cc
  4701. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Documented --bt-external-ip option in man page. Updated man pages
  4703. for --proxy-method option.
  4704. * doc/aria2c.1.txt
  4705. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4706. Use GET method for FTP via HTTP proxy.
  4707. * src/FtpInitiateConnectionCommand.cc
  4708. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Changed the default value of --proxy-method option from 'tunnel'
  4710. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4711. option.
  4712. * src/AbstractCommand.cc
  4713. * src/AbstractCommand.h
  4714. * src/FtpInitiateConnectionCommand.cc
  4715. * src/HttpDownloadCommand.cc
  4716. * src/HttpInitiateConnectionCommand.cc
  4717. * src/HttpInitiateConnectionCommand.h
  4718. * src/OptionHandlerFactory.cc
  4719. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Initialized _logger
  4721. * src/SelectEventPoll.cc
  4722. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Defined a copy constructor for the same type.
  4724. * src/SharedHandle.h
  4725. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Added OptionParser::parseArg() which internally uses getopt_long
  4727. to parse command-line options. All command-line options are now
  4728. configured by OptionHandler. No manual editing of struct option*
  4729. is required any more.
  4730. * src/NameMatchOptionHandler.h
  4731. * src/OptionHandler.h
  4732. * src/OptionHandlerFactory.cc
  4733. * src/OptionHandlerImpl.h
  4734. * src/OptionParser.cc
  4735. * src/OptionParser.h
  4736. * src/array_fun.h
  4737. * src/main.cc
  4738. * src/option_processing.cc
  4739. * test/OptionHandlerTest.cc
  4740. * test/OptionParserTest.cc
  4741. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Fixed configure error with --disable-epoll
  4743. * configure.ac
  4744. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4745. Fixed compile error when HAVE_EPOLL is not defined.
  4746. Fixed linker error on bigendian systems.
  4747. * src/SocketCore.cc
  4748. * src/SocketCore.h
  4749. * test/DefaultBtProgressInfoFileTest.cc
  4750. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Added --bt-external-ip option. You can specify the external IP
  4752. address to report to a BitTorrent tracker. Although this function
  4753. is named 'external', it can accept any kind of IP addresses.
  4754. * src/DefaultBtAnnounce.cc
  4755. * src/OptionHandlerFactory.cc
  4756. * src/option_processing.cc
  4757. * src/prefs.cc
  4758. * src/prefs.h
  4759. * src/usage_text.h
  4760. * test/DefaultBtAnnounceTest.cc
  4761. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Extracted the algorithm to find the longest incremental sequence
  4763. as max_sequence template.
  4764. * src/LongestSequencePieceSelector.cc
  4765. * src/a2algo.h
  4766. * test/Makefile.am
  4767. * test/a2algoTest.cc
  4768. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4770. * src/usage_text.h
  4771. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Updated doc for --uri-selector, --http-server-listen-port and
  4773. --enable-http-server option. Documented --event-poll option.
  4774. * doc/aria2c.1.txt
  4775. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Updated doc for --enable-http-server.
  4777. * src/usage_text.h
  4778. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Documented --http-server-listen-port and --enable-http-server in
  4780. man page.
  4781. * doc/aria2c.1.txt
  4782. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4783. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4784. translations. Thanks to all translators.
  4785. * po/es.po
  4786. * po/id.po
  4787. * po/it.po
  4788. * po/ru.po
  4789. * po/uk.po
  4790. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4791. Bump up version number to 1.2.0
  4792. * configure.ac
  4793. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4794. BtContext::getAnnounceTiers() now returns const reference.
  4795. * src/BtContext.h
  4796. * src/DefaultBtContext.cc
  4797. * src/DefaultBtContext.h
  4798. * test/MockBtContext.h
  4799. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Change the number of retries for tracker request based on the
  4801. number of available tracker in a torrent file.
  4802. * src/TrackerWatcherCommand.cc
  4803. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Added _maxTries property to RequestGroup and assign the option
  4805. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4806. RequestGroup::getMaxTries() instead of
  4807. Option::getAsInt(PREF_MAX_TRIES).
  4808. * src/AbstractCommand.cc
  4809. * src/RequestGroup.cc
  4810. * src/RequestGroup.h
  4811. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4813. Mandriva. I modified the patch: make RequestGroup have the
  4814. timeout value and AdaptiveURISelector directly modifies that
  4815. value.
  4816. * src/AbstractCommand.cc
  4817. * src/AdaptiveURISelector.cc
  4818. * src/AdaptiveURISelector.h
  4819. * src/FtpNegotiationCommand.cc
  4820. * src/RequestGroup.cc
  4821. * src/RequestGroup.h
  4822. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Fixed compiler warning
  4824. * test/IteratableChecksumValidatorTest.cc
  4825. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4827. integrated downloads. This PieceSelector subclass finds the
  4828. longest continuous sequence in the available missing pieces and
  4829. selects the last index of such sequence. This makes HTTP/FTP
  4830. connections less interrupted by the pieces obtained by BitTorrent
  4831. peers.
  4832. * src/DefaultPieceStorage.cc
  4833. * src/DefaultPieceStorage.h
  4834. * src/LongestSequencePieceSelector.cc
  4835. * src/LongestSequencePieceSelector.h
  4836. * src/Makefile.am
  4837. * src/PieceSelector.h
  4838. * src/RarestPieceSelector.h
  4839. * src/RequestGroup.cc
  4840. * test/BtDependencyTest.cc
  4841. * test/DefaultPieceStorageTest.cc
  4842. * test/IteratableChecksumValidatorTest.cc
  4843. * test/LongestSequencePieceSelectorTest.cc
  4844. * test/Makefile.am
  4845. * test/SegmentManTest.cc
  4846. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Fixed the bug that the average speed is wrong in
  4848. http/ftp/BitTorrent integrated download. Only the download bytes
  4849. in BitTorrent were considered.
  4850. * src/RequestGroup.cc
  4851. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Choose port for BitTorrent/DHT randomly from the specified range.
  4853. * src/DHTConnectionImpl.cc
  4854. * src/PeerListenCommand.cc
  4855. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Send HTTP Authorization header only if it is requested by the
  4857. server(response 401). There are some exceptions. The authorization
  4858. header for proxy is always sent if it is available without request
  4859. by the server. If username/password is specified in the URI, it
  4860. is immediately sent to the server without request by the server.
  4861. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4862. SharedHandle<AuthConfig>().
  4863. NetrcAuthResolver::resolveAuthConfig() returns
  4864. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4865. * src/AbstractAuthResolver.cc
  4866. * src/AbstractProxyRequestCommand.cc
  4867. * src/AuthConfigFactory.cc
  4868. * src/AuthConfigFactory.h
  4869. * src/HttpConnection.cc
  4870. * src/HttpRequest.cc
  4871. * src/HttpRequest.h
  4872. * src/HttpResponse.cc
  4873. * src/HttpResponseCommand.cc
  4874. * src/HttpSkipResponseCommand.cc
  4875. * test/AuthConfigFactoryTest.cc
  4876. * test/HttpRequestTest.cc
  4877. * test/HttpResponseTest.cc
  4878. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4879. Remove leading "--" from help keyword and a substring after "="
  4880. from help keyword, so that one can query options by '-h--max-' or
  4881. '-hmax-peers=10'.
  4882. * src/option_processing.cc
  4883. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Rewritten PStringVisitor and its implementation.
  4885. * src/PStringBuildVisitor.cc
  4886. * src/PStringBuildVisitor.h
  4887. * src/PStringDatum.h
  4888. * src/PStringNumLoop.h
  4889. * src/PStringSegment.cc
  4890. * src/PStringSegment.h
  4891. * src/PStringSelect.h
  4892. * src/PStringVisitor.h
  4893. * src/download_helper.cc
  4894. * test/PStringBuildVisitorTest.cc
  4895. * test/ParameterizedStringParserTest.cc
  4896. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4897. Persist connection between the built-in HTTP server and a client
  4898. if a client supports keep-alive. Fixed the bug that aria2 exits
  4899. when the HTTP server receives EOF from a client.
  4900. * src/HttpServer.cc
  4901. * src/HttpServer.h
  4902. * src/HttpServerCommand.cc
  4903. * src/HttpServerCommand.h
  4904. * src/HttpServerResponseCommand.cc
  4905. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. Added experimental built-in HTTP server. Currently, when a client
  4907. accesses to the server, it responds with the current download
  4908. progress. By default, it is disabled. To enable the server, give
  4909. --enable-http-server option. To change the default port number
  4910. for the server to listen to, use --http-server-listen-port option.
  4911. The response HTML is very simple and refreshes it self each 1
  4912. second. Because of this refresh, you see flicker in normal web
  4913. browser such as Firefox. I recommend to use console-based browser
  4914. such as elinks, w3m. To connect to the server, run 'elinks
  4915. http://localhost:6800/' while running aria2. Please replace port
  4916. number '6800'(which is default) with your preference.
  4917. * src/DownloadEngineFactory.cc
  4918. * src/HttpHeader.cc
  4919. * src/HttpHeader.h
  4920. * src/HttpHeaderProcessor.cc
  4921. * src/HttpHeaderProcessor.h
  4922. * src/HttpListenCommand.cc
  4923. * src/HttpListenCommand.h
  4924. * src/HttpServer.cc
  4925. * src/HttpServer.h
  4926. * src/HttpServerCommand.cc
  4927. * src/HttpServerCommand.h
  4928. * src/HttpServerResponseCommand.cc
  4929. * src/HttpServerResponseCommand.h
  4930. * src/Makefile.am
  4931. * src/OptionHandlerFactory.cc
  4932. * src/Util.cc
  4933. * src/Util.h
  4934. * src/help_tags.h
  4935. * src/option_processing.cc
  4936. * src/prefs.cc
  4937. * src/prefs.h
  4938. * src/usage_text.h
  4939. * test/HttpHeaderProcessorTest.cc
  4940. * test/UtilTest.cc
  4941. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Removed.
  4943. * src/CheckIntegrityMan.cc
  4944. * src/FileAllocationMan.cc
  4945. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4946. Made (piece) hash check sequential for each RequestGroup because
  4947. simultaneous hash check is slower than sequential execution.
  4948. * src/CheckIntegrityCommand.cc
  4949. * src/CheckIntegrityDispatcherCommand.cc
  4950. * src/CheckIntegrityDispatcherCommand.h
  4951. * src/CheckIntegrityMan.h
  4952. * src/ConsoleStatCalc.cc
  4953. * src/DownloadCommand.cc
  4954. * src/DownloadEngine.cc
  4955. * src/DownloadEngine.h
  4956. * src/DownloadEngineFactory.cc
  4957. * src/Makefile.am
  4958. * src/Makefile.in
  4959. * src/RequestGroup.cc
  4960. * src/StatCalc.h
  4961. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4962. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4963. SequentialDispatcherCommand.
  4964. * src/FileAllocationDispatcherCommand.cc
  4965. * src/SequentialDispatcherCommand.h
  4966. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Rewritten FileAllocationDispatcherCommand using brand new
  4968. SequentialDispatcherCommand.
  4969. * src/DownloadEngineFactory.cc
  4970. * src/FileAllocationCommand.cc
  4971. * src/FileAllocationDispatcherCommand.cc
  4972. * src/FileAllocationDispatcherCommand.h
  4973. * src/Makefile.am
  4974. * src/SequentialDispatcherCommand.h
  4975. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. Replaced FileAllocationMan with
  4977. SequentialPicker<FileAllocationEntry>.
  4978. * src/BtCheckIntegrityEntry.cc
  4979. * src/ConsoleStatCalc.cc
  4980. * src/DownloadEngine.cc
  4981. * src/DownloadEngine.h
  4982. * src/DownloadEngineFactory.cc
  4983. * src/FileAllocationCommand.cc
  4984. * src/FileAllocationDispatcherCommand.cc
  4985. * src/FileAllocationMan.h
  4986. * src/Makefile.am
  4987. * src/SequentialPicker.h
  4988. * src/StatCalc.h
  4989. * src/StreamCheckIntegrityEntry.cc
  4990. * test/Makefile.am
  4991. * test/SequentialPickerTest.cc
  4992. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Added doc for adaptive URI selector.
  4994. * doc/aria2c.1.txt
  4995. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4996. Added doc for adaptive URI selector.
  4997. * src/usage_text.h
  4998. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4999. Added doc for --bt-max-peers option.
  5000. * doc/aria2c.1.txt
  5001. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Added doc for --bt-hash-check-seed option.
  5003. * doc/aria2c.1.txt
  5004. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Documented exit codes.
  5006. * doc/aria2c.1.txt
  5007. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Added --bt-max-peers option to specify the maximum number of peers
  5009. per torrent. 0 means unlimited number of peers.
  5010. * src/ActivePeerConnectionCommand.cc
  5011. * src/BtRuntime.h
  5012. * src/DefaultPeerStorage.cc
  5013. * src/DefaultPeerStorage.h
  5014. * src/OptionHandlerFactory.cc
  5015. * src/RequestGroup.cc
  5016. * src/option_processing.cc
  5017. * src/prefs.cc
  5018. * src/prefs.h
  5019. * src/usage_text.h
  5020. * test/DefaultPeerStorageTest.cc
  5021. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Added --bt-hash-check-seed option. If true is given to this
  5023. option, after hash check using --check-integrity option and file
  5024. is complete, continue to seed file. If you want to check file and
  5025. download it only when it is damaged or incomplete, set this option
  5026. to false. This option has effect only on BitTorrent download.
  5027. The default value is true(This is the same behavior with the
  5028. previous release).
  5029. * src/BtCheckIntegrityEntry.cc
  5030. * src/OptionHandlerFactory.cc
  5031. * src/option_processing.cc
  5032. * src/prefs.cc
  5033. * src/prefs.h
  5034. * src/usage_text.h
  5035. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Updated copyright year.
  5037. * src/version_usage.cc
  5038. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5040. * doc/aria2c.1.txt
  5041. * src/usage_text.h
  5042. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Made the max value of split option unlimited.
  5044. * doc/aria2c.1.txt
  5045. * src/OptionHandlerFactory.cc
  5046. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Fixed compile warning/error.
  5048. * src/DownloadResult.h
  5049. * src/HttpDownloadCommand.cc
  5050. * src/ServerStat.cc
  5051. * test/RequestGroupTest.cc
  5052. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Added --event-poll option to select the method for polling events.
  5054. The available methods are "select" and "epoll". "epoll" is
  5055. available on Linux only. The earlier release has the compile
  5056. option to choose from these methods.
  5057. * configure.ac
  5058. * src/RequestGroupMan.cc
  5059. * src/OptionHandlerFactory.cc
  5060. * src/EpollEventPoll.h
  5061. * src/StreamFileAllocationEntry.cc
  5062. * src/a2io.h
  5063. * src/SelectEventPoll.h
  5064. * src/option_processing.cc
  5065. * src/prefs.h
  5066. * src/EpollEventPoll.cc
  5067. * src/EventPoll.h
  5068. * src/SocketCore.h
  5069. * src/Makefile.am
  5070. * src/main.cc
  5071. * src/DownloadEngine.h
  5072. * src/SelectEventPoll.cc
  5073. * src/DownloadEngine.cc
  5074. * src/SocketCore.cc
  5075. * src/DownloadEngineFactory.cc
  5076. * src/Makefile.in
  5077. * src/prefs.cc
  5078. * src/usage_text.h
  5079. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Included RecoverableException.h from main.cc
  5081. * src/main.cc
  5082. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5084. now returns last error encountered in the HTTP/FTP downloads as a
  5085. exit status value. If all downloads finished successfully, aria2
  5086. returns 0. The error code is defined in src/DownloadResult.h.
  5087. The error occurred in the download currently in progress is not
  5088. reported as a last error. If no error has encountered but there
  5089. are in progress or waiting downloads, aria2 returns 7.
  5090. * src/AbstractCommand.cc
  5091. * src/DlAbortEx.h
  5092. * src/DlRetryEx.h
  5093. * src/DownloadCommand.cc
  5094. * src/DownloadFailureException.h
  5095. * src/DownloadResult.h
  5096. * src/FtpNegotiationCommand.cc
  5097. * src/HttpSkipResponseCommand.cc
  5098. * src/Makefile.am
  5099. * src/MultiUrlRequestInfo.cc
  5100. * src/MultiUrlRequestInfo.h
  5101. * src/RecoverableException.h
  5102. * src/RequestGroup.cc
  5103. * src/RequestGroup.h
  5104. * src/RequestGroupMan.cc
  5105. * src/RequestGroupMan.h
  5106. * src/URIResult.cc
  5107. * src/URIResult.h
  5108. * src/main.cc
  5109. * src/option_processing.cc
  5110. * test/RequestGroupTest.cc
  5111. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5112. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5113. patch adds AdaptiveURISelector, which selects one of the bests
  5114. mirrors for first and reserved connections. For supplementary
  5115. ones, it returns mirrors which has not been tested yet, and if
  5116. each of them already tested, returns mirrors which has to be
  5117. tested again. Otherwise, it doesn't return anymore mirrors.
  5118. * src/AdaptiveURISelector.cc
  5119. * src/AdaptiveURISelector.h
  5120. * src/FtpNegotiationCommand.cc
  5121. * src/HttpResponseCommand.cc
  5122. * src/Makefile.am
  5123. * src/Makefile.in
  5124. * src/OptionHandlerFactory.cc
  5125. * src/RequestGroup.cc
  5126. * src/RequestGroup.h
  5127. * src/RequestGroupMan.cc
  5128. * src/ServerStat.cc
  5129. * src/ServerStat.h
  5130. * src/ServerStatMan.cc
  5131. * src/SpeedCalc.cc
  5132. * src/URISelector.h
  5133. * src/prefs.cc
  5134. * src/prefs.h
  5135. * test/RequestGroupManTest.cc
  5136. * test/ServerStatManTest.cc
  5137. * test/ServerStatTest.cc
  5138. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Fixed unit test error.
  5140. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5141. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. * Release 1.1.2
  5143. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Updated Russian translation. Thanks to the translators.
  5145. * po/ru.po
  5146. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5147. Added the description of --use-head option to man page.
  5148. * doc/aria2c.1.txt
  5149. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Bump up version number to 1.1.2
  5151. * configure.ac
  5152. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Added --use-head option to toggle whether HEAD method should be
  5154. used in the first HTTP request. By default aria2 uses HEAD method
  5155. as the first request. When the server doesn't recognize HEAD, then
  5156. give aria2 --use-head=false to force aria2 to use GET method
  5157. instead.
  5158. * src/OptionHandlerFactory.cc
  5159. * src/RequestGroupMan.cc
  5160. * src/option_processing.cc
  5161. * src/prefs.cc
  5162. * src/prefs.h
  5163. * src/usage_text.h
  5164. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5166. message is received before CHOKE message. The old implementation
  5167. doen't clear the use-bit of the piece when recieved REJECT
  5168. message.
  5169. * src/DefaultBtMessageDispatcher.cc
  5170. * test/DefaultBtMessageDispatcherTest.cc
  5171. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. * Release 1.1.1
  5173. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5174. Bump up version number to 1.1.1.
  5175. * configure.ac
  5176. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5177. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5178. is printed repeatedly.
  5179. * src/ConsoleStatCalc.cc
  5180. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5181. * Release 1.1.0
  5182. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Added ifdef clause for conditional compilation.
  5184. * src/main.cc
  5185. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5186. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5187. translations. Thanks to all translators.
  5188. * po/ja.po
  5189. * po/ru.po
  5190. * po/uk.po
  5191. * po/zh_CN.po
  5192. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. Added the preceding ">>> " before the message "Printing the
  5194. contents of file..." to make the output more readable.
  5195. * src/main.cc
  5196. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Added try-catch block in the loop in showFiles() to continue the
  5198. operation even if the exception occurred in one file.
  5199. * src/main.cc (showFiles)
  5200. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5201. Made messages in showFiles() translatable.
  5202. * po/aria2.pot
  5203. * src/main.cc
  5204. * src/message.h
  5205. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Print the contents of Torrent/Metalink files are printed without
  5207. -T/-M options.
  5208. * src/main.cc
  5209. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Escaped '--' with '\--'
  5211. * README
  5212. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Updated "How to build" section in README. Mentioned about
  5214. --with-ca-bundle compile option.
  5215. * README
  5216. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5217. Bump up version number to 1.1.0.
  5218. * configure.ac
  5219. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5220. Added a note for --dht-listen-port option.
  5221. * doc/aria2c.1.txt
  5222. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Update doc for --realtime-chunk-checksum option.
  5224. * doc/aria2c.1.txt
  5225. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Update doc for --realtime-chunk-checksum option.
  5227. * src/usage_text.h
  5228. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Updated French, Japanese, Russian and Ukrainian translations.
  5230. Thanks to all translators.
  5231. * po/fr.po
  5232. * po/ja.po
  5233. * po/ru.po
  5234. * po/uk.po
  5235. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Renamed aria2c.pot to aria2.pot
  5237. * po/aria2.pot
  5238. * po/aria2c.pot: Removed.
  5239. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5240. Removed MetaEntry.h
  5241. * src/Makefile.am
  5242. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5243. Rename file by appending digits if a local file exists and its
  5244. file size is larger than that of remote file with --continue
  5245. option. The old implementation just throws exception in such case.
  5246. * src/RequestGroup.cc
  5247. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Fixed the bug that download progress summary is not printed in the
  5249. interval specified by the option.
  5250. * src/ConsoleStatCalc.cc
  5251. * src/ConsoleStatCalc.h
  5252. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Fixed compiler warning
  5254. * src/Cookie.cc
  5255. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Fixed the cookie implementation based on RFC2965.
  5257. Now if a value in domain field is not started with dot, then
  5258. prepend dot. That means a cookie with domain=sf.net is sent to
  5259. wiki.sf.net.
  5260. * src/Cookie.cc
  5261. * test/CookieParserTest.cc
  5262. * test/CookieStorageTest.cc
  5263. * test/CookieTest.cc
  5264. * test/NsCookieParserTest.cc
  5265. * test/Sqlite3MozCookieParserTest.cc
  5266. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5267. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5268. is enabled and the server doesn't support keep-alive.
  5269. * src/AbstractCommand.cc
  5270. * src/DownloadCommand.cc
  5271. * src/HttpDownloadCommand.cc
  5272. * src/HttpDownloadCommand.h
  5273. * src/HttpResponseCommand.cc
  5274. * src/Request.cc
  5275. * src/Request.h
  5276. * test/RequestTest.cc
  5277. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Removed Dictionary/List/Data and its related classes.
  5279. * src/BencodeVisitor.cc: Removed.
  5280. * src/BencodeVisitor.h: Removed.
  5281. * src/Data.cc: Removed.
  5282. * src/Data.h: Removed.
  5283. * src/Dictionary.cc: Removed.
  5284. * src/Dictionary.h: Removed.
  5285. * src/List.cc: Removed.
  5286. * src/List.h: Removed.
  5287. * src/Makefile.am
  5288. * src/MetaEntry.h: Removed.
  5289. * src/MetaEntryVisitor.h: Removed.
  5290. * src/MetaFileUtil.cc: Removed.
  5291. * src/MetaFileUtil.h: Removed.
  5292. * test/BencodeVisitorTest.cc: Removed.
  5293. * test/DataTest.cc: Removed.
  5294. * test/DictionaryTest.cc: Removed.
  5295. * test/ListTest.cc: Removed.
  5296. * test/Makefile.am
  5297. * test/MetaFileUtilTest.cc: Removed.
  5298. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Removed include of MetaEntry.h
  5300. * test/DHTMessageTrackerEntryTest.cc
  5301. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5302. Use BDE instead of Dictionary/List/Data.
  5303. * src/AnnounceList.cc
  5304. * src/AnnounceList.h
  5305. * test/AnnounceListTest.cc
  5306. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Use BDE instead of Dictionary/List/Data.
  5308. * src/DHTAbstractMessage.cc
  5309. * src/DHTAbstractMessage.h
  5310. * src/DHTAnnouncePeerMessage.cc
  5311. * src/DHTAnnouncePeerMessage.h
  5312. * src/DHTAnnouncePeerReplyMessage.cc
  5313. * src/DHTAnnouncePeerReplyMessage.h
  5314. * src/DHTFindNodeMessage.cc
  5315. * src/DHTFindNodeMessage.h
  5316. * src/DHTFindNodeReplyMessage.cc
  5317. * src/DHTFindNodeReplyMessage.h
  5318. * src/DHTGetPeersMessage.cc
  5319. * src/DHTGetPeersMessage.h
  5320. * src/DHTGetPeersReplyMessage.cc
  5321. * src/DHTGetPeersReplyMessage.h
  5322. * src/DHTMessageFactory.h
  5323. * src/DHTMessageFactoryImpl.cc
  5324. * src/DHTMessageFactoryImpl.h
  5325. * src/DHTMessageReceiver.cc
  5326. * src/DHTMessageTracker.cc
  5327. * src/DHTMessageTracker.h
  5328. * src/DHTPingMessage.cc
  5329. * src/DHTPingMessage.h
  5330. * src/DHTPingReplyMessage.cc
  5331. * src/DHTPingReplyMessage.h
  5332. * src/DHTQueryMessage.cc
  5333. * src/DHTQueryMessage.h
  5334. * src/DHTResponseMessage.cc
  5335. * src/DHTResponseMessage.h
  5336. * test/DHTAnnouncePeerMessageTest.cc
  5337. * test/DHTAnnouncePeerReplyMessageTest.cc
  5338. * test/DHTFindNodeMessageTest.cc
  5339. * test/DHTFindNodeReplyMessageTest.cc
  5340. * test/DHTGetPeersMessageTest.cc
  5341. * test/DHTGetPeersReplyMessageTest.cc
  5342. * test/DHTMessageFactoryImplTest.cc
  5343. * test/DHTMessageTrackerTest.cc
  5344. * test/DHTPingMessageTest.cc
  5345. * test/DHTPingReplyMessageTest.cc
  5346. * test/MockDHTMessageFactory.h
  5347. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. Added tests the case where length < 0 is specified.
  5349. * test/BencodeTest.cc
  5350. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5351. Fixed memory leak in decoderawstring()
  5352. * src/bencode.cc
  5353. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5354. Added missing #ifdef guard. Added uc() function for String and
  5355. removeKey() for Dict.
  5356. * src/bencode.cc
  5357. * src/bencode.h
  5358. * test/BencodeTest.cc
  5359. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Use BDE instead of Dictionary/List/Data.
  5361. * src/HandshakeExtensionMessage.cc
  5362. * src/HandshakeExtensionMessage.h
  5363. * test/HandshakeExtensionMessageTest.cc
  5364. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5365. Added --max-overall-upload-limit option. This option limits the
  5366. overall upload speed. Stated in help message that the existing
  5367. --max-upload-limit option limits the upload speed per each
  5368. torrent. Man page is also updated.
  5369. * doc/aria2c.1.txt
  5370. * src/DefaultBtMessageDispatcher.cc
  5371. * src/DefaultBtMessageDispatcher.h
  5372. * src/OptionHandlerFactory.cc
  5373. * src/PeerInteractionCommand.cc
  5374. * src/option_processing.cc
  5375. * src/prefs.cc
  5376. * src/prefs.h
  5377. * src/usage_text.h
  5378. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Use BDE instead of Dictionary/List/Data classes.
  5380. * src/CompactPeerListProcessor.cc
  5381. * src/CompactPeerListProcessor.h
  5382. * src/DefaultBtAnnounce.cc
  5383. * src/DefaultBtContext.cc
  5384. * src/DefaultBtContext.h
  5385. * src/DefaultPeerListProcessor.cc
  5386. * src/DefaultPeerListProcessor.h
  5387. * src/DelegatingPeerListProcessor.cc
  5388. * src/DelegatingPeerListProcessor.h
  5389. * src/PeerListProcessor.h
  5390. * src/UTPexExtensionMessage.cc
  5391. * src/Util.h
  5392. * src/message.h
  5393. * test/DefaultBtContextTest.cc
  5394. * test/DefaultPeerListProcessorTest.cc
  5395. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Added bencode helper functions and BDE class.
  5397. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5398. * src/Makefile.am
  5399. * src/bencode.cc
  5400. * src/bencode.h
  5401. * test/BencodeTest.cc
  5402. * test/Makefile.am
  5403. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Fixed the bug that bad URI is sent to the tracker when the announe
  5405. URI in torrent file includes query.
  5406. * src/DefaultBtAnnounce.cc
  5407. * test/DefaultBtAnnounceTest.cc
  5408. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Added Option::blank().
  5410. Use !Option::blank(name) instead of Option::defined(name) for
  5411. the options that take filename.
  5412. * src/MultiUrlRequestInfo.cc
  5413. * src/Option.cc
  5414. * src/Option.h
  5415. * src/main.cc
  5416. * src/option_processing.cc
  5417. * test/OptionTest.cc
  5418. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Documented the default value of --check-certificate option in man
  5420. page.
  5421. * doc/aria2c.1.txt
  5422. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Enabled --check-certificate by default. Added compile
  5424. time(configure) option --with-ca-bundle to specify CA bundle.
  5425. Warn if --check-certificate=true and --ca-certificate is not
  5426. specified or loading CA certificate is failed.
  5427. * configure.ac
  5428. * src/MultiUrlRequestInfo.cc
  5429. * src/OptionHandlerFactory.cc
  5430. * src/message.h
  5431. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Mentioned https tag in help option.
  5433. * doc/aria2c.1.txt
  5434. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Added `https' tag to help option category. Added https tag to
  5436. --ca-certificate, --certificate, --check-certificate and
  5437. --private-key option.
  5438. * src/OptionHandlerFactory.cc
  5439. * src/help_tags.h
  5440. * src/option_processing.cc
  5441. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5442. Changed the package name from `aria2c' to `aria2' in order to fix
  5443. the packaging issue in Debian and Fedora. The name of the
  5444. executable is not changed.
  5445. * configure.ac
  5446. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Fixed typos
  5448. * src/usage_text.h
  5449. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Fixed typos and updated doc.
  5451. * README
  5452. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5453. Fixed typos
  5454. * doc/aria2c.1.txt
  5455. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Fixed typos
  5457. * src/usage_text.h
  5458. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Print a message when no files to download.
  5460. * src/download_helper.cc
  5461. * src/main.cc
  5462. * src/message.h
  5463. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. RFC3986 complied Percent-Encoding(urlencode).
  5465. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5466. ones.
  5467. * src/Request.cc
  5468. * src/Util.cc
  5469. * src/Util.h
  5470. * test/BtHandshakeMessageTest.cc
  5471. * test/DefaultBtAnnounceTest.cc
  5472. * test/DefaultBtContextTest.cc
  5473. * test/RequestTest.cc
  5474. * test/UtilTest.cc
  5475. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Fixed the bug that prevents aria2 from downloading 0-length files
  5477. via HTTP/FTP.
  5478. * src/DefaultBtContext.cc
  5479. * src/DefaultBtContext.h
  5480. * src/DownloadContext.h
  5481. * src/FtpNegotiationCommand.cc
  5482. * src/HttpResponseCommand.cc
  5483. * src/HttpResponseCommand.h
  5484. * src/RequestGroup.cc
  5485. * src/SingleFileDownloadContext.cc
  5486. * src/SingleFileDownloadContext.h
  5487. * test/BtPostDownloadHandlerTest.cc
  5488. * test/MetalinkPostDownloadHandlerTest.cc
  5489. * test/MockBtContext.h
  5490. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5492. * src/option_processing.cc
  5493. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5494. Applied aria2-1.0.1-mingw.patch.
  5495. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5496. mingw.
  5497. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5498. * src/SocketCore.cc
  5499. * src/a2netcompat.h
  5500. * test/SocketCoreTest.cc
  5501. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. * Release 1.0.1
  5503. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Updated Ukrainian and Norwegian Nynorsk translations.
  5505. Thanks to all translators.
  5506. * po/nn.po
  5507. * po/uk.po
  5508. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Don't show download result when -S option is used.
  5510. * src/main.cc
  5511. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Bump up version number to 1.0.1
  5513. * configure.ac
  5514. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5515. Closed files after the test cases in MultiDiskWriterTest::
  5516. testResetDiskWriterEntries(). This will fix the unit test error
  5517. in mingw32 build.
  5518. * test/MultiDiskWriterTest.cc
  5519. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Use HEAD method to get file size from HTTP server for segmented
  5521. downloading.
  5522. The request to the BitTorrent Tracker always uses GET method because
  5523. the response of the tracker is small and it doesn't need segmented
  5524. download.
  5525. * src/FtpNegotiationCommand.cc
  5526. * src/HttpRequest.cc
  5527. * src/HttpResponseCommand.cc
  5528. * src/HttpSkipResponseCommand.cc
  5529. * src/RequestGroup.cc
  5530. * src/RequestGroup.h
  5531. * src/TrackerWatcherCommand.cc
  5532. * test/HttpRequestTest.cc
  5533. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5534. Fixed the bug that causes floating exception when -T option is used and
  5535. no URIs are given.
  5536. * src/download_helper.cc
  5537. * test/DownloadHelperTest.cc
  5538. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5539. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5540. errors in MinGW:
  5541. Closed file after saving server stats (RequestGroupMan.cc)
  5542. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5543. Ignored case & handled 2-digit years (strptime.c)
  5544. Added missing suseconds_t definition (a2time.h)
  5545. Fixed socket CLOSE() define (SocketCore.cc)
  5546. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5547. Changed utime() test values from x000 to x00000 as MinGW failed on
  5548. values less than timezone offset from Unix epoch
  5549. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5550. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5551. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5552. handle negative dates (CookieParserTest.cc)
  5553. * src/a2time.h
  5554. * src/FtpConnection.cc
  5555. * src/RequestGroupMan.cc
  5556. * src/SocketCore.cc
  5557. * src/strptime.c
  5558. * test/CookieParserTest.cc
  5559. * test/CopyDiskAdaptorTest.cc
  5560. * test/FileTest.cc
  5561. * test/FtpConnectionTest.cc
  5562. * test/MultiDiskAdaptorTest.cc
  5563. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5565. * doc/aria2c.1.txt
  5566. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5567. * Release 1.0.0
  5568. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Added '~' to reserved characters.
  5570. * src/Util.cc
  5571. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Do not urlencode Request::url in setUrl() because we want unmodified
  5573. URL using Request::getUrl()
  5574. * src/Request.cc
  5575. * src/Request.h
  5576. * test/RequestTest.cc
  5577. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5579. Thanks to all translators.
  5580. * po/bg.po
  5581. * po/fr.po
  5582. * po/ja.po
  5583. * po/ru.po
  5584. * po/uk.po
  5585. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5586. Bump up version number to 1.0.0
  5587. * configure.ac
  5588. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5589. Added nosqlite3 build to build_test.sh.
  5590. Renamed noxml as expat.
  5591. * build_test.sh
  5592. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5593. Updated INPUT FILE section.
  5594. * doc/aria2c.1.txt
  5595. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5597. on big endian systems because test .aria2 files are made for little
  5598. endian systems.
  5599. * test/DefaultBtProgressInfoFileTest.cc
  5600. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Dropped ares support.
  5602. * README
  5603. * configure.ac
  5604. * m4/libares.m4: Removed.
  5605. * src/AsyncNameResolver.cc
  5606. * src/Makefile.am
  5607. * test/Makefile.am
  5608. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5609. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5610. Removed const qualifier from DiskWriter::size().
  5611. * src/AbstractDiskWriter.cc
  5612. * src/AbstractDiskWriter.h
  5613. * src/ByteArrayDiskWriter.cc
  5614. * src/ByteArrayDiskWriter.h
  5615. * src/DiskWriter.h
  5616. * test/ByteArrayDiskWriterTest.cc
  5617. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Fixed the bug that causes segmentation fault/bus error during executing
  5619. choking algorithm while seeding. This is caused by improper
  5620. implementation of compare function which returns inconsistent results
  5621. depending on the timing of last unchoke.
  5622. * src/BtSeederStateChoke.cc
  5623. * src/BtSeederStateChoke.h
  5624. * src/DefaultPeerStorage.cc
  5625. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Removed TODO
  5627. * TODO
  5628. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5629. Added a section that explains how to pass argument to options that
  5630. takes optional arguments with its short form.
  5631. * doc/aria2c.1.txt
  5632. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Added -u for the short form of --max-upload-limit option.
  5634. * doc/aria2c.1.txt
  5635. * src/option_processing.cc
  5636. * src/usage_text.h
  5637. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Added -V for the short form of --check-integrity option.
  5639. Now the argument of --check-integrity option is optional:
  5640. if it is omitted, it is evaluated as true.
  5641. * doc/aria2c.1.txt
  5642. * src/option_processing.cc
  5643. * src/usage_text.h
  5644. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Made the default value of --ftp-pasv option set to true and it can take
  5646. true/false values.
  5647. * src/OptionHandlerFactory.cc
  5648. * src/option_processing.cc
  5649. * src/usage_text.h
  5650. * doc/aria2c.1.txt
  5651. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Given custom random number generator to std::random_shuffle.
  5653. * src/AnnounceList.cc
  5654. * src/BtLeecherStateChoke.cc
  5655. * src/BtSeederStateChoke.cc
  5656. * src/DefaultBtRequestFactory.cc
  5657. * src/MetalinkEntry.cc
  5658. * src/RarestPieceSelector.cc
  5659. * src/SimpleRandomizer.cc
  5660. * src/SimpleRandomizer.h
  5661. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5662. Now the default value of --enable-direct-io is true.
  5663. * src/OptionHandlerFactory.cc
  5664. * doc/aria2c.1.txt
  5665. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Erase peer before executing onReturningPeer and onErasingPeer
  5667. because choking algorithm called from onReturningPeer doesn't
  5668. like erasing peer in the active peer list.
  5669. * src/DefaultPeerStorage.cc
  5670. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Instead of creating special filename in createDownloadResult() if
  5672. inMemoryDownload() is true, now it is done in getFilePath().
  5673. * src/RequestGroup.cc
  5674. * test/RequestGroupTest.cc
  5675. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5677. processed in memory. This is the fix for previous comment out.
  5678. * src/MemoryBufferPreDownloadHandler.cc
  5679. * src/RequestGroup.cc
  5680. * src/RequestGroup.h
  5681. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5682. Commented out the code which sets virtual directory path "[MEMORY]"
  5683. propagate directory to store to following RequestGroup.
  5684. * src/MemoryBufferPreDownloadHandler.cc
  5685. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5686. Bump up version number to 1.0.0b
  5687. * configure.ac
  5688. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5689. Added input_uris.txt to EXTRA_DIST
  5690. * test/Makefile.am
  5691. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5692. Removed PeerObject.h from Makefile.am
  5693. * src/Makefile.am
  5694. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Avoid slow seeding
  5696. * src/PeerInteractionCommand.cc
  5697. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Updated usage for -i option.
  5699. * src/usage_text.h (TEXT_INPUT_FILE)
  5700. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5701. Added INPUT FILE section to man page.
  5702. Escaped fake URLs.
  5703. * doc/aria2c.1.txt
  5704. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5705. Fixed wrong note position for -o option.
  5706. * doc/aria2c.1.txt
  5707. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Fixed compile error without SSL/XML library.
  5709. * src/DefaultBtProgressInfoFile.cc
  5710. * src/DefaultBtProgressInfoFile.h
  5711. * src/FileMetalinkParserState.cc
  5712. * src/RequestGroup.h
  5713. * src/SocketCore.cc
  5714. * src/SocketCore.h
  5715. * src/VerificationMetalinkParserState.cc
  5716. * src/download_helper.h
  5717. * src/main.cc
  5718. * test/DefaultBtProgressInfoFileTest.cc
  5719. * test/DownloadHelperTest.cc
  5720. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5721. Rewritten URI handling functions. They are now provided as a testable
  5722. functions.
  5723. * src/Makefile.am
  5724. * src/RequestGroup.cc
  5725. * src/RequestGroup.h
  5726. * src/download_helper.cc
  5727. * src/download_helper.h
  5728. * src/main.cc
  5729. * test/DownloadHelperTest.cc
  5730. * test/Makefile.am
  5731. * test/input_uris.txt
  5732. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Quickly terminate commands when ctrl-c is pressed.
  5734. * src/DownloadEngine.cc
  5735. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Quickly terminate idle commands when download finished.
  5737. * src/AbstractCommand.cc
  5738. * src/DownloadCommand.cc
  5739. * src/DownloadEngine.cc
  5740. * src/DownloadEngine.h
  5741. * src/SleepCommand.cc
  5742. * src/SleepCommand.h
  5743. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Added the ability to specify output filename and directory in input
  5745. file.
  5746. Additional parameters are added in the following line of URIs
  5747. with proceeding white space(s), 1 parameter in 1 line.
  5748. The parameter names are the same with the command-line option name
  5749. without proceeding "--". Not all the options are available here:
  5750. at the moment, 'dir' and 'out' options are avialable.
  5751. Please note that out option has no effect against Metalink or BitTorrent
  5752. downloads.
  5753. Example input file:
  5754. http://host/foo-1.1.tar.bz2
  5755. out=foo.tar.bz2
  5756. dir=/tmp/downloads
  5757. http://host/thundermonkey-2.0.tar.bz2
  5758. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5759. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5760. thundermonkey-2.0.tar.bz2 is saved as
  5761. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5762. * src/BtPostDownloadHandler.cc
  5763. * src/Metalink2RequestGroup.cc
  5764. * src/Metalink2RequestGroup.h
  5765. * src/MetalinkPostDownloadHandler.cc
  5766. * src/UriListParser.cc
  5767. * src/UriListParser.h
  5768. * src/main.cc
  5769. * test/Metalink2RequestGroupTest.cc
  5770. * test/UriListParserTest.cc
  5771. * test/filelist1.txt
  5772. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Fixed error when SSL library is not found.
  5774. * configure.ac
  5775. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Cross referenced among -s, -C and -j options.
  5777. Updated usage of -C and -s options.
  5778. * src/usage_text.h
  5779. * doc/aria2c.1.txt
  5780. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Fixed bad cast in 32bit platforms.
  5782. * test/DefaultPieceStorageTest.cc
  5783. (DefaultPieceStorageTest::testGetCompletedLength)
  5784. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Fixed unit test fails on 32bit platforms.
  5786. * test/CookieParserTest.cc
  5787. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5788. Show an average download speed in Download results.
  5789. * src/BtFileAllocationEntry.cc
  5790. * src/DefaultPieceStorage.cc
  5791. * src/DownloadContext.cc
  5792. * src/DownloadContext.h
  5793. * src/DownloadResult.h
  5794. * src/RequestGroup.cc
  5795. * src/RequestGroupMan.cc
  5796. * src/StreamFileAllocationEntry.cc
  5797. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5798. Fixed the bug that metalink file is not processed if Content-Type
  5799. field has a paramter.
  5800. * src/HttpResponse.cc
  5801. * src/HttpResponse.h
  5802. * test/HttpResponseTest.cc
  5803. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5804. Removed unused code.
  5805. * src/DefaultBtAnnounce.cc
  5806. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5807. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5808. the value larger than DefaultPieceStorage::getTotalLength() when
  5809. in flight pieces are involved.
  5810. * src/DefaultPieceStorage.cc
  5811. * test/DefaultPieceStorageTest.cc
  5812. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5813. Bump up version number to 1.0.0a.
  5814. * configure.ac
  5815. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5816. Updated configure.ac
  5817. * configure.ac
  5818. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5819. Added usege for proxy.
  5820. * doc/aria2c.1.txt
  5821. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5822. Added usage for --ca-certificate, --certificate, --private-key and
  5823. --check-certificate options.
  5824. * doc/aria2c.1.txt
  5825. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Updated man page
  5827. * doc/aria2c.1.txt
  5828. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5829. Added --no-proxy option. It receives comman separated hostname or
  5830. domains to which proxy should not be used.
  5831. aria2 honors the environment variable no_proxy to override no-proxy
  5832. value in configuration file. The user can override the environment
  5833. variable no_proxy with --no-proxy command-line option.
  5834. * src/AbstractCommand.cc
  5835. * src/OptionHandlerFactory.cc
  5836. * src/option_processing.cc
  5837. * src/prefs.cc
  5838. * src/prefs.h
  5839. * src/usage_text.h
  5840. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5842. The CA certificates are specified in --ca-certificate option.
  5843. By default, the verification is disabled. Use --check-certificate
  5844. option to enable it.
  5845. * src/HttpRequestCommand.cc
  5846. * src/LibgnutlsTLSContext.cc
  5847. * src/LibgnutlsTLSContext.h
  5848. * src/LibsslTLSContext.cc
  5849. * src/LibsslTLSContext.h
  5850. * src/MultiUrlRequestInfo.cc
  5851. * src/OptionHandlerFactory.cc
  5852. * src/SocketCore.cc
  5853. * src/SocketCore.h
  5854. * src/a2functional.h
  5855. * src/message.h
  5856. * src/option_processing.cc
  5857. * src/prefs.cc
  5858. * src/prefs.h
  5859. * src/usage_text.h
  5860. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5861. Added client certificate authentication for SSL/TLS.
  5862. Currently a private key must be decrypted for use with aria2.
  5863. If a user accidentally gives encrypted file to aria2 then following
  5864. thing happens:
  5865. If encrypted private key is given to aria2, it behaves differently
  5866. depending on the ssl library it uses. If aria2 built with openssl then
  5867. openssl prompts the user for password. If aria2 build with gnutls then
  5868. aria2 exists with error at start up.
  5869. * src/DownloadEngineFactory.cc
  5870. * src/MultiUrlRequestInfo.cc
  5871. * src/OptionHandlerFactory.cc
  5872. * src/option_processing.cc
  5873. * src/prefs.cc
  5874. * src/prefs.h
  5875. * src/usage_text.h
  5876. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Introduced TLSContext that holds TLS related data that can be shared
  5878. with multiple SSL connections.
  5879. * src/DownloadEngineFactory.cc
  5880. * src/LibgnutlsTLSContext.cc
  5881. * src/LibgnutlsTLSContext.h
  5882. * src/LibsslTLSContext.cc
  5883. * src/LibsslTLSContext.h
  5884. * src/Makefile.am
  5885. * src/SocketCore.cc
  5886. * src/SocketCore.h
  5887. * src/TLSContext.h
  5888. * src/message.h
  5889. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5890. Fixed the bug that the DiskWriter of the first FileEntry whose
  5891. `needsFileAllocation' property is false is not created
  5892. even if it shares a piece with next FileEntry which `requested' property
  5893. is true.
  5894. Fixed the bug that zero-length file is not created if pre file
  5895. allocation is not done.
  5896. * src/MultiDiskAdaptor.cc
  5897. * src/MultiDiskAdaptor.h
  5898. * test/MultiDiskAdaptorTest.cc
  5899. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Added the ability to pool proxy connection.
  5901. The conneciton in FTP with proxy-method=GET is not pooled.
  5902. Proxy-Connection header will not be sent when sending CONNECT method.
  5903. * src/DownloadEngine.cc
  5904. * src/DownloadEngine.h
  5905. * src/FtpFinishDownloadCommand.cc
  5906. * src/FtpInitiateConnectionCommand.cc
  5907. * src/FtpNegotiationCommand.cc
  5908. * src/HttpDownloadCommand.cc
  5909. * src/HttpInitiateConnectionCommand.cc
  5910. * src/HttpRequest.cc
  5911. * src/HttpRequest.h
  5912. * src/HttpResponse.cc
  5913. * src/HttpSkipResponseCommand.cc
  5914. * test/HttpRequestTest.cc
  5915. * test/HttpResponseTest.cc
  5916. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Handle date before epoch.
  5918. To create *bad* Time object, call Time::null().
  5919. * src/CookieParser.cc
  5920. * src/FtpConnection.cc
  5921. * src/FtpConnection.h
  5922. * src/FtpNegotiationCommand.cc
  5923. * src/RequestGroup.cc
  5924. * src/TimeA2.cc
  5925. * src/TimeA2.h
  5926. * test/CookieParserTest.cc
  5927. * test/FtpConnectionTest.cc
  5928. * test/TimeTest.cc
  5929. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Added support for following envrionment variables: http_proxy,
  5931. https_proxy, ftp_proxy and all_proxy.
  5932. Each variable is equivalent to the aria2 option whose name is the
  5933. variable name with '_' replaced with '-'.
  5934. They overrides options specified in aria2.conf file.
  5935. The envrionment variables can be overrode using command-line option.
  5936. * src/option_processing.cc
  5937. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Renamed --http-proxy-method as --proxy-method.
  5939. * src/AbstractCommand.cc
  5940. * src/FtpInitiateConnectionCommand.cc
  5941. * src/HttpInitiateConnectionCommand.cc
  5942. * src/OptionHandlerFactory.cc
  5943. * src/option_processing.cc
  5944. * src/prefs.cc
  5945. * src/prefs.h
  5946. * src/usage_text.h
  5947. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5949. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5950. Above 3 options and --http-proxy option can handle proxy in URL format
  5951. like: http://user:passwd@host:port.
  5952. If a proxy requires user/password, they must be specified in a URL.
  5953. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5954. instead.
  5955. * src/AbstractCommand.cc
  5956. * src/AbstractCommand.h
  5957. * src/AbstractProxyRequestCommand.cc
  5958. * src/AbstractProxyRequestCommand.h
  5959. * src/AuthConfigFactory.cc
  5960. * src/AuthConfigFactory.h
  5961. * src/FtpFinishDownloadCommand.cc
  5962. * src/FtpInitiateConnectionCommand.cc
  5963. * src/FtpInitiateConnectionCommand.h
  5964. * src/FtpNegotiationCommand.cc
  5965. * src/FtpTunnelRequestCommand.cc
  5966. * src/FtpTunnelRequestCommand.h
  5967. * src/HttpDownloadCommand.cc
  5968. * src/HttpInitiateConnectionCommand.cc
  5969. * src/HttpInitiateConnectionCommand.h
  5970. * src/HttpProxyRequestCommand.cc
  5971. * src/HttpProxyRequestCommand.h
  5972. * src/HttpRequest.cc
  5973. * src/HttpRequest.h
  5974. * src/HttpRequestCommand.cc
  5975. * src/HttpRequestCommand.h
  5976. * src/HttpSkipResponseCommand.cc
  5977. * src/InitiateConnectionCommand.cc
  5978. * src/InitiateConnectionCommand.h
  5979. * src/OptionHandlerFactory.cc
  5980. * src/OptionHandlerImpl.h
  5981. * src/Request.cc
  5982. * src/option_processing.cc
  5983. * src/prefs.cc
  5984. * src/prefs.h
  5985. * src/usage_text.h
  5986. * test/AuthConfigFactoryTest.cc
  5987. * test/HttpRequestTest.cc
  5988. * test/OptionHandlerTest.cc
  5989. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Execute choking algorithm when unchoked and interested peer is
  5991. disconected.
  5992. * src/DefaultPeerStorage.cc
  5993. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Added testcase for BtNotInterestedMessage from unchoked peer.
  5995. * test/BtNotInterestedMessageTest.cc
  5996. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Execute choking algorithm when BtInterestedMessage arrives from
  5998. unchoked peer.
  5999. * src/BtInterestedMessage.cc
  6000. * src/BtInterestedMessage.h
  6001. * src/DefaultBtMessageFactory.cc
  6002. * test/BtInterestedMessageTest.cc
  6003. * test/MockPeerStorage.h
  6004. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. AuthConfigFactory is now part of DownloadEngine.
  6006. * src/AbstractProxyRequestCommand.cc
  6007. * src/AuthConfigFactory.h
  6008. * src/DownloadEngine.cc
  6009. * src/DownloadEngine.h
  6010. * src/FtpConnection.cc
  6011. * src/FtpConnection.h
  6012. * src/FtpNegotiationCommand.cc
  6013. * src/HttpConnection.cc
  6014. * src/HttpRequest.cc
  6015. * src/HttpRequest.h
  6016. * src/HttpRequestCommand.cc
  6017. * src/HttpResponse.cc
  6018. * src/HttpResponseCommand.cc
  6019. * src/HttpSkipResponseCommand.cc
  6020. * src/MultiUrlRequestInfo.cc
  6021. * src/main.cc
  6022. * test/FtpConnectionTest.cc
  6023. * test/HttpRequestTest.cc
  6024. * test/HttpResponseTest.cc
  6025. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Corrected catched exception type.
  6027. * src/ServerStatMan.cc
  6028. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. DNSCache is now part of DownloadEngine.
  6030. * src/DNSCache.h
  6031. * src/DownloadEngine.cc
  6032. * src/DownloadEngine.h
  6033. * src/InitiateConnectionCommand.cc
  6034. * src/MultiUrlRequestInfo.cc
  6035. * test/Makefile.am
  6036. * test/Makefile.in
  6037. * test/SimpleDNSCacheTest.cc
  6038. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6040. DownloadEngine.
  6041. * src/ActivePeerConnectionCommand.cc
  6042. * src/BtSetup.cc
  6043. * src/CUIDCounter.h
  6044. * src/DHTSetup.cc
  6045. * src/DownloadCommand.cc
  6046. * src/DownloadEngine.cc
  6047. * src/DownloadEngine.h
  6048. * src/DownloadEngineFactory.cc
  6049. * src/FileAllocationDispatcherCommand.cc
  6050. * src/InitiatorMSEHandshakeCommand.cc
  6051. * src/PeerInitiateConnectionCommand.cc
  6052. * src/PeerInteractionCommand.cc
  6053. * src/PeerListenCommand.cc
  6054. * src/RequestGroup.cc
  6055. * src/StreamFileAllocationEntry.cc
  6056. * src/TrackerWatcherCommand.cc
  6057. * src/main.cc
  6058. * test/RequestGroupManTest.cc
  6059. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Implemented commented code in BtSeederStateChoke
  6061. * src/BtSeederStateChoke.cc
  6062. * src/Peer.cc
  6063. * src/Peer.h
  6064. * src/PeerInteractionCommand.cc
  6065. * src/PeerSessionResource.cc
  6066. * src/PeerSessionResource.h
  6067. * test/MockBtMessageDispatcher.h
  6068. * test/PeerSessionResourceTest.cc
  6069. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6071. its object.
  6072. * src/AbstractBtMessage.cc
  6073. * src/ActivePeerConnectionCommand.cc
  6074. * src/ActivePeerConnectionCommand.h
  6075. * src/BtContextAwareCommand.cc
  6076. * src/BtContextAwareCommand.h
  6077. * src/BtExtendedMessage.cc
  6078. * src/BtExtendedMessage.h
  6079. * src/BtInterestedMessage.cc
  6080. * src/BtInterestedMessage.h
  6081. * src/BtNotInterestedMessage.cc
  6082. * src/BtNotInterestedMessage.h
  6083. * src/BtRegistry.cc
  6084. * src/BtRegistry.h
  6085. * src/BtSeederStateChoke.cc
  6086. * src/BtSetup.cc
  6087. * src/DHTGetPeersCommand.cc
  6088. * src/DHTGetPeersCommand.h
  6089. * src/DHTPeerAnnounceEntry.cc
  6090. * src/DHTPeerAnnounceEntry.h
  6091. * src/DHTPeerAnnounceStorage.cc
  6092. * src/DHTPeerAnnounceStorage.h
  6093. * src/DHTPeerLookupTask.cc
  6094. * src/DHTPeerLookupTask.h
  6095. * src/DHTSetup.cc
  6096. * src/DHTSetup.h
  6097. * src/DHTTaskFactory.h
  6098. * src/DHTTaskFactoryImpl.cc
  6099. * src/DHTTaskFactoryImpl.h
  6100. * src/DefaultBtAnnounce.cc
  6101. * src/DefaultBtInteractive.cc
  6102. * src/DefaultBtInteractive.h
  6103. * src/DefaultBtMessageDispatcher.cc
  6104. * src/DefaultBtMessageDispatcher.h
  6105. * src/DefaultBtMessageFactory.cc
  6106. * src/DefaultBtMessageFactory.h
  6107. * src/DefaultBtMessageReceiver.cc
  6108. * src/DefaultBtProgressInfoFile.cc
  6109. * src/DefaultBtProgressInfoFile.h
  6110. * src/DefaultBtRequestFactory.cc
  6111. * src/DefaultBtRequestFactory.h
  6112. * src/DefaultExtensionMessageFactory.cc
  6113. * src/DefaultExtensionMessageFactory.h
  6114. * src/DefaultPeerStorage.cc
  6115. * src/DefaultPeerStorage.h
  6116. * src/DownloadEngine.cc
  6117. * src/DownloadEngine.h
  6118. * src/InitiatorMSEHandshakeCommand.cc
  6119. * src/InitiatorMSEHandshakeCommand.h
  6120. * src/MSEHandshake.cc
  6121. * src/MSEHandshake.h
  6122. * src/Makefile.am
  6123. * src/Makefile.in
  6124. * src/PeerChokeCommand.cc
  6125. * src/PeerChokeCommand.h
  6126. * src/PeerInitiateConnectionCommand.cc
  6127. * src/PeerInitiateConnectionCommand.h
  6128. * src/PeerInteractionCommand.cc
  6129. * src/PeerInteractionCommand.h
  6130. * src/PeerObject.h
  6131. * src/PeerReceiveHandshakeCommand.cc
  6132. * src/PeerReceiveHandshakeCommand.h
  6133. * src/ReceiverMSEHandshakeCommand.cc
  6134. * src/RequestGroup.cc
  6135. * src/RequestGroup.h
  6136. * src/RequestGroupMan.cc
  6137. * src/RequestGroupMan.h
  6138. * src/SeedCheckCommand.cc
  6139. * src/SeedCheckCommand.h
  6140. * src/ShareRatioSeedCriteria.h
  6141. * src/SimpleBtMessage.cc
  6142. * src/TrackerWatcherCommand.cc
  6143. * src/TrackerWatcherCommand.h
  6144. * src/UTPexExtensionMessage.cc
  6145. * src/UTPexExtensionMessage.h
  6146. * test/BtCancelMessageTest.cc
  6147. * test/BtChokeMessageTest.cc
  6148. * test/BtExtendedMessageTest.cc
  6149. * test/BtInterestedMessageTest.cc
  6150. * test/BtNotInterestedMessageTest.cc
  6151. * test/BtPieceMessageTest.cc
  6152. * test/BtPortMessageTest.cc
  6153. * test/BtRegistryTest.cc
  6154. * test/BtRejectMessageTest.cc
  6155. * test/BtRequestMessageTest.cc
  6156. * test/DHTPeerAnnounceEntryTest.cc
  6157. * test/DHTPeerAnnounceStorageTest.cc
  6158. * test/DefaultBtMessageDispatcherTest.cc
  6159. * test/DefaultBtMessageFactoryTest.cc
  6160. * test/DefaultBtProgressInfoFileTest.cc
  6161. * test/DefaultBtRequestFactoryTest.cc
  6162. * test/DefaultExtensionMessageFactoryTest.cc
  6163. * test/MSEHandshakeTest.cc
  6164. * test/MockDHTTaskFactory.h
  6165. * test/ShareRatioSeedCriteriaTest.cc
  6166. * test/UTPexExtensionMessageTest.cc
  6167. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Fixed compiler warning.
  6169. * test/UtilTest.cc
  6170. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Treat Cookie object as session cookie if expiry = 0 is given.
  6172. With this change, you can specify session scoped cookies in an external
  6173. file setting expiry value to 0.
  6174. * src/Cookie.cc
  6175. * src/Cookie.h
  6176. * test/CookieParserTest.cc
  6177. * test/CookieStorageTest.cc
  6178. * test/CookieTest.cc
  6179. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Changed signature of DHTMessageFactory::createResponseMessage().
  6181. Removed unused validateIDMatch.
  6182. * src/DHTMessageFactory.h
  6183. * src/DHTMessageFactoryImpl.cc
  6184. * src/DHTMessageFactoryImpl.h
  6185. * src/DHTMessageTracker.cc
  6186. * test/DHTMessageFactoryImplTest.cc
  6187. * test/MockDHTMessageFactory.h
  6188. Dropped DHT message coming from same ID of localhost.
  6189. * src/DHTMessageReceiver.cc
  6190. Rejected adding node whose ID is the same as localhost's.
  6191. * src/DHTRoutingTable.cc
  6192. * test/BtPortMessageTest.cc
  6193. * test/DHTRoutingTableTest.cc
  6194. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Pool connection when redirection occurs with Content-Length = 0.
  6196. * src/HttpSkipResponseCommand.cc
  6197. * src/HttpSkipResponseCommand.h
  6198. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Fixed the bug that causes time out when redirection occurs with
  6200. content-length 0.
  6201. * src/HttpResponseCommand.cc
  6202. * src/HttpSkipResponseCommand.cc
  6203. * src/HttpSkipResponseCommand.h
  6204. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Now each status legends is shown only when it appears in Download
  6206. Result. If Download Result has no item, then status legend will not
  6207. be printed.
  6208. * src/RequestGroupMan.cc
  6209. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Removed duplicate creation of OptionHandlers.
  6211. * src/option_processing.cc
  6212. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Fixed the bug that causes segmentation fault when accessing files which
  6214. don't exist or are not included in --select-file option while
  6215. validating chunk checksum.
  6216. * src/MultiDiskAdaptor.cc
  6217. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Fixed compiler warning.
  6219. * test/UtilTest.cc
  6220. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6222. * src/IteratableChecksumValidator.cc
  6223. * src/IteratableChunkChecksumValidator.cc
  6224. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. * Release 0.16.2
  6226. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Added Serbian translation. Updated Ukrainian translation.
  6228. Thanks to all translators.
  6229. * po/sr.po
  6230. * po/uk.po
  6231. * po/LINGUAS
  6232. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Bump up version number to 0.16.2
  6234. * configure.ac
  6235. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Added length equality test to operator== to drop a piece message
  6237. whose length does not match to the requested one.
  6238. * src/RequestSlot.cc
  6239. * test/DefaultBtMessageDispatcherTest.cc
  6240. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6242. recieved.
  6243. In this fix, if a request larger than 16KiB length is received, aria2
  6244. disconnects the peer.
  6245. * src/BtConstants.h
  6246. * src/PeerMessageUtil.cc
  6247. * src/PeerMessageUtil.h
  6248. * test/BtRequestMessageTest.cc
  6249. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. * Release 0.16.1
  6251. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6253. * doc/aria2c.1.txt
  6254. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6256. Updated French, Simplified Chinese and Japanese translations.
  6257. Thanks to all translators.
  6258. en@quot and en@boldquot are also added.
  6259. * po/LINGUAS
  6260. * po/fr.po
  6261. * po/ja.po
  6262. * po/uk.po
  6263. * po/vi.po
  6264. * po/zh_CN.po
  6265. * po/zh_TW.po
  6266. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Bump up version number to 0.16.1.
  6268. * configure.ac
  6269. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Updated README.
  6271. * README
  6272. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6274. not to replace '--' with em dash character.
  6275. * doc/aria2c.1.txt
  6276. * doc/makeman
  6277. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6279. every SEC seconds.
  6280. * src/DownloadEngineFactory.cc
  6281. * src/OptionHandlerFactory.cc
  6282. * src/option_processing.cc
  6283. * src/usage_text.h
  6284. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Fixed compile warning on linux-amd64
  6286. * src/FtpConnection.cc
  6287. * src/IteratableChunkChecksumValidator.cc
  6288. * src/MultiDiskAdaptor.cc
  6289. Fixed the bug that unit test fails on linux-amd64
  6290. * test/UtilTest.cc
  6291. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Added --dht-file-path option to change the path to dht.dat, which is a
  6293. serialized DHT routing table.
  6294. * src/OptionHandlerFactory.cc
  6295. * src/option_processing.cc
  6296. * src/usage_text.h
  6297. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Fixed possible underflow.
  6299. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6300. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Fixed the bug that last character in URI is not encoded.
  6302. * src/Request.cc
  6303. * test/RequestTest.cc
  6304. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Fixed the bug that referer header field contains fragment.
  6306. Now Request class removes fragment part of URI and encodes it
  6307. in Request::setUri() and setReferer().
  6308. * src/Request.h
  6309. * src/Request.cc
  6310. * test/RequestTest.cc
  6311. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Added missing m4 macros.
  6313. * m4/cppunit.m4
  6314. * m4/libgcrypt.m4
  6315. * m4/libgnutls-extra.m4
  6316. * m4/libgnutls.m4
  6317. * m4/libxml2.m4
  6318. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Fixed compile error with gcc-4.4(snapshot)
  6320. * src/File.cc
  6321. * src/FtpConnection.cc
  6322. * src/OptionHandlerImpl.h
  6323. * src/Util.cc
  6324. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Removed assert()
  6326. * src/SocketBuffer.cc (SocketBuffer::send)
  6327. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Changed the type of _numNewConnection to unsigned int.
  6329. * src/ActivePeerConnectionCommand.cc
  6330. * src/ActivePeerConnectionCommand.h
  6331. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. * Release 0.16.0
  6333. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Updated doc
  6335. * README
  6336. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6338. translations. Thanks to all translators.
  6339. * po/bg.po
  6340. * po/de.po
  6341. * po/fr.po
  6342. * po/ja.po
  6343. * po/zh_CN.po
  6344. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. Bump up version number to 0.16.0.
  6346. * configure.ac
  6347. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6349. int32_t.
  6350. Changed the type of count to int32_t.
  6351. * src/Metalink2RequestGroup.cc
  6352. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Added test for Time::elapsed(time_t).
  6354. * test/TimeTest.cc
  6355. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6357. Util::difftv() should be used instead.
  6358. * src/TimeA2.cc
  6359. * src/TimeA2.h
  6360. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Made socket for dht connections non-blocking
  6362. * src/DHTAbstractMessage.cc
  6363. * src/DHTAbstractMessage.h
  6364. * src/DHTConnection.h
  6365. * src/DHTConnectionImpl.cc
  6366. * src/DHTConnectionImpl.h
  6367. * src/DHTMessage.h
  6368. * src/DHTMessageDispatcherImpl.cc
  6369. * src/DHTMessageDispatcherImpl.h
  6370. * src/DHTUnknownMessage.cc
  6371. * src/DHTUnknownMessage.h
  6372. * src/SocketCore.cc
  6373. * src/SocketCore.h
  6374. * test/MockDHTMessage.h
  6375. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Changed the type of offset to int.
  6377. * src/ParameterizedStringParser.cc
  6378. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Made getAsInt() return int32_t
  6380. * src/Option.h
  6381. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6383. build.
  6384. * configure.ac
  6385. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Use sqlite3_open if sqlite3_open_v2 is not available.
  6387. * src/Sqlite3MozCookieParser.cc
  6388. * src/Sqlite3MozCookieParser.h
  6389. * m4/sqlite3.m4
  6390. * test/Sqlite3MozCookieParserTest.cc
  6391. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6393. * src/BtPieceMessage.cc
  6394. * src/DHTPeerAnnounceStorage.cc
  6395. * src/DefaultPieceStorage.cc
  6396. * src/DownloadCommand.cc
  6397. * src/DownloadEngine.cc
  6398. * src/FtpConnection.cc
  6399. * src/PeerConnection.cc
  6400. * src/PeerMessageUtil.cc
  6401. * src/RequestGroup.cc
  6402. * src/RequestGroupMan.cc
  6403. * src/SimpleBtMessage.cc
  6404. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6406. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6407. * src/AbstractDiskWriter.cc
  6408. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Don't set Request::supportsPersistentConnection() in HttpConnection
  6410. since this code is also used in AbstractProxyResponseCommand.
  6411. Moved those code to HttpResponse.
  6412. * src/HttpResponse.cc
  6413. * src/HttpResponse.h
  6414. * src/HttpConnection.cc
  6415. * src/HttpConnection.h
  6416. * src/HttpResponseCommand.cc
  6417. * test/HttpResponseTest.cc
  6418. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6420. The configuration is minimum: no torrent, no metalink, so there may be
  6421. other compile error on their code.
  6422. * src/a2netcompat.h
  6423. * src/File.cc
  6424. * src/File.h
  6425. * src/SocketCore.cc
  6426. * src/SocketCore.h
  6427. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Made a socket of incoming peer non-blocking.
  6429. * src/PeerListenCommand.cc
  6430. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6432. whole message data is not sent in one send() call.
  6433. * src/BtPieceMessage.cc
  6434. * src/BtPieceMessage.h
  6435. * src/PeerConnection.cc
  6436. * src/PeerConnection.h
  6437. * src/SimpleBtMessage.cc
  6438. * src/SimpleBtMessage.h
  6439. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Fixed the bug that aria2 downloads faster than max-download-limit when
  6441. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6442. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6443. , instead of sum of them.
  6444. * src/ActivePeerConnectionCommand.cc
  6445. * src/DefaultBtInteractive.cc
  6446. * src/DownloadCommand.cc
  6447. * src/PeerInteractionCommand.cc
  6448. * src/PeerReceiveHandshakeCommand.cc
  6449. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Fixed the bug that HTTPS download fails.
  6451. * src/AbstractCommand.cc
  6452. * src/AbstractCommand.h
  6453. * src/DownloadCommand.cc
  6454. * src/FtpConnection.cc
  6455. * src/HttpConnection.cc
  6456. * src/HttpRequestCommand.cc
  6457. * src/HttpResponseCommand.cc
  6458. * src/HttpSkipResponseCommand.cc
  6459. * src/MSEHandshake.cc
  6460. * src/PeerConnection.cc
  6461. * src/SocketCore.cc
  6462. * src/SocketCore.h
  6463. Fixed the bug that aria2 doesn't download whole content body and cannot
  6464. reuse connection if chunked transfer encoding and gzip content encoding
  6465. are set.
  6466. * src/DownloadCommand.cc
  6467. * src/HttpSkipResponseCommand.cc
  6468. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Updated man page.
  6470. * doc/aria2c.1.txt
  6471. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. When error occurred while aria2 was parsing an .aria2.conf file, print
  6473. the usage of the option that caused error.
  6474. * src/option_processing.cc
  6475. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Fixed compile error on OptionHandlerException
  6477. * src/Makefile.am
  6478. * src/OptionHandlerException.cc
  6479. * src/OptionHandlerException.h
  6480. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Moved message of the error to OptionHandlerException.h
  6482. * src/NameMatchOptionHandler.h
  6483. * src/OptionHandlerException.h
  6484. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. When error occurs while aria2 is parsing an command-line option, print
  6486. the usage of the option.
  6487. * src/Makefile.am
  6488. * src/NameMatchOptionHandler.h
  6489. * src/OptionHandlerException.h
  6490. * src/option_processing.cc
  6491. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Reverted previous change.
  6493. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6494. username is not in URI.
  6495. * src/HttpRequest.cc
  6496. * src/Request.cc
  6497. * test/HttpRequestTest.cc
  6498. * test/RequestTest.cc
  6499. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Now colon is required for username and password in FTP URL, like:
  6501. ftp://username:password@host.
  6502. If colon is not there, aria2 don't parse it as a username. For example,
  6503. aria2 don't retrieve username from ftp://username@host.
  6504. This fix was made in order to login FTP server via non-transparent ftp
  6505. proxy.
  6506. * src/Request.cc
  6507. * test/RequestTest.cc
  6508. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Use netrc for HTTP.
  6510. Now FTP user/password is sent in Authorization header when
  6511. --ftp-via-http-proxy=get is given.
  6512. * src/AuthConfigFactory.cc
  6513. * src/HttpRequest.cc
  6514. * src/HttpRequest.h
  6515. * src/NetrcAuthResolver.cc
  6516. * src/NetrcAuthResolver.h
  6517. * src/OptionHandlerFactory.cc
  6518. * src/option_processing.cc
  6519. * src/prefs.cc
  6520. * src/prefs.h
  6521. * test/AuthConfigFactoryTest.cc
  6522. * test/HttpRequestTest.cc
  6523. * test/NetrcAuthResolverTest.cc
  6524. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Issue PWD command first and get working directory and use it as a prefix
  6526. for CWD command.
  6527. * src/DownloadEngine.cc
  6528. * src/DownloadEngine.h
  6529. * src/FtpConnection.cc
  6530. * src/FtpConnection.h
  6531. * src/FtpFinishDownloadCommand.cc
  6532. * src/FtpInitiateConnectionCommand.cc
  6533. * src/FtpNegotiationCommand.cc
  6534. * src/FtpNegotiationCommand.h
  6535. * test/FtpConnectionTest.cc
  6536. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Removed default user/pass for FTP user/pass, since it should not have
  6538. precedence over netrc configuration by default.
  6539. * src/OptionHandlerFactory.cc
  6540. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Added debug log for socket event.
  6542. * src/AbstractCommand.cc
  6543. * src/PeerAbstractCommand.cc
  6544. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Log microseconds.
  6546. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6547. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Replaced HelpItem.cc with OptionHandler.cc.
  6549. * po/POTFILES.in
  6550. Updated po files with 'make update-po'
  6551. * po/aria2c.pot
  6552. * po/*.po
  6553. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Removed possible values from the text.
  6555. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6556. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Removed unused preferences:
  6558. PREF_NO_PREALLOCATION
  6559. PREF_STDOUT_LOG
  6560. PREF_TRACKER_MAX_TRIES
  6561. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6562. PREF_MIN_SEGMENT_SIZE
  6563. * src/option_processing.cc
  6564. * src/prefs.cc
  6565. * src/prefs.h
  6566. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Integrated HelpItem into OptionParser to ease the workload for adding
  6568. new options. Removed default value from usage text.
  6569. * src/HelpItem.cc: Removed.
  6570. * src/HelpItem.h: Removed.
  6571. * src/HelpItemFactory.cc: Removed.
  6572. * src/HelpItemFactory.h: Removed.
  6573. * src/Makefile.am
  6574. * src/Makefile.in
  6575. * src/NameMatchOptionHandler.h
  6576. * src/OptionHandler.cc
  6577. * src/OptionHandler.h
  6578. * src/OptionHandlerFactory.cc
  6579. * src/OptionHandlerImpl.h
  6580. * src/OptionParser.cc
  6581. * src/OptionParser.h
  6582. * src/TagContainer.cc: Removed.
  6583. * src/TagContainer.h: Removed.
  6584. * src/TaggedItem.cc: Removed.
  6585. * src/TaggedItem.h: Removed.
  6586. * src/main.cc
  6587. * src/option_processing.cc
  6588. * src/usage_text.h
  6589. * src/version_usage.cc
  6590. * test/HelpItemTest.cc: Removed.
  6591. * test/Makefile.am
  6592. * test/Makefile.in
  6593. * test/OptionHandlerTest.cc
  6594. * test/OptionParserTest.cc
  6595. * test/TagContainerTest.cc: Removed.
  6596. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Moved `TransferStat stat = ...' to inside the `if' clause.
  6598. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6599. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Fixed the bug that a block in a piece is requested when same block is
  6601. already requested to the same peer in end game mode.
  6602. * src/BtRequestFactory.h
  6603. * src/DefaultBtInteractive.cc
  6604. * src/DefaultBtRequestFactory.cc
  6605. * src/DefaultBtRequestFactory.h
  6606. * src/DefaultPieceStorage.cc
  6607. * src/DefaultPieceStorage.h
  6608. * src/PieceStorage.h
  6609. * src/UnknownLengthPieceStorage.cc
  6610. * src/UnknownLengthPieceStorage.h
  6611. * test/DefaultBtRequestFactoryTest.cc
  6612. * test/DefaultPieceStorageTest.cc
  6613. * test/MockBtRequestFactory.h
  6614. * test/MockPieceStorage.h
  6615. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Removed _uploadLength and _downloadLength from PeerSessionResource
  6617. and use PeerStat::_sessionUploadLength and
  6618. PeerStat::_sessionDownloadLength.
  6619. * src/PeerSessionResource.cc
  6620. * src/PeerSessionResource.h
  6621. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Fixed the bug that prefixLength of split bucket which doesn't include
  6623. local node ID is incremented.
  6624. * src/DHTBucket.cc
  6625. * src/DHTBucket.h
  6626. * test/DHTBucketTest.cc
  6627. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Added cookies.sqlite to EXTRA_DIST
  6629. * test/Makefile.am
  6630. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Added Turkish translation. Updated French, German, Russian and
  6632. Simplified Chinese translations. Thanks to all translators.
  6633. * po/LINGUAS
  6634. * po/de.po
  6635. * po/fr.po
  6636. * po/ru.po
  6637. * po/tr.po
  6638. * po/zh_CN.po
  6639. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Added deliminating text to the beginning of the log so that one can find
  6641. where the log starts easily.
  6642. * src/main.cc
  6643. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6645. to fix compile error when async DNS is not enabled by configuration.
  6646. * src/AbstractCommand.cc
  6647. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. If establishing conneciton to a server is failed, then mark error on
  6649. its ServerStat.
  6650. Added the cause of error to log when error event occurred.
  6651. Moved message string to message.h for translation.
  6652. * src/AbstractCommand.cc
  6653. * src/AbstractCommand.h
  6654. * src/FtpNegotiationCommand.cc
  6655. * src/HttpRequestCommand.cc
  6656. * src/PeerAbstractCommand.cc
  6657. * src/message.h
  6658. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Added the function to get error message from socket.
  6660. * src/SocketCore.cc
  6661. * src/SocketCore.h
  6662. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6664. * src/RequestGroupMan.cc
  6665. * src/RequestGroupMan.h
  6666. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. If error event is received in epoll, then abort download immediately.
  6668. * src/AbstractCommand.cc
  6669. * src/Command.cc
  6670. * src/Command.h
  6671. * src/DownloadEngine.cc
  6672. * src/PeerAbstractCommand.cc
  6673. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Added usage message for --uri-selector, --server-stat-of,
  6675. --server-stat-in, --server-stat-timeout options.
  6676. * src/HelpItemFactory.cc
  6677. * src/usage_text.h
  6678. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Added upper limit of FTP response buffer. The current implementation
  6680. uses 4096bytes as a limit.
  6681. * src/FtpConnection.cc
  6682. * src/FtpConnection.h
  6683. * test/FtpConnectionTest.cc
  6684. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Use non-blocking socket for TCP communication to avoid possible
  6686. blocking due to buffer full.
  6687. * src/AbstractProxyRequestCommand.cc
  6688. * src/FtpConnection.cc
  6689. * src/FtpConnection.h
  6690. * src/FtpNegotiationCommand.cc
  6691. * src/FtpNegotiationCommand.h
  6692. * src/HttpConnection.cc
  6693. * src/HttpConnection.h
  6694. * src/HttpRequestCommand.cc
  6695. * src/InitiatorMSEHandshakeCommand.cc
  6696. * src/InitiatorMSEHandshakeCommand.h
  6697. * src/MSEHandshake.cc
  6698. * src/MSEHandshake.h
  6699. * src/Makefile.am
  6700. * src/PeerConnection.cc
  6701. * src/PeerConnection.h
  6702. * src/PeerInteractionCommand.cc
  6703. * src/PeerListenCommand.cc
  6704. * src/ReceiverMSEHandshakeCommand.cc
  6705. * src/ReceiverMSEHandshakeCommand.h
  6706. * src/SocketBuffer.cc
  6707. * src/SocketBuffer.h
  6708. * src/SocketCore.cc
  6709. * src/SocketCore.h
  6710. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Call setStatusRealtime() in constructor.
  6712. * src/RealtimeCommand.cc
  6713. * src/RealtimeCommand.h
  6714. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Call Download::setNoWait(true) to execute newly created command without
  6716. a pause.
  6717. * src/AbstractCommand.cc
  6718. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6720. found' error from HTTP/FTP server NUM times without getting single
  6721. bytes of data, then force the download to fail.
  6722. Basically aria2 tris all URIs available. So if long list of URIs are
  6723. specified in Metalink, then aria2 will take a long time to fail
  6724. eventually if all URIs are outdated. This option eases this situation
  6725. to limit the number of servers to try.
  6726. * src/FtpNegotiationCommand.cc
  6727. * src/HelpItemFactory.cc
  6728. * src/HttpResponseCommand.cc
  6729. * src/OptionHandlerFactory.cc
  6730. * src/PeerStat.h
  6731. * src/RequestGroup.cc
  6732. * src/RequestGroup.h
  6733. * src/SegmentMan.cc
  6734. * src/SegmentMan.h
  6735. * src/option_processing.cc
  6736. * src/prefs.cc
  6737. * src/prefs.h
  6738. * src/usage_text.h
  6739. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6741. response even if more than one response is in it.
  6742. * src/FtpConnection.cc
  6743. * src/FtpConnection.h
  6744. * test/FtpConnectionTest.cc
  6745. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Merged from stable-0.15
  6747. * m4/libcares.m4
  6748. Use pkg-config
  6749. * m4/sqlite3.m4
  6750. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Removed unnecessary if statement.
  6752. * src/DefaultPieceStorage.cc (initPieceStorage)
  6753. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Added --connect-timeout option to specify connect timeout in seconds.
  6755. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6756. connecting to BitTorrent peer is not controlled by this option.
  6757. * src/AbstractProxyRequestCommand.cc
  6758. * src/FtpNegotiationCommand.cc
  6759. * src/HelpItemFactory.cc
  6760. * src/HttpRequestCommand.cc
  6761. * src/OptionHandlerFactory.cc
  6762. * src/option_processing.cc
  6763. * src/prefs.cc
  6764. * src/prefs.h
  6765. * src/usage_text.h
  6766. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Added help message for -R option.
  6768. * src/HelpItemFactory.cc
  6769. * src/usage_text.h
  6770. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Added the message that the time is in local time zone.
  6772. * src/RequestGroup.cc
  6773. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Implemented the ability to get timestamp from remote FTP server using
  6775. MDTM command described in RFC3659.
  6776. * src/FtpConnection.cc
  6777. * src/FtpConnection.h
  6778. * src/FtpNegotiationCommand.cc
  6779. * src/FtpNegotiationCommand.h
  6780. * test/FtpConnectionTest.cc
  6781. * test/Makefile.am
  6782. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Implemented the ability to get timestamp from remote HTTP server and
  6784. apply it to local file. To enable this feature, --remote-time option
  6785. is added. No usage text has been written yet.
  6786. If several servers returns difference timestamp, then aria2 uses latest
  6787. one.
  6788. * src/CopyDiskAdaptor.cc
  6789. * src/CopyDiskAdaptor.h
  6790. * src/DirectDiskAdaptor.cc
  6791. * src/DirectDiskAdaptor.h
  6792. * src/DiskAdaptor.h
  6793. * src/File.cc
  6794. * src/File.h
  6795. * src/HttpHeader.cc
  6796. * src/HttpHeader.h
  6797. * src/HttpResponse.cc
  6798. * src/HttpResponse.h
  6799. * src/HttpResponseCommand.cc
  6800. * src/HttpResponseCommand.h
  6801. * src/MultiDiskAdaptor.cc
  6802. * src/MultiDiskAdaptor.h
  6803. * src/OptionHandlerFactory.cc
  6804. * src/RequestGroup.cc
  6805. * src/RequestGroup.h
  6806. * src/RequestGroupMan.cc
  6807. * src/option_processing.cc
  6808. * src/prefs.cc
  6809. * src/prefs.h
  6810. * test/CopyDiskAdaptorTest.cc
  6811. * test/FileTest.cc
  6812. * test/Makefile.am
  6813. * test/Makefile.in
  6814. * test/MultiDiskAdaptorTest.cc
  6815. * test/TestUtil.cc
  6816. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Fixed the bug that DiskWriterEntry is not created when its
  6818. FileEntry.isRequested() is false and it doesn't share a piece with
  6819. other FileEntries that are requested. This bug causes segmentation fault
  6820. in the end.
  6821. * src/MultiDiskAdaptor.cc
  6822. * src/MultiDiskAdaptor.h
  6823. * src/MultiFileAllocationIterator.cc
  6824. * test/MultiDiskAdaptorTest.cc
  6825. * test/MultiFileAllocationIteratorTest.cc
  6826. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6827. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6828. called if the number of file entries are greater than max open files.
  6829. * src/AbstractSingleDiskAdaptor.cc
  6830. * src/AbstractSingleDiskAdaptor.h
  6831. * src/DiskAdaptor.h
  6832. * src/MultiDiskAdaptor.cc
  6833. * src/MultiDiskAdaptor.h
  6834. * test/MultiDiskAdaptorTest.cc
  6835. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Added a constuctor that receives struct timeval.
  6837. Added operator<.
  6838. * src/TimeA2.cc
  6839. * src/TimeA2.h
  6840. * test/TimeTest.cc
  6841. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6843. * src/CookieParser.cc
  6844. * test/CookieParserTest.cc
  6845. * test/HttpResponseTest.cc
  6846. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Implmented the functions to parse date.
  6848. * src/TimeA2.cc
  6849. * src/TimeA2.h
  6850. * test/TimeTest.cc
  6851. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Added "Firefox3 Cookie" feature to FeatureConfig
  6853. * src/FeatureConfig.cc
  6854. * src/FeatureConfig.h
  6855. * test/FeatureConfigTest.cc
  6856. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Bump up version number to 0.16.0b
  6858. * configure.ac
  6859. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Use pkg-config if is is available.
  6861. * m4/openssl.m4
  6862. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6864. * src/BtAnnounce.h
  6865. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. If an error occurred with a URI, remove identical URI from remaining
  6867. URI list because it is likely that same error occurred in the end and it
  6868. is waste of time.
  6869. * src/AbstractCommand.cc
  6870. * src/RequestGroup.cc
  6871. * src/RequestGroup.h
  6872. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Removed wrong comment.
  6874. * src/DefaultPeerStorage.cc
  6875. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6877. Added return value of getpid() to argument of srand() to achieve more
  6878. randomized value.
  6879. * src/SimpleRandomizer.cc
  6880. * src/SimpleRandomizer.h
  6881. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Contact tracker frequently when the number of connections are 0 and
  6883. download is not finished yet.
  6884. * src/ActivePeerConnectionCommand.cc
  6885. * src/BtAnnounce.h
  6886. * src/DefaultBtAnnounce.cc
  6887. * src/DefaultBtAnnounce.h
  6888. * test/MockBtAnnounce.h
  6889. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Moved threshold values to UTPexExtensionMessage.
  6891. * src/DefaultBtInteractive.cc
  6892. * src/Peer.cc
  6893. * src/Peer.h
  6894. * src/UTPexExtensionMessage.cc
  6895. * src/UTPexExtensionMessage.h
  6896. * test/UTPexExtensionMessageTest.cc
  6897. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Added _incoming member to Peer class and made it true if the peer
  6899. initiated connection. Don't add those peer to UTPex message.
  6900. If extended handshake is received, assign _incoming to false.
  6901. * src/DefaultBtInteractive.cc
  6902. * src/HandshakeExtensionMessage.cc
  6903. * src/Peer.cc
  6904. * src/Peer.h
  6905. * src/PeerListenCommand.cc
  6906. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6908. Encoding Decoder. Removed size threshold for turning off on the fly
  6909. inflation because resulting file may or may not be inflated depending
  6910. on the file size and I think it is not expected by users.
  6911. This change fixes segmentation fault when Metalink file contains gzipped
  6912. file and its filesize is provided.
  6913. * src/HttpResponseCommand.cc
  6914. * src/HttpResponseCommand.h
  6915. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Made Cookie immutable.
  6917. * src/Cookie.cc
  6918. * src/Cookie.h
  6919. * src/CookieParser.cc
  6920. * src/CookieParser.h
  6921. * src/CookieStorage.cc
  6922. * test/CookieParserTest.cc
  6923. * test/CookieStorageTest.cc
  6924. * test/NsCookieParserTest.cc
  6925. * test/Sqlite3MozCookieParserTest.cc
  6926. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Removed CookieBox, CookieBoxFactory.
  6928. * src/CookieBox.cc
  6929. * src/CookieBox.h
  6930. * src/CookieBoxFactory.cc
  6931. * src/CookieBoxFactory.h
  6932. * src/Makefile.am
  6933. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Use CookieStorage class instead of CookieBox class.
  6935. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6936. * src/AbstractProxyRequestCommand.cc
  6937. * src/CookieStorage.cc
  6938. * src/DownloadEngine.cc
  6939. * src/DownloadEngine.h
  6940. * src/HttpConnection.cc
  6941. * src/HttpConnection.h
  6942. * src/HttpRequest.cc
  6943. * src/HttpRequest.h
  6944. * src/HttpRequestCommand.cc
  6945. * src/HttpResponse.cc
  6946. * src/HttpResponseCommand.cc
  6947. * src/HttpSkipResponseCommand.cc
  6948. * src/Makefile.am
  6949. * src/MultiUrlRequestInfo.cc
  6950. * src/Request.cc
  6951. * src/Request.h
  6952. * src/main.cc
  6953. * test/AllTest.cc
  6954. * test/CookieStorageTest.cc
  6955. * test/CookieTest.cc
  6956. * test/HttpRequestTest.cc
  6957. * test/HttpResponseTest.cc
  6958. * test/Makefile.am
  6959. * test/NsCookieParserTest.cc
  6960. * test/Sqlite3MozCookieParserTest.cc
  6961. * test/nscookietest.txt
  6962. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Updated
  6964. * test/Cookies.sqlite
  6965. * test/nscookietest.txt
  6966. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Added tests for CookieStorage::load()
  6968. * test/CookieStorageTest.cc
  6969. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Added CookieStorage class which is based on RFC2109 and manages cookies
  6971. more strictly than CookieBox and CookieBoxFactory class.
  6972. * src/CookieStorage.cc
  6973. * src/CookieStorage.h
  6974. * src/Cookie.cc
  6975. * src/Cookie.h
  6976. * test/CookieStorageTest.cc
  6977. * test/CookieTest.cc
  6978. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Fixed the bug that commands are created more than the number of pieces.
  6980. * src/RequestGroup.cc
  6981. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Fixed infinite loop bug in FTP when SIZE command failed.
  6983. * src/FtpNegotiationCommand.cc
  6984. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. Removed DirectDiskAdaptorTest.h
  6986. * test/Makefile.am
  6987. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Fixed chunk checksum validation cannot detect trailing garbage data.
  6989. BUG#2074141
  6990. * src/AbstractSingleDiskAdaptor.cc
  6991. * src/AbstractSingleDiskAdaptor.h
  6992. * src/CheckIntegrityEntry.cc
  6993. * src/CheckIntegrityEntry.h
  6994. * src/DiskAdaptor.h
  6995. * src/MultiDiskAdaptor.cc
  6996. * src/MultiDiskAdaptor.h
  6997. * src/RequestGroup.cc
  6998. * test/DirectDiskAdaptorTest.cc
  6999. * test/MultiDiskAdaptorTest.cc
  7000. * test/TestUtil.cc
  7001. * test/TestUtil.h
  7002. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Bump up version number of dht.dat file to 3. In version 3 format, time
  7004. is stored in 64bit, network byte order.
  7005. New build can load old format(version 2) but it saves the file in new
  7006. format. It means once you used new build, your dht.dat becomes
  7007. incompatible with older build.
  7008. * src/DHTRoutingTableDeserializer.cc
  7009. * src/DHTRoutingTableSerializer.cc
  7010. * test/DHTRoutingTableSerializerTest.cc
  7011. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7013. * test/Makefile.am
  7014. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Bump up version number of .aria2 control file to 0001.
  7016. New aria2 can still load version 0000 file but it saves the file in
  7017. version 0001 format. It means that new aria2 can resume download
  7018. started by old aria2 but the opposite is not true.
  7019. * src/DefaultBtProgressInfoFile.cc
  7020. * src/DefaultBtProgressInfoFile.h
  7021. * test/DefaultBtProgressInfoFileTest.cc
  7022. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Added ntoh64 and hton64 as inline functions.
  7024. * src/Util.cc
  7025. * test/UtilTest.cc
  7026. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Added sqlite3 depenency and Firefox3 cookie support.
  7028. * README
  7029. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. State that firefox3 cookie is supported explicitly in the usage.
  7031. * src/usage_text.h
  7032. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Externalized message.
  7034. * src/RequestGroupMan.cc
  7035. * src/message.h
  7036. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Save temporary file first and rename to the destination on success.
  7038. Added test cases.
  7039. * src/RequestGroupMan.cc
  7040. * test/RequestGroupManTest.cc
  7041. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Fixed the bug that the number of connected peer is exceeding the limit
  7043. (55 by default) in seeding mode.
  7044. Multiplied 0.8 to _maxUploadSpeedLimit.
  7045. * src/ActivePeerConnectionCommand.cc
  7046. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7047. Clear table item.
  7048. * src/Dictionary.cc
  7049. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Fixed error handling of lseek.
  7051. * src/AbstractDiskWriter.cc
  7052. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7054. style cookie file.
  7055. * src/usage_text.h
  7056. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7058. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7059. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7060. * src/Util.cc
  7061. * src/Util.h
  7062. * src/CookieParser.cc
  7063. * test/UtilTest.cc
  7064. * test/CookieParserTest.cc
  7065. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Separate the implementation to load old mozilla format of cookie to
  7067. NsCookieParser class.
  7068. * src/CookieBoxFactory.cc
  7069. * src/CookieBoxFactory.h
  7070. * src/NsCookieParser.cc
  7071. * src/NsCookieParser.h
  7072. * test/NsCookieParserTest.cc
  7073. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Made parse() const
  7075. * src/Sqlite3MozCookieParser.cc
  7076. * src/Sqlite3MozCookieParser.h
  7077. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Added firefox3 cookie support based on the patch submitted by
  7079. tizianomueller.
  7080. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7081. this functionality.
  7082. * configure.ac
  7083. * m4/sqlite3.m4
  7084. * src/CookieBoxFactory.cc
  7085. * src/CookieBoxFactory.h
  7086. * src/Makefile.am
  7087. * src/Makefile.in
  7088. * src/Sqlite3MozCookieParser.cc
  7089. * src/Sqlite3MozCookieParser.h
  7090. * src/main.cc
  7091. * test/CookieBoxFactoryTest.cc
  7092. * test/Makefile.am
  7093. * test/Makefile.in
  7094. * test/Sqlite3MozCookieParserTest.cc
  7095. * test/badcookies.sqlite
  7096. * test/cookies.sqlite
  7097. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Added Danish and Greek translations.
  7099. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7100. Great thanks to all translators.
  7101. * po/LINGUAS
  7102. * po/el.po
  7103. * po/da.po
  7104. * po/es.po
  7105. * po/ca.po
  7106. * po/nn.po
  7107. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Fixed man page: --follow-bittorrent should be --follow-torrent
  7109. * doc/aria2c.1.txt
  7110. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Fixed: numCommand is less than the value specified in -C option.
  7112. * src/RequestGroup.cc
  7113. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Fixed occasional assertion failure in PieceSegment.
  7115. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7116. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7117. creation of duplicate segments and one of the segment was finished then
  7118. assertion failure was caused.
  7119. * src/SegmentMan.cc
  7120. * test/SegmentManTest.cc
  7121. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Added options to load/save the server's performance/status to a file
  7123. and the timeout to drop their data.
  7124. --server-stat-of=FILE specifies the file to which performance data
  7125. is saved.
  7126. --server-stat-if=FILE specifies the file to read previously saved
  7127. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7128. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7129. TIMEOUT is specified in seconds and the default value is 24hours.
  7130. * src/MultiUrlRequestInfo.cc
  7131. * src/OptionHandlerFactory.cc
  7132. * src/RequestGroupMan.cc
  7133. * src/RequestGroupMan.h
  7134. * src/ServerStatMan.cc
  7135. * src/ServerStatMan.h
  7136. * src/option_processing.cc
  7137. * src/prefs.cc
  7138. * src/prefs.h
  7139. * test/ServerStatManTest.cc
  7140. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7142. * src/ServerStatMan.cc
  7143. * src/ServerStatMan.h
  7144. * test/ServerStatManTest.cc
  7145. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Implemented ServerStatMan::load(...) function and its test case.
  7147. * src/ServerStat.cc
  7148. * src/ServerStat.h
  7149. * src/ServerStatMan.cc
  7150. * test/ServerStatManTest.cc
  7151. * test/ServerStatTest.cc
  7152. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Use time_t instead of int32_t. Use int64_t where milli second is
  7154. expected.
  7155. * src/TimeA2.cc
  7156. * src/TimeA2.h
  7157. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Implemented ServerStatMan::save(...) function and its test case.
  7159. * src/ServerStat.cc
  7160. * src/ServerStat.h
  7161. * src/ServerStatMan.cc
  7162. * src/ServerStatMan.h
  7163. * test/ServerStatManTest.cc
  7164. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Now aria2 uses name attribute in Metalink as local filename in
  7166. BitTorrent downloads. BUG#2033999
  7167. * src/BtContext.h
  7168. * src/BtDependency.cc
  7169. * src/DefaultBtContext.cc
  7170. * src/DefaultBtContext.h
  7171. * src/SingleFileDownloadContext.cc
  7172. * src/SingleFileDownloadContext.h
  7173. * test/BtDependencyTest.cc
  7174. * test/DefaultBtContextTest.cc
  7175. * test/MockBtContext.h
  7176. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Added AC_C_BIGENDIAN
  7178. * src/configure.ac
  7179. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Limited numCommand less than or equal to the number of piece.
  7181. * src/RequestGroup.cc
  7182. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7184. directive.
  7185. * test/DefaultPieceStorageTest.cc
  7186. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Fixed memory leak in test code
  7188. * test/AnnounceListTest.cc
  7189. * test/DefaultPeerListProcessorTest.cc
  7190. * test/DefaultPeerStorageTest.cc
  7191. * test/MetaFileUtilTest.cc
  7192. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7194. * src/DefaultPieceStorage.cc
  7195. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Initialized _directIOAllowed
  7197. * src/MultiDiskAdaptor.cc
  7198. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Fixed memory leak
  7200. * src/GZipDecoder.cc
  7201. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Fixed memory leak
  7203. * src/MetalinkParserStateMachine.cc
  7204. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Fixed memory leak
  7206. * src/Dictionary.cc
  7207. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Fixed memory leak
  7209. * src/IteratableChunkChecksumValidator.h
  7210. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Fixed unmatched malloc/free.
  7212. * src/IteratableChunkChecksumValidator.cc
  7213. * src/IteratableChecksumValidator.cc
  7214. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Removed max chunk size check. This change fixes BUG#2040169
  7216. * src/ChunkedDecoder.cc
  7217. * src/ChunkedDecoder.h
  7218. * test/ChunkedDecoderTest.cc
  7219. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Implemented download speed based URI selection algorithm.
  7221. Introduced new option --uri-selector.
  7222. If --uri-selector=feedback is given, aria2 uses download speed observed
  7223. in the previous downloads and chooses fastest server in the URI list.
  7224. Currently at most 10 URIs are considered to introduce randomeness for
  7225. finding better servers. The speed is average download speed in the
  7226. downloads.
  7227. On the other hand, if --uri-selector=inorder is given, which is default,
  7228. URI is tried in order in URI list.
  7229. The usage text for the new option has not been written yet.
  7230. * src/AbstractCommand.cc
  7231. * src/DownloadCommand.cc
  7232. * src/DownloadEngine.cc
  7233. * src/DownloadEngineFactory.cc
  7234. * src/InOrderURISelector.cc
  7235. * src/InOrderURISelector.h
  7236. * src/OptionHandlerFactory.cc
  7237. * src/PeerStat.h
  7238. * src/RequestGroup.cc
  7239. * src/RequestGroup.h
  7240. * src/RequestGroupMan.cc
  7241. * src/RequestGroupMan.h
  7242. * src/SegmentMan.cc
  7243. * src/SegmentMan.h
  7244. * src/ServerStat.cc
  7245. * src/ServerStat.h
  7246. * src/ServerStatMan.cc
  7247. * src/ServerStatMan.h
  7248. * src/ServerStatURISelector.cc
  7249. * src/ServerStatURISelector.h
  7250. * src/URISelector.h
  7251. * src/option_processing.cc
  7252. * src/prefs.cc
  7253. * src/prefs.h
  7254. * test/InOrderURISelectorTest.cc
  7255. * test/RequestGroupManTest.cc
  7256. * test/ServerStatManTest.cc
  7257. * test/ServerStatURISelectorTest.cc
  7258. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. * Release 0.15.1+2
  7260. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Bump up version number to 0.15.1+2
  7262. * configure.ac
  7263. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7265. * m4/aria2_arg.m4
  7266. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. * Release 0.15.1+1
  7268. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Bump up version number to 0.15.1+1
  7270. * configure.ac
  7271. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Fixed the bug that causes segmentaion fault when resuming download
  7273. using metalink without size tag. Reproducible only using HTTP URI.
  7274. * src/HttpResponseCommand.cc
  7275. * src/FtpNegotiationCommand.cc
  7276. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. * Release 0.15.1
  7278. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Updated Bulgarian and French translations, thanks to all translators.
  7280. * po/bg.po
  7281. * po/fr.po
  7282. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Bump up version number to 0.15.1
  7284. * configure.ac
  7285. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Avoid repeated call of gettimeofday() when calculating speed.
  7287. * src/SpeedCalc.cc
  7288. * src/SpeedCalc.h
  7289. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Removed writable check when socket's send buffer is full in BitTorrent
  7291. downloads to lower CPU usage.
  7292. * src/PeerInteractionCommand.cc
  7293. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Fixed broken gzip inflation.
  7295. Turn off segmented downloading if gzip content is smaller than or equal
  7296. to 1MiB and inflate the data on the fly, because HTTP response header
  7297. doesn't contain the length of inflated file we can't determin where
  7298. the chunk of data should be written.
  7299. On the other hand, if gzip content is larger than 1MB, then turn off
  7300. on the fly inflation, because some servers returns "content-type: gzip"
  7301. for *.tgz, *.gz files.
  7302. * src/DownloadCommand.cc
  7303. * src/HttpResponseCommand.cc
  7304. * src/HttpResponseCommand.h
  7305. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Applied tizianomueller's patch to fix compile error.
  7307. * test/BitfieldManTest.cc
  7308. * test/BtRequestMessageTest.cc
  7309. * test/DefaultBtContextTest.cc
  7310. * test/DefaultDiskWriterTest.cc
  7311. * test/DefaultPieceStorageTest.cc
  7312. * test/HttpHeaderProcessorTest.cc
  7313. * test/HttpResponseTest.cc
  7314. * test/Metalink2RequestGroupTest.cc
  7315. * test/MetalinkParserControllerTest.cc
  7316. * test/MetalinkProcessorTest.cc
  7317. * test/PeerSessionResourceTest.cc
  7318. * test/UtilTest.cc
  7319. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. * Release 0.15.0
  7321. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Reordered src files in POTFILES.in so that usage text appears first.
  7323. * po/POTFILES.in
  7324. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Bump up version number to 0.15.0
  7326. * configure.ac
  7327. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. Added Bulgarian translation.
  7329. Updated Catalan, Spanish, French and Japanese translations.
  7330. Thanks to all translators.
  7331. * po/LINGUAS
  7332. * po/bg.po
  7333. * po/ca.po
  7334. * po/es.po
  7335. * po/fr.po
  7336. * po/ja.po
  7337. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. Updated feature list. Added libz for dependency section.
  7339. Added a description about unit testing using CppUnit.
  7340. * README
  7341. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Added a test for libz. Quoted where it is necessary.
  7343. * build_test.sh
  7344. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Added GZip to `Enabled Features' list.
  7346. * src/FeatureConfig.cc
  7347. * src/FeatureConfig.h
  7348. * test/FeatureConfigTest.cc
  7349. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7351. the transfer has not yet started.
  7352. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7353. * src/SegmentMan.cc
  7354. * src/SegmentMan.h
  7355. * test/SegmentManTest.cc
  7356. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Cache last calculated average download/upload speed.
  7358. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7359. cached value.
  7360. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7361. * src/PeerStat.h
  7362. * src/SpeedCalc.cc
  7363. * src/SpeedCalc.h
  7364. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Call parseUrl directly.
  7366. * src/Request.cc (resetUrl)
  7367. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Supported absolute/relative path in Location header field.
  7369. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7370. * src/HttpHeader.cc
  7371. * src/HttpHeader.h
  7372. * src/HttpResponse.cc
  7373. * src/HttpSkipResponseCommand.cc
  7374. * src/Request.cc
  7375. * test/HttpHeaderTest.cc
  7376. * test/HttpResponseTest.cc
  7377. * test/RequestTest.cc
  7378. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Changed help text for --load-cookie option.
  7380. * doc/aria2c.1.txt
  7381. * src/usage_text.h
  7382. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Regenerated test/Makefile.in to remove stale ChangeLog.
  7384. * test/Makefile.in
  7385. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Updated po files.
  7387. * po/aria2c.pot
  7388. * po/*.po
  7389. * po/*.gmo
  7390. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Bump up version number to 0.15.0b
  7392. * configure.ac
  7393. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Externalize messages.
  7395. * src/RequestGroupMan.cc
  7396. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7397. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Use File::exists() instead of File::isFile() to allow non-regular file
  7399. such as block special files.
  7400. * src/AbstractDiskWriter.cc
  7401. * src/MultiDiskWriter.cc
  7402. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7404. * src/gai_strerror.h
  7405. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed compile error. Thanks gknauf for the patch.
  7407. * src/asctime_r.c
  7408. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Included asctime_r.h from a2time.h.
  7410. * src/a2time.h
  7411. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Added a message "aria2 doesn't verify signature" to log message when
  7413. signature file is saved.
  7414. * src/RequestGroupMan.cc
  7415. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Added the ability to save signature when download is completed if
  7417. signature is available. The filename of signature file is the path to
  7418. download file followed by ".sig". If it already exists, then signature
  7419. will not be saved.
  7420. * src/RequestGroupMan.cc
  7421. * src/Signature.cc
  7422. * test/SignatureTest.cc
  7423. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Updated the descriptions for --bt-seed-unverified.
  7425. * doc/aria2c.1
  7426. * doc/aria2c.1.html
  7427. * doc/aria2c.1.txt
  7428. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7430. that this is not going to verify files using piece hashes.
  7431. * src/HelpItemFactory.cc
  7432. * src/OptionHandlerFactory.cc
  7433. * src/RequestGroup.cc
  7434. * src/option_processing.cc
  7435. * src/prefs.cc
  7436. * src/prefs.h
  7437. * src/usage_text.h
  7438. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Added the ability to retrieve signature from Metalink file.
  7440. A retrieved signature is stored in Signature class and it is held by
  7441. DownloadContext class. Note that aria2 doesn't verify signature.
  7442. * src/DownloadContext.cc
  7443. * src/DownloadContext.h
  7444. * src/Makefile.am
  7445. * src/Makefile.in
  7446. * src/Metalink2RequestGroup.cc
  7447. * src/MetalinkEntry.cc
  7448. * src/MetalinkEntry.h
  7449. * src/MetalinkParserController.cc
  7450. * src/MetalinkParserController.h
  7451. * src/MetalinkParserStateMachine.cc
  7452. * src/MetalinkParserStateMachine.h
  7453. * src/Signature.cc
  7454. * src/Signature.h
  7455. * src/SignatureMetalinkParserState.cc
  7456. * src/SignatureMetalinkParserState.h
  7457. * src/VerificationMetalinkParserState.cc
  7458. * src/VerificationMetalinkParserState.h
  7459. * test/Metalink2RequestGroupTest.cc
  7460. * test/MetalinkParserControllerTest.cc
  7461. * test/MetalinkProcessorTest.cc
  7462. * test/test.xml
  7463. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Close DiskAdaptor after renaming file.
  7465. * src/RequestGroup.cc
  7466. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Corrected indentation
  7468. * src/DefaultBtProgressInfoFile.cc
  7469. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. Moved the calls of std::ios::exceptions() inside of try-catch block
  7471. because if an error occurred in constructor of std::fstream, then
  7472. exception is thrown immediately when std::ios::exceptions() is called
  7473. which results unhandled exception and aria2c aborts.
  7474. * src/DefaultBtProgressInfoFile.cc
  7475. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Added the test for the previous change in DefaultBtContext.cc
  7477. * test/DefaultBtContextTest.cc
  7478. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Fixed the bug that causes infinite loop when the number of pieces are
  7480. fewer than allowed fast set size which is 10 by default.
  7481. * src/DefaultBtContext.cc
  7482. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Updated the descriptions for -j, -s. Added --bt-seed.
  7484. * doc/aria2c.1
  7485. * doc/aria2c.1.html
  7486. * doc/aria2c.1.txt
  7487. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7489. aria2 seeds previously downloaded files without validating piece hashs.
  7490. * src/HelpItemFactory.cc
  7491. * src/OptionHandlerFactory.cc
  7492. * src/RequestGroup.cc
  7493. * src/option_processing.cc
  7494. * src/prefs.cc
  7495. * src/prefs.h
  7496. * src/usage_text.h
  7497. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Updated DESCRIPTION of man page.
  7499. * doc/aria2c.1
  7500. * doc/aria2c.1.html
  7501. * doc/aria2c.1.txt
  7502. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7504. Don't define `struct addrinfo' when __sun is defined.
  7505. * src/getaddrinfo.h
  7506. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7508. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7509. second argument is of type `struct _stati64'. Otherwise it is defined as
  7510. `struct stat'.
  7511. * src/AbstractDiskWriter.cc
  7512. * src/File.cc
  7513. * src/File.h
  7514. * src/a2io.h
  7515. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Fixed the compile error in hurd-i386
  7517. See the original bug report:
  7518. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7519. * src/a2io.h
  7520. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Code cleanup.
  7522. * src/PeerAbstractCommand.cc
  7523. * src/PeerAbstractCommand.h
  7524. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Removed TransferEncoding.
  7526. * src/DownloadCommand.cc
  7527. * src/DownloadCommand.h
  7528. * src/HttpResponseCommand.cc
  7529. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Updated po files.
  7531. * po/aria2c.pot
  7532. * po/*.po
  7533. * po/*.gmo
  7534. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7536. * src/A2STR.cc
  7537. * src/A2STR.h
  7538. * src/ChunkedDecoder.cc
  7539. * src/ChunkedDecoder.h
  7540. * src/ChunkedEncoding.cc: Removed
  7541. * src/ChunkedEncoding.h: Removed
  7542. * src/DownloadCommand.cc
  7543. * src/DownloadCommand.h
  7544. * src/HttpDownloadCommand.cc
  7545. * src/HttpResponse.cc
  7546. * src/HttpResponse.h
  7547. * src/HttpResponseCommand.cc
  7548. * src/HttpSkipResponseCommand.cc
  7549. * src/HttpSkipResponseCommand.h
  7550. * src/Makefile.am
  7551. * src/TransferEncoding.h: Removed
  7552. * test/ChunkedDecoderTest.cc
  7553. * test/ChunkedEncodingTest.cc: Removed
  7554. * test/HttpResponseTest.cc
  7555. * test/Makefile.am
  7556. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Use append instead of insert.
  7558. * src/GZipDecoder.cc
  7559. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Updated doc
  7561. * src/Decoder.h
  7562. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Updated usage text for -s option.
  7564. * src/usage_text.h
  7565. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7567. * src/Request.cc
  7568. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Cleaned up configure.ac.
  7570. * configure.ac
  7571. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7573. AC_ARG_ENABLE.
  7574. * configure.ac
  7575. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7577. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7578. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7579. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7580. fly and writes decoded data to a local disk.
  7581. * README
  7582. * README.html
  7583. * configure.ac
  7584. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7585. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7586. * m4/libz.m4
  7587. * src/Decoder.h
  7588. * src/DownloadCommand.cc
  7589. * src/DownloadCommand.h
  7590. * src/Exception.h
  7591. * src/GZipDecoder.cc
  7592. * src/GZipDecoder.h
  7593. * src/HttpHeader.cc
  7594. * src/HttpHeader.h
  7595. * src/HttpRequest.cc
  7596. * src/HttpRequest.h
  7597. * src/HttpResponse.cc
  7598. * src/HttpResponse.h
  7599. * src/HttpResponseCommand.cc
  7600. * src/Makefile.am
  7601. * test/GZipDecoderTest.cc
  7602. * test/HttpRequestTest.cc
  7603. * test/HttpResponseTest.cc
  7604. * test/Makefile.am
  7605. * test/Makefile.in
  7606. * test/gzip_decode_test.gz
  7607. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Clarified usage of -j option.
  7609. * src/usage_text.h
  7610. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Disabled getting size from the response of RETR.
  7612. If SIZE command failed, then disable resuming and segmented downloading.
  7613. * src/FtpConnection.cc
  7614. * src/FtpConnection.h
  7615. * src/FtpNegotiationCommand.cc
  7616. * src/FtpNegotiationCommand.h
  7617. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Use digits to find first byte of file size, which makes the intention
  7619. of the code clearer.
  7620. * src/FtpConnection.cc
  7621. Don't call validateTotalLength() when size is 0.
  7622. * src/FtpNegotiationCommand.cc
  7623. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Updated po files.
  7625. * po/aria2c.pot
  7626. * po/*.gmo
  7627. * po/*.po
  7628. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Clarified usage text for --split option.
  7630. * src/usage_text.h
  7631. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Bump up version number to 0.15.0dev. "dev" means "development"
  7633. version, which means I started the development of the next release!
  7634. * src/configure.ac
  7635. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. If FTP server returns negative response with REST raw command and
  7637. requested range is not 0, throw exception. If requested range is 0,
  7638. continue download a file from 0 byte.
  7639. * src/FtpNegotiationCommand.cc
  7640. * src/FtpNegotiationCommand.h
  7641. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Supported FTP server which don't recognize SIZE raw command.
  7643. If SIZE raw command is failed, aria2 will try to get file size
  7644. from the response of RETR raw command. If both attempts are failed,
  7645. then resuming and segmented downloading are disabled.
  7646. * src/FtpConnection.cc
  7647. * src/FtpConnection.h
  7648. * src/FtpNegotiationCommand.cc
  7649. * src/FtpNegotiationCommand.h
  7650. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. * Release 0.14.0+1
  7652. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Bump up version number to 0.14.0+1
  7654. * src/configure.ac
  7655. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Fixed the code that refers static member variable from non-static
  7657. context.
  7658. * src/DefaultPeerStorage.cc
  7659. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. * Release 0.14.0
  7661. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Added build test script
  7663. * build_test.sh
  7664. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Updated ja.po
  7666. * src/ja.po
  7667. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Bump up version number to 0.14.0
  7669. * src/configure.ac
  7670. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Updated ja.po and fr.po. Great thanks for french translators and
  7672. Sebastien WILLEMIJNS.
  7673. * po/fr.po
  7674. * po/ja.po
  7675. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Added configure option to enable/disable epoll support.
  7677. * configure.ac
  7678. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Updated man page.
  7680. * doc/aria2c.1.txt
  7681. * doc/aria2c.1
  7682. * doc/aria2c.1.html
  7683. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Added missing default value '5' to the usage of --split option.
  7685. * src/HelpItemFactory.cc
  7686. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Filled up pieces based on the number of missing blocks, rather than
  7688. simplay the number of piece * block length.
  7689. * src/BtRequestFactory.h
  7690. * src/DefaultBtInteractive.cc
  7691. * src/DefaultBtInteractive.h
  7692. * src/DefaultBtRequestFactory.cc
  7693. * src/DefaultBtRequestFactory.h
  7694. * src/Piece.cc
  7695. * src/Piece.h
  7696. * test/BitfieldManTest.cc
  7697. * test/DefaultBtRequestFactoryTest.cc
  7698. * test/MockBtRequestFactory.h
  7699. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Made _epEvents a member variable.
  7701. * src/DownloadEngine.cc
  7702. * src/DownloadEngine.h
  7703. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Cancel download if http redirect is bounded more than 20 times.
  7705. * src/AbstractCommand.cc
  7706. * src/HttpSkipResponseCommand.cc
  7707. * src/Request.cc
  7708. * src/Request.h
  7709. * test/RequestTest.cc
  7710. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Fixed unhandled exception(removed keyword `new').
  7712. * src/SocketCore.cc (initEPOLL)
  7713. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Removed visit(const MetaEntry*)
  7715. * src/MetaEntryVisitor.h:
  7716. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7717. and made them virtual.
  7718. * src/BencodeVisitor.h
  7719. * src/BencodeVisitor.cc
  7720. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Updated po files.
  7722. * po/aria2c.pot
  7723. * po/*.po
  7724. * po/*.gmo
  7725. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7727. the number of socket to watch out.
  7728. * src/PeerInteractionCommand.cc
  7729. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. When there is not enough space in disk when writing a chunk of data,
  7731. aria2 now prints the message to the console to warn user and aborts
  7732. its download. Not all downloads are canceled because some downloads
  7733. may use another disk or partition. BUG#1640332
  7734. * src/AbstractDiskWriter.cc
  7735. * src/PeerAbstractCommand.cc
  7736. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7737. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7738. setHaltRequested(true) to cancel download.
  7739. * src/PeerInteractionCommand.h
  7740. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7742. socket from int to sock_t as sockets are unsigned in Windows.
  7743. For AsyncNameResolver, DownloadEngine, I did additional modification
  7744. for the portion of the code changed according to epoll support.
  7745. I defined sock_t in a2netcompat.h to use sock_t without including
  7746. SocketCore.h.
  7747. * src/AsyncNameResolver.cc
  7748. * src/AsyncNameResolver.h
  7749. * src/DownloadEngine.cc
  7750. * src/DownloadEngine.h
  7751. * src/SocketCore.cc
  7752. * src/SocketCore.h
  7753. * src/a2netcompat.h
  7754. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7756. changes in the patch were applied.
  7757. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7758. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7759. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7760. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7762. a2io.h and common.h were modified.
  7763. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7764. MinGW.
  7765. * src/common.h: Changed off_t to 64 bit in MinGW.
  7766. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7768. only a2netcompat.h is modified.
  7769. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7770. directives.
  7771. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7773. only gai_strerror.h is modified.
  7774. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7775. winsock errors in MinGW.
  7776. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7778. follow sources are applied.
  7779. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7780. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7781. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7782. I included locale.h from Platform.cc.
  7783. * src/main.cc: Moved common setup/teardown code to Platform class.
  7784. * test/AllTest.cc: Use Platform class.
  7785. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7786. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7788. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7789. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7790. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7792. aria2-0.13.2+1-mingw-2.patch.
  7793. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7794. systems which don't have termious.h. I moved the directive inside of
  7795. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7796. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7797. anyway.
  7798. * src/asctime_r.h
  7799. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7800. I added 2nd argument to the prototype declaration.
  7801. * src/StringFormat.cc: Get rid of vasprintf.
  7802. * src/getaddrinfo.h: Fixed constants.
  7803. * configure.ac: Added the check for asctime_r function.
  7804. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7805. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Added writable test for Socket when the sending message is in progress.
  7807. Usually the sending message is piece message. Without wriable check,
  7808. upload latency is dropped to more than 1sec.
  7809. * src/PeerInteractionCommand.cc
  7810. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Create only requested files and files which shares a piece with
  7812. requested file in multi-torrent downloads. Directory structures are
  7813. also created in the same rule.
  7814. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7815. DiskWriterEntry as in the previous implementation.
  7816. * src/MultiDiskWriter.cc
  7817. * src/MultiFileAllocationIterator.cc
  7818. * src/MultiFileAllocationIterator.h
  7819. * test/MultiFileAllocationIteratorTest.cc
  7820. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Commented out -lprofiler
  7822. * src/Makefile.am
  7823. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7824. Bump up version number to 0.14.0b.
  7825. * src/configure.ac
  7826. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7827. Actively establish connection to peers in seeding, when peer cache
  7828. is not full and max upload speed limit is not reached.
  7829. * src/ActivePeerConnectionCommand.cc
  7830. * src/ActivePeerConnectionCommand.h
  7831. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7833. to make room more fleshy, recently found peers.
  7834. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7835. it.
  7836. * src/DefaultPeerStorage.cc
  7837. * test/DefaultPeerStorageTest.cc
  7838. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Returns cached data only when the previous receiveHandshake() is called
  7840. with peek = true.
  7841. * src/PeerConnection.cc (receiveHandshake)
  7842. * src/PeerConnection.h (receiveHandshake)
  7843. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Changed default value of -s option from 1 to 5.
  7845. Also max value of -s option is changed from 5 to 16.
  7846. * src/HelpItemFactory.cc
  7847. * src/OptionHandlerFactory.cc
  7848. * src/option_processing.cc
  7849. * src/usage_text.h
  7850. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Changed -s options behavior. Now it means the number of connections
  7852. made simultaneously in each http/ftp download.
  7853. If 1 URL is specified, the behavior is the same with old implementation.
  7854. If -s N is given and more than N URLs are specified, first N URLs are
  7855. used and remaining URLs are used for backup. If less than N URLs are
  7856. specified, some of URLs are used more than once so that totally N
  7857. connections are made simultaneously.
  7858. * src/main.cc
  7859. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Included missing iosfwd or ostream header.
  7861. * src/RequestGroupMan.cc
  7862. * src/TaggedItem.cc
  7863. * src/TaggedItem.h
  7864. * src/Util.cc
  7865. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7867. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7868. * src/HttpConnection.cc: Included missing sstream.
  7869. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Added --bt-max-open-files option.
  7871. * src/DefaultPieceStorage.cc
  7872. * src/HelpItemFactory.cc
  7873. * src/MultiDiskAdaptor.cc
  7874. * src/MultiDiskAdaptor.h
  7875. * src/OptionHandlerFactory.cc
  7876. * src/option_processing.cc
  7877. * src/prefs.cc
  7878. * src/prefs.h
  7879. * src/usage_text.h
  7880. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed the bug that aria2 aborts when a path to a directory is given
  7882. in command-line.
  7883. * src/ProtocolDetector.cc
  7884. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Limited the number files opened in each BitTorrent download. The default
  7886. value is 100. The option to change this value will be added.
  7887. * src/MultiDiskAdaptor.cc
  7888. * src/MultiDiskAdaptor.h
  7889. * src/MultiFileAllocationIterator.cc
  7890. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. Fixed the bug that HTTP downloads don't start with old libraries.
  7892. * src/HttpHeaderProcessor.cc
  7893. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Use empty() instead of size() > 0.
  7895. * src/HttpConnection.cc
  7896. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. Drop connection if the incoming peer ID is the same with localhost's
  7898. one. The previous implementation drops connection when incoming peer's
  7899. IP address is the same with localhost's one.
  7900. * src/PeerListenCommand.cc
  7901. * src/DefaultBtInteractive.cc
  7902. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Returns cached data without checking whether socket is readable
  7904. if the cache is available.
  7905. * src/PeerConnection.cc (receiveHandshake)
  7906. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Included stdint.h
  7908. * src/common.h
  7909. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Removed duplicate HAVE_GETTIMEOFDAY
  7911. * src/Makefile.am
  7912. * src/Makefile.in
  7913. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Use interval as a minInterval when minInterval is not supplied.
  7915. * src/DefaultBtAnnounce.cc
  7916. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7918. attempt is failed, then 2nd attempt get kicked out more quickly.
  7919. And it is now static const member of DefaultBtAnnounce.
  7920. * src/DefaultBtAnnounce.h
  7921. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7923. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7924. * src/ActivePeerConnectionCommand.cc
  7925. * src/BtConstants.h
  7926. * src/BtRuntime.h
  7927. * src/DHTGetPeersCommand.cc
  7928. * src/DefaultBtAnnounce.cc
  7929. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7930. BtRuntime::MAX_PEERS.
  7931. * src/DefaultPeerStorage.h
  7932. * src/InitiatorMSEHandshakeCommand.cc
  7933. * src/PeerInitiateConnectionCommand.cc
  7934. * src/PeerInteractionCommand.cc
  7935. * src/PeerReceiveHandshakeCommand.cc
  7936. * src/TrackerWatcherCommand.cc
  7937. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Always Connect to _numNewConnection
  7939. * src/ActivePeerConnectionCommand.cc
  7940. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Made `begin' unsigned int.
  7942. * src/GrowSegment.h
  7943. * src/Piece.cc
  7944. * src/Piece.h
  7945. * src/PiecedSegment.cc
  7946. * src/PiecedSegment.h
  7947. * src/Segment.h
  7948. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Calculate piece hash when data is arrived if the data is arrived in
  7950. order. This removes additional read operation for hash calculation.
  7951. If the data is arrived in out of order, the hash is calucated when the
  7952. piece is completed. This is the same behavior as the old implementation.
  7953. * src/BtPieceMessage.cc
  7954. * src/DefaultBtProgressInfoFile.cc
  7955. * src/DefaultPieceStorage.cc
  7956. * src/DownloadCommand.cc
  7957. * src/DownloadCommand.h
  7958. * src/DownloadEngine.cc
  7959. * src/GrowSegment.cc
  7960. * src/GrowSegment.h
  7961. * src/Piece.cc
  7962. * src/Piece.h
  7963. * src/PiecedSegment.cc
  7964. * src/PiecedSegment.h
  7965. * src/Segment.h
  7966. * test/PieceTest.cc
  7967. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Try to keep the ordering of outgoing piece message.
  7969. * src/DefaultBtMessageDispatcher.cc
  7970. (DefaultBtMessageDispatcher::sendMessages)
  7971. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Fixed busy loop when error/hup epoll events occur.
  7973. * src/AbstractCommand.cc
  7974. * src/PeerAbstractCommand.cc
  7975. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. Added --bt-request-peer-speed-limit option, which was a constant
  7977. SLOW_SPEED_THRESHOLD.
  7978. * src/ActivePeerConnectionCommand.cc
  7979. * src/ActivePeerConnectionCommand.h
  7980. * src/BtConstants.h
  7981. * src/HelpItemFactory.cc
  7982. * src/OptionHandlerFactory.cc
  7983. * src/PeerReceiveHandshakeCommand.cc
  7984. * src/option_processing.cc
  7985. * src/prefs.cc
  7986. * src/prefs.h
  7987. * src/usage_text.h
  7988. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Removed repeated call of getTopDirPath(). Instead, call it once and
  7990. cache the result.
  7991. * src/MultiDiskAdaptor.cc
  7992. * src/MultiDiskAdaptor.h
  7993. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7994. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Fixed compile error on debian etch.
  7996. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7997. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7998. it is undefined.
  7999. * src/Util.cc (ULLONG_MAX)
  8000. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Added epoll support. Use epoll if it is available. If not, use select.
  8002. When async dns is enabled in compile time, epoll support is enabled
  8003. only when aria2 is built with c-ares. This condition statement is
  8004. defined in a2io.h.
  8005. Currently aria2 supports both c-ares and ares, but ares is maintained
  8006. for quite a while and debian already has c-ares package, ares support
  8007. will be dropped in the future version.
  8008. * configure.ac
  8009. * src/AbstractCommand.cc
  8010. * src/AsyncNameResolver.cc
  8011. * src/AsyncNameResolver.h
  8012. * src/Command.cc
  8013. * src/Command.h
  8014. * src/DownloadEngine.cc
  8015. * src/DownloadEngine.h
  8016. * src/PeerAbstractCommand.cc
  8017. * src/SocketCore.cc
  8018. * src/SocketCore.h
  8019. * src/a2io.h
  8020. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8022. directive.
  8023. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Do not do write operation to /dev/null file.
  8025. * src/LogFactory.cc
  8026. * src/SimpleLogger.cc
  8027. Replaced vasprintf with vsnprintf
  8028. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8029. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. * src/BtRequestMessage.cc
  8031. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8032. for segmentation fault caused by previous commit.
  8033. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Reduced the usage of gettimeofday().
  8035. * src/DefaultBtMessageDispatcher.cc
  8036. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8037. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8038. * src/RequestSlot.cc
  8039. * src/RequestSlot.h
  8040. (RequestSlot::isTimeout)
  8041. Made RequestSlot have a reference to Piece object to avoid find
  8042. Piece repeatedly.
  8043. * src/DefaultBtMessageDispatcher.cc
  8044. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8045. * src/RequestSlot.cc
  8046. * src/RequestSlot.h
  8047. (RequestSlot::getPiece)
  8048. * test/DefaultBtMessageDispatcherTest.cc
  8049. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. * src/TimeA2.cc
  8051. * src/TimeA2.h
  8052. (Time::difference): New function.
  8053. (Time::elapsed): Done optimization.
  8054. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8056. directive.
  8057. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. * src/option_processing.cc: Added missing `defined' keyword to #if
  8059. directive.
  8060. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Bump up version number to 0.13.2+1
  8062. * src/configure.ac
  8063. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Refactored broken outstanding piece handling.
  8065. * src/DefaultPieceStorage.cc
  8066. * src/DefaultPieceStorage.h
  8067. * src/Piece.cc
  8068. * src/Piece.h
  8069. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8071. name collision of static variable and predefined macro.
  8072. * src/BtContext.cc
  8073. * src/BtContext.h
  8074. * src/CookieBoxFactory.cc
  8075. * src/CookieBoxFactory.h
  8076. * src/CookieParser.cc
  8077. * src/CookieParser.h
  8078. * src/DefaultBtContext.cc
  8079. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. * src/RequestGroup.cc
  8081. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8082. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. * Release 0.13.2
  8084. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8086. * po/fr.po
  8087. * po/ja.po
  8088. * po/aria2c.pot
  8089. * po/*.po
  8090. * po/*.gmo
  8091. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Bump up version number to 0.13.2
  8093. * src/configure.ac
  8094. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Refactord.
  8096. * src/RequestGroupMan.cc
  8097. (removeStoppedGroup)
  8098. (fillRequestGroupFromReserver)
  8099. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Fixed compile error on Ubuntu.
  8101. * src/BtPieceMessage.cc
  8102. * src/MessageDigestHelper.cc
  8103. * src/Util.cc
  8104. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Fixed compile error when configured with --disable-bittorrent
  8106. * test/DownloadHandlerFactoryTest.cc
  8107. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Done make update-po
  8109. * po/aria2c.pot
  8110. * po/*.po
  8111. * po/*.gmo
  8112. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Bump up version number to 0.13.2rc.
  8114. * src/configure.ac
  8115. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Made option name bold. Updated SYNOPSIS to make it more readable.
  8117. * doc/aria2c.1.txt
  8118. * doc/aria2c.1
  8119. * doc/aria2c.1.html
  8120. * src/version_usage.cc
  8121. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Refactored. Use std::string instead of size and char*.
  8123. * Data.cc
  8124. * Data.h
  8125. * test/Data.cc
  8126. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added trimSelf(). Rewritten trim() to use trimSelf().
  8128. * Util.cc
  8129. * Util.h
  8130. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8132. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Fixed compile error when configured with --disable-metalink.
  8134. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8135. * test/FeatureConfigTest.cc
  8136. * test/DownloadHandlerFactoryTest.cc
  8137. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Fixed compile error when configured with --without-gnutls
  8139. --without-openssl
  8140. * src/main.cc
  8141. * test/DefaultBtProgressInfoFileTest.cc
  8142. * test/SegmentManTest.cc
  8143. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Fixed compile error with OpenSSL.
  8145. * src/IteratableChunkChecksumValidator.cc
  8146. * src/LibsslDHKeyExchange.h
  8147. * src/MessageDigestHelper.cc
  8148. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Revert the default value of --max-concurrent-downloads to 5.
  8150. Revert the default value of --metalink-servers to 5.
  8151. Man pages was also updated.
  8152. * src/option_processing.cc
  8153. * doc/aria2c.1.txt
  8154. * doc/aria2c.1.html
  8155. * doc/aria2c.1
  8156. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Returns const reference:
  8158. DownloadContext::getPieceHash, DownloadContext::getName,
  8159. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8160. BtContext::getInfoHashAsString,
  8161. * src/BtContext.h
  8162. * src/DefaultBtContext.cc
  8163. * src/DefaultBtContext.h
  8164. * src/DownloadContext.h
  8165. * src/SingleFileDownloadContext.h
  8166. * test/MockBtContext.h
  8167. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. * src/RequestGroup.h (getDir): Removed.
  8169. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Returns const reference. The internal urlencode function was optimized
  8171. a little bit.
  8172. * src/Request.cc
  8173. * src/Request.h
  8174. * src/HttpRequest.cc
  8175. * src/HttpRequest.h
  8176. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Defined option name and possible values as std::string to reduce
  8178. temporary string object creation in runtime.
  8179. * src/HelpItemFactory.cc
  8180. * src/LogFactory.cc
  8181. * src/Option.cc
  8182. * src/OptionHandlerFactory.cc
  8183. * src/option_processing.cc
  8184. * src/prefs.cc
  8185. * src/prefs.h
  8186. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Return const reference.
  8188. * src/DownloadHandlerConstants.cc
  8189. * src/DownloadHandlerConstants.h
  8190. (getMetalinkExtensions)
  8191. (getMetalinkContentTypes)
  8192. (getBtExtensions)
  8193. (getBtContentTypes)
  8194. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. * src/HttpHeader.cc (get): Rewritten.
  8196. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Make HttpHeader::getFirst(...) return const reference.
  8198. * src/HttpHeader.cc
  8199. * src/HttpHeader.h
  8200. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8202. it with V_TRUE.
  8203. * src/DefaultPieceStorage.cc
  8204. * src/DownloadCommand.cc
  8205. * src/FtpNegotiationCommand.cc
  8206. * src/HttpRequest.cc
  8207. * src/InitiateConnectionCommand.cc
  8208. * src/RequestGroup.cc
  8209. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Made Option::get(...) return const reference of std::string.
  8211. * src/Option.cc
  8212. * src/Option.h
  8213. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Replaced std:copy with insert.
  8215. * src/DefaultBtMessageDispatcher.cc
  8216. * src/DefaultPieceStorage.cc
  8217. * src/DownloadEngineFactory.cc
  8218. * src/RequestGroup.cc
  8219. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Included SocketCore.h to fix compiler warning.
  8221. * src/InitiateConnectionCommand.cc
  8222. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Put piece selection strategy algorithm to RarestPieceSelector class,
  8224. Added a switch to choose whether randomized selection so that unit
  8225. tests emit same results in, possibly, win32.
  8226. * src/DefaultPieceStorage.cc
  8227. * src/DefaultPieceStorage.h
  8228. * src/RarestPieceSelector.cc
  8229. * src/RarestPieceSelector.h
  8230. * test/DefaultPieceStorageTest.cc
  8231. * test/RarestPieceSelectorTest.cc
  8232. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Don't pool connection if HTTP proxy is enabled.
  8234. * src/FtpFinishDownloadCommand.cc
  8235. * src/FtpNegotiationCommand.cc
  8236. * src/HttpSkipResponseCommand.cc
  8237. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8239. * src/AbstractCommand.cc
  8240. * src/AbstractCommand.h
  8241. * src/ActivePeerConnectionCommand.cc
  8242. * src/FtpInitiateConnectionCommand.cc
  8243. * src/HttpInitiateConnectionCommand.cc
  8244. * src/InitiateConnectionCommandFactory.cc
  8245. * src/PeerAbstractCommand.cc
  8246. * src/PeerAbstractCommand.h
  8247. * src/PeerInitiateConnectionCommand.cc
  8248. * src/TrackerWatcherCommand.cc
  8249. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Sort RequestSlot in ascending order and manipulate them using
  8251. lower_bound.
  8252. * src/DefaultBtMessageDispatcher.cc
  8253. * src/DefaultBtMessageDispatcher.h
  8254. (getMessageQueue): Added const qualifier.
  8255. (getRequestSlots): Added const qualifier.
  8256. (sendMessages): Use empty() instead of size().
  8257. (doCancelSendingPieceAction): Use HandleEvent object.
  8258. (doAbortOutstandingRequestAction): Rewritten.
  8259. (doChokedAction): Rewritten.
  8260. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8261. (isOutstandingRequest): Rewritten.
  8262. (getOutstandingRequest): Rewritten.
  8263. (removeOutstandingRequest): Rewritten.
  8264. (addOutstandingRequest): Rewritten.
  8265. * src/RequestSlot.cc
  8266. * src/RequestSlot.h
  8267. (operator=): Rewritten.
  8268. (operator!=): New function.
  8269. (operator<): New function.
  8270. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. * src/DefaultBtRequestFactory.cc
  8272. (doChokedAction): Rewritten.
  8273. (removeCompletedPiece): Rewritten.
  8274. (removeTargetPiece): Rewritten.
  8275. (createRequestMessages): Added the debug log.
  8276. (createRequestMessagesOnEndGame: Added the debug log.
  8277. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Added the debug log message.
  8279. * src/BtPieceMessage.cc (doReceivedAction)
  8280. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8282. used lower_bound to process them rather than linear search.
  8283. * src/DHTPeerAnnounceStorage.cc
  8284. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8286. peer has at least one completed piece.
  8287. * src/Peer.cc
  8288. * src/Peer.h
  8289. * src/PeerInteractionCommand.cc
  8290. * src/PeerSessionResource.cc
  8291. * src/PeerSessionResource.h
  8292. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Removed unnecessary sorting
  8294. * src/DefaultPieceStorage (DefaultPieceStorage)
  8295. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Rewritten the portion of the code that mangaes allowed fast indexes.
  8297. * src/PeerSessionResource.cc
  8298. * src/PeerSessionResource.h
  8299. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Removed the invalid string including '\r' from ru.po and
  8301. did make update-po.
  8302. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Added --log-level and --summary-interval to man page.
  8304. * doc/aria2c.1.txt
  8305. * doc/aria2c.1.html
  8306. * doc/aria2c.1
  8307. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Added --log-level option to specify log level. Log messages under
  8309. the specified level are not output. Default value is `debug'.
  8310. * src/HelpItemFactory.cc
  8311. * src/LogFactory.cc
  8312. * src/LogFactory.h
  8313. * src/Logger.h
  8314. * src/OptionHandlerFactory.cc
  8315. * src/SimpleLogger.cc
  8316. * src/SimpleLogger.h
  8317. * src/main.cc
  8318. * src/option_processing.cc
  8319. * src/prefs.h
  8320. * src/usage_text.h
  8321. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Print download progress summary of all parallel downloads in specified
  8323. interval, default 60 secs. While aria2 could download several files
  8324. in parallel (see -j option), it displayed just first download progress,
  8325. and the other downloads are hidden from the users. This new feature
  8326. prints all downloads currently in-progress to the console so that you
  8327. can check the status of all downloads. The interval can be adjusted
  8328. by --summary-interval option.
  8329. The progress readout is now cut so that all fits in the one line of
  8330. console.
  8331. * src/ConsoleStatCalc.cc
  8332. * src/ConsoleStatCalc.h
  8333. * src/HelpItemFactory.cc
  8334. * src/OptionHandlerFactory.cc
  8335. * src/RequestGroupMan.cc
  8336. * src/RequestGroupMan.h
  8337. * src/main.cc
  8338. * src/option_processing.cc
  8339. * src/prefs.h
  8340. * src/usage_text.h
  8341. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8343. * src/DownloadEngine.cc (DownloadEngine)
  8344. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8346. defined.
  8347. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8348. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Use erase+lower_bound+insert instead of sort.
  8350. * src/DefaultPieceStorage.cc (addPieceStats)
  8351. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8353. * src/A2STR.cc
  8354. * src/A2STR.h
  8355. * src/OptionParser.cc (parse)
  8356. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Defined fake filename `[tracker.announce]' as static const std::string.
  8358. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8359. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Defined default filename `index.html' as static const std::string
  8361. * src/SingleFileDownloadContext.cc
  8362. * src/SingleFileDownloadContext.h
  8363. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Defined "[MEMORY]" as static const std::string.
  8365. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8366. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Defined control file's version number as static const std::string.
  8368. * src/DefaultBtProgressInfoFile.cc
  8369. * src/DefaultBtProgressInfoFile.h
  8370. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Use Request::METHOD_GET
  8372. * src/RequestGroup.cc (createNextCommandWithAdj)
  8373. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Defined "OK", "ERR", "INPR" as static const std::string
  8375. * src/RequestGroupMan.cc (showDownloadResults)
  8376. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Defined default client used in extended handshake as static const
  8378. std::string
  8379. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8380. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8382. * src/HttpConnection.cc (eraseConfidentialInfo)
  8383. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Defined default ftp user and password as static const std::string
  8385. * src/AuthConfigFactory.cc
  8386. * src/AuthConfigFactory.h
  8387. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Defined strings used in netrc as static const std::string
  8389. * src/Netrc.cc
  8390. * src/Netrc.h
  8391. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Defined HTTP status as static const std::string
  8393. * src/AbstractProxyResponseCommand.cc
  8394. * src/HttpHeader.cc
  8395. * src/HttpHeader.h
  8396. * src/HttpResponse.cc
  8397. * src/HttpResponseCommand.cc
  8398. * src/HttpSkipResponseCommand.cc
  8399. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Defined "\r\n", "A", "I" as static const std::string
  8401. * src/A2STR.cc
  8402. * src/A2STR.h
  8403. * src/FtpConnection.cc
  8404. * src/FtpConnection.h
  8405. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Added COLON_C(".") and used it in Request::parseUrl()
  8407. * src/A2STR.cc
  8408. * src/A2STR.h
  8409. * src/Request.cc (parseUrl)
  8410. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Changed the type of padName from `const std::string&' to `const char*'.
  8412. * src/MSEHandshake.cc (verifyPadLength)
  8413. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Defined "sha1" as static const std::string.
  8415. * src/MetalinkParserController.cc
  8416. * src/MetalinkParserController.h
  8417. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Defined message digest algorithm name as static const std::string
  8419. * src/DHTTokenTracker.cc
  8420. * src/DHTUtil.cc
  8421. * src/DefaultBtContext.cc
  8422. * src/MSEHandshake.cc
  8423. * src/MessageDigestHelper.cc
  8424. * src/Peer.cc
  8425. * src/messageDigest.cc
  8426. * src/messageDigest.h
  8427. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Made string literals used in SAX parser static const std::string.
  8429. * src/FileMetalinkParserState.cc
  8430. * src/FileMetalinkParserState.h
  8431. * src/FilesMetalinkParserState.cc
  8432. * src/FilesMetalinkParserState.h
  8433. * src/InitialMetalinkParserState.cc
  8434. * src/InitialMetalinkParserState.h
  8435. * src/MetalinkMetalinkParserState.cc
  8436. * src/MetalinkMetalinkParserState.h
  8437. * src/PiecesMetalinkParserState.cc
  8438. * src/PiecesMetalinkParserState.h
  8439. * src/ResourcesMetalinkParserState.cc
  8440. * src/ResourcesMetalinkParserState.h
  8441. * src/VerificationMetalinkParserState.cc
  8442. * src/VerificationMetalinkParserState.h
  8443. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8445. * src/A2STR.cc
  8446. * src/A2STR.h
  8447. * src/File.cc
  8448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Defined static const std::string IP("ip"), PORT("port") and use them
  8450. instead of string literals.
  8451. * src/DefaultPeerListProcessor.cc
  8452. * src/DefaultPeerListProcessor.h
  8453. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Made string literals for torrent file processing static const
  8455. std::string.
  8456. * src/BtContext.cc
  8457. * src/BtContext.h
  8458. * src/DefaultBtContext.cc
  8459. * src/DefaultBtContext.h
  8460. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Made string literal for tracker response static const std::string
  8462. * src/BtAnnounce.cc
  8463. * src/BtAnnounce.h
  8464. * src/DefaultBtAnnounce.cc
  8465. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Use DHTMessage::T instead of "t".
  8467. * src/DHTMessageTracker.cc (messageArrived)
  8468. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Made keyName static const. Made trimmed charset static const
  8470. std::string.
  8471. * src/Util.cc (getContentDispositionFilename)
  8472. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Made USER_AGENT const. Made "/" static const std::string.
  8474. * src/A2STR.cc
  8475. * src/A2STR.h
  8476. * src/HttpRequest.cc
  8477. * src/HttpRequest.h
  8478. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Made string listeral to static const std::string:
  8480. "Content-Range", "Content-Length"
  8481. * src/HttpHeader.cc
  8482. * src/HttpHeader.h
  8483. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Made string listeral to static const std::string.
  8485. * src/HttpConnection.cc
  8486. * src/HttpHeader.cc
  8487. * src/HttpHeader.h
  8488. * src/HttpResponse.cc
  8489. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Made string listeral to static const std::string.
  8491. * src/A2STR.cc
  8492. * src/A2STR.h
  8493. * src/SimpleLogger.cc
  8494. * src/SimpleLogger.h
  8495. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Made string literal to static const std::string.
  8497. Rewritten CookieParser::setField.
  8498. * src/A2STR.cc
  8499. * src/A2STR.h
  8500. * src/CookieBoxFactory.cc
  8501. * src/CookieBoxFactory.h
  8502. * src/CookieParser.cc
  8503. * src/CookieParser.h
  8504. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Made string literal to static const std::string
  8506. * src/DHTAbstractMessage.cc
  8507. * src/DHTAnnouncePeerMessage.cc
  8508. * src/DHTAnnouncePeerMessage.h
  8509. * src/DHTAnnouncePeerReplyMessage.cc
  8510. * src/DHTAnnouncePeerReplyMessage.h
  8511. * src/DHTFindNodeMessage.cc
  8512. * src/DHTFindNodeMessage.h
  8513. * src/DHTFindNodeReplyMessage.cc
  8514. * src/DHTFindNodeReplyMessage.h
  8515. * src/DHTGetPeersMessage.cc
  8516. * src/DHTGetPeersMessage.h
  8517. * src/DHTGetPeersReplyMessage.cc
  8518. * src/DHTGetPeersReplyMessage.h
  8519. * src/DHTMessage.cc
  8520. * src/DHTMessage.h
  8521. * src/DHTMessageFactoryImpl.cc
  8522. * src/DHTMessageReceiver.cc
  8523. * src/DHTPingMessage.cc
  8524. * src/DHTPingMessage.h
  8525. * src/DHTPingReplyMessage.cc
  8526. * src/DHTPingReplyMessage.h
  8527. * src/DHTQueryMessage.cc
  8528. * src/DHTQueryMessage.h
  8529. * src/DHTResponseMessage.cc
  8530. * src/DHTResponseMessage.h
  8531. * src/DHTUnknownMessage.cc
  8532. * src/DHTUnknownMessage.h
  8533. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Made string literal to static const std::string
  8535. * src/BtChokeMessage.cc (toString)
  8536. * src/BtHaveAllMessage.cc (toString)
  8537. * src/BtHaveNoneMessage.cc (toString)
  8538. * src/BtInterestedMessage.cc (toString)
  8539. * src/BtNotInterestedMessage.cc (toString)
  8540. * src/BtUnchokeMessage.cc (toString)
  8541. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Replaced "" with static const variable A2STR::NIL.
  8543. Replaced string comparison against "" with std::string::empty().
  8544. Added PROTO_* to Request class and use them as a protocol string
  8545. constant.
  8546. Made "started", "stopped", "completed" static const variable in
  8547. AnnounceList class.
  8548. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Updated translations. Great thanks to translators.
  8550. * po/ca.po
  8551. * po/de.po
  8552. * po/fr.po
  8553. * po/it.po
  8554. * po/ja.po
  8555. * po/ru.po
  8556. * po/zh_CN.po
  8557. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Updated man page; categorized options and fixed typo.
  8559. * doc/aria2c.1.txt
  8560. * doc/aria2c.1.html
  8561. * doc/aria2c.1
  8562. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Removed const ref
  8564. * src/MetalinkEntry.cc (AddProtocolPreference)
  8565. * src/RequestGroup.cc (FindServerHostByHostname)
  8566. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Rewritten Accept-Features handling.
  8568. * src/HttpRequestCommand.cc (createHttpRequest)
  8569. * src/a2functional.h
  8570. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Changed method signature:
  8572. DHTAbstractNodeLookupTask::toEntries
  8573. * src/DHTAbstractNodeLookupTask.cc
  8574. * src/DHTAbstractNodeLookupTask.h
  8575. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Changed method signature:
  8577. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8578. * src/BtContext.h
  8579. * src/DefaultBtContext.cc
  8580. * src/DefaultBtContext.h
  8581. * src/DefaultBtInteractive.cc
  8582. * test/DefaultBtContextTest.cc
  8583. * test/MockBtContext.h
  8584. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Changed method signature:
  8586. MultiFileAllocationIterator::makeDiskWriterEntries
  8587. * src/MultiFileAllocationIterator.cc
  8588. * src/MultiFileAllocationIterator.h
  8589. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Changed method sinature:
  8591. MetalinkEntry::toFileEntry,
  8592. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8593. Metalinker::queryEntry
  8594. * src/Metalink2RequestGroup.cc
  8595. * src/MetalinkEntry.cc
  8596. * src/MetalinkEntry.h
  8597. * src/MetalinkHelper.cc
  8598. * src/MetalinkHelper.h
  8599. * src/Metalinker.cc
  8600. * src/Metalinker.h
  8601. * src/main.cc
  8602. * test/MetalinkHelperTest.cc
  8603. * test/MetalinkerTest.cc
  8604. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Changed method sinature:
  8606. RequestGroup::getURIs
  8607. * src/RequestGroup.cc
  8608. * src/RequestGroup.h
  8609. * test/Metalink2RequestGroupTest.cc
  8610. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Changed method signature:
  8612. PeerListProcessor::extractPeer
  8613. * src/CompactPeerListProcessor.cc
  8614. * src/CompactPeerListProcessor.h
  8615. * src/DefaultBtAnnounce.cc
  8616. * src/DefaultPeerListProcessor.cc
  8617. * src/DefaultPeerListProcessor.h
  8618. * src/DelegatingPeerListProcessor.cc
  8619. * src/DelegatingPeerListProcessor.h
  8620. * src/PeerListProcessor.h
  8621. * src/UTPexExtensionMessage.cc
  8622. * test/DefaultPeerListProcessorTest.cc
  8623. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Changed method signature:
  8625. BtRequestFactory::createRequestMessages,
  8626. BtRequestFactory::createRequestMessagesOnEndGame
  8627. * src/BtRequestFactory.h
  8628. * src/DefaultBtInteractive.cc
  8629. * src/DefaultBtRequestFactory.cc
  8630. * src/DefaultBtRequestFactory.h
  8631. * test/DefaultBtRequestFactoryTest.cc
  8632. * test/MockBtRequestFactory.h
  8633. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Changed method signature:
  8635. PieceStorage::getInFlightPieces
  8636. * src/DefaultBtProgressInfoFile.cc
  8637. * src/DefaultPieceStorage.cc
  8638. * src/DefaultPieceStorage.h
  8639. * src/PieceStorage.h
  8640. * src/UnknownLengthPieceStorage.cc
  8641. * src/UnknownLengthPieceStorage.h
  8642. * test/DefaultBtProgressInfoFileTest.cc
  8643. * test/MockPieceStorage.h
  8644. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Changed method signature:
  8646. PostDownloadHandler::getNextRequestGroups
  8647. Metalink2RequestGroup::generate
  8648. RequestGroup::postDownloadProcessing
  8649. * src/BtPostDownloadHandler.cc
  8650. * src/BtPostDownloadHandler.h
  8651. * src/Metalink2RequestGroup.cc
  8652. * src/Metalink2RequestGroup.h
  8653. * src/MetalinkPostDownloadHandler.cc
  8654. * src/MetalinkPostDownloadHandler.h
  8655. * src/PostDownloadHandler.h
  8656. * src/RequestGroup.cc
  8657. * src/RequestGroup.h
  8658. * src/RequestGroupMan.cc
  8659. * src/main.cc
  8660. * test/BtPostDownloadHandlerTest.cc
  8661. * test/Metalink2RequestGroupTest.cc
  8662. * test/MetalinkPostDownloadHandlerTest.cc
  8663. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Rewritten AccRequestGroup
  8665. * src/main.cc
  8666. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Rewritten.
  8668. * src/TaggedItem.cc (toTagString)
  8669. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Rewritten Accept-Features handling.
  8671. * src/HttpRequestCommand.cc (createHttpRequest)
  8672. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Rewritten accept types handling.
  8674. * HttpRequest.cc (createRequest)
  8675. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Rewritten
  8677. * src/FeatureConfig.cc (featureSummary)
  8678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Changed method signature:
  8680. PeerStorage::getActivePeers
  8681. * src/DHTPeerAnnounceEntry.cc
  8682. * src/DefaultPeerStorage.cc
  8683. * src/DefaultPeerStorage.h
  8684. * src/PeerStorage.h
  8685. * test/DefaultPeerStorageTest.cc
  8686. * test/MockPeerStorage.h
  8687. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Changed method signature:
  8689. DHTPeerAnnounceStorage::getPeers,
  8690. DHTPeerAnnounceEntry::getPeers
  8691. * src/DHTGetPeersMessage.cc
  8692. * src/DHTPeerAnnounceEntry.cc
  8693. * src/DHTPeerAnnounceEntry.h
  8694. * src/DHTPeerAnnounceStorage.cc
  8695. * src/DHTPeerAnnounceStorage.h
  8696. * test/DHTAnnouncePeerMessageTest.cc
  8697. * test/DHTPeerAnnounceEntryTest.cc
  8698. * test/DHTPeerAnnounceStorageTest.cc
  8699. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Changed method signature:
  8701. NameResolver::resolve
  8702. * src/DHTEntryPointNameResolveCommand.cc
  8703. * src/InitiateConnectionCommand.cc
  8704. * src/NameResolver.cc
  8705. * src/NameResolver.h
  8706. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Changed method signature:
  8708. PieceStorage::getAdvertisedPieceIndexes
  8709. * src/DefaultBtInteractive.cc
  8710. * src/DefaultPieceStorage.cc
  8711. * src/DefaultPieceStorage.h
  8712. * src/PieceStorage.h
  8713. * src/UnknownLengthPieceStorage.h
  8714. * test/MockPieceStorage.h
  8715. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Changed method signature:
  8717. SegmentMan::getInFlightSegment
  8718. * src/AbstractCommand.cc
  8719. * src/SegmentMan.cc
  8720. * src/SegmentMan.h
  8721. * test/SegmentManTest.cc
  8722. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Changed method signature:
  8724. DHTAbstractNodeLookupTask::getNodesFromMessage
  8725. * src/DHTAbstractNodeLookupTask.cc
  8726. * src/DHTAbstractNodeLookupTask.h
  8727. * src/DHTNodeLookupTask.cc
  8728. * src/DHTNodeLookupTask.h
  8729. * src/DHTPeerLookupTask.cc
  8730. * src/DHTPeerLookupTask.h
  8731. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8733. * src/AbstractCommand.cc
  8734. * src/BtCheckIntegrityEntry.cc
  8735. * src/BtCheckIntegrityEntry.h
  8736. * src/BtFileAllocationEntry.cc
  8737. * src/BtFileAllocationEntry.h
  8738. * src/BtSetup.cc
  8739. * src/BtSetup.h
  8740. * src/CheckIntegrityCommand.cc
  8741. * src/CheckIntegrityEntry.h
  8742. * src/ChecksumCheckIntegrityEntry.cc
  8743. * src/ChecksumCheckIntegrityEntry.h
  8744. * src/DHTSetup.cc
  8745. * src/DHTSetup.h
  8746. * src/DownloadEngine.cc
  8747. * src/FileAllocationCommand.cc
  8748. * src/FileAllocationEntry.h
  8749. * src/RequestGroup.cc
  8750. * src/RequestGroup.h
  8751. * src/RequestGroupMan.cc
  8752. * src/RequestGroupMan.h
  8753. * src/StreamCheckIntegrityEntry.cc
  8754. * src/StreamCheckIntegrityEntry.h
  8755. * src/StreamFileAllocationEntry.cc
  8756. * src/StreamFileAllocationEntry.h
  8757. * src/TrackerWatcherCommand.cc
  8758. * src/a2functional.h
  8759. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Changed method signature:
  8761. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8762. DHTBucket::getGoodNodes,
  8763. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8764. * src/BNode.cc
  8765. * src/BNode.h
  8766. * src/DHTAbstractNodeLookupTask.cc
  8767. * src/DHTAutoSaveCommand.cc
  8768. * src/DHTBucket.cc
  8769. * src/DHTBucket.h
  8770. * src/DHTBucketRefreshTask.cc
  8771. * src/DHTFindNodeMessage.cc
  8772. * src/DHTGetPeersMessage.cc
  8773. * src/DHTRoutingTable.cc
  8774. * src/DHTRoutingTable.h
  8775. * test/BNodeTest.cc
  8776. * test/DHTBucketTest.cc
  8777. * test/DHTRoutingTableTest.cc
  8778. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. In piece selection functions, Pass std::deque<...> by reference rather
  8780. than returning it.
  8781. * src/BitfieldMan.cc
  8782. * src/BitfieldMan.h
  8783. * src/DefaultBtRequestFactory.cc
  8784. * src/DefaultPieceStorage.cc
  8785. * src/Piece.cc
  8786. * src/Piece.h
  8787. * test/BitfieldManTest.cc
  8788. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Implemented rarest piece first piece selection strategy.
  8790. * src/AbstractBtMessage.cc
  8791. * src/AbstractBtMessage.h
  8792. * src/BitfieldMan.cc
  8793. * src/BitfieldMan.h
  8794. * src/BtBitfieldMessage.cc
  8795. * src/BtHaveAllMessage.cc
  8796. * src/BtHaveMessage.cc
  8797. * src/DefaultPieceStorage.cc
  8798. * src/DefaultPieceStorage.h
  8799. * src/PeerInteractionCommand.cc
  8800. * src/PieceStorage.h
  8801. * src/UnknownLengthPieceStorage.h
  8802. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Rewritten readData and writeData.
  8804. * src/MultiDiskAdaptor.cc
  8805. * src/MultiDiskAdaptor.h
  8806. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Move \n out of the message "Usage: ...".
  8808. * src/version_usage.cc
  8809. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Bump up version number to 0.13.2b.
  8811. * configure.ac
  8812. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Added const qualifier to argument Exception& e.
  8814. * src/Logger.h
  8815. * src/SimpleLogger.cc
  8816. * src/SimpleLogger.h
  8817. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Pool connection when CWD, SIZE command fails.
  8819. * src/FtpNegotiationCommand.cc
  8820. * src/FtpNegotiationCommand.h
  8821. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8823. * src/HttpResponseCommand.cc
  8824. * src/HttpSkipResponseCommand.cc
  8825. * src/HttpSkipResponseCommand.h
  8826. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Pool connection when a server returns 4xx, 5xx responses.
  8828. * src/HttpNullDownloadCommand.cc
  8829. * src/HttpNullDownloadCommand.h
  8830. * src/HttpResponse.cc
  8831. * src/HttpResponse.h
  8832. * src/HttpResponseCommand.cc
  8833. * src/HttpResponseCommand.h
  8834. * test/HttpResponseTest.cc
  8835. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Print usage when no URL is specifed or bad command-line option is
  8837. specified.
  8838. * src/HelpItemFactory.cc
  8839. * src/help_tags.h
  8840. * src/option_processing.cc
  8841. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Removed duplicate log message.
  8843. * src/AbstractCommand.cc (asyncResolveHostname)
  8844. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8846. Changed -j option's default value from 5 to 1.
  8847. Added new examples using protocol auto detection feature.
  8848. Removed -T, -M usage where it can be omitted.
  8849. * doc/aria2c.1.txt
  8850. * doc/aria2c.1.html
  8851. * doc/aria2c.1.txt
  8852. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Updated command-line usage text, so that it tells users that they
  8854. can specify any number of torrent files and metalink files in
  8855. command-line.
  8856. * src/version_usage.cc
  8857. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Changed the default value of -j option to 1.
  8859. * src/HelpItemFactory.cc
  8860. * src/option_processing.cc
  8861. * src/usage_text.h
  8862. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Added the ability to reuse connection in FTP and it is enabled by
  8864. default. It can be disabled by --ftp-reuse-connection=false option.
  8865. * src/Command.cc
  8866. * src/DownloadCommand.cc
  8867. * src/FtpDownloadCommand.cc
  8868. * src/FtpDownloadCommand.h
  8869. * src/FtpFinishDownloadCommand.cc
  8870. * src/FtpFinishDownloadCommand.h
  8871. * src/FtpInitiateConnectionCommand.cc
  8872. * src/FtpNegotiationCommand.cc
  8873. * src/FtpNegotiationCommand.h
  8874. * src/HelpItemFactory.cc
  8875. * src/Makefile.am
  8876. * src/Makefile.in
  8877. * src/OptionHandlerFactory.cc
  8878. * src/option_processing.cc
  8879. * src/prefs.h
  8880. * src/usage_text.h
  8881. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Call Command::transitStatus() before calling Command::execute(),
  8883. so that the status change made in execute() is not cleared.
  8884. * src/DownloadEngine.cc
  8885. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Removed forward declaration of SocketCore class.
  8887. * src/HttpDownloadCommand.h
  8888. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8890. in InitiateConnectionCommandFactory. They should be set only when
  8891. the protocol is HTTP or HTTPS.
  8892. * src/InitiateConnectionCommandFactory.cc
  8893. * src/RequestGroup.cc
  8894. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Fixed infinite loop in checksum checking.
  8896. * src/IteratableChecksumValidator.cc
  8897. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Set _supportsPersistentConnection to true by default.
  8899. * src/Request.cc
  8900. * src/RequestGroup.cc
  8901. * test/HttpRequestTest.cc
  8902. * test/RequestTest.cc
  8903. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Added timeout to socket pool. The default timeout is 15 seconds,
  8905. which is the same value Apache uses.
  8906. * src/DownloadEngine.cc
  8907. * src/DownloadEngine.h
  8908. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Fixed misuse of multimap::find()
  8910. * src/HttpHeader.cc
  8911. * test/HttpHeaderTest.cc
  8912. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8914. option.
  8915. The asynchronous DNS is not capable of IPv6 yet.
  8916. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8917. least for HTTP download.
  8918. * src/AbstractCommand.cc
  8919. * src/AbstractCommand.h
  8920. * src/AsyncNameResolver.cc
  8921. * src/AsyncNameResolver.h
  8922. * src/DHTEntryPointNameResolveCommand.cc
  8923. * src/DHTEntryPointNameResolveCommand.h
  8924. * src/DownloadEngine.cc
  8925. * src/DownloadEngine.h
  8926. * src/FtpInitiateConnectionCommand.cc
  8927. * src/FtpInitiateConnectionCommand.h
  8928. * src/HelpItemFactory.cc
  8929. * src/HttpInitiateConnectionCommand.cc
  8930. * src/HttpInitiateConnectionCommand.h
  8931. * src/InitiateConnectionCommand.cc
  8932. * src/InitiateConnectionCommand.h
  8933. * src/Makefile.am
  8934. * src/Makefile.in
  8935. * src/NameResolver.cc
  8936. * src/NameResolver.h
  8937. * src/OptionHandlerFactory.cc
  8938. * src/SocketCore.cc
  8939. * src/SocketCore.h
  8940. * src/Util.cc
  8941. * src/Util.h
  8942. * src/option_processing.cc
  8943. * src/prefs.h
  8944. * src/usage_text.h
  8945. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Updated man page: --quiet, --header were added.
  8947. --metalink-servers and --enable-http-keep-alive option were updated.
  8948. * doc/aria2c.1
  8949. * doc/aria2c.1.html
  8950. * doc/aria2c.1.txt
  8951. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Enable HTTP keep-alive by default.
  8953. * src/HelpItemFactory.cc
  8954. * src/option_processing.cc
  8955. * src/usage_text.h
  8956. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Disable http keep-alive if the remote server is not HTTP/1.1.
  8958. * src/HttpConnection.cc
  8959. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Receive content body of 302 response so that the connection can be
  8961. reused later when http keep-alive is enabled.
  8962. * src/HttpNullDownloadCommand.cc
  8963. * src/HttpNullDownloadCommand.h
  8964. * src/HttpResponseCommand.cc
  8965. * src/HttpResponseCommand.h
  8966. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. const SharedHandle<Request> -> const SharedHandle<Request>&
  8968. * src/FtpDowndloadCommand.cc
  8969. * src/FtpDowndloadCommand.h
  8970. * src/HttpDownloadCommand.cc
  8971. * src/HttpDownloadCommand.h
  8972. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Fixed the bug that the control file(.aria2 file) is not renamed
  8974. according to tryAutoFileRenaming().
  8975. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8976. its control file exist, use them and continue download.
  8977. The old implementation didn't take into account of control file's
  8978. existence, so basically you couldn't continue download of renamed file.
  8979. * src/BtProgressInfoFile.h
  8980. * src/DefaultBtProgressInfoFile.cc
  8981. * src/DefaultBtProgressInfoFile.h
  8982. * src/NullProgressInfoFile.h
  8983. * src/RequestGroup.cc
  8984. * test/DefaultBtProgressInfoFileTest.cc
  8985. * test/MockBtProgressInfoFile.h
  8986. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Change the default value of --metalink-servers option from `5' to `1'.
  8988. * src/HelpItemFactory.cc
  8989. * src/option_processing.cc
  8990. * src/usage_text.h
  8991. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Reimplemented transparent metalink using Accept request header.
  8993. * src/HttpRequest.cc
  8994. * src/HttpRequest.h
  8995. * src/HttpRequestCommand.cc
  8996. * src/Metalink2RequestGroup.cc
  8997. * src/RequestGroup.cc
  8998. * src/RequestGroup.h
  8999. * test/HttpRequestTest.cc
  9000. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Bump up version number to 0.13.2a
  9002. * configure.ac
  9003. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Updated configure.ac using the result of autoscan.
  9005. * configure.ac
  9006. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Fixed compilation error without gcrypt/openssl.
  9008. * src/DownloadCommand.cc
  9009. * src/DownloadCommand.h
  9010. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Reorganized version information so that it can be displayed in a
  9012. standard terminal screen without scrolling.
  9013. Removed http, ftp from Configuration section, because they are always
  9014. enabled.
  9015. * src/FeatureConfig.cc
  9016. * src/FeatureConfig.h
  9017. * src/main.cc
  9018. * src/messageDigest.cc
  9019. * src/messageDigest.h
  9020. * src/version_usage.cc
  9021. * test/FeatureConfigTest.cc
  9022. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Masked user ID in log.
  9024. * src/FtpConnection.cc (sendUser)
  9025. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Removed query part from filename in HTTP download. The query part means
  9027. the substring after "?" in URL. Firefox seems do the same thing.
  9028. A query part is sometimes very long and not suitable to filename,
  9029. so I think it is better to remove it from filename.
  9030. * src/HttpRequest.cc
  9031. * src/HttpRequest.h
  9032. * src/Request.cc
  9033. * src/Request.h
  9034. * test/HttpRequestTest.cc
  9035. * test/RequestTest.cc
  9036. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Rewritten Exception class. Throw exception object, not its pointer and
  9038. catch by reference, so that remove problematic delete operator for
  9039. catched exception.
  9040. * src/Exception.cc
  9041. * src/Exception.h
  9042. * test/ExceptionTest.cc
  9043. * src/*: All files throwing/catching exception.
  9044. * test/*: All files throwing/catching exception.
  9045. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Now auto protocol detection is enabled without -Z option.
  9047. But there is a important difference between with/without -Z optoin.
  9048. For example, if you type:
  9049. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9050. then, aria2 interprets there are 3 request groups:
  9051. (1) http://host/file, http://mirror/file <-- multi-source download
  9052. (2) file1.torrent
  9053. (3) file2.metalink
  9054. On the other hand, if you invoke above command with -Z option, it is
  9055. interpreted as 4 request groups:
  9056. (1) http://host/file
  9057. (2) file1.torrent
  9058. (3) file2.metalink
  9059. (4) http://mirror/file
  9060. I think usually user don't mix multi-source URLs and torrent files, so
  9061. there is no big problem here.
  9062. * src/main.cc
  9063. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Fixed the bug that causes segmentaion fault when reading XML containing
  9065. unescapsed character like '&'.
  9066. Also a modification was made which avoids adding unnecessary
  9067. characters stack and appending unused string.
  9068. * src/ExpatMetalinkProcessor.cc
  9069. * src/FileMetalinkParserState.h
  9070. * src/FilesMetalinkParserState.h
  9071. * src/FinMetalinkParserState.h
  9072. * src/HashMetalinkParserState.h
  9073. * src/InitialMetalinkParserState.h
  9074. * src/LanguageMetalinkParserState.h
  9075. * src/MetalinkMetalinkParserState.h
  9076. * src/MetalinkParserState.h
  9077. * src/MetalinkParserStateMachine.cc
  9078. * src/MetalinkParserStateMachine.h
  9079. * src/OSMetalinkParserState.h
  9080. * src/PieceHashMetalinkParserState.h
  9081. * src/PiecesMetalinkParserState.h
  9082. * src/ResourcesMetalinkParserState.h
  9083. * src/SizeMetalinkParserState.h
  9084. * src/SkipTagMetalinkParserState.h
  9085. * src/URLMetalinkParserState.h
  9086. * src/VerificationMetalinkParserState.h
  9087. * src/VersionMetalinkParserState.h
  9088. * src/XML2SAXMetalinkProcessor.cc
  9089. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Added StringFormat class, which internally calls vasprintf.
  9091. operator<< is defined for this class, so it can be used with iostream
  9092. classes nicely. SimpleLogger and following functions are rewritten
  9093. using StringFormat class.
  9094. Besides, now Logger class's methods are non-const, many classes
  9095. that has a const Logger* as a member variable are modified to remove
  9096. const qualifier from the variable declaration.
  9097. * src/HelpItemFactory.cc
  9098. * src/Request.cc
  9099. * src/SimpleLogger.cc
  9100. * src/StringFormat.cc
  9101. * src/StringFormat.h
  9102. * src/Util.cc
  9103. * src/option_processing.cc
  9104. * src/version_usage.cc
  9105. * test/StringFormatTest.cc
  9106. * src/*.h: The classes that has const Logger* as a member variable.
  9107. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9109. failed. Also fixed memory link when exception is thrown there.
  9110. * src/main.cc (AccRequestGroup)
  9111. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Added build-in "Accept-Features" support. For now only "metalink" is
  9113. used in this header field.
  9114. This "metalink" value is removed from the list when connecting URLs
  9115. fed by metalink file to avoid loop in "transparent" metlaink.
  9116. * src/HttpRequest.cc
  9117. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9118. header is also held in this variable. Also renamed setUserHeaders as
  9119. addHeader and it was rewritten to add header not just to clear the old
  9120. value.
  9121. * src/HttpRequestCommand.cc
  9122. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9123. from "Accept-Features" list.
  9124. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9125. default.
  9126. * src/RequestGroup.h
  9127. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9128. * src/a2functional.h: Included <string> because Concat class depends on
  9129. it.
  9130. * test/HttpRequestTest.cc
  9131. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Added comment
  9133. * src/RequestGroup.cc (createNextCommand)
  9134. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Capitalized METHOD_GET and METHOD_HEAD
  9136. * src/Request.cc
  9137. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Added getDownloadResults() method
  9139. * src/RequestGroupMan.cc
  9140. * src/RequestGroupMan.h
  9141. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Fixed the bug that aria2 exits when commands is empty() but
  9143. _routineCommands are not.
  9144. * src/DownloadEngine.cc
  9145. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Use the default value pulled from Option object in HelpItemFactory.
  9147. except options whose defualt value is embedded in a usage text.
  9148. * src/HelpItemFactory.cc
  9149. * src/HelpItemFactory.h
  9150. * src/option_processing.cc
  9151. * src/version_usage.cc
  9152. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Added --quiet option to make aria2 quiet (no console output).
  9154. --quiet option is tagged with ADVANCED.
  9155. * src/HelpItemFactory.cc
  9156. * src/LogFactory.cc
  9157. * src/LogFactory.h
  9158. * src/MultiUrlRequestInfo.cc
  9159. * src/MultiUrlRequestInfo.h
  9160. * src/NullStatCalc.h: New class. This class prints nothing.
  9161. * src/OptionHandlerFactory.cc
  9162. * src/main.cc
  9163. * src/option_processing.cc
  9164. * src/prefs.h
  9165. * src/usage_text.h
  9166. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9168. * src/HelpItemFactory.cc (createHelpItems):
  9169. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Fixed compilation error in ExpatMetalinkProcessor.cc
  9171. * src/ExpatMetalinkProcessor.cc
  9172. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9173. Reuse socket if the origin server supports HTTP keep-alive and
  9174. --enable-http-keep-alive or --enable-http-pipelining is given.
  9175. The current implementation doesn't reuse the connections established
  9176. against proxy server.
  9177. * src/AbstractCommand.cc
  9178. * src/DownloadEngine.cc
  9179. * src/DownloadEngine.h
  9180. * src/HttpDownloadCommand.cc
  9181. * src/HttpInitiateConnectionCommand.cc
  9182. * src/HttpResponseCommand.cc
  9183. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Rewritten HTTP keep-alive and pipelining routine.
  9185. * src/AbstractCommand.cc
  9186. * src/HttpConnection.cc
  9187. * src/HttpDownloadCommand.cc
  9188. * src/HttpRequest.cc
  9189. * src/HttpRequestCommand.cc
  9190. * src/HttpResponseCommand.cc
  9191. * src/Request.cc
  9192. * src/Request.h
  9193. * src/RequestGroup.cc
  9194. * test/HttpRequestTest.cc
  9195. * test/HttpResponseTest.cc
  9196. * test/RequestTest.cc
  9197. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Added missing setUserHeaders call
  9199. * src/HttpRequestCommand.cc
  9200. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9202. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9203. waste of time because it is more likey false.
  9204. * src/FileAllocationDispatcherCommand.cc (execute)
  9205. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Now HTTP status and version are a member variable of HttpHeader.
  9207. HTTP status is processed as a string, not integer.
  9208. * src/AbstractProxyResponseCommand.cc
  9209. * src/HttpConnection.cc
  9210. * src/HttpHeader.cc
  9211. * src/HttpHeader.h
  9212. * src/HttpHeaderProcessor.cc
  9213. * src/HttpHeaderProcessor.h
  9214. * src/HttpResponse.cc
  9215. * src/HttpResponse.h
  9216. * test/HttpHeaderProcessorTest.cc
  9217. * test/HttpResponseTest.cc
  9218. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Added --header option. You can specify any number of additional HTTP headers
  9220. like:
  9221. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9222. Unlike other commad-line option, you can use --header option multiple times.
  9223. * src/HelpItemFactory.cc
  9224. * src/HttpRequest.{cc, h}
  9225. * src/HttpRequestCommand.cc
  9226. * src/OptionHandlerFactory.cc
  9227. * src/OptionHandlerImpl.h
  9228. * src/option_processing.cc
  9229. * src/prefs.h
  9230. * src/usage_text.h
  9231. * test/HttpRequestTest.cc (testUserHeaders)
  9232. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Eliminates the time lag between sequential downloads and commands in
  9234. the same RequestGroup.
  9235. In old implementation, aria2 occasionally waits 1 seconds before
  9236. executing next command or RequestGroup.
  9237. This is really a waste of time, and new implementation eliminates
  9238. this unnecessary time lag.
  9239. * src/AbstractCommand.cc
  9240. * src/AutoSaveCommand.cc
  9241. * src/CheckIntegrityCommand.cc
  9242. * src/Command.{cc, h}
  9243. * src/DownloadEngine.{cc, h}
  9244. * src/DownloadEngineFactory.cc
  9245. * src/FileAllocationCommand.cc
  9246. * src/FileAllocationDispatcherCommand.cc
  9247. * src/FillRequestGroupCommand.cc
  9248. * src/FtpInitiateConnectionCommand.cc
  9249. * src/HaveEraseCommand.cc
  9250. * src/HttpInitiateConnectionCommand.cc
  9251. * src/HttpResponseCommand.cc
  9252. * src/RealtimeCommand.cc
  9253. * src/RequestGroup.cc
  9254. * src/RequestGroupMan.cc
  9255. * src/StreamFileAllocationEntry.cc
  9256. * src/TimeBasedCommand.{cc, h}
  9257. * src/TimedHaltCommand.cc
  9258. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9260. keyword explicit and SharedHandle's default constructor initializes
  9261. its internal obj to null, old implementation initializes it using
  9262. obj's default constructor.
  9263. To assign null, write SharedHandle<T> x(...); x.reset();
  9264. TODO: test/SharedHandleTest.cc needs more tests.
  9265. * src/SharedHandle.h
  9266. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Fixed type in man page.
  9268. * doc/aria2c.1.txt
  9269. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9271. * src/SimpleLogger.{cc, h}
  9272. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. Implemented auto protocol detection.
  9274. Now you can do:
  9275. aria2c -Z http://host/file file1.torrent file2.metalink
  9276. (Note: -Z option is required for auto protcol detection.)
  9277. Then aria2c downloads 3 files simultaneously:
  9278. 1. http://host/file
  9279. 2. file1.torrent <-- read local torrent file
  9280. 3. file2.metalink <-- read local Metalink file.
  9281. Same thing goes with -i option. Assume your uris.txt contans:
  9282. http://host/file
  9283. file1.torrent
  9284. file2.metalink
  9285. Then you can do: aria2c -i uris.txt
  9286. (Note: -Z option is not needed if -i option is given.)
  9287. * src/main.cc
  9288. * src/ProtocolDetector.{cc, h}
  9289. * test/ProtocolDetectorTest.cc
  9290. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9292. installed
  9293. * src/ARC4Encryptor.h
  9294. * src/ARC4Decryptor.h
  9295. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Renamed argument from 'errno' to 'err', since errno is confused with
  9297. errno defined in errno.h.
  9298. * src/LibgcryptARC4Decryptor.h
  9299. * src/LibgcryptARC4Context.h
  9300. * src/LibgcryptDHKeyExchange.h
  9301. * src/LibgcryptARC4Encryptor.h
  9302. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Rewritten choking algorithm.
  9304. * src/PeerChokeCommand.{cc, h}
  9305. * src/BtInterestedMessage.cc
  9306. * src/PeerSessionResource.{cc, h}
  9307. * src/DefaultPeerStorage.{cc, h}
  9308. * src/BtNotInterestedMessage.cc
  9309. * src/DefaultBtMessageDispatcher.{cc, h}
  9310. * src/BtMessageDispatcher.h
  9311. * src/Peer.{cc, h}
  9312. * src/BtLeecherStateChoke.{cc, h}
  9313. * src/BtSetup.cc
  9314. * src/BtSeederStateChoke.{cc, h}
  9315. * src/PeerStorage.h
  9316. * test/MockPeerStorage.h
  9317. * test/MockBtMessageDispatcher.h
  9318. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Fixed compilation error on x84-64 platform.
  9320. * src/AuthConfig.cc: Included ostream.
  9321. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Rewritten getBasename() and getDirname(), without standard library
  9323. basename(), dirname().
  9324. * src/File.cc
  9325. * test/FileTest.cc
  9326. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Added Simplified Chinese translation. Also updated the following
  9328. translations: Polish, Dutch, German. Great thanks to all translators.
  9329. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Suppress content-range error when 'Content-Range' response header
  9331. doesn't contains bytes-unit specifier 'bytes'
  9332. * src/HttpHeader.cc (getRange)
  9333. * test/HttpHeaderTest.cc
  9334. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Fixed compilation error with g++-4.3
  9336. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Added missing include files for MinGW
  9338. * test/HttpHeaderProcessorTest.cc
  9339. * test/DHTRoutingTableSerializerTest.cc
  9340. * test/DHTRoutingTableDeserializerTest.cc
  9341. * test/UriListParserTest.cc
  9342. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Now download line is printed nicely with no garbage at the end of
  9344. line. I use ioctl to get the columns of terminal.
  9345. If stdout is redirected to another device, instead of carriage return,
  9346. end of line '\n' character is used. This is feature request#1909659
  9347. * src/ConsoleStatCalc.cc (calculateStat)
  9348. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Included a2time.h
  9350. * src/DHTMessageDispatcher.h
  9351. * src/DHTMessageEntry.h
  9352. * src/DHTReplaceNodeTask.h
  9353. * src/DHTMessageTracker.h
  9354. * src/Util.h
  9355. * src/CookieBox.h
  9356. * src/SocketCore.h
  9357. * src/DefaultBtMessageDispatcher.h
  9358. * src/SocketCore.cc
  9359. * src/Util.cc
  9360. * src/DHTPingTask.h
  9361. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Fixed high memory footprint when DHT is enabled.
  9363. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9364. queued than it is processed and the queue is getting longer. As a
  9365. consequence, momory usage is increased.
  9366. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9367. replacement cache in DHTBucket which is described in Kademlia paper.
  9368. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9369. DHTReplaceNodeTask.
  9370. * src/DHTBucket.{h, cc}
  9371. (cacheNode): New function.
  9372. (getCachedNodes): New function.
  9373. (dropNode): Push back cached node to _nodes.
  9374. * test/DHTBucketTest.cc
  9375. (testCacheNode): New test
  9376. (testDropNode): New test
  9377. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9379. the unused 4KB memory when ssl is not used.
  9380. * src/SocketCore.cc
  9381. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Added summary log for peer announce storage.
  9383. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9384. Removed cast
  9385. * src/DefaultPeerStorage.cc (addPeer)
  9386. Log exception message
  9387. * src/DHTMessageTracker.cc (handleTimeout)
  9388. Fixed casting
  9389. * test/HttpRequestTest.cc
  9390. * test/MetalinkProcessorTest.cc
  9391. * test/PieceTest.cc
  9392. * test/MetalinkEntryTest.cc
  9393. * test/SequenceTest.cc
  9394. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. * src/ParameterizedStringParser.cc (createLoop):
  9396. Removed unused variable sstep.
  9397. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9398. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. * src/Util.{h, cc}
  9400. (parseUInt): New function.
  9401. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9402. The actual range is uint32_t.
  9403. * test/UtilTest.cc
  9404. * src/ParameterizedStringParser.cc:
  9405. Use Util::parseUInt() for loop variables.
  9406. * test/ParameterizedStringParserTest.cc
  9407. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9408. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. Rewritten the functions for binding port.
  9410. * src/DHTConnectionImpl.{h, cc}
  9411. * src/PeerListenCommand.{h, cc}
  9412. * src/DHTSetup.cc
  9413. * src/BtSetup.cc
  9414. * test/DHTConnectionImplTest.cc
  9415. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. type cleanup for allmost all remaining files.
  9417. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9418. Type clarification
  9419. * src/PeerSessionResource.{h, cc}
  9420. * src/DefaultPieceStorage.{h, cc}
  9421. * src/Peer.{h, cc}
  9422. * test/PeerSessionResourceTest.cc
  9423. Use div function
  9424. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9425. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Type clarification
  9427. * src/DefaultPeerStorage.{h, cc}
  9428. * test/DefaultPeerStorageTest.cc
  9429. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Type clarification: size_t for length or size, uint64_t for file
  9431. length, off_t for file offset.
  9432. * src/DefaultBtProgressInfoFile.cc
  9433. * src/DefaultBtContext.{h, cc}
  9434. * src/DefaultBtInteractive.cc
  9435. * src/DownloadCommand.{h, cc}
  9436. * src/IteratableChunkChecksumValidator.{h, cc}
  9437. * src/SegmentMan.{h, cc}
  9438. * src/SingleFileDownloadContext.{h, cc}
  9439. * src/IteratableChecksumValidator.{h, cc}
  9440. * src/BtContext.h
  9441. * src/IteratableValidator.h
  9442. * src/DownloadContext.h
  9443. * test/SingleFileDownloadContextTest.cc
  9444. * test/DefaultBtContextTest.cc
  9445. * test/MockBtContext.h
  9446. * test/Metalink2RequestGroupTest.cc
  9447. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Type clarification: size_t for length or size, uint64_t for file
  9449. length, off_t for file offset.
  9450. * src/PiecedSegment.cc
  9451. * src/GrowSegment.h
  9452. * src/DefaultBtRequestFactory.h
  9453. * src/DefaultBtProgressInfoFile.cc
  9454. * src/UnknownLengthPieceStorage.h
  9455. * src/DefaultPieceStorage.cc
  9456. * src/UnknownLengthPieceStorage.cc
  9457. * src/DefaultBtInteractive.cc
  9458. * src/GrowSegment.cc
  9459. * src/BitfieldMan.h
  9460. * src/DownloadCommand.cc
  9461. * src/BtRequestFactory.h
  9462. * src/PiecedSegment.h
  9463. * src/DefaultPieceStorage.h
  9464. * src/Piece.cc
  9465. * src/DefaultBtRequestFactory.cc
  9466. * src/PieceStorage.h
  9467. * src/Segment.h
  9468. * src/Piece.h
  9469. * src/BitfieldMan.cc
  9470. * src/Util.cc
  9471. * test/DefaultBtProgressInfoFileTest.cc
  9472. * test/DefaultPieceStorageTest.cc
  9473. * test/MockPieceStorage.h
  9474. * test/BtRequestMessageTest.cc
  9475. * test/DefaultBtMessageDispatcherTest.cc
  9476. * test/BitfieldManTest.cc
  9477. * test/GrowSegmentTest.cc
  9478. * test/PieceTest.cc
  9479. * test/SegmentTest.cc
  9480. * test/SegmentManTest.cc
  9481. * test/DefaultBtRequestFactoryTest.cc
  9482. * test/MockBtRequestFactory.h
  9483. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Fixed compilation error with --disable-nls
  9485. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9486. in gettext.h causes the problem.
  9487. * src/common.h
  9488. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Removed subPiece related functions.
  9490. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9491. * src/DefaultPieceStorage.{h, cc}
  9492. * test/PieceTest.cc
  9493. * test/DefaultPieceStorageTest.cc
  9494. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Use unsigned char for data store.
  9496. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Bump up version number to 0.13.0+1
  9498. * configure.ac
  9499. * Release 0.13.0+1
  9500. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Changed inactive connection timeout to 120.
  9502. To accept more mulually interested peers, disconnect peer when there
  9503. is no interest between us after certain time passed.
  9504. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9505. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9507. when compiled with async DNS support.
  9508. * src/DownloadEngine.cc
  9509. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9510. value '10' will be a little bit short when some DNS servers are
  9511. offline and several DNS servers are tried. It should be configured
  9512. by command-line option.
  9513. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Merged Ross's mingw patch.
  9515. * src/DHTRoutingTableDeserializer.cc
  9516. * src/DHTRoutingTableSerializer.cc
  9517. * src/Platform.{h, cc}
  9518. * src/timegm.h
  9519. * src/gettimeofday.h
  9520. * src/getaddrinfo.h
  9521. * src/SocketCore.h
  9522. * src/common.h
  9523. * src/inet_aton.h
  9524. * src/DownloadEngine.h
  9525. * src/gai_strerror.h
  9526. * src/a2netcompat.h
  9527. * configure.ac
  9528. * configure
  9529. * aclocal.m4
  9530. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Included missing iostream.
  9532. * test/AllTest.cc
  9533. * test/BtDependencyTest.cc
  9534. * test/BtExtendedMessageTest.cc
  9535. * test/DHTConnectionImplTest.cc
  9536. * test/DHTMessageFactoryImplTest.cc
  9537. * test/DHTMessageTrackerEntryTest.cc
  9538. * test/DHTNodeTest.cc
  9539. * test/DHTRoutingTableSerializerTest.cc
  9540. * test/DefaultBtAnnounceTest.cc
  9541. * test/DefaultBtContextTest.cc
  9542. * test/DefaultBtMessageFactoryTest.cc
  9543. * test/DefaultExtensionMessageFactoryTest.cc
  9544. * test/HandshakeExtensionMessageTest.cc
  9545. * test/HttpResponseTest.cc
  9546. * test/MetalinkProcessorTest.cc
  9547. * test/MultiFileAllocationIteratorTest.cc
  9548. * test/SocketCoreTest.cc
  9549. * test/UTPexExtensionMessageTest.cc
  9550. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. Reorganized includes.
  9552. * src/NameResolver.cc
  9553. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9554. Fixed compilation error without ares/c-ares
  9555. * src/NameResolver.h:
  9556. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Added a test for large file.
  9558. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9559. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Fixed the bug that file size is ignored if size > INT32_MAX
  9561. * src/SizeMetalinkParserState.cc (endElement):
  9562. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Bump up version number to 0.13.0
  9564. * configure.ac
  9565. * Release 0.13.0
  9566. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Updated Makfefile.am to make 'make dist' work.
  9568. Now packaged filename is aria2c-VERSION.tar.bz2.
  9569. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9570. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9571. Large file support is now configured by configure script.
  9572. * configure.ac
  9573. Removed unsused source files
  9574. * src/
  9575. * test/
  9576. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9577. Peer.h and BtContext.h respectively.
  9578. * src/Peer.h
  9579. * src/BtContext.h
  9580. Updated translations.
  9581. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9582. translations. Great thanks to all translators!;)
  9583. * po/*.{po, gmo}
  9584. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9585. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9586. statically declared sha1 MessageDigestContext.
  9587. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9588. initialization of short-lived MessageDigestContext.
  9589. * src/MessageDigestHelper.{h, cc}
  9590. * src/main.cc
  9591. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9592. the initialization of MessageDigestContext every time in validating
  9593. chunk checksum.
  9594. * src/DownloadCommand.{h, cc}
  9595. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Add a file descriptor which connected to fast peer(latency<1500) to
  9597. select(). This change reduced CPU load.
  9598. * src/PeerInteractionCommand.cc
  9599. * src/DefaultBtInteractive.{h, cc}
  9600. * src/BtInteractive.h
  9601. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Fixed the previous insufficient fix for possible busy loop.
  9603. * src/MSEHandshake.cc (identifyHandshakeType)
  9604. Removed unused functions.
  9605. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9606. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Fixed possible busy loop if first 20 bytes are not received for a few
  9608. minutes.
  9609. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9610. * src/ReceiverMSEHandshakeCommand.cc
  9611. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Fixed compilation error
  9613. * src/ExpatMetalinkProcessor.cc
  9614. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9616. * src/DHTBucket.cc
  9617. Removed unnecessary cast.
  9618. * src/HandshakeExtensionMessage.cc
  9619. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9621. is missing.
  9622. * src/OptionHandlerFactory.cc
  9623. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Fixed the bug that HAVE message is not sent for a piece they are
  9625. downloaded fom http/ftp server before any BitTorrent handshake is done
  9626. with peers.
  9627. * src/DefaultBtInteractive.cc
  9628. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9630. * src/Makefile.am
  9631. * src/Makefile.in
  9632. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Updated README. Added html version of README and man page.
  9634. * README
  9635. * README.html
  9636. * readme2html: Shell script to generate README.html from README using
  9637. asciidoc.
  9638. * doc/aria2c.1.html
  9639. * doc/makeman: Added the line to generate aria2c.1.html
  9640. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Fixed offset calculation.
  9642. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9643. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Rewritten itos and uitos using template. llitos and ullitos are
  9645. replaced with itos and uitos respectively.
  9646. * src/Util.{h, cc}
  9647. * test/UtilTest.cc
  9648. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9650. of the number of bytes required for storing public key and shared
  9651. secret.
  9652. * src/LibgcryptDHKeyExchange.h
  9653. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9654. * src/MSEHandshake.cc
  9655. * test/DHKeyExchangeTest.cc
  9656. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Removed since they are not used.
  9658. * src/Xml2MetalinkProcessor.{h, cc}
  9659. * src/Socket.cc
  9660. * src/SegmentSplitter.{h, cc}
  9661. * test/Xml2MetalinkProcessorTest.cc
  9662. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Fixed the bug that prevents aria2 from stopping other than by pressing
  9664. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9665. option. aria2 doesn't stop even after --seed-time is satisfied and
  9666. continues to output blank lines in the console.
  9667. * src/ReceiverMSEHandshakeCommand.cc
  9668. * src/PeerReceiveHandshakeCommand.cc
  9669. * src/PeerListenCommand.cc
  9670. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9671. Bump up version number to 0.13.0rc
  9672. * configure.ac
  9673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9674. Updated man page and some usage text.
  9675. * doc/aria2c.1.txt
  9676. * src/usage_text.h
  9677. * po/*.{po, gmo}
  9678. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Updated translations. Added Finnish and Hebrew translations.
  9680. Great thanks to all translators!
  9681. * po/*.{po, gmo}
  9682. * po/LINGUAS
  9683. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Log more detailed information about each message.
  9685. * src/DHTQueryMessage.{h, cc}
  9686. * src/DHTGetPeersMessage.{h, cc}
  9687. * src/DHTFindNodeReplyMessage.{h, cc}
  9688. * src/DHTGetPeersReplyMessage.{h, cc}
  9689. * src/DHTAnnouncePeerMessage.{h, cc}
  9690. * src/DHTResponseMessage.{h, cc}
  9691. * src/DHTFindNodeMessage.{h, cc}
  9692. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Use constants defined in prefs.h
  9694. * src/option_processing.cc
  9695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9697. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Make room for future enchancements for IPv6 addresses.
  9699. Bump up version number of dht.dat file format to 2.
  9700. Not compatible with previous version.
  9701. * src/DHTRoutingTableSerializer.cc
  9702. * src/DHTRoutingTableDeserializer.cc
  9703. * test/DHTRoutingTableSerializerTest.cc
  9704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Added handling for the return values from
  9706. PeerMessageUtil::createcompact().
  9707. * src/DefaultBtContext.cc (computeFastSet):
  9708. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Fixed abort when peer's ip address is IPv4-mapped address.
  9710. * src/DefaultBtContext.cc (computeFastSet)
  9711. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9712. cannot handle IPv4-mapped addresses.
  9713. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9714. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Proper return value handling for OpenSSL functions.
  9716. * src/LibsslDHKeyExchange.h
  9717. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Random bytes generation using libgcrypt and OpenSSL.
  9719. * src/DHTUtil.{h, cc}
  9720. * test/DHTUtilTest.cc
  9721. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9723. received.
  9724. * src/DHTMessageReceiver.cc (receiveMessage)
  9725. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Fixed the bug that a return code is always 0. BUG#1897704
  9727. If error occurred during the download or there exist unfinished
  9728. downloads, aria2 returns with code 1.
  9729. * src/RequestGroupMan.{h, cc}
  9730. * src/MultiUrlRequestInfo.{h, cc}
  9731. * src/main.cc
  9732. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. IPv6 support for SocketCore class.
  9734. TODO: In SocketCore::establishConnection(), this is insufficient to
  9735. determin the failure of connect() here because the socket is
  9736. non-blocking state. The next addresses should be tried after select().
  9737. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9738. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9739. instead which address family independent.
  9740. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9741. information in a compact peer format which is for IPv4 only.
  9742. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9743. this is a spec of BitTorrent protocol.
  9744. * src/SocketCore.{h, cc}
  9745. * src/PeerMessageUtil.cc
  9746. * test/SocketCoreTest.cc
  9747. * test/PeerMessageUtilTest.cc
  9748. * test/DHTConnectionImplTest.cc
  9749. Handle IPv4-mapped addresses.
  9750. * src/DHTNode.cc: Now identity is determined by node id.
  9751. * src/DHTMessageTrackerEntry.cc
  9752. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9753. should handle it.
  9754. * src/DHTRoutingTableDeserializer.cc
  9755. * src/DHTMessageFactoryImpl.cc
  9756. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Change the unit of --stop option from a minute to a second.
  9758. * src/usage_text.h
  9759. * src/DownloadEngineFactory.cc
  9760. * src/OptionHandlerFactory.cc
  9761. * src/message.h
  9762. * src/TimedHaltCommand.cc
  9763. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9764. Make listening socket non-block mode.
  9765. * src/FtpConnection.cc
  9766. * src/FtpNegotiationCommand.{h, cc}
  9767. * src/PeerListenCommand.cc
  9768. Fixed the bug that cause slow ftp negotiation.
  9769. * src/FtpNegotiationCommand.{h, cc}
  9770. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9771. Added basic tag to --enable-dht, --dht-listen-port option.
  9772. * src/HelpItemFactory.cc (createHelpItems)
  9773. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Updated text.
  9775. * src/usage_text.h
  9776. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9778. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Determin _threadtholdSpeed in each constructor for
  9780. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9781. * src/ActivePeerConnectionCommand.{h, cc}
  9782. * src/PeerReceiveHandshakeCommand.{h, cc}
  9783. * src/BtSetup.cc
  9784. * src/BtConstants.h
  9785. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Added --bt-min-crypto-level and --bt-require-crypto options.
  9787. * src/OptionHandlerFactory.cc
  9788. * src/MSEHandshake.cc
  9789. * src/HelpItemFactory.cc
  9790. * src/option_processing.cc
  9791. * src/ReceiverMSEHandshakeCommand.cc
  9792. * src/prefs.h
  9793. * src/DefaultBtAnnounce.cc
  9794. * src/InitiatorMSEHandshakeCommand.cc
  9795. * src/usage_text.h
  9796. * test/MSEHandshakeTest.cc
  9797. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9798. Bump version number to 0.13.0b
  9799. * configure.ac
  9800. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Updated doc.
  9802. * src/MessageDigestHelper.h:
  9803. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. Use raw message digest as a token instead of its hexadecimal
  9805. representation.
  9806. * src/DHTTokenTracker.cc (generateToken)
  9807. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Added Message Stream Encryption(MSE) support.
  9809. Currently, aria2 accepts incoming connections with Obfuscation Header
  9810. and legacy BitTorrent Header and establishes connections with
  9811. Obfuscation Header first and if failed then retry with legacy
  9812. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9813. choose ARC4. The new option to change the default behavior is planned.
  9814. For tracker extension, "supportcrypto=1" is added statically.
  9815. * src/PeerInitiateConnectionCommand.{h, cc}
  9816. * src/PeerConnection.{h, cc}
  9817. * src/HandleRegistry.h
  9818. * src/SocketCore.h
  9819. * src/PeerReceiveHandshakeCommand.{h, cc}
  9820. * src/BtRegistry.{h, cc}
  9821. * src/PeerListenCommand.cc
  9822. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9823. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9824. * src/MSEHandshake.{h, cc}
  9825. * src/ARC4Encryptor.h
  9826. * src/ARC4Decryptor.h
  9827. * src/LibgcryptARC4Encryptor.h
  9828. * src/LibgcryptARC4Decryptor.h
  9829. * src/LibgcryptARC4Context.h
  9830. * src/LibsslARC4Encryptor.h
  9831. * src/LibsslARC4Decryptor.h
  9832. * src/LibsslARC4Context.h
  9833. * src/DHKeyExchange.h
  9834. * src/LibgcryptDHKeyExchange.h
  9835. * src/LibsslDHKeyExchange.h
  9836. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9837. * test/DefaultBtAnnounceTest.cc
  9838. * test/ARC4Test.cc
  9839. * test/DHKeyExchangeTest.cc
  9840. Removed prepareForRetry() because it is not used.
  9841. * src/PeerAbstractCommand.{h, cc}
  9842. * src/PeerInteractionCommand.{h, cc}
  9843. * src/PeerInitiateConnectionCommand.{h, cc}
  9844. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Added the ability to load nodes from torrent file. These nodes are
  9846. added to the routing table when downloading that torrent.
  9847. * src/BtContext.h
  9848. * src/DefaultBtContext.{h, cc}
  9849. * src/DHTSetup.cc
  9850. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9851. hostname and port pair, and resolves all of them.
  9852. * src/NameResolver.{h, cc}: Added reset().
  9853. * src/RequestGroup.cc
  9854. * test/DefaultBtContextTest.cc
  9855. * test/MockBtContext.h
  9856. Removed assert() from DefaultBtContext and throw exception instead.
  9857. * src/DefaultBtContext.cc
  9858. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Fixed segmentation fault bug when exiting if dht is disabled.
  9860. * src/RequestGroup.cc
  9861. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Fixed typo in log message and define the message in message.h
  9863. * src/TimedHaltCommand.cc
  9864. * src/message.h
  9865. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Included RecoverableException.h to fix compilation error.
  9867. * test/DHTMessageFactoryImplTest.cc
  9868. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9870. * test/DHTPingMessageTest.cc
  9871. * test/DHTGetPeersMessageTest.cc
  9872. * test/DHTFindNodeMessageTest.cc
  9873. * test/DHTAnnouncePeerMessageTest.cc
  9874. * test/MockDHTMessage.h
  9875. * test/MockDHTMessageFactory.h
  9876. * test/MockDHTMessageDispatcher.h: New class.
  9877. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9879. virtual.
  9880. * src/DHTMessageDispatcher.h
  9881. * src/DHTMessageDispatcherImpl.{h, cc}
  9882. * src/DHTSetup.cc
  9883. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Adding handling of DHT error message. Just log error message and
  9885. throw exception.
  9886. * src/DHTMessageFactoryImpl.cc
  9887. * test/DHTMessageFactoryImplTest.cc
  9888. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Added handling of dynamic cast failure.
  9890. * src/DHTNodeLookupTask.cc
  9891. * src/DHTPeerLookupTask.cc
  9892. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Added the ability to stop aria2 itself when given time has passed
  9894. from start. Use --stop option to specify time in minutes.
  9895. When 0 is given, this feature is disabled.
  9896. * src/OptionHandlerFactory.cc
  9897. * src/TimeBasedCommand.h: Make _interval protected scope.
  9898. * src/HelpItemFactory.cc
  9899. * src/option_processing.cc
  9900. * src/prefs.h
  9901. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9902. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9903. Without this modification, the result list shows "ERR" when aria2 is
  9904. stopped by --stop option. It should be "INPR".
  9905. * src/DownloadEngine.{h, cc}
  9906. * src/DownloadEngineFactory.cc
  9907. * src/usage_text.h
  9908. * src/TimedHaltCommand.{h, cc}: New class.
  9909. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Bootstrap through node added by port message.
  9911. Currently bootstrap is executed if the number of buckets in routing
  9912. table is 1.
  9913. * src/BtPortMessage.{h, cc}
  9914. * src/DefaultBtMessageFactory.{h, cc}
  9915. * src/PeerInteractionCommand.cc
  9916. * test/BtPortMessageTest.cc
  9917. * test/MockDHTTask.h
  9918. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Extract the Peer class's member variables, which are only needed after
  9920. PeerInteractionCommand, into PeerSessionResource class.
  9921. This class is instantiated in PeerInteractionCommand class's ctor and
  9922. released in its dtor.
  9923. This will make Peer class lightweight and uses less memory for peers
  9924. which are not connected and wait in the queue.
  9925. * src/PeerChokeCommand.cc
  9926. * src/PeerSessionResource.{h, cc}
  9927. * src/PeerInteractionCommand.cc
  9928. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9929. * src/DefaultBtInteractive.cc
  9930. * src/BtPieceMessage.cc
  9931. * src/BtInterestedMessage.cc
  9932. * src/BtUnchokeMessage.cc
  9933. * src/DefaultPeerStorage.{h, cc}
  9934. * src/PeerInitiateConnectionCommand.cc
  9935. * src/ActivePeerConnectionCommand.cc
  9936. * src/BtNotInterestedMessage.cc
  9937. * src/DefaultBtMessageDispatcher.cc
  9938. * src/BtChokeMessage.cc
  9939. * src/BtRequestMessage.cc
  9940. * src/Peer.{h, cc}
  9941. * src/BtRegistry.h
  9942. * src/TrackerWatcherCommand.cc
  9943. * src/PeerReceiveHandshakeCommand.cc
  9944. * test/BtExtendedMessageTest.cc
  9945. * test/BtAllowedFastMessageTest.cc
  9946. * test/BtCancelMessageTest.cc
  9947. * test/DefaultPieceStorageTest.cc
  9948. * test/BtBitfieldMessageTest.cc
  9949. * test/BtHaveMessageTest.cc
  9950. * test/BtNotInterestedMessageTest.cc
  9951. * test/BtRequestMessageTest.cc
  9952. * test/PeerSessionResourceTest.cc
  9953. * test/DefaultBtMessageDispatcherTest.cc
  9954. * test/PeerTest.cc
  9955. * test/BtInterestedMessageTest.cc
  9956. * test/BtRejectMessageTest.cc
  9957. * test/BtChokeMessageTest.cc
  9958. * test/DefaultPeerStorageTest.cc
  9959. * test/BtHaveNoneMessageTest.cc
  9960. * test/BtHaveAllMessageTest.cc
  9961. * test/DefaultExtensionMessageFactoryTest.cc
  9962. * test/BtUnchokeMessageTest.cc
  9963. * test/DefaultBtMessageFactoryTest.cc
  9964. * test/HandshakeExtensionMessageTest.cc
  9965. * test/UTPexExtensionMessageTest.cc
  9966. * test/DefaultBtRequestFactoryTest.cc
  9967. * test/BtPieceMessageTest.cc
  9968. Removed typedef PeerStats.
  9969. * src/PeerStat.h
  9970. * src/SegmentMan.cc
  9971. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. Added std namespace to copy, remove_copy, back_inserter,
  9973. front_inserter.
  9974. * src/RequestGroupMan.cc
  9975. * src/DefaultPieceStorage.cc
  9976. * src/StreamFileAllocationEntry.cc
  9977. * src/BtFileAllocationEntry.cc
  9978. * src/RequestGroup.cc
  9979. * src/MetalinkEntry.cc
  9980. * src/DelegatingPeerListProcessor.cc
  9981. * src/DefaultBtRequestFactory.cc
  9982. * src/DefaultBtMessageDispatcher.cc
  9983. * src/version_usage.cc: Included <algorithm>
  9984. * src/main.cc
  9985. * src/MetalinkParserController.cc
  9986. * src/DefaultBtContext.cc
  9987. * src/DownloadEngineFactory.cc
  9988. * src/a2algo.h
  9989. Removed.
  9990. * test/StreamUriListParserTest.cc
  9991. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9993. ActivePeerConnectionCommand when it is given and
  9994. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9995. * src/ActivePeerConnectionCommand.{h, cc}
  9996. * src/BtSetup.cc
  9997. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Only add socket to DownloadEngine's select routine when peer or
  9999. localhost is unchoked and interested. This lowers CPU usage a
  10000. little bit.
  10001. * src/PeerInteractionCommand.cc
  10002. * src/PeerAbstractCommand.{h, cc}
  10003. * src/BtInteractive.h
  10004. * src/DefaultBtInteractive.{h, cc}
  10005. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Revert previous change because get_peers message is needed for
  10007. announce_peer anyway.
  10008. * src/DHTGetPeersCommand.cc
  10009. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Request peers thought DHT only when download hasn't finished.
  10011. * src/DHTGetPeersCommand.cc
  10012. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10014. * src/DHTBucketRefreshTask.{h, cc}
  10015. * src/DHTSetup.cc
  10016. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10018. standard classes.
  10019. Included string.h where mem* function are used.
  10020. Added namespace aria2.
  10021. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. Create directory before saving DHT routing table.
  10023. Now ios::failure is now handled properly.
  10024. * src/DHTAutoSaveCommand.cc
  10025. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Removed unnecessary cerr.
  10027. * src/DownloadEngine.cc
  10028. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Catch exception inside DHTMessageReceiver::receiveMessage().
  10030. Log unknown message.
  10031. * src/DHTMessageReceiver.{h, cc}
  10032. * src/DHTMessageFactory.h
  10033. * src/DHTMessageFactoryImpl.{h, cc}
  10034. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10035. * src/DHTInteractionCommand.cc
  10036. * src/DHTUnknownMessage.{h, cc}
  10037. * test/DHTUnknownMessageTest.cc
  10038. * test/MockDHTMessageFactory.h
  10039. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Commented out ip address comparison because a host can have multiple
  10041. ip addresses and it is hard to predict the hostname is resolved into
  10042. which one.
  10043. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10044. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. * po/Makefile.in: Removed since this is generated by configure.
  10046. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10047. Fixed compiler warning about redefinition of SIZE_MAX.
  10048. Use common.h instead of config.h directly here.
  10049. * src/Platform.{h, cc}
  10050. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10051. here.
  10052. * common.h
  10053. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10054. Updated gettext related files.
  10055. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10056. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10057. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Added DHT functionality, compatible with mainline.
  10059. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10060. You may need to specify entry point to DHT network using
  10061. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10062. Use --dht-listen-port to specify port number. Make sure that your
  10063. firewall configuration can pass through UDP traffic to the port.
  10064. The routing table is saved in $HOME/.aria2/dht.dat.
  10065. * src/DHT*
  10066. * src/BNode.{h, cc}
  10067. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10068. particular torrent.
  10069. * src/Data.cc: Rewritten ctor.
  10070. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10071. --dht-entry-point.
  10072. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10073. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10074. ends, remove BtContext from DHTPeerAnnounceStorage.
  10075. * src/BtPortMessage.{h, cc}: Rewritten.
  10076. * src/message.h
  10077. * src/OptionHandlerImpl.cc
  10078. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10079. --dht-entry-point.
  10080. * src/Dictionary.{h, cc} (remove): New function.
  10081. * src/prefs.h
  10082. * src/DefaultBtMessageFactory.h
  10083. * src/BtHandshakeMessage.cc
  10084. * src/ActivePeerConnectionCommand.cc
  10085. * src/SocketCore.{h, cc}: Added datagram socket support.
  10086. * src/DefaultBtMessageFactory.cc
  10087. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10088. Create DHT commands.
  10089. * src/BtMessageFactory.h
  10090. * src/PeerMessageUtil.{h, cc}
  10091. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Fixed the bug that log file is not written when configuration file doesn't exist.
  10093. This is caused by using Logger class before LogFactory is not configured.
  10094. BUG #1875079
  10095. * src/option_processing.cc
  10096. Warning message "configuration doesn't exist" is only printed when --conf is
  10097. given.
  10098. * src/option_processing.cc
  10099. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10101. ShaVisitor is now deprecated and slated to be removed.
  10102. * src/DefaultBtContext.cc
  10103. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Externalize message to message.h
  10105. * src/Platform.cc
  10106. * src/message.h
  10107. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Set default domain and default path to cookie.
  10109. * src/HttpResponse.cc
  10110. * src/CookieBox.{h, cc}
  10111. * src/CookieParser.{h, cc}
  10112. * test/CookieParserTest.cc
  10113. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Added --no-conf and --conf-path command-line option.
  10115. --no-conf option disables loading aria2.conf file.
  10116. --conf-path option changes the configuration file path. The default
  10117. file path is $HOME/.aria2/aria2.conf
  10118. Added a warning message when the configuration file is not found.
  10119. * src/HelpItemFactory.cc
  10120. * src/option_processing.cc
  10121. * src/prefs.h
  10122. * src/usage_text.h
  10123. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Added the message to inform users that other help categories are
  10125. available in -h option.
  10126. * src/version_usage.cc
  10127. * src/TagContainer.{h, cc}
  10128. * test/TagContainerTest.cc
  10129. * src/TaggedItem.{h, cc}
  10130. * test/TaggedItemTest.cc
  10131. * src/HelpItem.h
  10132. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10134. from PiecedSegment's ctor.
  10135. Previously Piece::getAllMissingBlockIndexes() is called from
  10136. PiecedSegment() but it is rather expensive since only first element is
  10137. used.
  10138. * src/PiecedSegment.cc
  10139. * src/Piece.{h, cc}
  10140. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10141. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10142. each time these functions are called.
  10143. * src/BitfieldMan.{h, cc}
  10144. * test/BitfieldManTest.cc
  10145. * src/array_fun.h
  10146. * test/array_funTest.cc
  10147. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10148. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10149. filtered. Removed unnecessary cast to int32_t.
  10150. * src/BitfieldMan.{h, cc}
  10151. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10153. payload length(4bytes) are received. This happens because lenbufLength
  10154. is not updated in this particular case and successive call of
  10155. receiveMessage() overwrites payload length with bytes recieved which
  10156. are payload body.
  10157. * src/PeerConnection.{h, cc}
  10158. * src/message.h
  10159. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10161. peer if there are peers that have same ipaddr and port.
  10162. I've experiened segmentation fault and "pure virtual function was
  10163. called" error.
  10164. * src/Peer.h
  10165. * test/PeerTest.cc
  10166. * src/DefaultPeerStorage.cc
  10167. * test/DefaultPeerStorageTest.cc
  10168. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Removed a call to isPowerOf() because it is no longer necessary here
  10170. and a request block is not always power of 2.
  10171. BUG#1866924
  10172. * src/PeerMessageUtil.cc (checkLength)
  10173. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10174. Fixed the bug that always first found Segment is removed from
  10175. usedSegmentEntries. Removed unused functions.
  10176. * src/SegmentMan.{h, cc}
  10177. * test/SegmentManTest.cc
  10178. Fixed the bug that ServerHost is not removed.
  10179. * src/RequestGroup.cc
  10180. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Fixed the bug that SegmentMan::completeSegment() is not called
  10182. even if Segment is complete when --lowest-speed-limit is enabled.
  10183. BUG#1864525
  10184. * src/DownloadCommand.{h, cc}
  10185. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Fixed: hash algorithm 'sha1' is always used.
  10187. * src/DownloadCommand.cc (validatePieceHash)
  10188. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Added --enable-peer-exchange command-line option.
  10190. * src/OptionHandlerFactory.cc
  10191. * src/HelpItemFactory.cc
  10192. * src/option_processing.cc
  10193. * src/usage_text.h
  10194. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. Move extension from BtRuntime to ExtensionMessageFactory, because
  10196. extension can be specified per peer, not per torrent.
  10197. * src/DefaultBtInteractive.cc
  10198. * src/BtRuntime.h
  10199. * src/ExtendedMessagingAware.h
  10200. * src/ExtensionMessageFactory.h
  10201. * src/DefaultExtensionMessageFactory.cc
  10202. * test/DefaultExtensionMessageFactoryTest.cc
  10203. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10204. Added categorized option help. Specify category using --help option.
  10205. Also added the ability to search options in forward match.
  10206. * src/HelpItem.{h, cc}
  10207. * test/HelpItemTest.cc
  10208. * src/HelpItemFactory.{h, cc}
  10209. * src/TagContainer.{h, cc}
  10210. * test/TagContainerTest.cc
  10211. * src/option_processing.cc
  10212. * src/prefs.h
  10213. * src/TaggedItem.{h, cc}
  10214. * test/TaggedItemTest.cc
  10215. * src/version_usage.cc
  10216. * src/help_tags.h
  10217. * src/usage_text.h
  10218. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10219. Fixed segmentation fault when bad torrent metainfo is parsed.
  10220. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10221. and then throw exception or skip it.
  10222. * src/DefaultBtContext.{h, cc}
  10223. * test/DefaultBtContextTest.cc
  10224. * src/AnnounceList.cc
  10225. * src/CompactPeerListProcessor.cc
  10226. * src/message.h
  10227. * src/DefaultBtAnnounce.{h, cc}
  10228. * test/DefaultBtAnnounceTest.cc
  10229. * src/BencodeVisitor.cc
  10230. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Added missing "B"(=Byte). So now the message looks like this:
  10232. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10233. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10234. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Show the seed ratio after torrent downloads.
  10236. For example, after torrent download completed and --seed-time and
  10237. --seed-ratio conditions are fulfilled, following message is printed
  10238. right after "Download complete: .....":
  10239. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10240. * src/RequestGroupMan.cc
  10241. * src/RequestGroup.{h, cc}
  10242. * src/message.h
  10243. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10244. Remove a defunct control file. A defunct control file means that while
  10245. it exists, but the corresponding download file is missing.
  10246. After its removal, a download restarts from the beginning.
  10247. * src/RequestGroup.cc
  10248. * src/message.h
  10249. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Allocate bitfield in Peer when it is really used. More specifically,
  10251. bitfield in Peer is allocated after the connection is established and
  10252. deallocated when the connection is dropped.
  10253. Since 2 parameters(piece length and total length) was removed from the
  10254. constructor of Peer class, many test classes were modified accordingly.
  10255. See svn log for more detailed information.
  10256. * src/PeerInteractionCommand.cc
  10257. * src/CompactPeerListProcessor.cc
  10258. * src/Peer.cc
  10259. * src/DefaultPeerListProcessor.cc
  10260. * src/PeerListenCommand.cc
  10261. * src/PeerReceiveHandshakeCommand.cc
  10262. Fixed memory leak
  10263. * src/Piece.cc
  10264. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10266. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10267. command-line options.
  10268. * src/option_processing.cc
  10269. * src/ActivePeerConnectionCommand.cc
  10270. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Send have message to peer if it already has the piece.
  10272. * src/BtHaveMessage.{h, cc}
  10273. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10275. port.
  10276. * src/DefaultPeerStorage.{h, cc}
  10277. * test/DefaultPeerStorageTest.cc
  10278. * src/HandshakeExtensionMessage.cc
  10279. * test/HandshakeExtensionMessageTest.cc
  10280. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10281. * src/PeerStorage.h
  10282. * test/MockPeerStorage.h
  10283. * src/PeerListenCommand.cc
  10284. * src/PeerReceiveHandshakeCommand.cc
  10285. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Added --metalink-enable-unique-protocol option.
  10287. * src/Metalink2RequestGroup.cc
  10288. * src/option_processing.cc
  10289. * src/prefs.h
  10290. * src/version_usage.cc
  10291. * doc/aria2c.1.txt
  10292. * doc/aria2c.1
  10293. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Allow a peer in incomingPeer to be added peers.
  10295. * src/DefaultPeerStorage.cc
  10296. * test/DefaultPeerStorageTest.cc
  10297. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10299. I could reproduce this bug in following procedure:
  10300. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10301. 2. Restart aria2.
  10302. 3. You see the download stopped around 99%.
  10303. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10304. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10305. If timeout is reached, then _nextCommand is unused and it may contains
  10306. segments and they won't be canceled. Actually, timeout is not needed
  10307. here because if the server dropped connection, then retry is made.
  10308. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Added uTorrent compatible Peer Exchange.
  10310. * src/BencodeVisitor.{h, cc}
  10311. * test/BencodeVisitorTest.cc
  10312. * src/BtConstants.h
  10313. * src/BtContext.h: Added 'private' flag.
  10314. * src/BtExtendedMessage.{h, cc}
  10315. * test/BtExtendedMessageTest.cc
  10316. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10317. reserved field.
  10318. * test/BtHandshakeMessageTest.cc
  10319. * src/BtMessageFactory.h
  10320. * src/BtRegistry.h
  10321. * src/BtRuntime.h: This class holds default extension message IDs for
  10322. aria2. By default, aria2 uses ID 8 for ut_pex.
  10323. * src/DefaultBtContext.cc
  10324. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10325. When it is true, aria2 enables ut_pex. This value is set by
  10326. PeerInteractionCommand.
  10327. * src/DefaultBtMessageFactory.{h, cc}
  10328. * test/DefaultBtMessageFactoryTest.cc
  10329. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10330. handling to DefaultBtInteractive class.
  10331. * src/DefaultExtensionMessageFactory.{h, cc}
  10332. * test/DefaultExtensionMessageFactoryTest.cc
  10333. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10334. the container(peers and incomingPeers. The equality is determined by
  10335. Peer::id).
  10336. * test/DefaultPeerStorageTest.cc
  10337. * src/ExtensionMessage.h
  10338. * test/MockExtensionMessage.h
  10339. * src/ExtensionMessageFactory.h
  10340. * test/MockExtensionMessageFactory.h
  10341. * src/HandshakeExtensionMessage.{h, cc}
  10342. * test/HandshakeExtensionMessageTest.cc
  10343. * src/MetaEntry.h
  10344. * src/Peer.{h, cc}
  10345. * src/PeerInteractionCommand.cc
  10346. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10347. addIncomingPeer.
  10348. * src/PeerMessageUtil.{h, cc}
  10349. * src/PeerObject.h
  10350. * src/UTPexExtensionMessage.{h, cc}
  10351. * test/UTPexExtensionMessageTest.cc
  10352. * src/message.h
  10353. * src/prefs.h
  10354. Fixed the bug that returns incomplete data when it contains null
  10355. character. A convenient constructor was also added.
  10356. * src/Data.{h, cc}
  10357. Rewritten.
  10358. * src/CompactPeerListProcessor.cc
  10359. Fixed typos.
  10360. * src/message.h
  10361. * src/MetaFileUtil.cc
  10362. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Added "Status Legend" label to the explanation text of 'stat' in
  10364. download result and moved it to the last. BUG#1848214
  10365. * src/RequestGroupMan.cc
  10366. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10368. * src/Makefie.am
  10369. * test/Makefile.am
  10370. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10371. Fixed the bug that prevents aria2 from loading cookie file when expire
  10372. value is greater than 2^31-1. BUG#1851066
  10373. * src/CookieBoxFactory.cc
  10374. * test/CookieBoxFactoryTest.cc
  10375. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Fixed possible memory leak when an exception is thrown.
  10377. * src/XML2SAXMetalinkProcessor.cc
  10378. Added Expat support. If both libxml2 and Expat are installed, then
  10379. libxml2 is used by default.
  10380. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10381. ExpatMetalinkProcessor according to the configuration.
  10382. * src/ExpatMetalinkProcessor.{h, cc}
  10383. * src/main.cc: Removed libxml2 specific header and init/free function.
  10384. * src/MetalinkProcessorFactory.{h, cc}
  10385. * src/MetalinkHelper.cc
  10386. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10387. * src/MetalinkProcessor.h
  10388. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10389. MetalinkProcessorTest is used instead.
  10390. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10391. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10392. MetalinkProcessorFactory::newInstance().
  10393. * m4/libexpat.m4
  10394. * configure.ac: Added configuration options for libexpat.
  10395. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Disabled -s option in metalink download.
  10397. * src/Metalink2RequestGroup.cc
  10398. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. If several protocols are available for a mirror in metalink file,
  10400. aria2 now use one of them. --metalink-preferred-protocol option was
  10401. added to specify the preference of protocol.
  10402. * src/AbstractCommand.cc
  10403. * src/OptionHandlerFactory.cc
  10404. * src/ServerHost.{h, cc}
  10405. * src/Metalink2RequestGroup.cc
  10406. * src/RequestGroup.{h, cc}
  10407. * test/RequestGroupTest.cc
  10408. * src/option_processing.cc
  10409. * src/prefs.h
  10410. * src/HttpResponseCommand.cc
  10411. * src/MetalinkResource.{h, cc}
  10412. * src/FtpNegotiationCommand.cc
  10413. * src/MetalinkEntry.{h, cc}
  10414. * src/MetalinkEntryTest.cc
  10415. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. Code cleanup and added debug log.
  10417. * src/PeerConnection.cc
  10418. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Compiler error fix: applied the patch by Tiziano Mueller
  10420. * src/RequestGroup.cc
  10421. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10423. in stopped and completed event.
  10424. * src/AnnounceList.{h, cc}
  10425. * test/AnnounceListTest.cc
  10426. * src/DefaultBtAnnounce.cc
  10427. * test/DefaultBtAnnounceTest.cc
  10428. Sorted URLs.
  10429. * test/Metalink2RequestGroupTest.cc
  10430. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Removed unnecessary string copy. Updated doc and corrected indentation.
  10432. * src/Base64.cc
  10433. Fixed compilation warnings
  10434. * test/DataTest.cc
  10435. * test/HttpRequestTest.cc
  10436. * test/MetaFileUtilTest.cc
  10437. * test/RequestTest.cc
  10438. * Release 0.12.0
  10439. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Updated translations
  10441. * po/{de,fr,ja,nl,ru}.po
  10442. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10443. translations. Many thanks to translators.
  10444. * po/{ca,es,it,pt_BR,sv}.po
  10445. * po/LINGUAS
  10446. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Added a notice about URL
  10448. * src/version_usage.cc
  10449. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10450. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10451. aria2 repeatedly sends stopped request when tracker returns error code.
  10452. * src/AnnounceList.cc
  10453. * test/AnnounceListTest.cc
  10454. * src/AnnounceTier.h
  10455. Added a message when ctrl-c is hit.
  10456. Now second ctrl-c is also handled in signal handler.
  10457. * src/RequestGroupMan.{h, cc}
  10458. * src/RequestGroup.{h, cc}
  10459. * src/MultiUrlRequestInfo.cc
  10460. * src/DownloadEngine.cc
  10461. * src/TrackerWatcherCommand.cc
  10462. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Code cleanup
  10464. * src/Base64.cc (encode)
  10465. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10466. Changed Direct/IO enable/disable procesure in file allocation routine.
  10467. * src/SingleFileAllocationIterator.cc
  10468. (SingleFileAllocationIterator):
  10469. Disable directIO if offset is not multiple of 512.
  10470. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10471. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10472. Enable created SingleFileAllocationIterator's directIO.
  10473. * src/FileAllocationEntry.cc
  10474. (FileAllocationEntry): Enable directIO here.
  10475. (~FileAllocationEntry): Disable directIO here.
  10476. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10477. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10478. * src/Peer.{h, cc}
  10479. * src/DefaultPieceStorage.cc
  10480. * test/DefaultPieceStorageTest.cc
  10481. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Rewritten direct I/O support routine
  10483. * src/SingleFileAllocationIterator.cc
  10484. * src/MultiDiskAdaptor.{h, cc}
  10485. * src/ByteArrayDiskWriter.h
  10486. * src/AbstractSingleDiskAdaptor.h
  10487. * src/AbstractDiskWriter.cc
  10488. * src/DefaultPieceStorage.cc
  10489. * src/DiskWriter.h
  10490. * src/BinaryStream.h
  10491. * src/IteratableChunkChecksumValidator.cc
  10492. * src/IteratableChecksumValidator.cc
  10493. * src/CheckIntegrityEntry.cc
  10494. * src/FileAllocationEntry.cc
  10495. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. Fixed typo
  10497. * src/version_usage.cc
  10498. Updated doc
  10499. * doc/aria2c.1.txt
  10500. * doc/aria2c.1
  10501. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Fixed compile error without message digest support.
  10503. * src/FileMetalinkParserState.cc
  10504. * src/MetalinkParserController.{h, cc}
  10505. * test/XML2SAXMetalinkProcessorTest.cc
  10506. * test/MetalinkParserControllerTest.cc
  10507. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Enable direct I/O support in checksum checking.
  10509. * src/IteratableChunkChecksumValidator.{h, cc}
  10510. * test/IteratableChunkChecksumValidatorTest.cc
  10511. * src/CheckIntegrityEntry.cc
  10512. * src/PieceHashCheckIntegrityEntry.cc
  10513. * src/IteratableChecksumValidator.{h, cc}
  10514. * src/BtCheckIntegrityEntry.cc: Added doc.
  10515. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10516. Added --allow-piece-length-change option.
  10517. * src/DefaultBtProgressInfoFile.cc
  10518. * test/DefaultBtProgressInfoFileTest.cc
  10519. * src/OptionHandlerFactory.cc
  10520. * src/option_processing.cc
  10521. * src/prefs.h
  10522. * src/version_usage.cc
  10523. * doc/aria2c.1.txt
  10524. * doc/aria2c.1
  10525. Fixed: duplicated result entry appears when exception is thrown in
  10526. RequestGroup::createInitiateConnectionCommand().
  10527. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10528. Add RequestGroup to _requestGroup after RequetGroup::
  10529. createInitiateConnectionCommand() succeeds.
  10530. Externalized message
  10531. * src/XML2SAXMetalinkProcessor.cc
  10532. * src/message.h
  10533. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Forced download abort when received negative response from http/ftp
  10535. server.
  10536. * src/HttpResponseCommand.cc
  10537. * src/FtpNegotiationCommand.cc
  10538. * src/HttpResponse.cc
  10539. * src/FtpConnection.cc
  10540. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10542. the predecessor, Xml2MetalinkParser class.
  10543. I tested them against 94KB metalink file with 1234 chunk checksums.
  10544. The new one parsed it in 22msec, while it took 6000msec with old one.
  10545. * src/XML2SAXMetalinkProcessor.{h, cc}
  10546. * test/XML2SAXMetalinkProcessorTest.cc
  10547. * src/MetalinkParserController.{h, cc}
  10548. * test/MetalinkParserControllerTest.cc
  10549. * src/MetalinkParserState.h: Also added 16 subclasses.
  10550. * src/main.cc
  10551. * src/Metalink2RequestGroup.cc
  10552. * src/MetalinkHelper.cc
  10553. * src/MetalinkEntry.cc
  10554. * src/ChunkChecksum.h
  10555. Rewritten Base64 class for better performance.
  10556. * src/Base64.{h, cc}
  10557. * test/Base64Test.cc
  10558. * src/HttpRequest.cc
  10559. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Fixed the bug#1841757: aria2 will connect to server to only get
  10561. file size.
  10562. * src/StreamFileAllocationEntry.cc
  10563. * src/option_processing.cc
  10564. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10565. downloads.
  10566. * src/FtpNegotiationCommand.cc
  10567. Suppressed wrong message when finding PreDownloadHandler
  10568. * src/RequestGroup.cc
  10569. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. Updated usage
  10571. * src/version_usage.cc
  10572. Updated man page
  10573. * doc/aria2c.1.txt
  10574. * doc/aria2c.1
  10575. Updated po files
  10576. * po/aria2c.pot
  10577. * po/*.po
  10578. * po/*.gmo
  10579. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Eliminated g++-4.2 warning
  10581. * src/DownloadHandlerConstants.{h, cc}
  10582. * src/Util.cc
  10583. * test/MetaFileUtilTest.cc
  10584. * test/PStringBuildVisitorTest.cc
  10585. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10586. * src/RequestGroup.cc
  10587. * src/BtCheckIntegrityEntry.cc
  10588. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Fixed a2io.h
  10590. * src/a2io.h
  10591. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Added direct I/O support. The current implementation uses O_DIRECT,
  10593. which is not posix standard and is tested on linux 2.6.21.
  10594. Currently only file allocation uses direct I/O.
  10595. * src/SingleFileAllocationIterator.{h, cc}
  10596. * test/SingleFileAllocationIteratorTest.cc
  10597. * src/MultiFileAllocationIterator.{h, cc}
  10598. * test/MultiFileAllocationIteratorTest.cc
  10599. * src/BinaryStream.h
  10600. * src/DiskWriter.h
  10601. * src/AbstractDiskWriter.{h, cc}
  10602. * src/ByteArrayDiskWriter.h
  10603. * src/DiskAdaptor.h
  10604. * src/AbstractSingleDiskAdaptor.{h, cc}
  10605. * src/MultiDiskAdaptor.{h, cc}
  10606. * src/FileAllocationEntry.cc
  10607. * src/Util.{h, cc}
  10608. * src/OptionHandlerFactory.cc
  10609. * src/prefs.h
  10610. * src/version_usage.cc
  10611. * src/option_processing.cc
  10612. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10613. handleException.
  10614. * src/MultiFileAllocationIterator.cc
  10615. Added EINTR handling
  10616. * src/SocketCore.cc
  10617. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Updated usage
  10619. * src/version_usage.cc
  10620. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Applied Ross's patch for MinGW port.
  10622. * src/DownloadEngine.h
  10623. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Set Content-Type to SingleFileDownloadContext when http response is
  10625. received.
  10626. * src/HttpResponseCommand.cc
  10627. * src/HttpResponse.{h, cc}
  10628. * test/HttpResponseTest.cc
  10629. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Rewritten to add content-type support.
  10631. * src/DownloadHandler.{h, cc}
  10632. * src/BtPostDownloadHandler.{h, cc}
  10633. * test/BtPostDownloadHandlerTest.cc
  10634. * src/MetalinkPostDownloadHandler.{h, cc}
  10635. * test/MetalinkPostDownloadHandlerTest.cc
  10636. * src/PostDownloadHandler.{h, cc}
  10637. * src/DownloadHandlerConstants.{h, cc}
  10638. * src/RequestGroup.cc
  10639. * src/HttpResponseCommand.cc
  10640. * src/FtpNegotiationCommand.cc
  10641. * src/SingleFileDownloadContext.{h, cc}
  10642. * src/RequestGroup.h
  10643. * src/RequestGroupCriteria.h
  10644. * src/ContentTypeRequestGroupCriteria.h
  10645. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10646. If it is give, metalink/torrent file is not written to the disk, but
  10647. just is kept in memory. Parsing is occurred on memory.
  10648. * src/MetalinkHelper.{h, cc}
  10649. * src/MetalinkProcessor.h
  10650. * src/Xml2MetalinkProcessor.{h, cc}
  10651. * test/Xml2MetalinkProcessorTest.cc
  10652. * src/DownloadHandlerFactory.{h, cc}
  10653. * test/DownloadHandlerFactoryTest.cc
  10654. * src/PreDownloadHandler.{h, cc}
  10655. * src/OptionHandlerFactory.cc
  10656. * src/DefaultBtContext.{h, cc}
  10657. * test/DefaultBtContextTest.cc
  10658. * src/version_usage.cc
  10659. * src/Metalink2RequestGroup.{h, cc}
  10660. * src/RequestGroup.{h, cc}
  10661. * src/a2functional.h
  10662. * test/a2functionalTest.cc
  10663. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10664. * src/OptionHandlerImpl.h
  10665. * src/prefs.h
  10666. * src/Util.{h, cc}
  10667. * test/UtilTest.cc
  10668. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10669. memory usage.
  10670. * src/RequestGroupMan.{h, cc}
  10671. * src/DownloadEngine.cc
  10672. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10673. WeakHandle to SharedHandle because WeakHandle could be null.
  10674. * src/RequestGroup.{h, cc}
  10675. * src/DownloadEngineFactory.cc
  10676. * src/DownloadResult.h
  10677. Set totalLength after download finished
  10678. * src/UnknownLengthPieceStorage.{h, cc}
  10679. Keep torrent file specified in metalink in memory.
  10680. * src/Metalink2RequestGroup.cc
  10681. * src/BtDependency.cc
  10682. * src/TrueRequestGroupCriteria.h
  10683. Fixed the bug: seekg is used where seekp should be used.
  10684. * src/ByteArrayDiskWriter.cc
  10685. * test/ByteArraydiskWriterTest.cc
  10686. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Fixed syntax error
  10688. * test/SequenceTest.cc
  10689. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10691. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10692. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10693. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10694. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Added the check to see whether ares_host_callback accepts timeouts
  10696. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10697. * src/NameResolver.{h, cc}
  10698. * m4/libcares.m4
  10699. * configure.ac: Set C++ for language choice.
  10700. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Fixed: compilation fails without c-ares/ares
  10702. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10703. Generate http/ftp commands only when download is incomplete.
  10704. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10705. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Corrected typo. Examples are removed since they are available in man
  10707. page.
  10708. * src/version_usage.cc
  10709. Updated man page.
  10710. * doc/aria2c.1
  10711. * doc/aria2c.1.txt
  10712. * doc/makeman: Commented out sed command.
  10713. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Throw DlAbortEx when a remote file is not found.
  10715. * src/HttpResponse.cc
  10716. * src/FtpNegotiationCommand.cc
  10717. * src/message.h
  10718. Overwrite an existing file if --allow-overwrite=true is given.
  10719. * src/RequestGroup.cc
  10720. Removed unused functions
  10721. * src/AbstractCommand.h
  10722. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Removed 'extern' from 'extern typedef ...' in src/*.h
  10724. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Updated usage
  10726. * src/version_usage.cc
  10727. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10728. Trim announce URL
  10729. * src/DefaultBtContext.cc
  10730. * test/ShaVisitorTest.cc
  10731. Trim argument s. Give trimed s to exception constructor.
  10732. * src/Util.cc (parseInt)(parseLLInt)
  10733. * test/UtilTest.cc
  10734. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Set precision back to 1.
  10736. * src/ConsoleStatCalc.cc (calculateStat)
  10737. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Replaced strtol with Util::parseInt
  10739. * src/ChunkedEncoding.cc
  10740. * src/HttpConnection.cc
  10741. * src/CookieBoxFactory.cc
  10742. * src/ParameterizedStringParser.cc
  10743. * src/Util.cc
  10744. * test/UtilTest.cc
  10745. * test/OptionHandlerTest.cc
  10746. * src/Request.cc
  10747. Throw exception when empty string is given. The message for exception
  10748. changed.
  10749. * src/Util.cc (parseInt)(parseLLInt)
  10750. * src/message.h
  10751. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10753. set to 1.
  10754. * src/ConsoleStatCalc.cc (calculateStat)
  10755. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Preallocate non-requested file which is adjacent forward to requested
  10757. file('requested' files means the files given in --select-file option)
  10758. if they share a same piece.
  10759. This fixes long pause in the file system which doesn't support sparse
  10760. files like FAT32 while downloading.
  10761. * src/MultiFileAllocationIterator.{h, cc}
  10762. * test/MultiFileAllocationIteratorTest.cc
  10763. * src/FileEntry.{h, cc}
  10764. Removed unused _option.
  10765. * src/MultiDiskAdaptor.h
  10766. * test/MultiDiskAdaptorTest.cc
  10767. * src/DefaultPieceStorage.cc
  10768. Set the default value of --seed-ratio to 1.0.
  10769. If 0.0 is given, then seeding continues regardless of share ratio.
  10770. * src/version_usage.cc
  10771. * src/option_processing.cc
  10772. * src/BtSetup.cc
  10773. * doc/aria2c.1.txt
  10774. * doc/aria2c.1
  10775. Fixed: Selective download is not working in BitTorrent
  10776. * src/RequestGroup.cc
  10777. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10778. * src/PieceStorage.h
  10779. * test/MockPieceStorage.h
  10780. * src/UnknownLengthPieceStorage.h
  10781. * src/DefaultPieceStorage.{h, cc}
  10782. * src/Metalink2RequestGroup.cc
  10783. * src/RequestGroup.cc
  10784. * src/Sequence.h
  10785. * test/SequenceTest.cc
  10786. * src/IntSequence.h
  10787. * src/message.h
  10788. * src/Util.{h, cc}
  10789. * test/UtilTest.cc
  10790. Added new function 'parse' to catch exception thrown by subclass's
  10791. parseArg
  10792. * src/OptionHandler.h
  10793. * src/OptionParser.cc
  10794. * src/NameMatchOptionHandler.h
  10795. * src/OptionHandlerImpl.h
  10796. * test/OptionHandlerTest.cc
  10797. Added IntegerRangeOptionHandler. Used for --listen-port and
  10798. --select-file. Now --listen-port accepts range of port.
  10799. * src/OptionHandlerFactory.cc
  10800. * src/version_usage.cc
  10801. * src/OptionHandlerImpl.h
  10802. * src/option_processing.cc
  10803. * src/BtSetup.cc
  10804. * src/PeerListenCommand.{h, cc}
  10805. * doc/aria2c.1.txt
  10806. * doc/aria2c.1
  10807. Implemented operator< for Exception class to provide easy way to print
  10808. exception stack trace.
  10809. * src/Exception.{h, cc}
  10810. * src/main.cc
  10811. * src/option_processing.cc
  10812. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. * src/version_usage.cc
  10814. (showVersion): Reworked.
  10815. (showUsage): Added examples.
  10816. Removed Hint for total length and file name.
  10817. * src/Metalink2RequestGroup.cc
  10818. * src/RequestGroup.{h, cc}
  10819. * src/HttpResponseCommand.cc
  10820. * src/FtpNegotiationCommand.cc
  10821. Now --follow-torrent and --follow-metalink option work properly.
  10822. * src/RequestGroup.cc
  10823. Updated man page
  10824. * doc/aria2c.1.txt
  10825. * doc/aria2c.1
  10826. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Removed.
  10828. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10829. Use Segment::operator==()
  10830. * src/HttpConnection.cc
  10831. * src/Segment.h
  10832. Updated usage
  10833. * src/version_usage.cc
  10834. Added EINTR treatment.
  10835. * src/SocketCore.cc
  10836. * src/AbstractDiskWriter.cc
  10837. Rewritten.
  10838. * src/Util.cc (rangedFileCopy)
  10839. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Fixed typo.
  10841. * src/version_usage.cc
  10842. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. Implemented. Now -c option works fine.
  10844. * src/DefaultPieceStorage.cc (markPiecesDone)
  10845. * test/DefaultPieceStorageTest.cc
  10846. Removed.
  10847. * src/SegmentMan.{h, cc}
  10848. (markAllPiecesDone)
  10849. (markPieceDone)
  10850. Synchronized po files with
  10851. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10852. * src/fr.po
  10853. * src/ru.po
  10854. * src/de.po
  10855. * src/ja.po
  10856. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Added ifdef and some modifications to compile without BitTorrent,
  10858. Metalink, MessageDigest
  10859. support.
  10860. * src/PieceHashCheckIntegrityEntry.cc
  10861. * src/MetalinkEntry.h
  10862. * src/version_usage.cc
  10863. * src/main.cc
  10864. * src/DownloadEngine.{h, cc}
  10865. * src/Metalink2RequestGroup.cc
  10866. * src/Peer.cc
  10867. * src/RequestGroup.cc
  10868. * src/MetalinkHelper.cc
  10869. * test/DefaultPieceStorageTest.cc
  10870. * test/MetalinkPostDownloadHandlerTest.cc
  10871. * test/Metalink2RequestGroupTest.cc
  10872. Hide TOTAL SPD when all downloads complete.
  10873. * src/ConsoleStatCalc.cc
  10874. Log target system information.
  10875. * src/main.cc
  10876. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. Now --metalink-location accepts a comma-deliminated list of locations.
  10878. * src/MetalinkEntry.{h, cc}
  10879. * test/MetalinkEntryTest.cc
  10880. * src/version_usage.cc
  10881. * src/Metalink2RequestGroup.cc
  10882. * src/Xml2MetalinkProcessor.cc
  10883. * test/Xml2MetalinkProcessorTest.cc
  10884. * doc/aria2c.1.txt
  10885. * doc/aria2c.1
  10886. * src/Util.cc (toUpper)(toLower): Rewritten.
  10887. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. Added the ability to detect duplicate download entry which is about to
  10889. download the same file other RequestGroup is downloading.
  10890. * src/RequestGroup.cc
  10891. * src/HttpResponseCommand.cc
  10892. * src/FtpNegotiationCommand.cc
  10893. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Recalculates download progress when loading a control file,
  10895. if the piece length of DownloadContext is different from the one saved
  10896. in the control file. Currently in-flight pieces are ignored.
  10897. * src/DefaultBtProgressInfoFile.cc
  10898. * test/DefaultBtProgressInfoFileTest.cc
  10899. * src/Util.{h, cc}
  10900. * test/UtilTest.cc
  10901. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10902. Do not rotate tiers in announce-list.
  10903. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10904. AnnounceList::allTiersFailed() used instead to detect whether all
  10905. tiers are tried and failed.
  10906. * test/DefaultBtAnnounceTest.cc
  10907. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10908. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10909. * test/AnnounceListTest.cc
  10910. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10911. clause. Catch RecoverableException instead of DlRetryEx instead.
  10912. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10913. Implemented checksum validation feature(1 checksum for each file)
  10914. The validation takes place after the download.
  10915. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10916. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10917. * src/CheckIntegrityCommand.cc: Changed log message.
  10918. * src/Metalink2RequestGroup.cc: Set checksum to
  10919. SingleFileDownloadContext.
  10920. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10921. PieceHashCheckIntegrity class.
  10922. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10923. PieceHashCheckIntegrity class.
  10924. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10925. * src/IteratableValidator.h: New class.
  10926. * src/message.h
  10927. * src/CheckIntegrityEntry.{h, cc}
  10928. * src/IteratableChunkChecksumValidator.{h, cc}
  10929. * src/SingleFileDownloadContext.h
  10930. * src/DownloadCommand.cc
  10931. --allow-overwrite=true is no longer needed to check file integrity
  10932. before download in BitTorrent download.
  10933. * src/RequestGroup.cc (getInitialCommand)
  10934. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10935. throws exception.
  10936. * src/RequestGroupMan.cc (getInitialCommands)
  10937. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. urlencode the given url inside Request::parseUrl(...)
  10939. * src/Request.{h, cc}
  10940. * src/Util.{h, cc}
  10941. * test/RequestTest.cc
  10942. Removed #!metalink3! notation support because it is deleted from
  10943. the metalink specification.
  10944. * src/Request.{h, cc}
  10945. * test/RequestTest.cc
  10946. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Don't connect server before checking file integrity at startup, if
  10948. filesize and output file path are known.
  10949. * src/AbstractCommand.cc
  10950. * src/StreamFileAllocationEntry.cc
  10951. * src/Metalink2RequestGroup.cc
  10952. * src/RequestGroup.{h, cc}
  10953. * src/HttpResponseCommand.cc
  10954. * src/FtpNegotiationCommand.cc
  10955. Added DownloadFailureException. If it is thrown, RequestGroup should
  10956. halt.
  10957. * src/AbstractCommand.cc
  10958. * src/DownloadFailureException.h
  10959. * src/RequestGroup.cc
  10960. Catch RecoverableException, instead of DlAbortEx.
  10961. * src/RequestGroupMan.cc
  10962. * src/FillRequestGroupCommand.cc
  10963. * src/MetaFileUtil.cc
  10964. * src/IteratableChunkChecksumValidator.cc
  10965. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10966. getGID())
  10967. * src/CheckIntegrityCommand.cc
  10968. * src/message.h
  10969. Print gid instead of idx.
  10970. * src/RequestGroupMan.cc
  10971. Removed exception throwers declaration.
  10972. * src/DirectDiskAdaptor.{h, cc}
  10973. * src/SocketCore.{h, cc}
  10974. * src/MultiDiskAdaptor.{h, cc}
  10975. * src/HttpConnection.{h, cc}
  10976. * src/HttpResponse.{h, cc}
  10977. * src/DiskAdaptor.{h, cc}
  10978. * src/CopyDiskAdaptor.{h, cc}
  10979. * src/MultiDiskAdaptor.{h, cc}
  10980. * src/HttpHeaderProcessor.{h, cc}
  10981. * src/AbstractSingleDiskAdaptor.{h, cc}
  10982. * src/Util.{h, cc}
  10983. * test/UtilTest.cc
  10984. * src/DefaultDiskWriter.{h, cc}
  10985. * src/FtpConnection.{h, cc}
  10986. * src/AbstractDiskWriter.{h, cc}
  10987. Removed duplicate code.
  10988. * src/StreamCheckIntegrityEntry.cc
  10989. Removed unnecessary include.
  10990. * src/DiskWriter.h
  10991. Included Exception.h
  10992. * src/option_processing.cc
  10993. Included 2 files and added doc
  10994. * src/TrackerWatcherCommand.cc
  10995. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10996. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Changed CheckIntegrityEntry interface so that it can define
  10998. the action when all the chunk checksums are valid.
  10999. * src/CheckIntegrityEntry.h
  11000. * src/StreamCheckIntegrityEntry.{h, cc}
  11001. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11002. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11003. to exit rather than doing seeding. So, it would be good to toggle this
  11004. behavior.
  11005. * src/CheckIntegrityCommand.cc
  11006. * src/AbstractCommand.cc
  11007. * src/RequestGroup.cc
  11008. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Reflect the download length of in-flight pieces.
  11010. It makes the download length readout more precise.
  11011. * src/DefaultPieceStorage.{h, cc}
  11012. * test/DefaultPieceStorageTest.cc
  11013. * src/a2functional.h
  11014. * test/a2functionalTest.cc
  11015. Lower CPU load when --max-download-limit is used.
  11016. There is up and down in speed indicator when enabling
  11017. http-pipelining but a download goes well. I think the problem is that
  11018. because http-pipelining is enabled, DownloadCommand is created for
  11019. each segment and in its constructor, PeerStat::downloadStart() is
  11020. called. In PeerStat::downloadStart(), speed calculation object is
  11021. reseted, which makes download speed zero.
  11022. * src/DownloadCommand.cc
  11023. Rewritten using accumulate.
  11024. * src/RequestGroupMan.cc (calculateStat)
  11025. Code clearnup.
  11026. * src/FtpNegotiationCommand.cc
  11027. * src/HttpResponseCommand.cc
  11028. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Fixed: Can not resume: aria2 reports download already finished.
  11030. * src/AbstractCommand.{h, cc}
  11031. * src/HttpResponseCommand.cc
  11032. * src/FtpNegotiateCommand.cc
  11033. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Now a file is stored in the directory specified in .metalnk file
  11035. (file[@name]).
  11036. * src/Metalink2RequestGroup.cc
  11037. Create the directory structure when opening the file if it doesn't
  11038. exist.
  11039. * src/AbstractDiskWriter.cc
  11040. * src/Util.{h, cc}
  11041. * src/File.h
  11042. * test/UtilTest.cc
  11043. Removed file name comparison
  11044. * src/Metalink2RequestGroup.cc
  11045. * src/HttpResponseCommand.cc
  11046. Rewritten using Util::mkdirs()
  11047. * src/FileEntry.cc (setupDir)
  11048. * test/FileEntryTest.cc
  11049. Updated doc
  11050. * src/SingleFileDownloadContext.h
  11051. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Now SleepCommand dispatches nextCommand when halt is requested.
  11053. It avoids a possible long wait after hitting CTRL-C.
  11054. * src/SleepCommand.{h, cc}
  11055. * src/RequestGroupAware.{h, cc}
  11056. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11058. to open listen port, then remove the port number from the tracker
  11059. request.
  11060. * src/DefaultBtAnnounce.cc
  11061. * test/DefaultBtAnnounceTest.cc
  11062. * test/MockPieceStorage.h
  11063. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11064. them more testable.
  11065. * src/DefaultBtAnnounce.{h, cc}
  11066. * src/DefaultBtContext.{h, cc}
  11067. * src/Util.{h, cc}
  11068. * test/DefaultBtAnnounceTest.cc
  11069. * test/DefaultBtContextTest.cc
  11070. * test/UtilTest.cc
  11071. Added 'B' to upload bytes readout.
  11072. * src/ConsoleStatCalc.cc
  11073. Now the listen port for BitTorrent download is opened when it is
  11074. needed.
  11075. * src/DownloadEngineFactory.cc
  11076. * src/BtSetup.{h, cc}
  11077. * src/PeerListenCommand.{h, cc}
  11078. Now an exception thrown while parsing tracker response is now logged.
  11079. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11080. called, which means no retry is made in this case, assuming a tracker
  11081. has a problem.
  11082. * src/TrackerWatcherCommand.cc
  11083. Fixed: downloading a file whose length is unkown fails.
  11084. * src/DownloadCommand.cc
  11085. Simplified prepareForNextSegment()
  11086. * src/DownloadCommand.cc
  11087. Updated
  11088. * po/POTFILES.in
  11089. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Re-implemented a file listing for Metalink, which was dropped while
  11091. http/ftp/torrent integration was being implemented.
  11092. * src/MetalinkHelper.{h, cc}: New class.
  11093. * test/MetalinkHelperTest.cc
  11094. * src/main.cc
  11095. * src/Metalink2RequestGroup.cc
  11096. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. Added the ability to display the detailed torrent file information.
  11098. Now -S option gives not only a file listing, but also total download
  11099. length, info hash, announce URI, piece length, the number of pieces,
  11100. and mode(single or multi-torrent).
  11101. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11102. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11103. KiB)
  11104. * test/UtilTest.cc
  11105. * src/main.cc
  11106. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Added ftp://USER:PASSWD@Servername automatic parsing.
  11108. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11109. _password. Recognize username and password in URI.
  11110. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11111. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11112. * src/RequestFactory.{h, cc}: Removed.
  11113. * src/AuthConfigFactory.{h, cc}: New class.
  11114. * src/FtpConnection.cc: Use AuthConfigFactory.
  11115. * src/HttpRequest.cc: Use AuthConfigFactory.
  11116. * test/HttpRequestTest.cc: Updated.
  11117. * test/RequestTest.cc: Updated.
  11118. * test/AuthConfigFactoryTest.cc: New class.
  11119. * test/RequestFactoryTest.cc: Removed.
  11120. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Use RequestGroup::allDownloadFinished() to decide whether the control
  11122. file should be removed or saved.
  11123. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11124. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11125. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. Use File::renameTo()
  11127. * src/DefaultBtProgressInfoFile.cc
  11128. Added --no-file-allocation-limit command-line option.
  11129. * src/version_usage.cc
  11130. * src/option_processing.cc
  11131. * src/OptionHandlerFactory.cc
  11132. * src/RequestGroup.{h, cc}
  11133. * src/BtCheckIntegrityEntry.cc
  11134. * src/StreamCheckIntegrityEntry.cc
  11135. * src/prefs.h
  11136. * doc/aria2c.1.txt
  11137. * doc/aria2c.1
  11138. Now prealloc is the default value for --file-allocation option.
  11139. * src/version_usage.cc
  11140. * src/option_processing.cc
  11141. * doc/aria2c.1.txt
  11142. * doc/aria2c.1
  11143. Don't URL-encode user-agent.
  11144. * src/HttpRequest.cc
  11145. Updated translations
  11146. * po/LINGUAS: Added nl for Dutch translation.
  11147. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11148. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11149. * po/POTFILES.in: Updated.
  11150. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Added the ability to recognize url-list in a torrent file.
  11152. The retrieved URLs are attached to the corresponding FileEntry.
  11153. * src/DefaultBtContext.{h, cc}
  11154. * src/FileEntry.{h, cc}
  11155. * test/DefaultBtContextTest.cc
  11156. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11157. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11158. after the download finishes.
  11159. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11161. the data smaller than block length.
  11162. A block length can be specified by constructor's argument.
  11163. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11164. Get a missing piece in the range of given FileEntry. This function is
  11165. not used in the program yet.
  11166. * src/Util.h: Added some macros.
  11167. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Added HTTP/1.1 keep alive and pipelining support.
  11169. See --enable-http-keep-alive and --enable-http-pipelining option.
  11170. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11171. Segment.
  11172. * src/HttpDownloadCommand.{h, cc}
  11173. * src/OptionHandlerFactory.cc
  11174. * src/HttpConnection.{h, cc}
  11175. * src/version_usage.cc
  11176. * src/HttpInitiateConnectionCommand.cc
  11177. * src/FtpInitiateConnectionCommand.cc
  11178. * src/Segment.h
  11179. * src/HttpRequestCommand.{h, cc}
  11180. * src/option_processing.cc
  11181. * src/prefs.h
  11182. * src/HttpResponseCommand.cc
  11183. * src/SegmentMan.{h, cc}
  11184. * src/FtpNegotiateCommand.cc
  11185. * src/HttpProxyResponseCommand.cc
  11186. * src/Request.cc
  11187. * src/HttpRequest.cc
  11188. * src/DownloadCommand.cc
  11189. * test/HttpRequestTest.cc
  11190. * test/RequestTest.cc
  11191. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11193. finished.
  11194. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11196. catching it inside the method.
  11197. When no file entry is found in a metalink without querying user
  11198. preferences, throw the exception with the error message that suggests
  11199. metalink file is probably broken.
  11200. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11201. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11203. processed.
  11204. * src/RequestGroupMan.cc (removeStoppedGroup)
  11205. Added debug message.
  11206. * src/BtPostDownloadHandler.cc
  11207. * src/MetalinkPostDownloadHandler.cc
  11208. * src/PostDownloadHandler.{h, cc}
  11209. * src/RequestGroup.cc
  11210. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11212. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11213. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11214. stops and there are any unfinished or in-progress downloads.
  11215. Added the legend of "stat".
  11216. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. Throw exception when chunck checksum verification fails.
  11218. * src/DownloadCommand.cc (validatePieceHash): New function.
  11219. * src/PiecedSegment.{h, cc} (clear): New function.
  11220. * src/GrowSegment.{h, cc} (clear): New function.
  11221. * src/Segment.h (clear): New function.
  11222. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11223. * test/SegmentTest.cc
  11224. * test/GrowSegmentTest.cc
  11225. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11226. Do not send referer when redirected.
  11227. * src/Request.cc (redirectUrl)
  11228. * test/RequestTest.cc
  11229. * test/HttpRequestTest.cc
  11230. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Implemented BitTorrent/http/ftp integrated download.
  11232. I've rewritten lots of files and now some headers have forward
  11233. class declarations to reduce compile time.
  11234. The implementation is extremely alpha stage, I recommend to use this
  11235. for testing purpose only.
  11236. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Fixed the compilation error on 64bit platform.
  11238. * test/HttpHeaderProcessorTest.cc
  11239. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11240. Merged Ross's patch that fixes compilation problem in MinGW
  11241. * test/DefaultBtProgressInfoFileTest.cc
  11242. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11243. Updated fr.po by sebone
  11244. * po/fr.po
  11245. Updated man page.
  11246. * doc/aria2c.1.txt
  11247. * Release 0.11.3
  11248. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11250. failure in Metalink.
  11251. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Automatically save *.aria2 control file of http/ftp download in every
  11253. 60 seconds.
  11254. * src/AutoSaveCommand.{h, cc}: New class.
  11255. * src/TimeBasedCommand.{h, cc}: New class.
  11256. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11257. Disable parameterized URI support by default. Added -P option to
  11258. enable the feature.
  11259. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11260. * src/OptionHandlerFactory.cc
  11261. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11262. Updated Japanese translation.
  11263. * po/ja.po
  11264. Updated man page.
  11265. * doc/aria2c.1.txt
  11266. * Release 0.11.3-rc
  11267. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11269. it is successful, then renamed to *.aria2.
  11270. This prevents *.aria2 file from being truncated or corrupted when
  11271. file system becomes out of space.
  11272. * src/DefaultBtProgressInfoFile.cc (save)
  11273. * src/SegmentMan.cc (save)
  11274. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11275. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Reduced the fragmentation of bitfield in http/ftp download.
  11277. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11278. * test/BitfieldManTest.cc
  11279. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. Added the ability to disable segmented download in .metalink.
  11281. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11282. 'url' tag.
  11283. * src/MetalinkEntry.{h, cc}
  11284. * src/RequestResource.{h, cc}
  11285. * src/MetalinkRequestInfo.cc
  11286. * src/Xml2MetalinkProcessor.cc
  11287. * test/Xml2MetalinkProcessorTest.cc
  11288. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11289. Added parameterized URI support.
  11290. * src/main.cc: -Z option added.
  11291. * src/OptionHandlerFactory.cc
  11292. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11293. * src/PStringDatum.h: New class.
  11294. * src/PStringSegment.{h,cc}: New class.
  11295. * src/PStringNumLoop.h: New class.
  11296. * src/PStringSelect.h: New class.
  11297. * src/NumberDecorator.h: New class.
  11298. * src/FixedWidthNumberDecorator.h: New class.
  11299. * src/AlphaNumberDecorator.h: New class.
  11300. * src/PStringVisitor.h: New class.
  11301. * src/PStringBuildVisitor.{h,cc}: New class.
  11302. * src/ParameterizedStringParser.{h,cc}: New class.
  11303. * src/Util.{h,cc}
  11304. (isNumber): New function.
  11305. (isLowercase): New function.
  11306. (isUppercase): New function.
  11307. (alphaToNum): New function.
  11308. * test/ParameterizedStringParserTest.cc: New class.
  11309. * test/AlphaNumberDecoratorTest.cc: New class.
  11310. * test/PStringBuildVisitorTest.cc: New class.
  11311. * test/UtilTest.cc
  11312. (testIsNumber): New function.
  11313. (testIsLowercase): New function.
  11314. (testIsUppercase): New function.
  11315. (testAlphaToNum): New function.
  11316. Added '\n' after the error message
  11317. * src/RequestInfo.h (printDownloadAbortMessage)
  11318. Added auto file renaming feature in http(s)/ftp download.
  11319. * src/main.cc: Added --auto-file-renaming command-line option.
  11320. * src/OptionHandlerFactory.cc
  11321. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11322. * src/RequestGroup.{h, cc}
  11323. (shouldCancelDownloadForSafety): Rewritten
  11324. (tryAutoFileRenaming): New function.
  11325. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11326. * src/HttpResponseCommand.cc
  11327. (executeInternal): Removed the call to RequestGroupMan::
  11328. isSameFileBeingDownloaded()
  11329. * src/FtpNegotiateCommand.cc
  11330. (recvSize): Removed the call to RequestGroupMan::
  11331. isSameFileBeingDownloaded()
  11332. * test/RequestGroupTest.cc: New class.
  11333. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11335. IO.
  11336. * src/DefaultBtProgressInfoFile.cc
  11337. * src/MetaFileUtil.cc
  11338. * src/SimpleLogger.cc
  11339. * src/SegmentMan.cc
  11340. * src/Util.cc
  11341. * src/Platform.cc
  11342. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11344. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11346. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11347. Fixed the bug that prevents file allocation is not done when
  11348. dowloading multi-torrent file.
  11349. * src/AbstractDiskWriter.cc (openFile)
  11350. Increase the maximum number of -j option from 15 to 45.
  11351. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11352. Added fr.po, thanks to Charles Landemaine.
  11353. * po/fr.po
  11354. * po/LINGUAS
  11355. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11356. gcc 3.4.4 support:
  11357. * src/DefaultBtContext.cc: int32_t -> int
  11358. * src/main.cc: int -> int32_t, int32_t -> int
  11359. * src/messageDigest.h: uint32_t -> unsigned int
  11360. * src/NameResolver.h: int32_t -> int
  11361. * src/PeerConnection.cc: int -> int32_t
  11362. * src/SpeedCalc.cc: int32_t -> int
  11363. * src/TrackerUpdateCommand.h: int -> int32_t
  11364. * src/Util.cc: int32_t -> int
  11365. * src/Util.h: int32_t -> int
  11366. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11367. * test/AnnounceListTest.cc: int -> int32_t
  11368. * test/ChunkedEncodingTest.cc: int -> int32_t
  11369. * test/DataTest.cc: int -> int32_t
  11370. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11371. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11372. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11373. * test/FeatureConfigTest.cc: int -> int32_t
  11374. * test/MetalinkEntryTest.cc: int -> int32_t
  11375. * test/MockBtRequestFactory.h: int -> int32_t
  11376. * test/MockPieceStorage.h: int -> int32_t
  11377. * test/OptionTest.cc: int -> int32_t
  11378. * test/RequestTest.cc: int -> int32_t
  11379. * test/SegmentManTest.cc: int -> int32_t
  11380. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11381. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11382. Move sleep functions to Util class:
  11383. * src/Util.cc
  11384. (sleep): New function.
  11385. (usleep): New function.
  11386. * src/DownloadCommand.cc: sleep -> Util::sleep
  11387. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11388. MinGW build enhancements. The following files are added:
  11389. * src/timegm.{c,h}
  11390. Changes to support the above new files:
  11391. * configure.ac
  11392. * src/Makefile.am
  11393. * src/a2time.h
  11394. * src/Util.cc:
  11395. * src/strptime.c: Added support for %Z option.
  11396. Fixed MinGW non-blocking bug.
  11397. * src/SocketCore.cc
  11398. * src/HttpRequestCommand.cc
  11399. Miscellenous build fixes/enhancements.
  11400. * configure.ac: Added summary report.
  11401. * src/Platform.h: Tweaked #include's.
  11402. * src/a2netcompat.h: Tweaked #include's.
  11403. * src/strptime.h: Tweaked #include's.
  11404. * src/gai_strerror.c: Tweaked #include's.
  11405. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11406. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11407. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11408. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. Increased the initial connection size in BitTorrent download to 40.
  11410. * src/BtRuntime.h
  11411. Added the usage message of --peer-id-prefix option.
  11412. * src/main.cc
  11413. * Release 0.11.2
  11414. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. MessageDigestHelper is introduced in order to simplify the use
  11416. of message digest. Removed repeated code.
  11417. The message digest algorithm is now specified by string, like "sha1",
  11418. "md5".
  11419. * src/messageDigest.{h, cc}
  11420. * src/MessageDigestHelper.{h, cc}: New class.
  11421. * src/DefaultPieceStorage.cc
  11422. * src/DefaultBtContext.{h, cc}
  11423. (computeFastSet): New function.
  11424. (setInfoHash): Added for unit testing.
  11425. (setNumPieces): Added for unit testing.
  11426. * src/DefaultBtInteractive.cc
  11427. * src/BtPieceMessage.cc
  11428. * src/Peer.cc
  11429. * src/Checksum.h
  11430. * src/message.h
  11431. * src/IteratableChecksumValidator.h
  11432. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11433. inside it.
  11434. * src/SegmentMan.{h, cc}
  11435. (checkIntegrity): Removed.
  11436. * src/IteratableChunkChecksumValidator.{h, cc}
  11437. * src/Util.h
  11438. (sha1Sum): Removed.
  11439. (simpleMessageDigest): Removed.
  11440. (fileChecksum): Removed.
  11441. (computeFastSet): Removed.
  11442. * src/ShaVisitor.cc
  11443. * src/ChunkChecksum.h
  11444. * src/DownloadCommand.cc
  11445. Removed messageDigest virtual functions.
  11446. * src/MultiDiskAdaptor.{h, cc}
  11447. * src/DiskAdaptor.h
  11448. * src/ByteArrayDiskWriter.h
  11449. * src/DiskWriter.h
  11450. * src/DiskAdaptorWriter.h
  11451. * src/AbstractSingleDiskAdaptor.{h, cc}
  11452. * src/AbstractDiskWriter.{h, cc}
  11453. Fixed comilation error when message digest is disabled.
  11454. * src/MetalinkEntry.{h, cc}
  11455. * src/MetalinkRequestInfo.cc
  11456. Removed srandom and random.
  11457. * src/SimpleRandomizer.h
  11458. Added size() virtual function to DiskAdaptor
  11459. * src/MultiDiskAdaptor.h
  11460. Fixed the bug that causes that files are not opened correctly in
  11461. multi-file torrent.
  11462. * src/TorrentRequestInfo.cc
  11463. * src/MultiDiskAdaptor.cc
  11464. Added SHA256 support
  11465. * src/messageDigest.cc
  11466. * src/Xml2MetalinkProcessor.cc
  11467. Show supported message digest algorithms
  11468. * src/main.cc
  11469. Updated contact info.
  11470. * src/main.cc
  11471. Applied Ross's patch
  11472. * src/a2netcompat.h
  11473. * src/main.cc
  11474. Fixed the bug that prevents a remote metalink from not being processed
  11475. even if '-o foo.metalink' is specified.
  11476. * src/MetalinkRequestInfo.cc
  11477. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11478. Merged Dan's patch:
  11479. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11480. Use va_copy to avoid core dump on amd64:
  11481. * src/SimpleLogger.cc
  11482. Updated contact info.
  11483. * src/main.cc
  11484. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11485. digest is not available.
  11486. * src/MetalinkEntry.h
  11487. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Make a2netcompat.h include a2io.h to fix compilation error:
  11489. * src/a2netcompat.h
  11490. * src/SocketCore.cc: Removed include of a2io.h
  11491. * src/Util.cc: Removed include of a2io.h
  11492. Gather time related functions to a2time.h:
  11493. * src/a2time.h: New file.
  11494. * src/DefaultPeerStorage.cc
  11495. * src/SimpleLogger.cc
  11496. * src/Util.{h, cc}
  11497. * src/SimpleRandomizer.h
  11498. * src/TimeA2.{h,cc}
  11499. * src/DownloadCommand.cc
  11500. * src/main.cc
  11501. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11502. a2netcompat.h:
  11503. * src/NameResolver.cc
  11504. Fixed compilation error without openssl:
  11505. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11506. Added default block to suppress compiler warnings:
  11507. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11508. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11509. MinGW build enhancements. The following files are added:
  11510. * src/gai_strerror.{c,h}
  11511. * src/gettimeofday.{c,h}
  11512. Changes to support the above new files:
  11513. * configure.ac
  11514. * src/Makefile.am
  11515. * src/a2netcompat.h
  11516. * src/TimeA2.cc
  11517. * src/DefaultPeerStorage.cc
  11518. * src/NameResolver.cc: removed mingw_strerror() function.
  11519. * src/SocketCore.cc: removed mingw_strerror() function.
  11520. Miscellaneous MinGW build fixes.
  11521. * src/a2io.h: Use _lseeki64() instead of lseek()
  11522. * src/common.h
  11523. * src/DefaultFileAllocator.cc
  11524. * src/GlowFileAllocator.cc
  11525. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11526. * src/NameResolver.cc
  11527. (callback): Changed int32_t to int.
  11528. (resolve): Changed int32_t to int.
  11529. * src/Platform.cc
  11530. * src/Platform.h
  11531. * test/MultiDiskWriterTest.cc
  11532. * test/PeerMessageUtilTest.cc
  11533. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11534. Other enhancements and fixes.
  11535. * src/HttpRequestCommand.cc
  11536. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11537. * src/SocketCore.cc:
  11538. (error): New function to abstract errno/WSAGetLastError().
  11539. (errorMsg): New function to abstract errno/WSAGetLastError().
  11540. (initiateSecureConnection): Added more detailed error reporting.
  11541. * src/SocketCore.h: Added private variable blocking, to allow
  11542. proper handling of OpenSSL psuedo-errors.
  11543. * src/message.h
  11544. (EX_SSL_INIT_FAILURE)
  11545. (EX_SSL_IO_ERROR)
  11546. (EX_SSL_PROTOCOL_ERROR)
  11547. (EX_SSL_UNKNOWN_ERROR)
  11548. (EX_SSL_CONNECT_ERROR)
  11549. (EX_SOCKET_BLOCKING)
  11550. (EX_SOCKET_NONBLOCKING)
  11551. (EX_SOCKET_UNKNOWN_ERROR)
  11552. * src/Util.cc
  11553. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11554. reserved name.
  11555. (httpGMT): Fixed typo.
  11556. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Merged Ross's win32 patch(manually)
  11558. In the course of merging, following files are added.
  11559. * src/strptime.{h,c}
  11560. * src/libgen.{h,c}
  11561. * src/inet_aton.{h,c}
  11562. * src/Platform.{h,cc}
  11563. * src/localtime_r.{h,c}
  11564. * src/getaddrinfo.{h,c}
  11565. I've gethered network related things, and put them to following file:
  11566. * src/a2netcompat.h
  11567. Also io related things are put to following file:
  11568. * src/a2io.h
  11569. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11570. * src/message.h
  11571. (MSG_ALLOCATION_COMPLETED)
  11572. (EX_TOO_LARGE_FILE)
  11573. (EX_SIZE_MISMATCH)
  11574. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11575. (EX_INVALID_CHUNK_CHECKSUM)
  11576. (EX_INVALID_RANGE_HEADER)
  11577. * src/FileAllocationCommand.cc
  11578. * src/HttpResponse.cc
  11579. * src/RequestGroup.cc
  11580. * src/MultiDiskAdaptor.cc
  11581. * src/OptionHandlerImpl.h
  11582. * src/HttpResponseCommand.cc
  11583. * src/FtpNegotiateCommand.cc
  11584. * src/IteratableChecksumValidator.cc
  11585. * src/SegmentMan.cc
  11586. * src/ChunkChecksumValidator.cc
  11587. Added Randomizer::getRandomNumber(long int)
  11588. * src/Randomizer.h (getRandomNumber)
  11589. * src/SimpleRandomizer.h (getRandomNumber)
  11590. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11591. * src/Util.cc (randomAlpha): Use this new function.
  11592. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11593. Converted int's to in32_t. long long int's are also converted to
  11594. int64_t
  11595. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. Fixed the bug that prevents cookies from being sent to the server
  11597. if the domain of cookie is FQDN and starts with ".".
  11598. * src/Cookie.cc (match)
  11599. To add the ability to change peer id.
  11600. * src/DefaultBtContext.h
  11601. (_peerIdPrefix): New variable
  11602. (setPeerIdPrefix): New function.
  11603. * src/torrentRequestInfo.cc
  11604. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11605. DefaultBtContext.
  11606. * src/main.cc (main): Added peer-id-prefix command-line option.
  11607. The usage message is not added yet.
  11608. * src/DefaultBtContext.cc
  11609. (generatePeerId): Use _peerIdPrefix.
  11610. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11611. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Fixed the bug that prevents filename in content-disposition from
  11613. being retrieved when filename is not quoted.
  11614. * src/Util.cc (getContentDispositionFilename)
  11615. Fixed the bug that causes infinate loop and memory leak when file open
  11616. operation failed.
  11617. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11618. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Fixed the bug that causes segfault when all URIs specified are
  11620. unsupported.
  11621. * src/RequestGroupMan.cc (getInitialCommands)
  11622. Check if RequestGroup::createNextCommand() returns empty list of
  11623. commands.
  11624. * src/RequestGroup.cc (createNextCommand)
  11625. Change log level from info to error so that users can notice that
  11626. an error occurred.
  11627. Fixed the bug that causes segfault when a zero-sized file is
  11628. downloaded.
  11629. * src/BitfieldMan.cc (isAllBitSet)
  11630. Return true if bitfieldLength is 0.
  11631. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. * src/main.cc
  11633. (showUsage): Added 3 usage examples for metalink download.
  11634. Replace MetalinkChunkChecksum with ChunkChecksum.
  11635. * src/MetalinkChunkChecksum.h: Removed.
  11636. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11637. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11638. * src/Xml2MetalinkProcessor.cc
  11639. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11640. * src/MetalinkRequestInfo.cc (execute)
  11641. * Release 0.11.1
  11642. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Reads URIs from stdin when "-i -" is specified.
  11644. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11645. * src/UriListParser.h, src/UriListParser.cc: New class.
  11646. * src/StreamUriListParser.h: New class.
  11647. * src/FileUriListParser.h: New class.
  11648. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11649. instead of UriFileListParser.
  11650. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. Made console readout more readable.
  11652. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11653. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11654. Fix the bug that causes -s option not to work.
  11655. * src/main.cc (main)
  11656. * src/a2algo.h: New file.
  11657. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11658. Create directory structure specified in metalink file.
  11659. * src/RequestGroup.h, src/RequestGroup.cc
  11660. (initAndOpenFile): Create a directory to store files if it does not
  11661. exist.
  11662. (getDir): New function.
  11663. Added ETA and download speed for an individual file to readout.
  11664. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11665. * src/RequestGroup.h
  11666. (calculateDownloadSpeed): New function.
  11667. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. Made -S option work with metalink file and provided selective download
  11669. to metalink.
  11670. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11671. (filename): Removed.
  11672. (file): New variable.
  11673. (size): Removed.
  11674. (operator=): Updated.
  11675. (getPath): New function.
  11676. (getLength): New function.
  11677. (toFileEntry): New function.
  11678. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11679. (execute): Use toStream.
  11680. (showFileEntry): Removed.
  11681. * src/MetalinkRequestInfo.h
  11682. (targetFiles): New variable.
  11683. (setTargetFiles): New variable.
  11684. * src/MetalinkRequestInfo.cc
  11685. (execute): Added the ability to print file information included in
  11686. a metalink file.
  11687. Added selective download mode to metalink.
  11688. * src/main.cc
  11689. (showUsage): Updated to denote that -S and --select-file options are
  11690. applicable to metalink.
  11691. * src/FileEntry.h
  11692. (operator=): New function.
  11693. (getBasename): New function.
  11694. (getDirname): New function.
  11695. * src/Util.h, src/Util.cc
  11696. (toStream): New function.
  11697. * src/Xml2MetalinkProcessor.cc: Updated.
  11698. Made aria2 work with metalink with directory structure.
  11699. * src/File.h, src/File.cc
  11700. (getBasename): New function.
  11701. (getDirname): New function.
  11702. * src/RequestGroup.h, src/RequestGroup.cc
  11703. (_topDir): New variable.
  11704. (setTopDir): New function.
  11705. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11706. Rewrote HTTP header parsing with stringstream.
  11707. * src/HttpConnection.h, src/HttpConnection.cc
  11708. (HttpRequestEntry): New class.
  11709. (headerBuf): Removed.
  11710. (headerBufLength): Removed.
  11711. (outstandingHttpRequests): Now its element type is
  11712. HttpRequestEntryHandle.
  11713. (findEndOfHeader): Removed.
  11714. (receiveResponse): Rewritten.
  11715. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11716. Updated doc for -j option to notice that it should be used with -i
  11717. option.
  11718. * src/main.cc (showUsage)
  11719. Removed unused classes.
  11720. * src/RequestInfo.h
  11721. (FileInfo): Removed.
  11722. (checksum): Removed.
  11723. (fileInfo): Removed.
  11724. (setChecksum): Removed.
  11725. (getChecksum): Removed.
  11726. (getFileInfo): Removed.
  11727. Use ISO units.
  11728. * src/ConsoleDownloadEngine.cc
  11729. * src/TorrentConsoleDownloadEngine.cc
  11730. * src/Util.cc (abbrevSize)
  11731. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11732. Added the default listening ports to the help message.
  11733. * src/main.cc (showUsage)
  11734. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Reduce the number of calls to gettimeofday to lower CPU load.
  11736. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11737. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11738. * src/Peer.h (calculateUploadSpeed): New function.
  11739. (calculateDownloadSpeed): New function.
  11740. * src/DefaultPeerStorage.cc
  11741. (CalculateStat): Added _now variable.
  11742. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11743. and Peer::calculateUploadSpeed(const struct timeval&)
  11744. Drop connection if no request or piece message is exchanged in
  11745. a certain interval.
  11746. * src/DefaultBtInteractive.h
  11747. (btRuntime): New variable.
  11748. (inactiveCheckPoint): New variable.
  11749. (checkActiveInteraction): New function.
  11750. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11751. request or piece message is received.
  11752. (checkActiveInteraction): New function.
  11753. (doInteractionProcessing): Call checkActiveInteraction.
  11754. Fixed the bug that causes remote Metalink and Torrent files are not
  11755. processed.
  11756. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11757. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Changed format of log file.
  11759. * src/SimpleLogger.cc
  11760. * Release 0.11.0
  11761. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11762. * src/AbstractCommand.cc
  11763. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11764. MSG_MAX_TRY from error to info.
  11765. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11766. * src/message.h
  11767. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11768. (MSG_DOWNLOAD_ABORTED): Added %s.
  11769. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11770. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11771. * src/PeerAbstractCommand.cc
  11772. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11773. * src/Request.h
  11774. (cookieBox): Made ShardHandle.
  11775. * src/RequestGroup.h, src/RequestGroup.cc
  11776. (createNextCommandWithAdj): New function.
  11777. * src/FileAllocationCommand.cc
  11778. (executeInternal): Use createNextCommandWithAdj().
  11779. * src/CheckIntegrityCommand.cc
  11780. (executeInternal): Use createNextCommandWithAdj().
  11781. Added --load-cookies command-option.
  11782. * src/OptionHandlerFactory.cc
  11783. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11784. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11785. Now aria2 can handle cookie's expiration date.
  11786. * src/Cookie.h (expires): Changed its type to time_t.
  11787. * src/main.cc: Added --load-cookies command-line option.
  11788. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11789. * src/Util.h, src/Util.cc (httpGMT): New function.
  11790. * src/Request.cc (Request): Initialize cookieBox using
  11791. CookieBoxFactory.
  11792. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11793. * src/CookieParser.h, src/CookieParser.cc: New class.
  11794. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11795. * src/HttpResponseCommand.cc
  11796. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11797. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11798. download.
  11799. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. Added -j command-line option.
  11801. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11802. * src/main.cc
  11803. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11804. Rewritten using stringstream.
  11805. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11806. Rewritten using stringstream.
  11807. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Make download size shown in MB, KB.
  11809. * src/ConsoleDownloadEngine.h (sendStatistics)
  11810. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11811. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11812. Accept incoming connections if download rate is low.
  11813. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11814. (_lowestSpeedLimit): New variable.
  11815. (setLowestSpeedLimit): New function.
  11816. (execute): Accept incoming connections if download rate is low.
  11817. MAX_PEERS is ignored in this case.
  11818. Disable PREF_OUT in multiple concurrent download:
  11819. * src/RequestGroup.h, src/RequestGroup.cc
  11820. (setUserDefinedFilename): New function.
  11821. * src/DownloadEngineFactory.cc
  11822. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11823. concurrent download.
  11824. * src/DefaultSegmentManFactory.cc
  11825. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11826. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11827. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11828. Added its overloaded method.
  11829. * src/RequestGroup.h
  11830. (_numConcurrentCommand): New variable.
  11831. (setNumConcurrentCommand): New function.
  11832. * src/RequestGroup.cc
  11833. Abort download if same file is being downloaded concurrently.
  11834. * src/RequestGroup.h, src/RequestGroupMan.cc
  11835. (isSameFileBeingDownloaded): New function.
  11836. * src/HttpResponseCommand.cc (executeInternal)
  11837. * src/FtpNegotiateCommand.cc (recvSize)
  11838. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11839. * main.cc: Added help message for -i option.
  11840. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11841. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11842. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11843. * src/MetalinkEntry.h
  11844. (checksum): Changed to ChecksumHandle
  11845. * src/MetalinkRequestInfo.cc
  11846. (checksum): Changed to ChecksumHandle
  11847. * src/File.cc
  11848. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11849. * src/common.h
  11850. (DIR_OPEN_MODE): New definition
  11851. * src/RequestGroup.cc
  11852. (prepareForNextAction): Added an argument.
  11853. * src/message.h
  11854. (MSG_GOOD_CHECKSUM): New definition
  11855. (MSG_BAD_CHECKSUM): New definition
  11856. * src/HttpResponseCommand.cc
  11857. (handleDefaultEncoding): Continue download sequence in new
  11858. non-segmented download.
  11859. * src/FileAllocationEntry.h
  11860. (_nextDownloadCommand): New variable.
  11861. * src/DownloadCommand.cc
  11862. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11863. available.
  11864. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11865. * src/IteratableChecksumValidator.h,
  11866. src/IteratableChecksumValidator.cc: New class.
  11867. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11868. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Change file mode to 666:
  11870. * src/common.h (OPEN_MODE): New definition.
  11871. * src/File.cc
  11872. * src/Util.cc
  11873. * src/Directry.cc
  11874. * src/AbstractDiskWriter.cc
  11875. Change the level of log message "download aborted" to debug:
  11876. * src/PeerAbstractCommand.cc (execute)
  11877. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11878. * src/TrackerWatcherCommand.cc
  11879. (createCommand): Sleep some seconds after request failed.
  11880. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11881. then abort tracker request.
  11882. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11883. * Added the simultaneous download feature.
  11884. * src/main.cc: Print "Exception caught: " when exception is caught.
  11885. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11886. * src/ActivePeerConnectionCommand.cc
  11887. * src/PeerInteractionCommand.cc
  11888. * src/BtRuntime.h
  11889. (cuidCounter): Removed.
  11890. (getNewCuid): Removed.
  11891. * src/DownloadEngineFactory.cc
  11892. * src/PeerListenCommand.cc
  11893. * src/TrackerUpdateCommand.cc
  11894. * src/PeerInitiateConnectionCommand.cc
  11895. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11896. * src/PeerAbstractCommand.cc
  11897. (onAbort): Call PeerStorage::returnPeer()
  11898. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11899. (incomingPeers): New variable.
  11900. (addIncomingPeer): New function.
  11901. (returnPeer): New function.
  11902. (onErasingPeer): New function.
  11903. (addPeer): push_back -> push_front
  11904. (getActivePeers): Rewritten.
  11905. (calculateStat): Rewritten.
  11906. * src/PeerStorage.h
  11907. (TransferStat::copy): New function.
  11908. (TransferStat::TransferStat): New function.
  11909. (TransferStat::operator=): New function.
  11910. (addIncomingPeer): New function.
  11911. (returnPeer): New function.
  11912. * src/PeerListenCommand.cc
  11913. (execute): Use PeerStorage::addIncomingPeer() instead of
  11914. Peer::addPeer().
  11915. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11916. Connect to a peer actively when download speed is lower than specified
  11917. speed in torrent download:
  11918. * src/ActivePeerConnectionCommand.h: New class.
  11919. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11921. * src/main.cc: Fixed the bug that prevents download if .netrc
  11922. doesn't exist.
  11923. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11924. To cache resolved hostname:
  11925. * src/AbstractCommand.h, src/AbstractCommand.cc
  11926. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11927. Added dns cache.
  11928. * src/FtpInitiateConnectionCommand.cc
  11929. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11930. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11931. NameResolver working without ares.
  11932. * src/TorrentRequestInfo.cc
  11933. (execute): Don't cache dns in torrent download.
  11934. * src/HttpInitiateConnectionCommand.cc
  11935. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11936. * src/DNSCache.h: New class.
  11937. * src/UrlRequestInfo.cc
  11938. (execute): Use dns cache.
  11939. In http request, suppress port number in http request header if port
  11940. is 80 or 443:
  11941. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11942. request header if port is 80 or 443.
  11943. (createProxyRequest): Allways send port number.
  11944. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11945. To add the command-line option which disables netrc support:
  11946. * src/OptionHandlerFactory.cc
  11947. (createOptionHandlers): Added PREF_NO_NETRC.
  11948. * src/main.cc: Added -n option.
  11949. * src/prefs.h (PREF_NO_NETRC): New definition.
  11950. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11951. V_TRUE.
  11952. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11953. is V_FALSE. This may get configurable in the future release.
  11954. To clear peer's error status by time basis:
  11955. * src/PeerAbstractCommand.cc
  11956. (onAbort): Call Peer::startBadCondition().
  11957. * src/Peer.h, src/Peer.cc
  11958. (error): Removed.
  11959. (_badConditionStartTime): New variable.
  11960. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11961. (startBadCondition): New function.
  11962. (isGood): New function.
  11963. * src/DefaultPeerStorage.cc
  11964. (addPeer): Use Peer::isGood().
  11965. (FindFinePeer): Use Peer::isGood().
  11966. Always include port number in http request header:
  11967. * src/HttpRequest.cc (getHostText): Always include port number in
  11968. http request header.
  11969. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11970. To the ability to read options from a config file:
  11971. * src/main.cc: Command-line parameter validation is delegated to
  11972. OptionHandler class.
  11973. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11974. * src/Option.h, src/Option.cc (clear): New function.
  11975. * src/OptionParser.h, src/OptionParser.cc: New class.
  11976. * src/OptionHandler.h: New class.
  11977. * src/NameMatchOptionHandler.h: New class.
  11978. * src/OptionHandlerImpl.h: New classes.
  11979. * src/prefs.h: '_' -> '-'
  11980. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11981. (FTP_PASV): New definition.
  11982. * src/Util.h, src/Util.cc (getRealSize): New function.
  11983. To disable netrc support if .netrc file does not have correct
  11984. permissions:
  11985. * src/File.h, src/File.cc (mode): New function.
  11986. To prevent confidential information to be logged:
  11987. * src/HttpConnection.h, src/HttpConnection.cc
  11988. (eraseConfidentialInfo): New function.
  11989. (sendRequest): Call eraseConfidentialInfo().
  11990. (sendProxyRequest): Call eraseConfidentialInfo().
  11991. * src/main.cc: Validate permissions of .netrc file.
  11992. To add --user-agent command-line option:
  11993. * src/main.cc: Added new command line option: --user-agent
  11994. * src/prefs.h (PREF_USER_AGENT): New definition.
  11995. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11996. parameter to HttpRequest object.
  11997. * src/AbstractProxyRequestCommand.cc
  11998. (executeInternal): Set user-agent option parameter to HttpRequest
  11999. object.
  12000. Marged the patches from Dan Fandrich.
  12001. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. Use filename and size from Metalink file instead of sending HEAD
  12003. request:
  12004. * src/UrlRequestInfo.h
  12005. (_filename): New variable.
  12006. (_totalLength): New variable.
  12007. (setTotalLength): New variable.
  12008. (setFilename): New variable.
  12009. * src/MetalinkRequestInfo.cc
  12010. (execute): Set filename and size to UrlRequestInfo
  12011. * src/UrlRequestInfo.cc
  12012. (execute): Use filename and size from Metalink instead of seding
  12013. HEAD request to servers.
  12014. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. To add the ability to resume downloading a partially downloaded file
  12016. which is downloaded from the beginning:
  12017. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12018. takes this role.
  12019. * src/main.cc: Added -c option.
  12020. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12021. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12022. * src/prefs.h (PREF_CONTINUE): New definition.
  12023. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12024. * src/DefaultDiskWriter.cc
  12025. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12026. * src/AbstractDiskWriter.h
  12027. (glowFileAllocator): New variable.
  12028. * src/AbstractDiskWriter.cc
  12029. (openExistingFile): Now preallocate file space from the end of the
  12030. existing file if totalLength argument is specified and grater than 0.
  12031. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12032. to download exists in local, continue the download of the file.
  12033. --allow-overwrite=true is assumed in this context.
  12034. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12035. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12036. Throw exception if --check-integrity=true is specified but chunk
  12037. checksums are not provided:
  12038. * src/UrlRequestInfo.cc
  12039. Do not print URLs to stdout:
  12040. * src/UrlRequestInfo.cc
  12041. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. * src/Request.h: Use AuthResolver to get authentication information.
  12043. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12044. set to RequestFactory object.
  12045. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12046. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12047. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12048. create Request object.
  12049. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12050. To integrate Netrc into exsiting classes:
  12051. * src/Request.h
  12052. (_userDefinedAuthConfig): New variable.
  12053. (findNetrcAuthenticator): New function.
  12054. (segment): Removed.
  12055. (setUserDefinedAuthConfig): New function.
  12056. (resolveHttpAuthConfigItem): New function.
  12057. (resolveFtpAuthConfigItem): New function.
  12058. (resolveHttpProxyAuthConfigItem): New function.
  12059. * src/HttpRequest.h
  12060. (authConfig): Removed.
  12061. (proxyAuthConfig): Removed.
  12062. (setAuthConfig): Removed.
  12063. (setProxyAuthConfig): Removed.
  12064. * src/UrlRequest.h
  12065. (getHeadResult): Added a parameter: authConfigHandle
  12066. * src/common.h
  12067. (SingletonHolder.h): New include.
  12068. * src/main.cc
  12069. (Netrc.h): New include.
  12070. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12071. Added initial value of PREF_NETRC_PATH.
  12072. Added the initialization of netrc.
  12073. * src/AuthConfig.h: New class.
  12074. * src/prefs.h
  12075. (PREF_NETRC_PATH): New definition.
  12076. * src/HttpAuthConfig.h: Removed.
  12077. * src/Netrc.cc
  12078. (getRequiredNextToken): New function.
  12079. (skipMacdef): New function.
  12080. (parse): Rewritten.
  12081. * src/Netrc.h
  12082. (getRequiredNextToken): New function.
  12083. (skipMacdef): New function.
  12084. * src/Util.h, src/Util.cc
  12085. (getHomeDir): New function.
  12086. * src/TrackerWatcherComand.cc
  12087. (createRequestCommand): Use AuthConfig.
  12088. * src/FtpConnection.cc
  12089. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12090. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12091. * src/Request.cc
  12092. (findNetrcAuthenticator): New function.
  12093. (resolveHttpAuthConfigItem): New function.
  12094. (resolveFtpAuthConfigItem): New function.
  12095. (resolveHttpProxyAuthConfigItem): New function.
  12096. * src/UrlRequestInfo.cc: Use AuthConfig.
  12097. * src/HttpRequest.cc
  12098. (createRequest): Use authConfig.
  12099. (getProxyAuthString): Use authConfig.
  12100. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12101. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12102. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12103. To reduce overhead to find commands whose socket is either
  12104. readable or writable in the download engine loop:
  12105. * src/Command.h, src/Command.cc
  12106. (STATUS): New enum.
  12107. (status): New variable.
  12108. (statusMatch): New function.
  12109. (setStatusActive): New function.
  12110. (setStatusInactive): New function.
  12111. * src/DownloadEngine.h, src/DownloadEngine.cc
  12112. (executeCommand): New function.
  12113. (run): Simplified.
  12114. (waitData): Call Command::setStatusActive() when command's socket is
  12115. readable or writable.
  12116. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12117. To handle Segment as SegmentHandle:
  12118. * src/AbstractCommand.cc (execute): Rewritten.
  12119. * src/SegmentMan.h: Segment -> SegmentHandle
  12120. Introducded HttpResponse class, HttpRequest class to improve code
  12121. extensiveness and make it clear:
  12122. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12123. HttpResponse class.
  12124. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12125. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12126. * src/HttpConnection.cc: Contruction of http request were moved to
  12127. HttpRequest class.
  12128. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12129. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12130. * src/HttpAuthConfig.h: New class.
  12131. * src/Range.h: New class.
  12132. To make FtpTunnel{Request, Response}Command and
  12133. HttpProxy{Request, Response}Command derived from
  12134. AbstractProxy{Request, Response}Command:
  12135. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12136. Derived from AbstractProxyRequestCommand class.
  12137. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12138. Derived from AbstractProxyResponseCommand class.
  12139. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12140. Derived from AbstractProxyRequestCommand class.
  12141. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12142. Derived from AbstractProxyResponseCommand class.
  12143. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12144. : New class.
  12145. * src/AbstractProxyResponseCommand.h,
  12146. src/AbstractProxyResponseCommand.cc: New class.
  12147. To add netrc support:
  12148. * src/Netrc.h, src/Netrc.cc: New class.
  12149. * src/Util.h, src/Util.cc (split): New function.
  12150. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12151. "Content-Range" header instead of "Range" header.
  12152. * src/HttpHeader.h
  12153. (getStatus): Removed.
  12154. (setStatus): Removed.
  12155. * src/Segment.h
  12156. (getPositionToWrite): New function.
  12157. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12158. * src/HttpHeader.h
  12159. (Range.h): New include.
  12160. (status): New variable.
  12161. (HttpHeader): Initialized status with 0.
  12162. (getStatus): New function.
  12163. (setStatus): New function.
  12164. (getRange): New function.
  12165. (HttpHeaderHandle): New function.
  12166. * src/HttpHeader.cc
  12167. (getRange): New function.
  12168. * src/Request.h
  12169. (RequestWeakHandle): New definition.
  12170. * src/HttpConnection.h
  12171. (HttpConnectionHandle): New type definition.
  12172. * src/HttpConnection.cc
  12173. (receiveResponse): Set HTTP status to headers.
  12174. * src/main.cc
  12175. (showUsage): Fixed typo.
  12176. * src/Segment.h
  12177. (SegmentHandle): New type definition.
  12178. * src/BitfieldMan.h
  12179. (getMissingUnusedLength): New function.
  12180. * src/BitfieldMan.cc
  12181. (getMissingUnusedLength): New function.
  12182. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12183. To fix static initialization order problem:
  12184. * src/BitfieldManFactory.h
  12185. (defaultRandomizer): Removed.
  12186. (factory): New variable.
  12187. (getNewFactory): Removed.
  12188. (getFactoryInstance): New function.
  12189. (setDefaultRandomizer): Rewritten.
  12190. (getDefaultRandomizer): Rewritten.
  12191. * src/BitfieldManFactory.cc
  12192. (defaultRandomizer): Removed.
  12193. (factory): Initialized to 0.
  12194. (BitfieldManFactory): Initialized randomizer to 0.
  12195. * src/DefaultPieceStorage.cc
  12196. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12197. * src/Peer.cc
  12198. (Peer): getNewFactory() -> getFactoryInstance()
  12199. * src/SegmentMan.cc
  12200. (initBitfield): getNewFactory() -> getFactoryInstance()
  12201. * src/Piece.cc
  12202. (Piece): getNewFactory() -> getFactoryInstance()
  12203. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. To fix the bug that causes crash on Max OS X:
  12205. * src/SimpleRandomizer.h
  12206. (getInstance): Create new instance if the static variable is null.
  12207. * src/SimpleRandomizer.cc
  12208. (randomizer): Initialized to 0.
  12209. * src/BitfieldManFactory.h
  12210. (getNewFactory): Removed the call to setRandomizer().
  12211. To fix the miscalculation of the range of checksum:
  12212. * src/BitfieldMan.h
  12213. (isBitSetOffsetRange): New function.
  12214. * src/BitfieldMan.cc
  12215. (isBitSetOffsetRange): New function.
  12216. * src/SegmentMan.cc
  12217. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12218. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12219. * Release 0.10.1
  12220. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12221. To lower CPU usage in BitTorrent download when --max-upload-limit
  12222. command-line option specified:
  12223. * src/DefaultBtMessageDispatcher.cc
  12224. (sendMessages): Calculate uploading speed only when current message
  12225. is uploading data and is not sent yet.
  12226. * src/DefaultPeerStorage.h
  12227. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12228. * src/HttpResponseCommand.cc
  12229. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12230. This fixes compile error in Soralis 10.
  12231. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12232. To fix segfault in Metalink download:
  12233. * src/UrlRequestInfo.h
  12234. (filename): Removed.
  12235. (totalLength): Removed.
  12236. (setTotalLength): Removed.
  12237. (setFilename): Removed.
  12238. * src/MetalinkRequestInfo.cc
  12239. (execute): Do not set filename and totalLength to reqInfo.
  12240. Set chunk checksum to reqInfo if it is not null.
  12241. * src/HttpResponseCommand.cc
  12242. (executeInternal): Fixed filename in log.
  12243. (handleDefaultEncoding): Removed the call to initBitfield() and
  12244. markAllPiecesDone().
  12245. (handleOtherEncoding): Added HEAD method handling.
  12246. * src/FtpNegotiateCommand.cc
  12247. (executeInternal): Added SEQ_HEAD_OK handling.
  12248. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12249. return false.
  12250. * src/FtpNegotiateCommand.h
  12251. (SEQ_HEAD_OK): New definition.
  12252. * src/SegmentMan.cc
  12253. (initBitfield): Delete bitfield.
  12254. (isChunkChecksumValidationReady): Fixed the condition.
  12255. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12256. works fine.
  12257. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12258. * src/Xml2MetalinkProcessor.h
  12259. (xpathExists): New function.
  12260. * src/Xml2MetalinkProcessor.cc
  12261. (xpathExists): New function.
  12262. Not to send HEAD request if filename and size are available in Metalink
  12263. file:
  12264. * src/UrlRequestInfo.h
  12265. (filename): New variable.
  12266. (totalLength): New variable.
  12267. (setTotalLength): New function.
  12268. (setFilename): New function.
  12269. * src/MetalinkRequestInfo.cc
  12270. (execute): Set filename and size to UrlRequestInfo.
  12271. * src/MetalinkEntry.cc
  12272. (MetalinkEntry): Initialize size with 0.
  12273. * src/UrlRequestInfo.cc
  12274. (execute): Set filename and size to SegmentMan.
  12275. Not to download rest of the files after selected files are downloaded
  12276. in BitTorrent:
  12277. * src/PieceStorage.h
  12278. (allDownloadFinished): New function.
  12279. * src/DefaultBtAnnounce.cc
  12280. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12281. downloadFinished.
  12282. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12283. * src/DefaultPieceStorage.cc
  12284. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12285. Commented out the call to finishSelectiveDownloadingMode().
  12286. (downloadFinished): Call isFilteredAllBitSet() instead of
  12287. isAllBitSet().
  12288. (allDownloadFinished): New function.
  12289. * src/DefaultBtInteractive.cc
  12290. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12291. downloadFinished().
  12292. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12293. * src/TorrentDownloadEngine.cc
  12294. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12295. * src/BitfieldMan.h
  12296. (isFilteredAllBitSet): New function.
  12297. * src/ShareRatioSeedCriteria.h
  12298. (PieceStorage.h): New include.
  12299. (pieceStorage): New variable.
  12300. (evaluate):
  12301. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12302. * src/BitfieldMan.cc
  12303. (isFilteredAllBitSet): New function.
  12304. (isAllBitSet): Filter is not took into account.
  12305. Rename --force-truncate as --allow-overwrite:
  12306. * src/TorrentRequestInfo.cc
  12307. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12308. * src/main.cc
  12309. (showUsage): --force-truncate -> --allow-overwrite
  12310. * src/message.h
  12311. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12312. * src/prefs.h
  12313. (PREF_FORCE_TRUNCATE): Removed.
  12314. (PREF_ALLOW_OVERWRITE): New definition.
  12315. * src/SegmentMan.cc
  12316. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12317. * src/MetalinkRequestInfo.cc
  12318. (execute): Queueing message are now logged in info level.
  12319. * src/common.h
  12320. (LONG_LONG_MAX): Removed.
  12321. (LONG_LONG_MIN): Removed.
  12322. * src/HttpResponseCommand.cc
  12323. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12324. * src/FtpNegotiateCommand.cc
  12325. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12326. * src/main.cc
  12327. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12328. command-line option.
  12329. (main): Added --check-integriy and --realtime-chunk-checksum
  12330. command-line option.
  12331. --force-truncate -> --allow-overwrite
  12332. Set initial value of --check-integrity option to false.
  12333. Don't show usage when error occurs while persing command-line options.
  12334. Removed deprecated --upload-limit option.
  12335. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12336. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12337. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12338. * src/BtAllowedFastMessage.cc:
  12339. * src/BtBitfieldMessage.cc
  12340. * src/BtCancelMessage.cc
  12341. * src/BtChokeMessage.cc
  12342. * src/BtHaveAllMessage.cc
  12343. * src/BtHaveMessage.cc
  12344. * src/BtHaveNoneMessage.cc
  12345. * src/BtInterestedMessage.cc
  12346. * src/BtNotInterestedMessage.cc
  12347. * src/BtPieceMessage.cc
  12348. * src/BtPortMessage.cc
  12349. * src/BtRejectMessage.cc
  12350. * src/BtRequestMessage.cc
  12351. * src/BtSuggestPieceMessage.cc
  12352. * src/BtUnchokeMessage.cc
  12353. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12354. files are affected.
  12355. * src/ChunkChecksumValidator.cc
  12356. * src/SegmentMan.cc
  12357. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. To add chunk checksum validation:
  12359. * src/MetalinkEntry.h
  12360. (MetalinkChunkChecksum.h): New include.
  12361. (chunkChecksum): New variable.
  12362. * src/Request.h
  12363. (method): New variable.
  12364. (setMethod): New function.
  12365. (getMethod): New function.
  12366. (METHOD_GET): New static constant.
  12367. (METHOD_HEAD): New static constant.
  12368. * src/Xml2MetalinkProcessor.h
  12369. (getPieceHash): New function.
  12370. * src/PieceStorage.h
  12371. (markAllPiecesDone): New function.
  12372. (checkIntegrity): New function.
  12373. * src/FileAllocator.h
  12374. (NullFileAllocationMonitor.h): New include.
  12375. (FileAllocator): Initialize fileAllocationMonitor with new
  12376. NullFileAllocationMonitor().
  12377. * src/MultiDiskAdaptor.h
  12378. (messageDigest.h): Remove include.
  12379. (ctx): Removed.
  12380. (hashUpdate): Added ctx.
  12381. (MultiDiskAdaptor): Removed ctx.
  12382. (sha1Sum): Renamed as messageDigest.
  12383. (messageDigest): New function.
  12384. * src/UrlRequestInfo.h
  12385. (HeadResult): New class.
  12386. (digestAlgo): New variable.
  12387. (chunkChecksumLength): New variable.
  12388. (chunkChecksums): New variable.
  12389. (getHeadResult): New function.
  12390. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12391. (setDigestAlgo): New function.
  12392. (setChunkChecksumLength): New function.
  12393. (setChunkChecksums): New function.
  12394. * src/DefaultPieceStorage.cc
  12395. (DiskAdaptorWriter.h): New include.
  12396. (ChunkChecksumValidator.h): New include.
  12397. (markAllPiecesDone): New function.
  12398. (checkIntegrity): New function.
  12399. * src/DefaultBtContext.h
  12400. (getPieceHashes): New function.
  12401. * src/TorrentRequestInfo.cc
  12402. (execute): Try to validate chunk checksum if file already exists and
  12403. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12404. * src/messageDigest.h
  12405. (~MessageDigestContext): Added digestFree().
  12406. * src/MetalinkRequestInfo.cc
  12407. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12408. * src/DiskAdaptor.h
  12409. (messageDigest.h): New include.
  12410. (sha1Sum): Renamed as messageDigest.
  12411. (messageDigest): New function.
  12412. * src/DownloadCommand.h
  12413. (PeerStat.h): New include.
  12414. (maxDownloadSpeedLimit): New variable.
  12415. (startupIdleTime): New variable.
  12416. (lowestDownloadSpeedLimit): New variable.
  12417. (peerStat): New variable.
  12418. (setMaxDownloadSpeedLimit): New function.
  12419. (setStartupIdleTime): New function.
  12420. (setLowestDownloadSPeedLimit): New function.
  12421. * src/BtContext.h
  12422. (getPieceHashes): New function.
  12423. * src/main.cc
  12424. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12425. option to true for testing purpose.
  12426. * src/BtPieceMessage.cc
  12427. (checkPieceHash): Use messageDigest
  12428. * src/DownloadEngine.cc
  12429. (SetDescriptor): Removed.
  12430. (AccumulateActiveCommand): Removed.
  12431. (waitData): Rewritten.
  12432. (updateFdSet): Rewritten.
  12433. * src/MultiDiskAdaptor.cc
  12434. (hashUpdate): Added ctx.
  12435. (sha1Sum): Renamed as messageDigest.
  12436. (messageDigest): New function.
  12437. * src/BitfieldMan.h
  12438. (isBitRangeSet): New function.
  12439. (unsetBitRange): New function.
  12440. * src/ByteArrayDiskWriter.h
  12441. (sha1Sum): Renamed as messageDigest.
  12442. (messageDigest): New function.
  12443. * src/ConsoleDownloadEngine.cc
  12444. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12445. * src/DiskWriter.h
  12446. (messageDigest.h): New include.
  12447. (sha1Sum): Renamed as messageDigest.
  12448. (messageDigest): New function.
  12449. * src/ChunkChecksumValidator.h: New class.
  12450. * src/DiskAdaptorWriter.h: New class.
  12451. * src/prefs.h
  12452. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12453. (PREF_CHECK_INTEGRITY): New definition.
  12454. * src/HttpResponseCommand.cc
  12455. (handleDefaultEncoding): Added method "HEAD" handling.
  12456. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12457. (handleOtherEncoding):
  12458. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12459. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12460. startupIdleTime, lowestDownloadSpeedLimit to command.
  12461. * src/SegmentMan.h
  12462. (getSegmentEntryByIndex): New function.
  12463. (getSegmentEntryByCuid): New function.
  12464. (getSegmentEntryIteratorByCuid): New function.
  12465. (diskWriter): DiskWriter -> DiskWriterHandle
  12466. (pieceHashes): New variable.
  12467. (chunkHashLength): New variable.
  12468. (digestAlgo): New variable.
  12469. (FindPeerStat): Removed.
  12470. (getPeerStat): Rewritten.
  12471. (markAllPiecesDone): New function.
  12472. (checkIntegrity): New function.
  12473. (tryChunkChecksumValidation): New function.
  12474. (isChunkChecksumValidationReady): New function.
  12475. * src/BitfieldMan.cc
  12476. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12477. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12478. blocks to 0.
  12479. (isBitRangeSet): New function.
  12480. (unsetBitRange): New function.
  12481. * src/FtpNegotiateCommand.cc
  12482. (executeInternal): Set maxDownloadSpeedLimit,
  12483. startupIdleTime, lowestDownloadSpeedLimit to command.
  12484. (recvSize): Added method "HEAD" handling.
  12485. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12486. * src/AbstractSingleDiskAdaptor.cc
  12487. (sha1Sum): Renamed as messageDigest.
  12488. (messageDigest): New function.
  12489. * src/AbstractSingleDiskAdaptor.h
  12490. (sha1Sum): Renamed as messageDigest.
  12491. (messageDigest): New function.
  12492. * src/Util.h
  12493. (indexRange): New function.
  12494. * src/MetalinkEntry.cc
  12495. (MetalinkEntry): Initialized chunkChecksum to 0.
  12496. * src/ShaVisitor.cc
  12497. (~ShaVisitor): Removed the call to ctx.digestFree().
  12498. * src/SegmentMan.cc
  12499. (ChunkChecksumValidator.h): New include.
  12500. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12501. to DIGEST_ALGO_SHA1.
  12502. (~SegmentMan): Removed diskWriter.
  12503. (FindSegmentEntryByIndex): Removed.
  12504. (FindSegmentEntryByCuid): Removed.
  12505. (checkoutSegment): Rewritten.
  12506. (findSlowerSegmentEntry): Rewritten.
  12507. (getSegment): Rewritten.
  12508. (updateSegment): Rewritten.
  12509. (completeSegment): Rewritten.
  12510. (markAllPiecesDone): New function.
  12511. (checkIntegrity): New function.
  12512. (isChunkChecksumValidationReady): New function.
  12513. (tryChunkChecksumValidation): New function.
  12514. * src/Xml2MetalinkProcessor.cc
  12515. (getEntry): Get size and set it to entry.
  12516. Get chunk checksum and set it to entry.
  12517. (getPieceHash): New function.
  12518. * src/Util.cc
  12519. (sha1Sum): Removed ctx.digestFree()
  12520. (fileChecksum): Removed ctx.digestFree()
  12521. (indexRange): New function.
  12522. * src/Request.cc
  12523. (METHOD_GET): New variable.
  12524. (METHOD_HEAD): New variable.
  12525. (Request): Added method.
  12526. * src/UrlRequestInfo.cc
  12527. (FatalException.h): New include.
  12528. (message.h): New include.
  12529. (operator<<): Added operator<< for class HeadResult.
  12530. (getHeadResult): New function.
  12531. (execute): Get filename and size in separate download engine.
  12532. * src/ChunkChecksumValidator.cc: New class.
  12533. * src/DownloadCommand.cc:
  12534. (DownloadCommand): Added peerStat.
  12535. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12536. the value from Option.
  12537. The buffer size is now 16KB.
  12538. Use peerStat member instead of getting it from SegmentMan.
  12539. Use startupIdleTime member instead of gettingit from Option.
  12540. Added chunk checksum validation.
  12541. * src/AbstractDiskWriter.cc
  12542. (AbstractDiskWriter): Removed ctx.
  12543. (~AbstractDiskWriter): Removed ctx.digestFree()
  12544. (writeDataInternal): Returns the return value of write.
  12545. (readDataInternal): Returns the return value of read.
  12546. (sha1Sum): Renamed as messageDigest
  12547. (messageDigest): New function.
  12548. * src/AbstractDiwkWriter.h
  12549. (messageDigest.h): Removed include.
  12550. (ctx): Removed.
  12551. (sha1Sum): Renamed as messageDigest
  12552. (messageDigest): New function.
  12553. * src/DefaultPieceStorage.h
  12554. (markAllPiecesDone): New function.
  12555. (checkIntegrity): New function.
  12556. * src/NullFileAllocationMonitor.h: New class.
  12557. * src/MetalinkChunkChecksum.h: New class.
  12558. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. To decrease CPU usage in bittorrent download, calculation results in
  12560. BitfieldMan were cached and realtime fetching PeerObject was removed
  12561. with WeakHandle introduced. Option values are set to the objects
  12562. by setter before download begins.
  12563. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12564. * src/DefaultBtRequestFactory.h
  12565. (dispatcher): BtMessageDispatcherHandle ->
  12566. BtMessageDispatcherWeakHandle.
  12567. (messageFactory): New variable.
  12568. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12569. BtMessageDispatcherWeakHandle.
  12570. (setBtMessageFactory): New function.
  12571. * src/DefaultBtMessageDispatcher.cc:
  12572. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12573. from Option.
  12574. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12575. feating the value from Option.
  12576. Use messageFactory member.
  12577. * src/PeerInteractionCommand.cc
  12578. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12579. Add reverse dependencies to factory object.
  12580. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12581. dispatcher.
  12582. Set messageFactory to receiver.
  12583. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12584. btInteractive.
  12585. Set receiver to peerObject.
  12586. Set maxDownloadSpeedLimit to this.
  12587. (executeInternal): Use maxDownloadSpeedLimit member.
  12588. * src/BtChokeMessage.cc
  12589. (doReceivedAction): Use dispatcher, requestFactory member.
  12590. (onSendComplete): Use dispatcher member.
  12591. * src/PeerInteractionCommand.h
  12592. (maxDownloadSpeedLimit): New variable.
  12593. * src/DefaultBtMessageReceiver.h
  12594. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12595. (dispatcher):
  12596. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12597. (messageFactory): New variable.
  12598. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12599. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12600. (setDispatcher):
  12601. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12602. (setBtMessageFactory): New function.
  12603. * src/DefaultBtInteractive.cc
  12604. (initiateHandshake): Use messageFactory member.
  12605. (addBitfieldMessageToQueue): Use messageFactory member.
  12606. (addAllowedFastMessageToQueue): Use messageFactory member.
  12607. (decideChoking): Use messageFactory member.
  12608. (checkHave): Use messageFactory member.
  12609. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12610. (receiveMessages): Use maxDownloadSpeedLimit member.
  12611. (decideInterest): Use messageFactory member.
  12612. * src/BtRequestMessage.cc
  12613. (doReceivedAction): Use messageFactory, dispatcher member.
  12614. (onQueued): Use dispatcher member.
  12615. * src/BtPieceMessage.cc
  12616. (doReceivedAction): Use dispatcher member.
  12617. (send): Use peerConnection member.
  12618. (onWrongPiece): Use requestFactory member.
  12619. (handleChokingEvent): Use messageFactory, dispatcher member.
  12620. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12621. * src/BtMessageDispatcher.h
  12622. (BtMessageDispatcherWeakHandle): New type definition.
  12623. * src/SimpleBtMessage.cc
  12624. (send): Use peerConnection member.
  12625. * src/BtRejectMessage.cc
  12626. (doReceivedAction): Use dispatcher member.
  12627. * src/DefaultBtMessageDispatcher.h
  12628. (Option.h): Removed include.
  12629. (messageFactory): New variable.
  12630. (option): Removed.
  12631. (maxUploadSpeedLimit): New variable.
  12632. (requestTimeout): New variable.
  12633. (DefaultBtMessageDispatcher): Removed option.
  12634. Added maxUploadSpeedLimit, requestTimeout.
  12635. (setOption): Removed.
  12636. (getOption): Removed.
  12637. (setMaxUploadSpeedLimit): New function.
  12638. (setRequestTimeout): New function.
  12639. (setBtMessageFactory): New function.
  12640. * src/DefaultBtInteractive.h
  12641. (btMessageReceiver):
  12642. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12643. (dispatcher):
  12644. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12645. (btRequestFactory):
  12646. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12647. (peerConnection):
  12648. PeerConnectionHandle -> PeerConnectionWeakHandle
  12649. (messageFactory): New variable.
  12650. (option): Removed.
  12651. (keepAliveInterval): New variable.
  12652. (maxDownloadSpeedLimit): New variable.
  12653. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12654. (setBtMessageReceiver):
  12655. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12656. (setDispatcher):
  12657. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12658. (setBtRequestFactory):
  12659. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12660. (setPeerConnection):
  12661. PeerConnectionHandle -> PeerConnectionWeakHandle
  12662. (setOption): Removed.
  12663. (setKeepAliveInterval): New function.
  12664. (setMaxDownloadSpeedLimit): New function.
  12665. (setBtMessageFactory): New function.
  12666. * src/BitfieldMan.h
  12667. (cachedNumMissingBlock): New variable.
  12668. (cachedNumFilteredBlock): New variable.
  12669. (cachedCompletedLength): New variable.
  12670. (cachedFilteredComletedLength): New variable.
  12671. (cachedFilteredTotalLength): New variable.
  12672. (countMissingBlockNow): New function.
  12673. (countFilteredBlockNow): New function.
  12674. (getFilteredTotalLengthNow): New function.
  12675. (getCompletedLengthNow): New function.
  12676. (getFilteredCompletedLengthNow): New function.
  12677. (updateCache): New function.
  12678. * src/AbstractBtMessage.h
  12679. (BtMessageDispatcher.h): New include.
  12680. (PeerConnection.h): New include.
  12681. (BtRequestFactory.h): New include
  12682. (BtMessageFactory.h): New include.
  12683. (dispatcher): New variable.
  12684. (messageFactory): New variable.
  12685. (peerConnection: New variable.
  12686. (setBtMessageDispatcher): New function.
  12687. (setPeerConnection): New function.
  12688. (setBtMessageFactory): New function.
  12689. (setBtRequestFactory): New function.
  12690. * src/DefaultBtMessageFactory.cc
  12691. (setCommonProperty): Set dispatcher, requestFactory, this,
  12692. peerConnection to msg.
  12693. * src/BtRegistry.h
  12694. (BT_MESSAGE_RECEIVER): New macro.
  12695. * src/PeerConnection.h
  12696. (PeerConnectionWeakHandle): New type definition.
  12697. * src/BtMessageFactory.h
  12698. (BtMessageFactoryWeakHandle): New type definition.
  12699. * src/BitfieldMan.cc
  12700. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12701. cachedCompletedLength, cachedFilteredComletedLength,
  12702. cachedFilteredTotalLength.
  12703. Call updateCache().
  12704. (countMissingBlock): Return cachedNumMissingBlock.
  12705. (countMissingBlockNow): New function.
  12706. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12707. (countFilteredBlockNow): New function.
  12708. (setBit): Call updateCache().
  12709. (unsetBit): Call updateCache().
  12710. (setBitfield): Call updateCache().
  12711. (clearAllBit): Call updateCache().
  12712. (setAllBit): Use setBitInternal instead of setBit.
  12713. Call updateCache().
  12714. (addFilter): Call updateCache().
  12715. (enableFilter): Call updateCache().
  12716. (disableFilter): Call updateCache().
  12717. (clearFilter): Call updateCache().
  12718. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12719. (getFilteredTotalLengthNow): New function.
  12720. (getCompletedLength): Return cachedCompletedLength.
  12721. (getCompletedLengthNow): New function.
  12722. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12723. (getFilteredCompletedLengthNow): New function.
  12724. (updateCache): New function.
  12725. * src/BtMessageReceiver.h
  12726. (BtMessageReceiverWeakHandle): New type definition.
  12727. * src/DefaultBtMessageReceiver.cc
  12728. (receiveHandshake): Use messageFactory member.
  12729. (sendHandshake): Use messageFactory member.
  12730. (receiveMessage): Use messageFactory member.
  12731. * src/DefaultBtMessageFactory.h
  12732. (dispatcher): New variable.
  12733. (requestFactory): New variable.
  12734. (peerConnection): New variablle.
  12735. (setBtMessageDispatcher): New function.
  12736. (setBtRequestFactory): New function.
  12737. (setPeerConnection): New function.
  12738. * src/SharedHandle.h
  12739. (RefCount): New class.
  12740. (WeakHandle): New class.
  12741. * src/PeerObject.h
  12742. (BtMessageReceiver.h): New include.
  12743. (PeerObject): Added btMessageReceiver.
  12744. (btMessageReceiver): New variable.
  12745. * src/Util.cc
  12746. (countBit): Simplified.
  12747. * src/BtCancelMessage.cc
  12748. (doReceivedAction): Use dispatcher member.
  12749. * src/BtRequestFactory.h
  12750. (BtRequestFactoryWeakHandle): New type definition.
  12751. * src/PeerStorage.h
  12752. (downloadSpeed): int -> uint32_t
  12753. (uploadSpeed): int -> uint32_t
  12754. (sessionDownloadLength): long long int -> uint64_t
  12755. (sessionUploadLength): long long int -> uint64_t
  12756. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12757. To add RecoverableException, FatalException:
  12758. * src/AbstractCommand.cc
  12759. (onAbort): Exception -> RecoverableException
  12760. * src/PeerAbstractCommand.h
  12761. (RecoverableException.h): New include.
  12762. (onAbort): Exception -> RecoverableException.
  12763. * src/PeerInteractionCommand.cc
  12764. (onAbort): Exception -> RecoverableException.
  12765. * src/PeerAbstractCommand.cc
  12766. (execute): Exception -> RecoverableException.
  12767. (onAbort): Exception -> RecoverableException.
  12768. * src/TorrentRequestInfo.cc
  12769. (execute): Exception -> RecoverableException.
  12770. * src/MetalinkRequestInfo.cc
  12771. (execute): Exception -> RecoverableException.
  12772. * src/MetaFileUtil.cc: RecoverableException.
  12773. * src/AbstractCommand.h
  12774. (onAbort): Exception -> RecoverableException.
  12775. * src/DlRetryEx.h: Exception -> RecoverableException.
  12776. * src/DlAbortEx.h: Exception -> RecoverableException.
  12777. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12778. * src/Util.cc: Exception -> RecoverableException.
  12779. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12780. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12781. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12782. To make ID static const int
  12783. * src/BtInterestedMessage.h
  12784. (ID_t): Removed.
  12785. (ID): New variable.
  12786. (getId): Made non-const.
  12787. * src/BtPieceMessage.h
  12788. (ID_t): Removed.
  12789. (ID): New variable.
  12790. (getId): Made non-const.
  12791. * src/BtChokeMessage.h
  12792. (ID_t): Removed.
  12793. (ID): New variable.
  12794. (getId): Made non-const.
  12795. * src/BtHaveAllMessage.h
  12796. (ID_t): Removed.
  12797. (ID): New variable.
  12798. (getId): Made non-const.
  12799. * src/BtKeepAliveMessage.h
  12800. (ID_t): Removed.
  12801. (ID): New variable.
  12802. (getId): Made non-const.
  12803. * src/BtHandshakeMessage.h
  12804. (ID): New variable.
  12805. (getId): Made non-const.
  12806. * src/BtSuggestPieceMessage.h
  12807. (ID_t): Removed.
  12808. (ID): New variable.
  12809. (getId): Made non-const.
  12810. * src/BtPortMessage.h
  12811. (ID_t): Removed.
  12812. (ID): New variable.
  12813. (getId): Made non-const.
  12814. * src/AbstractBtMessage.h
  12815. (id): Removed.
  12816. (AbstractBtMessage): Removed id.
  12817. (getId): Removed.
  12818. * src/BtHaveMessage.h
  12819. (ID_t): Removed.
  12820. (ID): New variable.
  12821. (getId): Made non-const.
  12822. * src/BtAllowedFastMessage.h
  12823. (ID_t): Removed.
  12824. (ID): New variable.
  12825. (getId): Made non-const.
  12826. * src/BtCancelMessage.h
  12827. (ID_t): Removed.
  12828. (ID): New variable.
  12829. (getId): Made non-const.
  12830. * src/BtNotInterestedMessage.h
  12831. (ID_t): Removed.
  12832. (ID): New variable.
  12833. (getId): Made non-const.
  12834. * src/BtChokeMessage.h
  12835. (ID_t): Removed.
  12836. (ID): New variable.
  12837. (getId): Made non-const.
  12838. * src/BtRejectMessage.h
  12839. (ID_t): Removed.
  12840. (ID): New variable.
  12841. (getId): Made non-const.
  12842. * src/BtBitfieldMessage.h
  12843. (ID_t): Removed.
  12844. (ID): New variable.
  12845. (getId): Made non-const.
  12846. * src/BtUnchokeMessage.h
  12847. (ID_t): Removed.
  12848. (ID): New variable.
  12849. (getId): Made non-const.
  12850. * src/BtRequestMessage.h
  12851. (ID_t): Removed.
  12852. (ID): New variable.
  12853. (getId): Made non-const.
  12854. * src/BtHaveMessage.h
  12855. (ID_t): Removed.
  12856. (ID): New variable.
  12857. (getId): Made non-const.
  12858. To add --force-truncate command-line option and a check whether
  12859. the file already exists:
  12860. * src/DirectDiskAdaptor.h
  12861. (getFilePath): Made virtual public.
  12862. * src/MultiDiskAdaptor.h
  12863. (File.h): New include.
  12864. (DiskWriterEntry::fileEntry): Made private.
  12865. (DiskWriterEntry::fileExists): New function.
  12866. (DiskWriterEntry::getFileEntry): New function.
  12867. (fileExists): New function.
  12868. (getFilePath): New function.
  12869. * src/TorrentRequestInfo.cc
  12870. (FatalException.h): New include.
  12871. (message.h): New include.
  12872. (RecoverableException.h): New include.
  12873. (execute): Added a check whether file is already exists or not.
  12874. * src/DiskAdaptor.h
  12875. (fileExists): New function.
  12876. (getFilePath): New function.
  12877. * src/main.cc
  12878. (showUsage): Added an explanation of --force-truncate command-line
  12879. option.
  12880. (main): Added --force-truncate command-line option.
  12881. * src/Exception.h
  12882. (setMsg): buf[256] -> buf[1024]
  12883. * src/CopyDiskWriter.h
  12884. (getFilePath): Made public virtual.
  12885. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12886. (fileExists): New function.
  12887. * src/DownloadEngineFactory.cc
  12888. (newTorrentConsoleEngine): Don't open file here.
  12889. * src/message.h
  12890. (EX_FILE_ALREADY_EXISTS): New definition.
  12891. * src/prefs.h
  12892. (PREF_FOECE_TRUNCATE): New definition.
  12893. * src/HttpResponseCommand.cc
  12894. (handleDefaultEncoding): Added a check whether the file already exists.
  12895. * src/SegmentMan.h
  12896. (fileExists): New function.
  12897. (shouldCancelDownloadForSafety): New function.
  12898. * src/FtpNegotiateCommand.cc
  12899. (recvSize): Added a check whether the file already exists.
  12900. * src/AbstractSingleDiskAdaptor.cc
  12901. (File.h): New include.
  12902. (fileExists): New function.
  12903. * src/AbstractSingleDiskAdaptor.h
  12904. (getFilePath): Removed.
  12905. (fileExists): New function.
  12906. * src/SegmentMan.cc
  12907. (fileExists): New function.
  12908. (shouldCancelDownloadForSafety): New function.
  12909. To fix regression bug in torrent downloading:
  12910. * src/DefaultBtRequestFactory.cc
  12911. (doChokedAction): New function.
  12912. * src/DefaultBtRequestFactory.h
  12913. (doChokedAction): New function.
  12914. * src/DefaultBtMessageDispatcher.cc
  12915. (doChokedAction): Do not delete request if its target is in allowed
  12916. fast set.
  12917. * src/DefaultBtInteractive.cc
  12918. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12919. (sendKeepAlive): Send keep alive message even if the outgoing message
  12920. queue is not empty.
  12921. (decideInterest): Simplified the code.
  12922. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12923. it is already called when BtChokeMessage is received from a peer.
  12924. * src/BtRequestFactory.h
  12925. (doChokedAction): New function.
  12926. To clean up code:
  12927. * src/PeerInteractionCommand.h
  12928. (executeInternal): Added virtual keyword explicitly.
  12929. (prepareForRetry): Added virtual keyword explicitly.
  12930. (prepareForNextPeer): Added virtual keyword explicitly.
  12931. (onAbort): Added virtual keyword explicitly.
  12932. * src/RequestSlot.cc
  12933. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12934. * src/BtPieceMessage.cc
  12935. (doReceivedAction): Added a debug log of piece's bitfield.
  12936. * src/Piece.h
  12937. (getBitfieldLength): New function.
  12938. * src/ByteArrayDiskWriter.cc
  12939. (clear): Added buf = 0 to avoid double free corruption.
  12940. * src/FileAllocator.cc
  12941. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12942. Added cp.reset().
  12943. * src/BitfieldMan.h
  12944. (operator=): Rewritten.
  12945. * src/BitfieldMan.cc
  12946. (BitfieldMan): Initialized bitfield, useBitfield.
  12947. * src/PeerConnection.cc
  12948. (receiveMessage): Added a call to socket->readable() after getting
  12949. message length to avoid possible EOF.
  12950. * src/Util.cc
  12951. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12952. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. To add an ability to pre-allocate file space:
  12954. * src/DirectDiskAdaptor.h: Rewritten.
  12955. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12956. * src/MultiDiskAdaptor.h: Rewritten.
  12957. * src/DefaultPieceStorage.cc
  12958. (MultiDiskWriter.h): Removed include.
  12959. (PreAllocationDiskWriter.h): Removed include.
  12960. (FileAllocationMonitor.h): New include.
  12961. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12962. (initStorage): Rewritten.
  12963. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12964. * src/FileAllocator.h: New class.
  12965. * src/FileAllocator.cc: New class.
  12966. * src/FileAllocationMonitor.h: New class.
  12967. * src/FileAllocationMonitor.cc: New class.
  12968. * src/ConsoleFileAllocationMonitor.h: New class.
  12969. * src/ConsoleFileAllocationMonitor.cc: New class.
  12970. * src/AbstractSingleDiskAdaptor.h: New class.
  12971. * src/AbstractSingleDiskAdaptor.cc: New class.
  12972. * src/DiskAdaptor.h
  12973. (Directory.h): Removed include.
  12974. (DiskWriter.h): Removed include.
  12975. (FileEntry.h): Removed include.
  12976. (diskWriter): Removed.
  12977. (DiskAdaptor): Removed diskWriter.
  12978. (openFile): Made pure virtual.
  12979. (closeFile): Made pure virtual.
  12980. (openExistingFile): Made pure virtual.
  12981. (initAndOpenFile): Made pure virtual.
  12982. (writeData): Made pure virtual.
  12983. (readData): Made pure virtual.
  12984. (sha1Sum): Made pure virtual.
  12985. (getStoreDir): Returns const reference of storeDir.
  12986. (DiskAdaptorHandle): New type definition.
  12987. * src/main.cc
  12988. (ConsoleFileAllocationMonitor.h): New include.
  12989. (showUsage): Added default value description of -s option.
  12990. Added the description of --file-allocation option.
  12991. (main): Set default value of --file-allocation option to 'none'.
  12992. Added --file-allocation command-line option.
  12993. Setup FileAllocationMonitorFactory.
  12994. * src/FtpInitiateConnectionCommand.cc
  12995. (executeInternal): Removed diskWriter related processing, which was
  12996. moved to FtpNegotiationCommand.cc.
  12997. * src/DirectDiskAdaptor.cc
  12998. (getFilePath): Made non-const.
  12999. * src/CopyDiskAdaptor.h
  13000. (DiskAdaptor.h): Removed include.
  13001. (DiskWriter.h): Removed include.
  13002. (AbstractSingleDiskAdaptor.h): New include.
  13003. (getFilePath): Made non-const. Added virtual keyword.
  13004. (CopyDiskAdaptor): Removed diskWriter.
  13005. (getTempFile): Returns const reference.
  13006. (CopyDiskAdaptorHandle): New type definition.
  13007. * src/ByteArrayDiskWriter.cc
  13008. (clear): Simplified.
  13009. (initAndOpenFile): Rewritten.
  13010. (openFile): Call initAndOpenFile()
  13011. * src/MultiDiskAdaptor.cc: Rewritten.
  13012. * src/DownloadEngineFactory.cc
  13013. (FileAllocator.h): New include.
  13014. (FileAllocationMonitor.h): New include.
  13015. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13016. create DefaultDiskWriter with file allocator.
  13017. * src/DiskWriter.h
  13018. (initAndOpenFile): Added totalLength argument.
  13019. (openFile): Added totalLength argument.
  13020. * src/prefs.h
  13021. (PREF_FILE_ALLOCATION): New definition.
  13022. (V_PREALLOC): New definition.
  13023. (V_NONE): New definition.
  13024. * src/HttpResponseCommand.cc
  13025. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13026. size.
  13027. * src/FtpNegotiateCommand.cc
  13028. (Util.h): New include.
  13029. (recvSize): Open file here.
  13030. * src/Util.h
  13031. (ullitos): New function.
  13032. * src/CopyDiskWriter.h
  13033. (getFilePath): Made non-const.
  13034. * src/DefaultDiskWriter.h
  13035. (Option.h): New include.
  13036. (totalLength): Removed.
  13037. (DefaultDiskWriter): Removed totalLength.
  13038. (initAndOpenFile): Added totalLength argument.
  13039. (DefaultDiskWriterHandle): New type definition.
  13040. (createNewDiskWriter): New function.
  13041. * src/Util.cc
  13042. (ullitos): New function.
  13043. * src/DefaultDiskWriter.cc
  13044. (message.h): New include.
  13045. (FileAllocator.h): New include.
  13046. (prefs.h): New include.
  13047. (Util.h): New include.
  13048. (DefaultDiskWriter): Removed totalLength.
  13049. (initAndOpenFile): Added file allocation.
  13050. (createNewDiskWriter): New function. Just for temporary solution.
  13051. It will be rewritten later.
  13052. * src/DiskAdaptor.cc
  13053. (DiskAdaptor): Removed diskWriter.
  13054. * src/AbstractDiskWriter.cc
  13055. (LogFactory.h): New include.
  13056. (AbstractDiskWriter): Added fileAllocator, logger.
  13057. (openFile): Added totalLength argument.
  13058. * src/AbstractDiskWriter.h
  13059. (FileAllocator.h): New include.
  13060. (Logger.h): New include.
  13061. (fileAllocator): New variable.
  13062. (logger): New variable.
  13063. (openFile): Added totalLength argument. Added virtual keyword
  13064. explicitly.
  13065. (openExistingFile): Added totalLength argument. Added virtual keyword
  13066. explicitly.
  13067. (closeFile): Added virtual keyword explicitly.
  13068. (sha1Sum): Added virtual keyword explicitly.
  13069. (writeData): Added virtual keyword explicitly.
  13070. (readData): Added virtual keyword explicitly.
  13071. (setFileAllocator): New function.
  13072. * src/DefaultPieceStorage.h
  13073. (FileAllocator.h): New include.
  13074. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13075. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13076. * src/FileProgressMonitor.h: New class.
  13077. To compile aria2 on PC-BSD:
  13078. * src/DefaultBtContext.cc
  13079. (libgen.h): New include.
  13080. To fix memory leak:
  13081. * src/Exception.h
  13082. (~Exception): Delete cause. Fixed memory leak.
  13083. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. Rewritten a portion of bittorrent implementation:
  13085. * src/BtMessageValidator.h: New class.
  13086. * src/BtBitfieldMessageValidator.h: New class.
  13087. * src/BtHandshakeMessageValidator.h: New class.
  13088. * src/BtRequestMessageValidator.h: New class.
  13089. * src/BtSuggestPieceMessageValidator.h: New class.
  13090. * src/BtAllowedFastMessageValidator.h: New class.
  13091. * src/BtRejectMessageValidator.h: New class.
  13092. * src/BtCancelMessageValidator.h: New class.
  13093. * src/BtPieceMessageValidator.h: New class.
  13094. * src/BtHaveMessageValidator.h: New class.
  13095. * src/BtEventListener.h: New class.
  13096. * src/AbstractBtEventListener.h: New class.
  13097. * src/BtEvent.h: New class.
  13098. * src/BtChokingEvent.h: New class.
  13099. * src/BtChokedEvent.h: New class.
  13100. * src/BtCancelSendingPieceEvent.h: New class.
  13101. * src/BtAbortOutstandingRequestEvent.h: New class.
  13102. * src/Randomizer.h: New class.
  13103. * src/SimpleRandomizer.h: New class.
  13104. * src/BtMessage.h: New class.
  13105. * src/AbstractBtMessage.h: New class.
  13106. * src/SimpleBtMessage.h: New class.
  13107. * src/BtHaveMessage.h: New class.
  13108. * src/BtInterestedMessage.h: New class.
  13109. * src/BtAllowedFastMessage.h: New class.
  13110. * src/BtUnchokeMessage.h: New class.
  13111. * src/BtCancelMessage.h: New class.
  13112. * src/BtNotInterestedMessage.h: New class.
  13113. * src/BtChokeMessage.h: New class.
  13114. * src/BtHaveNoneMessage.h: New class.
  13115. * src/BtHandshakeMessage.h: New class.
  13116. * src/BtSuggestPieceMessage.h: New class.
  13117. * src/BtHaveMessage.h: New class.
  13118. * src/BtPieceMessage.h: New class.
  13119. * src/BtHaveAllMessage.h: New class.
  13120. * src/BtKeepAliveMessage.h: New class.
  13121. * src/BtPortMessage.h: New class.
  13122. * src/BtRejectMessage.h: New class.
  13123. * src/BtBitfieldMessage.h: New class.
  13124. * src/BtRequestMessage.h: New class.
  13125. * src/DefaultBtRequestFactory.h: New class.
  13126. * src/DefaultBtMessageReceiver.h: New class.
  13127. * src/BtInteractive.h: New class.
  13128. * src/BtMessageDispatcher.h: New class.
  13129. * src/DefaultBtMessageDispatcher.h: New class.
  13130. * src/DefaultBtInteractive.h: New class.
  13131. * src/BitfieldManFactory.h: New class.
  13132. * src/HandleRegistry.h: New class.
  13133. * src/BtMessageFactory.h: New class.
  13134. * src/BtMessageReceiver.h: New class.
  13135. * src/DefaultBtMessageFactory.h: New class.
  13136. * src/PeerObject.h: New class.
  13137. * src/BtRequestFactory.h: New class.
  13138. * src/SuggestPieceMessage.h: Removed.
  13139. * src/PortMessage.h: Removed.
  13140. * src/SuggestPieceMessage.h: Removed.
  13141. * src/KeepAliveMessage.h: Removed.
  13142. * src/HandshakeMessage.h: Removed.
  13143. * src/PeerInteraction.h: Removed.
  13144. * src/UnchokeMessage.h: Removed.
  13145. * src/PieceMessage.h: Removed.
  13146. * src/RequestMessage.h: Removed.
  13147. * src/InterestedMessage.h: Removed.
  13148. * src/HaveMessage.h: Removed.
  13149. * src/CancelMessage.h: Removed.
  13150. * src/RejectMessage.h: Removed.
  13151. * src/AllowedFastMessage.h: Removed.
  13152. * src/HaveNoneMessage.h: Removed.
  13153. * src/SimplePeerMessage.h: Removed.
  13154. * src/HaveAllMessage.h: Removed.
  13155. * src/BitfieldMessage.h: Removed.
  13156. * src/PeerMessageFactory.h: Removed.
  13157. * src/NotInterestedMessage.h: Removed.
  13158. * src/ChokeMessage.h: Removed.
  13159. * src/PeerMessage.h: Removed.
  13160. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13161. To know root cause of exception:
  13162. * src/Exception.h
  13163. (cause): New variable.
  13164. (Exception): Added a parameter.
  13165. (getMsg): Return const reference to msg.
  13166. (getCause): New function.
  13167. * src/DlRetryEx.h
  13168. (DlRetryEx): Added a parameter 'cause'.
  13169. Added an overloaded constructor.
  13170. (DlAbortEx): Added a parameter 'cause'.
  13171. Added an overloaded constructor.
  13172. * src/SimpleLogger.cc
  13173. (writeLog): Log nested exception messages recursively.
  13174. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13175. * src/DefaultBtProgressInfoFile.cc
  13176. (load): Fixed memory leak when the infohash doesn't match.
  13177. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13178. * src/DefaultPeerStorage.cc
  13179. (calculateStat): Simplified the code by combining 2 loops into 1.
  13180. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13181. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13182. for BitTorrent download:
  13183. * src/PeerAbstractCommand.cc
  13184. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13185. * src/main.cc:
  13186. (timeoutSpecified): Removed.
  13187. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13188. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13189. * src/TorrentRequestInfo.cc
  13190. (timeoutSpecified): Removed.
  13191. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13192. timeout value.
  13193. * src/prefs.h
  13194. (PREF_BT_TIMEOUT): New definition.
  13195. Delete unused variables:
  13196. * src/TorrentRequestInfo.cc
  13197. (requestInfo): Removed.
  13198. Move setSignalHander to Util::setGlobalSignalHandler:
  13199. * src/TorrentRequestInfo.cc:
  13200. setSignalHander -> Util::setGlobalSignalHandler
  13201. * src/main.cc
  13202. (setSignalHander): Removed.
  13203. (main): setSignalHander -> Util::setGlobalSignalHandler
  13204. * src/Util.h
  13205. (setGlobalSignalHandler): New function.
  13206. * src/Util.cc
  13207. (setGlobalSignalHandler): New function.
  13208. * src/UrlRequestInfo.cc:
  13209. setSignalHander -> Util::setGlobalSignalHandler
  13210. Reset peer status in order to exit gracefully:
  13211. * src/PeerAbstractCommand.cc
  13212. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13213. To fix the bug that causes the number of bytes uploaded is not saved
  13214. to .aria2 file:
  13215. * src/DefaultPeerStorage.h
  13216. (removedPeerSessionDownloadLength): New variable.
  13217. (removedPeerSessionUploadLength): New variable.
  13218. * src/DefaultPeerStorage.cc
  13219. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13220. removedPeerSessionUploadLength(0).
  13221. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13222. through all peers, and then add removedPeerSessionDownloadLength(
  13223. removedPeerSessionUploadLength) to it.
  13224. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13225. (to) the peer to removedPeerSessionDownloadLength
  13226. (removedPeerSessionUploadLength).
  13227. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13228. To add Metalink location option:
  13229. * src/MetalinkRequestInfo.cc
  13230. (execute): Call MetalinkEntry::setLocationPreference()
  13231. * src/main.cc
  13232. (showUsage): Added the help message for --metalink-location option.
  13233. (main): Added --metalink-location option.
  13234. * src/prefs.h
  13235. (PREF_METALINK_LOCATION): New definition.
  13236. * src/MetalinkEntry.cc
  13237. (AddLocationPreference): New function object.
  13238. (setLocationPreference): New function.
  13239. * src/Xml2MetalinkProcessor.cc
  13240. (getResource): Set location attribute to MetalinkResource
  13241. To show URLs to download
  13242. * src/UrlRequestInfo.h
  13243. (printUrls): New function.
  13244. To add multiple <file> Metalink support:
  13245. * src/MetalinkEntry.h
  13246. (MetalinkResources): Removed.
  13247. (setLocationPreference): New function.
  13248. (MetalinkEntryHandle): New type definition.
  13249. (MetalinkEntries): New type definition.
  13250. * src/Xml2MetalinkProcessor.h
  13251. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13252. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13253. (parseFile): Metalinker* -> MetalinkerHandle
  13254. * src/UrlRequestInfo.h
  13255. (execute): RequestInfo* -> RequestInfos
  13256. * src/MetalinkRequestInfo.cc
  13257. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13258. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13259. (execute): RequestInfo* -> RequestInfos
  13260. Added multiple <file> support. Print filename when it is queued.
  13261. * src/MetalinkRequestInfo.h
  13262. (execute): RequestInfo* -> RequestInfos
  13263. (getDownloadEngine): Removed.
  13264. * src/RequestInfo.h
  13265. (RequestInfoHandle): New type definition.
  13266. (RequestInfos): New type definition.
  13267. (execute): RequestInfo* -> RequestInfos
  13268. (getDownloadEngine): Removed.
  13269. * src/MetalinkResource.h
  13270. (MetalinkResourceHandle): New type definition.
  13271. (MetalinkResources): New type definition.
  13272. * src/MetalinkEntry.cc
  13273. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13274. because the element is now of type MetalinkResourceHandle.
  13275. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13276. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13277. (dropUnsupportedResource): Removed the deletion of the elements of
  13278. resources because the element is now of type MetalinkResourceHandle.
  13279. * src/Xml2MetalinkProcessor.cc
  13280. (parseFile): Metalinker* -> MetalinkerHandle
  13281. MetalinkEntry* -> MetalinkEntryHandle
  13282. Removed try-catch block.
  13283. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13284. MetalinkResource* -> MetalinkResourceHandle
  13285. Removed try-catch block.
  13286. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13287. Free result by using xmlXPathFreeObject()
  13288. * src/Metalinker.cc
  13289. (~Metalinker): Removed the deletion of entries.
  13290. MetalinkEntry* -> MetalinkEntryHandle
  13291. (queryEntry): Add multiple <file> Metalink support.
  13292. * src/Metalinker.h
  13293. (MetalinkEntries): Removed.
  13294. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13295. * src/MetalinkProcessor.h
  13296. (parseFile): Metalinker* -> MetalinkerHandle
  13297. Bug fixes:
  13298. * src/PeerChokeCommand.cc
  13299. (execute): cat01->cat02
  13300. * src/DefaultPieceStorage.cc
  13301. (DefaultPieceStorage): Added diskAdaptor(0)
  13302. * src/TrackerWatcherComand.cc:
  13303. (execute): Use btAnnounce->noMoreAnnounce()
  13304. to determin whether the function returns true or not.
  13305. * src/TrackerUpdateCommand.cc:
  13306. (execute): Use btAnnounce->noMoreAnnounce()
  13307. to determin whether the function returns true or not.
  13308. * src/FtpConnection.cc
  13309. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13310. This is the fix of the busy loop bug.
  13311. * src/DownloadCommand.cc
  13312. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13313. cached PeerStat.
  13314. The value of "name" entry in torrent file is now set by
  13315. *DiskAdaptor::setTopDir(...) methods.
  13316. * src/MultiDiskAdaptor.h
  13317. (topDir): New variable.
  13318. (setTopDir): New function.
  13319. (getTopDir): New function.
  13320. * src/MultiDiskAdaptor.cc
  13321. (getFilePath): Concat storDir, "/" and topDir.
  13322. (mkdir): Use getFilePath() to get the directory path for output.
  13323. * src/DefaultPieceStorage.cc
  13324. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13325. CopyDiskAdaptor.
  13326. * src/CopyDiskAdaptor.h
  13327. (topDir): New variable.
  13328. (setTopDir): New function.
  13329. (getTopDir): New function.
  13330. * src/CopyDiskAdaptor.cc
  13331. (fixFilename): Updated.
  13332. Misc
  13333. * src/UrlRequestInfo.h
  13334. (e): Removed.
  13335. (UrlRequestInfo): Removed e.
  13336. (getDownloadEngine): Removed.
  13337. * src/UrlRequestInfo.cc
  13338. (handler): Rewritten.
  13339. (printUrls): New function.
  13340. (execute): Call printUrls().
  13341. * src/HandshakeMessage.cc
  13342. (check): peerinteraction->getBtContext() -> btContext
  13343. * src/PeerInteraction.h
  13344. (getBtContext): Removed.
  13345. * src/TorrentRequestInfo.h
  13346. (execute): RequestInfo* -> RequestInfos
  13347. (getDownloadEngine): Removed.
  13348. * src/TorrentRequestInfo.cc
  13349. (haltRequested): Removed.
  13350. (btHaltRequested): New variable.
  13351. (torrentHandler): haltRequested -> btHaltRequested
  13352. (execute): RequestInfo* -> RequestInfos
  13353. * src/TorrentConsoleDownloadEngine.cc
  13354. (afterEachIteration): haltRequested -> btHaltRequested.
  13355. * src/ConsoleDownloadEngine.h
  13356. (initStatistics): Added virtual.
  13357. (calculateStatistics): Added virtual.
  13358. (onEndOfRun): Added virtual.
  13359. (afterEachIteration): Added virtual.
  13360. * src/ConsoleDownloadEngine.cc
  13361. (haltRequested): New variable.
  13362. (afterEachIteration): New function.
  13363. * src/main.cc
  13364. (requestInfo): Removed.
  13365. * src/SegmentMan.cc
  13366. (findSlowerSegmentEntry): Refactored.
  13367. * Release 0.9.0
  13368. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13369. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13370. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13371. * src/TorrentMan.h: Removed.
  13372. * src/TorrentMan.cc: Removed.
  13373. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13374. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13375. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13376. * src/PeerAbstractCommand.cc: Use btRuntime.
  13377. * src/BtContextAwareCommand.h: New class.
  13378. * src/FileEntry.h: Added accessor methods for following variables.
  13379. (path): Made private.
  13380. (length): Made private.
  13381. (offset): Made private.
  13382. (extracted): Made private.
  13383. (requested): Made private.
  13384. (FileEntries): New definition.
  13385. (FileEntryHandle): New definition.
  13386. * src/FileEntry.cc: New file.
  13387. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13388. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13389. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13390. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13391. * src/PieceStorage.h: New file.
  13392. * src/PeerInteractionCommand.h: Use btContext.
  13393. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13394. btRuntime.
  13395. * src/DefaultBtProgressInfoFile.h: New file.
  13396. * src/DefaultBtProgressInfoFile.cc: New file.
  13397. * src/File.cc
  13398. (Util.h): New include.
  13399. (mkdirs): New function.
  13400. * src/MultiDiskAdaptor.h
  13401. (mkdir): New function.
  13402. * src/PeerListProcessor.h
  13403. (Peers): Removed.
  13404. * src/PeerInteraction.h
  13405. (torrentMan): Removed.
  13406. (btContext): New variable.
  13407. (peerStorage): New variable.
  13408. (pieceStorage): New variable.
  13409. (btAnnounce): New variable.
  13410. (getTorrentMan): Removed.
  13411. (getBtContext): New function.
  13412. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13413. btAnnounce.
  13414. * src/HandshakeMessage.h
  13415. (TorrentMan.h): Removed.
  13416. * src/HandshakeMessage.cc: Use btContext.
  13417. * src/DefaultBtAnnounce.cc: New file.
  13418. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13419. * src/DefaultPieceStorage.cc: New file.
  13420. * src/DefaultBtContext.h: New file.
  13421. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13422. Use the accessor methods of FileEntry.
  13423. * src/CookieBox.cc: Updated to use Util::slice().
  13424. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13425. * src/common.h (SharedHandle.h): New include.
  13426. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13427. pieceStorage.
  13428. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13429. * src/DiskAdaptor.h
  13430. (topDir): Removed.
  13431. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13432. (setTopDir): Removed.
  13433. (getTopDir): Removed.
  13434. * src/BtContext.h: New file.
  13435. * src/DefaultPeerStorage.h: New file.
  13436. * src/PieceMessage.h (TorrentMan.h): Removed.
  13437. * src/RequestMessage.h (TorrentMan.h): Removed.
  13438. * src/TorrentDownloadEngine.h
  13439. (uploadLength): New variable.
  13440. (btContext): New variable.
  13441. (btRuntime): New variable.
  13442. (pieceStorage): New variable.
  13443. (peerStorage): New variable.
  13444. (btAnnounce): New variable.
  13445. (btProgressInfoFile): New variable.
  13446. (torrentMan): Removed.
  13447. (setBtContext): New function.
  13448. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13449. peerStorage, btAnnounce, btProgressInfoFile.
  13450. * src/Piece.h
  13451. (toString): New function.
  13452. (Pieces): New type definition.
  13453. * src/Peer.h
  13454. (active): New variable.
  13455. (Peer): Added active.
  13456. (activate): Set active to true.
  13457. (deactivate): Set active to false.
  13458. (isActive): New function.
  13459. (Peers): New type definition.
  13460. * src/DirectDiskAdaptor.cc
  13461. (getFilePath): Use the accessor methods of FileEntry.
  13462. * src/TorrentConsoleDownloadEngine.h
  13463. (afterEachIteration): New function.
  13464. * src/TorrentConsoleDownloadEngine.cc
  13465. (haltRequested): New variable.
  13466. (sendStatistics): Use pieceStorage, btRuntime.
  13467. (afterEachIteration): New function.
  13468. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13469. * src/Directry.h
  13470. (Directory): New function.
  13471. (DirectoryHandle): New type definition.
  13472. * src/BtProgressInfoFile.h: New file.
  13473. * src/RequestMessage.cc: Use pieceStorage.
  13474. * src/BtRuntime.h: New file.
  13475. * src/DefaultBtContext.cc: New file.
  13476. * src/BitfieldMan.h
  13477. (getCompletedLength): New function(private).
  13478. (getCompletedLength): New function.
  13479. (getFilteredCompletedLength): New function.
  13480. * src/BitfieldMan.h
  13481. (getCompletedLength): New function(private).
  13482. (getCompletedLength): New function.
  13483. (getFilteredCompletedLength): New function.
  13484. * src/MultiDiskAdaptor.cc
  13485. (mkdir): New function.
  13486. (openFile): Call mkdir().
  13487. (initAndOpenFile): Call mkdir().
  13488. * src/CancelMessage.h
  13489. (TorrentMan.h): Removed.
  13490. * src/RejectMessage.h
  13491. (TorrentMan.h): Removed.
  13492. * src/DownloadEngineFactory.cc
  13493. (DefaultPieceStorage.h): New include.
  13494. (DefaultPeerStorage.h): New include.
  13495. (DefaultBtAnnounce.h): New include.
  13496. (DefaultBtProgressInfoFile.h): New include.
  13497. (newTorrentConsoleEngine): Rewritten.
  13498. * src/ShareRatioSeedCriteria.h
  13499. (torrentMan): Removed.
  13500. (btContext): New variable.
  13501. (peerStorage): New variable.
  13502. (btRuntime): New variable.
  13503. (evaluate): Use btContext, btRuntime, peerStorage.
  13504. * src/AnnounceTier.h: New file.
  13505. * src/BtAnnounce.h: New file.
  13506. * src/BtRegistry.h: New file.
  13507. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13508. * src/PeerConnection.h (TorrentMan.h): Removed.
  13509. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13510. * src/Util.h
  13511. (slice): Added an argument.
  13512. * src/Util.cc
  13513. (slice): Added an argument to control whether trim is made or not.
  13514. * src/PeerStorage.h: New file.
  13515. * src/BtRegistry.cc: New file.
  13516. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13517. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13518. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13519. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13520. * src/TorrentRequestInfo.h
  13521. (e): Removed.
  13522. (showFileEntry): Added an argument.
  13523. (getDownloadEngine): Return 0.
  13524. * src/DefaultBtAnnounce.h: New file.
  13525. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13526. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13527. * src/PeerMessageFactory.h
  13528. (btContext): New variable.
  13529. (pieceStorage): New variable.
  13530. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13531. btAnnounce.
  13532. * src/DiskAdaptor.cc
  13533. (DiskAdaptor): Removed topDir.
  13534. (~DiskAdaptor): Removed topDir.
  13535. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13536. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13537. * src/File.h (mkdirs): New function.
  13538. * src/DefaultPeerStorage): New file.
  13539. * src/DownloadEngineFactory.h
  13540. (newTorrentConsoleEngine): Use btContext.
  13541. * src/BtContextAwareCommand.cc: New file.
  13542. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13543. * src/PeerMessage.h
  13544. (btContext): New variable.
  13545. (peerStorage): New variable.
  13546. (pieceStorage): New variable.
  13547. (setBtContext): New function.
  13548. * src/Directry.cc
  13549. (Directory): New function.
  13550. (createDir): Do nothing if name.size() == 0.
  13551. * src/AnnounceList.h
  13552. (AnnounceTier): Removed.
  13553. (AnnounceTiers): Removed.
  13554. * src/DefaultPieceStorage.h: New file.
  13555. * src/Piece.cc (toString): New function.
  13556. To fix typo:
  13557. * src/main.cc (showVersion): Fixed typo.
  13558. To fix compile warning:
  13559. * src/DelegatingPeerListProcessor.cc
  13560. (canHandle): Added "return false".
  13561. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13562. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13563. make the process of announce request testable.
  13564. * src/TrackerWatcherCommand.h
  13565. (TimeA2.h): Removed.
  13566. (interval): Removed.
  13567. (checkPoint): Removed.
  13568. (createRequestCommand): Added an argument 'url'.
  13569. (TrackerWatherCommand): Removed interval.
  13570. (createCommand): New function.
  13571. * src/DownloadEngineFactory.cc
  13572. (newTorrentConsoleEngine): Updated according to the changes in
  13573. TrackerWatherCommand.
  13574. * src/TorrentMan.cc
  13575. (DelegatingPeerListProcessor.h): New includes.
  13576. (TorrentMan): Added the initialization of announceInterval.
  13577. (isStoppedAnnounceReady): New function.
  13578. (isCompletedAnnounceReady): New function.
  13579. (isDefaultAnnounceReady): New function.
  13580. (isAnnounceReady): New function.
  13581. (getAnnounceUrl): New function.
  13582. (announceStart): New function.
  13583. (announceFailure): New function.
  13584. (announceSuccess): New function.
  13585. (isAllAnnounceFailed): New function.
  13586. (resetAnnounce): New function.
  13587. (processAnnounceResponse): New function.
  13588. (needMorePeerConnection): New function.
  13589. (noMoreAnnounce): New function.
  13590. * src/TrackerUpdateCommand.h
  13591. (getTrackerResponse): int->size_t
  13592. * src/TorrentMan.h
  13593. (isStoppedAnnounceReady): New function.
  13594. (isCompletedAnnounceReady): New function.
  13595. (isDefaultAnnounceReady): New function.
  13596. (announceInterval): New variable.
  13597. (isAnnounceReady): New function.
  13598. (getAnnounceUrl): New function.
  13599. (announceStart): New function.
  13600. (announceFailure): New function.
  13601. (announceSuccess): New function.
  13602. (isAllAnnounceFailed): New function.
  13603. (resetAnnounce): New function.
  13604. (processAnnounceResponse): New function.
  13605. (needMorePeerConnection): New function.
  13606. (noMoreAnnounce): New function.
  13607. * src/TrackerWatcherCommand.cc
  13608. (TrackerWatherCommand): Removed interval and checkPoint.
  13609. (execute): Rewritten.
  13610. (createCommand): New function.
  13611. (createRequestCommand): Rewritten.
  13612. * src/TrackerUpdateCommand.cc
  13613. (MetaFileUtil.h): Removed.
  13614. (DelegatingPeerListProcessor.h): Removed.
  13615. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13616. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13617. Request -> RequestHandle:
  13618. * src/HttpResponseCommand.h: Request->RequestHandle
  13619. * src/AbstractCommand.cc: Request->RequestHandle
  13620. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13621. * src/HttpRequestCommand.cc: Request->RequestHandle
  13622. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13623. * src/AbstractCommand.h: Request->RequestHandle
  13624. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13625. * src/HttpResponseCommand.cc: Request->RequestHandle
  13626. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13627. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13628. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13629. * src/HttpConnection.h: Request->RequestHandle
  13630. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13631. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13632. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13633. * src/DownloadCommand.h: Request->RequestHandle
  13634. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13635. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13636. * src/HttpRequestCommand.h: Request->RequestHandle
  13637. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13638. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13639. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13640. * src/HttpDownloadCommand.h: Request->RequestHandle
  13641. * src/FtpConnection.cc: Request->RequestHandle
  13642. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13643. * src/UrlRequestInfo.cc: Request->RequestHandle
  13644. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13645. * src/HttpConnection.h: Request->RequestHandle
  13646. * src/DownloadCommand.cc: Request->RequestHandle
  13647. * src/FtpConnection.h: Request->RequestHandle
  13648. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13649. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13650. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13651. * src/Request.h
  13652. (SharedHandle.h): New include.
  13653. (RequestHandle): New type definition.
  13654. (Requests): Redefined.
  13655. To add MULTITRACKER support:
  13656. * src/TrackerWatcherCommand.h
  13657. (createRequestCommand): New function.
  13658. * src/DownloadEngineFactory.cc
  13659. (newTorrentConsoleEngine): Removed req.
  13660. * src/prefs.h
  13661. (PREF_TRACKER_MAX_TRIES): New definition.
  13662. * src/TorrentMan.cc
  13663. (TorrentMan): Removed req. Added trackerNumTry.
  13664. (~TorrentMan): Removed req.
  13665. (setupInternal1): Added announceList.
  13666. * src/TorrentRequestInfo.cc
  13667. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13668. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13669. * src/main.cc
  13670. (main): Added PREF_TRACKER_MAX_TRIES.
  13671. * src/TorrentMan.h
  13672. (Request.h): Removed.
  13673. (AnnounceList.h): New include.
  13674. (trackerNumTry): New variable.
  13675. (req): Removed.
  13676. (announceList): New variable.
  13677. * src/TrackerWatcherCommand.cc
  13678. (execute): Rewritten.
  13679. (createRequestCommand): New function.
  13680. * src/TrackerUpdateCommand.cc
  13681. (execute): Updated with the use of AnnounceList.
  13682. * src/AnnounceList.cc: New class.
  13683. * src/AnnounceList.h: New class.
  13684. To fix typo:
  13685. * src/prefs.h
  13686. (PREF_MAX_TRIES): max_try->max_tries
  13687. To not to decode "+" as space in URL decode:
  13688. * src/Util.cc
  13689. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13690. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13691. To add timeout to async name resolution:
  13692. * src/AbstractCommand.h
  13693. (nameResolveFinished): New function. This is not elegant way. It needs
  13694. to be more refined.
  13695. (nameResolverCheck): New variable.
  13696. * src/AbstractCommand.cc
  13697. (AbstractCommand): Added nameResolverCheck.
  13698. (execute): Added the check whether the name resolution has finished.
  13699. (setNameResolverCheck): Set nameResolverCheck to true.
  13700. (disableNameResolverCheck): Set nameResolverCheck to false.
  13701. (nameResolverFinished): New function.
  13702. * src/FtpInitiateConnectionCommand.h
  13703. (nameResolverFinished): New function.
  13704. * src/FtpInitiateConnectionCommand.cc
  13705. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13706. * src/HttpInitiateConnectionCommand.h
  13707. (nameResolverFinished): New function.
  13708. * src/HttpInitiateConnectionCommand.cc
  13709. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13710. * src/prefs.h
  13711. (PREF_DNS_TIMEOUT): New definition.
  13712. * src/main.cc
  13713. (main): Added PREF_DNS_TIMEOUT.
  13714. To add the support for a non-compact response from a tracker:
  13715. * src/PeerListProcessor.h: New class.
  13716. * src/DefaultPeerListProcessor.h: New class.
  13717. * src/DefaultPeerListProcessor.cc: New class.
  13718. * src/CompactPeerListProcessor.h: New class.
  13719. * src/CompactPeerListProcessor.cc: New class.
  13720. * src/DelegatingPeerListProcessor.h: New class.
  13721. * src/DelegatingPeerListProcessor.cc: New class.
  13722. * src/TorrentMan.cc
  13723. (addPeer): New function(overload).
  13724. (addPeer): Delete unused peers only when new peer is added.
  13725. * src/TorrentMan.h
  13726. (PeerListProcessor.h): Included.
  13727. (Peers): Removed.
  13728. (addPeer): New function(overload).
  13729. * src/TrackerUpdateCommand.cc
  13730. (netinet/in.h): Removed.
  13731. (DelegatingPeerListProcessor.h): Included.
  13732. (execute): Updated to use DelegatingPeerListProcessor.
  13733. To fix the memory leak in TorrentMan::peers:
  13734. * src/PeerAbstractCommand.cc
  13735. (onAbort): Added peer->resetStatus().
  13736. * src/Peer.h
  13737. (resetStatus): Made public.
  13738. To improve the precision of the speed calculation:
  13739. * src/SpeedCalc.h
  13740. (nextInterval): New variable.
  13741. * src/SpeedCalc.cc
  13742. (reset): Added nextInterval.
  13743. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13744. (changeSw): Set nextInterval to 15 seconds relative to the current
  13745. instant time.
  13746. * src/main.cc
  13747. (showVersion): Updated.
  13748. (showUsage): Updated.
  13749. * Release 0.8.1
  13750. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13751. * src/main.cc
  13752. (showUsage): Commented out --min-segment-size option.
  13753. (main): Commented out --min-segment-size option.
  13754. * Release 0.8.0
  13755. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13756. * src/*.{h,cc}:
  13757. Added an exception to the license which allows linking with OpenSSL.
  13758. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13759. * src/AbstractCommand.cc
  13760. (execute): Check whether the download has finished before checking
  13761. socket status.
  13762. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13763. Do not exit even if no segment is available.
  13764. * src/prefs.h
  13765. (PREF_STARTUP_IDLE_TIME): New definition.
  13766. * src/PeerInteractionCommand.cc
  13767. (executeInternal): Removed max speed limit. Because it performs bad.
  13768. (receiveMessages): Added max speed limit. This was better than above,
  13769. but still a little bit to be desired. Sometimes the download speed
  13770. became much faster than I specified.
  13771. * src/SpeedCalc.h
  13772. (start): New variable.
  13773. (accumulatedLength): New variable.
  13774. (getAvgSpeed): New function.
  13775. * src/SpeedCalc.cc
  13776. (reset): Added start, accumulatedLength.
  13777. (update): Added calculation of an average speed.
  13778. (getAvgSpeed): New function.
  13779. * src/DownloadCommand.h
  13780. (sw): Removed.
  13781. * src/main.cc
  13782. (main): Added PREF_STARTUP_IDLE_TIME.
  13783. * src/PeerStat.h
  13784. (STATUS): Added REQUEST_IDLE.
  13785. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13786. (getAvgDownloadSpeed): New function
  13787. (requestIdle): New function.
  13788. * src/SegmentMan.h
  13789. (SegmentEntryHandle): New type definition.
  13790. (SegmentEntries): Now holds SegmentEntryHandle.
  13791. (findSlowerSegmentEntry): New funtion.
  13792. * src/SegmentMan.cc
  13793. (save): Updated according to the changes in SegmentEntries.
  13794. (read): Updated according to the changes in SegmentEntries.
  13795. (FindSegmentEntryByIndex): Updated according to the changes in
  13796. SegmentEntries.
  13797. (FindSegmentEntryByCuid): Updated according to the changes in
  13798. SegmentEntries.
  13799. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13800. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13801. Renamed uitr as itr.
  13802. (findSlowerSegmentEntry): New function.
  13803. (getSegment): Updated according to the changes in SegmentEntries.
  13804. Added the feature that cancels the segment with slow server and fast
  13805. one takes it over.
  13806. (cancelSegment): Updated according to the changes in SegmentEntries.
  13807. (getDownloadLength): Updated according to the changes in
  13808. SegmentEntries.
  13809. (init): Assigned 0 to bitfield after deleting it.
  13810. * src/DownloadCommand.cc
  13811. (STARTUP_IDLE_TIME): Removed.
  13812. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13813. * src/PeerChokeCommand.cc
  13814. (optUnchokingPeer): Updated according to the changes in Peer.
  13815. (ResetDelta): Removed.
  13816. (UploadFaster): Updated according to the changes in Peer.
  13817. (DownloadFaster): Updated according to the changes in Peer.
  13818. (execute): I clarify the meaning of "upload" and "download" here.
  13819. "upload" means the transfer from localhost to remote host.
  13820. "download" means the transfer from remote host to localhost.
  13821. Based on this rule, I swapped orderByUploadRate and
  13822. orderByDownloadRate.
  13823. * src/PeerInteractionCommand.cc
  13824. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13825. (executeInternal): Removed the argument of
  13826. peerInteraction->sendMessages().
  13827. (receiveMessages): Rewritten download speed limit.
  13828. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13829. * src/HttpResponseCommand.cc
  13830. (handleDefaultEncoding): If file size is unknown in torrent request,
  13831. do not call segmentMan->initBitfield() here.
  13832. Disabled persistent connection feature in torrent request.
  13833. * src/UrlRequestInfo.h
  13834. (UrlRequestInfo): Removed const qualifier from option.
  13835. * src/TorrentMan.h
  13836. (TransferStat): New class.
  13837. (deltaDownloadLength): Removed.
  13838. (deltaUploadLength): Removed.
  13839. (addDeltaDownloadLength): Removed.
  13840. (getDeltaDownloadLength): Removed.
  13841. (resetDeltaDownloadLength): Removed.
  13842. (addDeltaUploadLength): Removed.
  13843. (getDeltaUploadLength): Removed.
  13844. (resetDeltaUploadLength): Removed.
  13845. (addActivePeer): Added peer->activate().
  13846. (deleteActivePeer): Added peer->deactivate().
  13847. (calculateStat): New function.
  13848. * src/TorrentMan.cc
  13849. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13850. (calculateStat): New function.
  13851. * src/PeerInteraction.h
  13852. (uploadLimit): Removed.
  13853. (option): New variable.
  13854. (setUploadLimit): Removed.
  13855. (getUploadSpeed): Removed.
  13856. (sendMessages): Removed the argument "currentUploadSpeed".
  13857. * src/PeerInteraction.cc
  13858. (prefs.h): Included.
  13859. (PeerInteraction): Removed uploadLimit. Added option.
  13860. (sendMessages): Rewritten upload speed limit.
  13861. (sendHandshake): Removed the argument from sendMessages().
  13862. (sendBitfield): Removed the argument from sendMessages().
  13863. * src/PeerAbstractCommand.cc
  13864. (execute): Commented out the portion of upload limit.
  13865. (onAbort): Removed peer->resetStatus().
  13866. * src/TorrentRequestInfo.cc
  13867. (timeoutSpecified): Declared extern.
  13868. (execute): Set timeout to 180 if timeout is not specified by.
  13869. command-line.
  13870. * src/PieceMessage.cc
  13871. (receivedAction): Added peer->updateDownloadLength().
  13872. Removed peer->addPeerUpload().
  13873. Removed torrentMan->addDeltaDownloadLength().
  13874. (send): Added peer->updateUploadLength().
  13875. Removed peer->addPeerDownload().
  13876. Removed torrentMan->addDeltaUploadLength().
  13877. * src/main.cc
  13878. (timeoutSpecified): New variable.
  13879. (main): Set timeoutSpecified to false.
  13880. If the command-line option "--upload-limit" is specified, then
  13881. timeoutSpecified is set to true. This option will remain in the next
  13882. release, but be deprecated in the future release.
  13883. * src/TorrentRequestInfo.h
  13884. (TorrentRequestInfo): Removed const qualifier from op.
  13885. * src/PeerStat.h
  13886. (uploadSpeed): New variable.
  13887. (PeerStat): Added default value to cuid.
  13888. (calculateUploadSpeed): New function.
  13889. (updateUploadLength): New function.
  13890. (getMaxUploadSpeed): New function.
  13891. (getAvgUploadSpeed): New function.
  13892. (reset): Added uploadSpeed. Set status to IDLE.
  13893. * src/TorrentDownloadEngine.h
  13894. (cp): Declared as Time.
  13895. (sessionDownloadLengthArray): Removed.
  13896. (sessionUploadLengthArray): Removed.
  13897. (currentCp): Removed.
  13898. (lastCalcStat): New variable
  13899. (lastElapsed): Removed.
  13900. (sessionDownloadLength): Removed.
  13901. (calculateStat): New function.
  13902. * src/TorrentDownloadEngine.cc
  13903. (initStatistics): Removed lastElapsed, cp[],
  13904. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13905. currentCp, sessionDownloadLength.
  13906. Added cp.reset() and lastCalcStat.reset().
  13907. (calculateSpeed): Changed the name of the argument.
  13908. (calculateStatistics): Rewritten.
  13909. (calculateStat): New function.
  13910. * src/Peer.h
  13911. (PeerStat.h): Included.
  13912. (peerUpload): Removed.
  13913. (peerDownload): Removed.
  13914. (peerStat): New variable.
  13915. (sessionUploadLength): New variable.
  13916. (sessionDownloadLength): New variable.
  13917. (deltaUpload): Removed.
  13918. (deltaDownload): Removed.
  13919. (resetStatus): Made private.
  13920. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13921. Removed peerUpload, peerDownload.
  13922. (updateUploadLength): New function.
  13923. (addDeltaUpload): Removed.
  13924. (updateDownloadLength): New function.
  13925. (resetDeltaUpload): Removed.
  13926. (getDeltaUpload): Removed.
  13927. (addDeltaDownload): Removed.
  13928. (calculateUploadSpeed): New function.
  13929. (resetDeltaDownload): Removed.
  13930. (getDeltaDownload): Removed.
  13931. (calculateDownloadSpeed): New function.
  13932. (getSessionUploadLength): New function.
  13933. (getSessionDownloadLength): New function.
  13934. (activate): New function.
  13935. (deactivate): New function.
  13936. (addPeerUpload): Removed.
  13937. (setPeerUpload): Removed.
  13938. (getPeerUpload): Removed.
  13939. (addPeerDownload): Removed.
  13940. (setPeerDownload): Removed.
  13941. (getPeerDownload): Removed.
  13942. * src/Peer.cc
  13943. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13944. * src/MetalinkRequestInfo.h
  13945. (MetalinkRequestInfo): Removed const qualifier from op.
  13946. * src/RequestInfo.h
  13947. (op): Removed const qualifier.
  13948. (RequestInfo): Removed const qualifier from op.
  13949. * src/prefs.h
  13950. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13951. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13952. * src/PeerInteractionCommand.cc
  13953. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13954. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13955. * src/PeerInteraction.cc
  13956. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13957. * src/main.cc
  13958. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13959. Added the description of "--max-download-limit" option.
  13960. Removed the description of "--upload-limit" option.
  13961. Added the description of "--max-upload-limit" option.
  13962. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13963. Added "--max-download-limit" option and "--max-upload-limit" option.
  13964. Added the warning message if "--upload-limit" option is used.
  13965. * src/DownloadCommand.cc
  13966. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13967. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13968. To rewrite segment download mechanism for HTTP/FTP download.
  13969. Use BitfieldMan to manage segment download.
  13970. * src/HttpResponseCommand.h
  13971. (executeInternal): Pass the reference of segment.
  13972. * src/AbstractCommand.cc
  13973. (prepareForRetry): Call segmentMan->cancelSegment here.
  13974. (onAbort): Call segmentMan->cancelSegment here.
  13975. * src/HttpDownloadCommand.cc
  13976. (prepareForNextSegment): New function.
  13977. * src/DownloadEngineFactory.cc
  13978. (newConsoleEngine): Removed splitter.
  13979. (newTorrentConsoleEngine): Removed splitter.
  13980. * src/Request.h
  13981. (segment): Renamed from seg.
  13982. * src/FtpInitiateConnectionCommand.h
  13983. (executeInternal): Pass the reference of segment.
  13984. * src/AbstractCommand.h
  13985. (executeInternal): Pass the reference of segment.
  13986. * src/pref.h
  13987. (PREF_SEGMENT_SIZE): New definition.
  13988. * src/HttpProxyRequestCommand.h
  13989. (executeInternal): Pass the reference of segment.
  13990. * src/HttpResponseCommand.cc
  13991. (checkResponse): Allowed status 206 when a request range starts 0.
  13992. (handleDefaultEncoding): Rewritten the code related to Segment.
  13993. (handleOtherEncoding): Rewritten the code related to Segment.
  13994. * src/SegmentMan.h
  13995. (SegmentEntry): New class.
  13996. (SegmentEntries): New type definition.
  13997. (bitfield): New variable.
  13998. (usedSegmentEntries): New variable.
  13999. (onNullBitfield): New function.
  14000. (checkoutSegment): New function.
  14001. (segments): Removed.
  14002. (splitter): Removed.
  14003. (unregisterId): Removed.
  14004. (getSegment): New function(overload)
  14005. (getDownloadedSize): Removed.
  14006. (cancelSegment): New function.
  14007. (completeSegment): New function.
  14008. (initBitfield): New function.
  14009. (hasSegment): New function.
  14010. (getDownloadLength): New function.
  14011. * src/BitfieldMan.h
  14012. (getStartIndex): New function.
  14013. (getEndIndex): New function.
  14014. (getMissingUnusedIndex): New function(overload).
  14015. (getSparseMissingUnusedIndex): New function.
  14016. * src/BitfieldMan.cc
  14017. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14018. (getMissingUnusedIndex): New function(overload).
  14019. (Range): New class.
  14020. (getStartIndex): New function.
  14021. (getEndIndex): New function.
  14022. (getSparseMissingUnusedIndex): New function.
  14023. (isBitSetInternal): Return false if the given index is less than 0.
  14024. * src/HttpInitiateConnectionCommand.h
  14025. (executeInternal): Pass the reference of segment.
  14026. * src/FtpNegotiateCommand.h
  14027. (executeInternal): Pass the reference of segment.
  14028. * src/FtpNegotiateCommand.cc
  14029. (recvSize): Initialize bitfield here.
  14030. * src/FtpTunnelResponseCommand.h
  14031. (executeInternal): Pass the reference of segment.
  14032. * src/HttpConnection.cc
  14033. (createRequest): Rewritten range header processing.
  14034. * src/DownloadCommand.h
  14035. (executeInternal): Pass the reference of segment.
  14036. (prepareForRetry): Removed.
  14037. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14038. function.
  14039. * src/main.cc
  14040. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14041. * src/SegmentMan.cc
  14042. (SegmentMan): Added bitfield. Removed splitter.
  14043. (~SegmentMan): Added bitfield. Removed splitter.
  14044. (unregisterId): Removed.
  14045. (getSegment): Rewritten.
  14046. (updateSegment): Rewritten.
  14047. (save): Rewritten.
  14048. (read): Rewritten.
  14049. (finished): Rewritten.
  14050. (getDownloadedSize): Removed.
  14051. (initBitfield): New function.
  14052. (FindSegmentEntryByIndex): New function object.
  14053. (FindSegmentEntryByCuid): New function object.
  14054. (checkoutSegment): New function.
  14055. (onNullBitfield): New function.
  14056. (getSegment): New function(overload).
  14057. (CancelSegment): New function object.
  14058. (cancelSegment): New function.
  14059. (completeSegment): New function.
  14060. (hasSegment): New function.
  14061. (getDownloadLength): New function.
  14062. * src/FtpInitiateConnectionCommand.cc
  14063. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14064. * src/Segment.h: Rewritten.
  14065. * src/Segment.cc (operator<<): New function.
  14066. * src/HttpDownloadCommand.h
  14067. (prepareForNextSegment): New function.
  14068. * src/Request.cc
  14069. (resetUrl): Made segment null.
  14070. * src/DownloadEngine.cc
  14071. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14072. * src/HttpProxyRequestCommand.h
  14073. (executeInternal): Pass the reference of segment.
  14074. * src/DownloadCommand.cc
  14075. (executeInternal): Rewritten the code related to Segment.
  14076. (prepareForRetry): Removed.
  14077. (prepareForNextSegment): Rewritten.
  14078. * src/FtpTunnelResponseCommand.h
  14079. (executeInternal): Pass the reference of segment.
  14080. To add HTTP 1.1 persistent connection support(experimental)
  14081. * src/HttpRequestCommand.cc
  14082. (executeInternal): Disable keep alive if it is disabled by
  14083. configuration.
  14084. * src/Request.h
  14085. (keepAlive): New variable.
  14086. (isKeepAlive): New function.
  14087. (setKeepAlive): New function.
  14088. * src/pref.h
  14089. (PREF_HTTP_KEEP_ALIVE): New definition.
  14090. * src/HttpResponseCommand.cc
  14091. (executeInternal): Check the remote server supports keep alive.
  14092. * src/HttpConnection.cc
  14093. (createRequest): Send "Connection: close" only if keep alive is
  14094. disabled.
  14095. * src/main.cc
  14096. (main):
  14097. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14098. To add max download speed limit:
  14099. * src/pref.h
  14100. (PREF_MAX_SPEED_LIMIT): New definition.
  14101. * src/PeerInteractionCommand.cc
  14102. (executeInternal): Added max download speed limit. Not tested yet.
  14103. * src/SegmentMan.h
  14104. (PeerStats): New type definition.
  14105. (peerStats): New variable.
  14106. (registerPeerStat): New function.
  14107. (FindPeerStat): New function object.
  14108. (getPeerStat): New function.
  14109. (calculateDownloadSpeed): New function.
  14110. * src/SpeedCalc.h: New class.
  14111. * src/SpeedCalc.cc: New class.
  14112. * src/main.cc
  14113. (main):
  14114. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14115. download speed is not restricted).
  14116. * src/PeerStat.h: New class.
  14117. * src/SegmentMan.cc
  14118. (registerPeerStat): New function.
  14119. (calculateDownloadSpeed): New function.
  14120. * src/DownloadCommand.cc
  14121. (STARTUP_IDLE_TIME): New definition.
  14122. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14123. downloadStart.
  14124. (~DownloadCommand): Call peerStat->downloadStop.
  14125. (executeInternal): Added download speed limitter. Rewritten lowest
  14126. speed limitter.
  14127. * src/HttpConnection.cc
  14128. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14129. * src/AbstractCommand.cc
  14130. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14131. Added hostname to the error message.
  14132. * src/ConsoleDownloadEngine.cc
  14133. (calculateStatistics): Initialize psize with dlSize.
  14134. * src/PieceMessage.cc
  14135. (receivedAction): Do not call peerInteraction->abortPiece here.
  14136. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14137. * src/BitfieldMan.h
  14138. (clearAllUseBit): New function.
  14139. (setAllUseBit): New function.
  14140. * src/BitfieldMan.cc
  14141. (clearAllBit): Do not clear useBitfield here.
  14142. (clearAllUseBit): New function.
  14143. (setAllUseBit): New function.
  14144. * src/Piece.cc
  14145. (clearAllBlock): Call bitfield->clearAllUseBit().
  14146. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14147. To make filename URL-decoded:
  14148. * src/HttpResponseCommand.h: Updated doc.
  14149. * src/HttpResponseCommand.cc
  14150. (determinFilename): Made filename URL-decoded.
  14151. * src/FtpInitiateConnectionCommand.cc
  14152. (executeInternal): Made filename URL-decoded.
  14153. * src/Util.h (urldecode): New function.
  14154. * src/Util.cc (urldecode): New function.
  14155. To fix a bug that caused assertion failure in ares_strerror:
  14156. * src/NameResolver.cc (callback): Fixed the bug.
  14157. * Release 0.7.3
  14158. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14159. To add --seed-time and --seed-ratio command-line option:
  14160. * src/Option.h (getAsDouble): New function.
  14161. * src/Option.cc (getAsDouble): New function.
  14162. * src/SeedCheckCommand.h: New class.
  14163. * src/SeedCheckCommand.cc: New class.
  14164. * src/DownloadEngineFactory.cc
  14165. (SeedCheckCommand.h): Included.
  14166. (UnionSeedCriteria.h): Included.
  14167. (TimeSeedCriteria.h): Included.
  14168. (ShareRatioSeedCriteria.h): Included.
  14169. (newTorrentConsoleEngine): Added the processing of seed option.
  14170. * src/SeedCriteria.h: New class.
  14171. * src/ShareRatioSeedCriteria.h: New class.
  14172. * src/TimeSeedCriteria.h: New class.
  14173. * src/UnionSeedCriteria.h: New class.
  14174. * src/prefs.h
  14175. (PREF_SEED_TIME): New definition.
  14176. (PREF_SEED_RATIO): New definition.
  14177. * src/main.cc
  14178. (showUsage): Added --seed-time and --seed-ratio option.
  14179. (main): Added --seed-time and --seed-ratio option.
  14180. Made default log file name "/dev/null".
  14181. * src/SharedHandle.h
  14182. (SharedHandle): Copy constructor. Made it assignable from the
  14183. SharedHandle of the subclasses.
  14184. (operator=): Made it assignable from the SharedHandle of the
  14185. subclasses.
  14186. (getRefCount): New function.
  14187. To add notice log level and the switch to write log to stdout. This
  14188. switch is configurable per log level.
  14189. * src/Logger.h
  14190. (notice): New function.
  14191. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14192. constant.
  14193. * src/LogFactory.cc
  14194. (getInstance): The use of NullLogger was removed. A log message with
  14195. notice log level was made written to stdout along with log file.
  14196. * src/NullLogger.h
  14197. (notice): New function.
  14198. * src/SimpleLogger.h
  14199. (writeHeader): Added the 'file' argument.
  14200. (writeLog): Added the 'file' argument.
  14201. (writeFile): New function.
  14202. (stdoutField): New variable.
  14203. (SimpleLogger): Removed the default constructor.
  14204. (SimpleLogger): Made the default value of logfile 0.
  14205. (debug): Added 'virtual' keyword.
  14206. (info): Added 'virtual' keyword.
  14207. (warn): Added 'virtual' keyword.
  14208. (error): Added 'virtual' keyword.
  14209. (notice): New function.
  14210. (setStdout): New function.
  14211. * src/SimpleLogger.cc
  14212. (WRITE_LOG): Replaced writeLog with writeFile.
  14213. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14214. (SimpleLogger): Removed the default constructor.
  14215. (setStdout): New function.
  14216. (writeLog): Added the handling of NOTICE log level.
  14217. (writeFile): New function.
  14218. (notice): New function.
  14219. * src/TorrentMan.h: Updated doc.
  14220. * src/BitfieldMan.h: Updated doc.
  14221. * src/TrackerWatcherCommand.cc
  14222. (execute): Return true if error occurred in the request to the tracker
  14223. and halt is requested.
  14224. * src/TrackerUpdateCommand.cc
  14225. (execute): Return true if error occurred in the request to the tracker
  14226. and halt is requested.
  14227. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14228. DownloadEngine:
  14229. * src/TorrentConsoleDownloadEngine.h
  14230. (onSelectiveDownloadingCompletes): Removed.
  14231. * src/TorrentConsoleDownloadEngine.cc
  14232. (onSelectiveDownloadingCompletes): Removed.
  14233. * src/TorrentDownloadEngine.h
  14234. (onEndOfRun): Added 'virtual' keyword.
  14235. (afterEachIteration): Removed.
  14236. (onSelectiveDownloadingCompletes): Removed.
  14237. * src/TorrentDownloadEngine.cc
  14238. (onEndOfRun): Removed filenameFixed.
  14239. (afterEachIteration): Removed.
  14240. * src/TorrentMan.cc
  14241. (completePiece): Call onDownloadComplete here.
  14242. (onDownloadComplete): Added 2 log messages.
  14243. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14244. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14245. * src/NameResolver.h: Added the prototype declaration of callback().
  14246. To support c-ares library:
  14247. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14248. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14249. * src/FtpInitiateConnectionCommand.h:
  14250. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14251. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14252. * src/HttpInitiateConnectionCommand.h:
  14253. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14254. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14255. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14256. #1542285 by tizianomueller)
  14257. * src/HttpInitiateConnectionCommand.cc:
  14258. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14259. * src/FtpInitiateConnectionCommand.cc:
  14260. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14261. * src/DownloadEngine.h:
  14262. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14263. * src/DownloadEngine.cc:
  14264. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14265. To fix the bug that causes compilation failure with metalink-support
  14266. disabled(bug#1543587):
  14267. * src/main.cc: Fixed with the patch by tizianomueller.
  14268. * Release 0.7.2
  14269. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14270. * src/main.cc
  14271. (main): Added a message to inform users that aria2 is starting to
  14272. verify checksum.
  14273. * src/RequestInfo.cc
  14274. (printDownloadAbortMessage): Added a message to inform users that
  14275. transfer can be resumed.
  14276. * src/FeatureConfig.cc
  14277. (FEATURE_ASYNC_DNS): New definition.
  14278. (FeatureConfig): Added aysnc DNS entry.
  14279. To replace CommandUuid with Command* in SocketEntry and
  14280. NameResolverEntry:
  14281. * src/DownloadEngine.h
  14282. (CommandUuids): Removed.
  14283. (SocketEntry::commandUuid): Removed.
  14284. (SocketEntry::command): New variable.
  14285. (SocketEntry::SocketEntry): Updated.
  14286. (SocketEntry::operator==): Updated.
  14287. (NameResolverEntry::commandUuid): Removed.
  14288. (NameResolverEntry::command): New variable.
  14289. (NameResolverEntry::NameResolverEntry): Updated.
  14290. (NameResolverEntry::operator==): Updated.
  14291. (waitData): Changed the argument type.
  14292. (addSocketForReadCheck): Changed the argument type.
  14293. (deleteSocketForReadCheck): Changed the argument type.
  14294. (addSocketForWriteCheck): Changed the argument type.
  14295. (deleteSocketForWriteCheck): Changed the argument type.
  14296. (addNameResolverCheck): Changed the argument type.
  14297. (deleteNameResolverCheck): Changed the argument type.
  14298. * src/DownloadEngine.cc
  14299. (FindCommand): Removed.
  14300. (run): Removed activeUuid. Added activeCommands instead.
  14301. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14302. (AccumulateActiveCommand): New function object.
  14303. (waitData): Use AccumulateActiveCommand.
  14304. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14305. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14306. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14307. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14308. (addNameResolverCheck): Use Command instead of CommandUuid.
  14309. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14310. * src/AbstractCommand.cc
  14311. (disableReadCheckSocket): Updated according to the changes in
  14312. DownloadEngine.
  14313. (setReadCheckSocket): Updated according to the changes in
  14314. DownloadEngine.
  14315. (disableWriteCheckSocket): Updated according to the changes in
  14316. DownloadEngine.
  14317. (setWriteCheckSocket): Updated according to the changes in
  14318. DownloadEngine.
  14319. (setNameResolverCheck): Updated according to the changes in
  14320. DownloadEngine.
  14321. (disableNameResolverCheck): Updated according to the changes in
  14322. DownloadEngine.
  14323. * src/AbstractCommand.cc
  14324. (disableReadCheckSocket): Updated according to the changes in
  14325. DownloadEngine.
  14326. (setReadCheckSocket): Updated according to the changes in
  14327. DownloadEngine.
  14328. (disableWriteCheckSocket): Updated according to the changes in
  14329. DownloadEngine.
  14330. (setWriteCheckSocket): Updated according to the changes in
  14331. DownloadEngine.
  14332. * release 0.7.1
  14333. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14334. To handle the case where some BitTorrent tracker requires all letters
  14335. except for [A-Za-z0-9] is URL encoded.
  14336. * src/Util.h
  14337. (torrentUrlencode): New function.
  14338. * src/Util.cc
  14339. (ctype.h): Included.
  14340. (torrentUrlencode): New function.
  14341. * src/TrackerWatcherCommand.cc
  14342. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14343. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14344. To add asynchronous DNS support(libares):
  14345. * src/AbstractCommand.h
  14346. (setNameResolverCheck): New function.
  14347. (disableNameResolverCheck): New function
  14348. (resolveHostname): New function.
  14349. * src/AbstractCommand.cc
  14350. (setNameResolverCheck): New function.
  14351. (disableNameResolverCheck): New function
  14352. (resolveHostname): New function.
  14353. * src/FtpInitiateConnectionCommand.h
  14354. (nameResolver): New function.
  14355. * src/FtpInitiateConnectionCommand.cc
  14356. (Util.h): Included.
  14357. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14358. disableWriteCheckSocket.
  14359. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14360. (executeInternal): Added async DNS support.
  14361. * src/HttpInitiateConnectionCommand.h
  14362. (nameResolver): New function.
  14363. * src/HttpInitiateConnectionCommand.cc
  14364. (DlRetryEx.h): Included.
  14365. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14366. disableWriteCheckSocket.
  14367. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14368. (executeInternal): Added async DNS support.
  14369. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14370. by extern "C" declaration.
  14371. * src/NameResolver.cc: New class.
  14372. * src/Util.h:
  14373. (isNumberAndDotsNotation): New function
  14374. * src/Util.cc
  14375. (isNumberAndDotsNotation): New function.
  14376. * src/DownloadEngine.h
  14377. (NameResolver.h): Included.
  14378. (NameResolverEntry): New class.
  14379. (NameResolverEntries): New type definition.
  14380. (addNameResolverCheck): New function.
  14381. (deleteNameResolverCheck): New function.
  14382. * src/DownloadEngine.cc
  14383. (run): Initialize cp with 0.
  14384. (SetDescriptor::operator()): Added for NameResolverEntry.
  14385. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14386. (waitData): Check nameResolver entries.
  14387. (updateFdSet): Update fds in nameResolver entries.
  14388. (addNameResolverCheck): New function.
  14389. (deleteNameResolverCheck): new function.
  14390. * src/PeerInteractionCommand.cc
  14391. (executeInternal): Fixed wrong socket handling.
  14392. * src/main.cc
  14393. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14394. * src/Util.cc
  14395. (fileChecksum): Removed the call to ctx.digestReset().
  14396. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14397. * po/ru.po: Azamat sent me Russian translation.
  14398. * src/FtpNegotiateCommand.cc
  14399. (recvGreeting): Call disableWriteCheckSocket just after
  14400. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14401. (recvRetr): Recognized status code 125 as a acceptable response code.
  14402. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14403. case-insesitive filesystem(BUG#1531057).
  14404. * src/Time.h: Renamed as TimeA2.h.
  14405. * src/Time.cc: Renamed as TimeA2.cc.
  14406. * src/TimeA2.h: New class.
  14407. * src/TimeA2.cc: New class.
  14408. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14409. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14410. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14411. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14412. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14413. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14414. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14415. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14416. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14417. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14418. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14419. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14420. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14421. * release 0.7.0
  14422. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14423. * src/PeerChokeCommand.h
  14424. (PeerChokeCommand): Rearranged the arguments.
  14425. * src/PeerChokeCommand.cc
  14426. (PeerChokeCommand): Rearranged the arguments.
  14427. * src/MetalinkEntry.h
  14428. (Checksum.h): Included.
  14429. (md5): Removed.
  14430. (sha1): Removed.
  14431. (checksum): New variable.
  14432. (operator=): Updated.
  14433. (check): Removed.
  14434. * src/prefs.h
  14435. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14436. (PREF_FOLLOW_TORRENT): New definition.
  14437. (PREF_SELECT_FILE): New definition.
  14438. (PREF_FOLLOW_METALINK): New definition.
  14439. * src/MetalinkResource.h
  14440. (TYPE_HTTPS): Added to enum TYPE.
  14441. * src/TorrentMan.cc
  14442. (~TorrentMan): Rewritten.
  14443. * src/MultiDiskWriter.cc
  14444. (MultiDiskAdaptor): Updated according to the changes in
  14445. MessageDigestContext.
  14446. (~MultiDiskAdaptor): Updated according to the changes in
  14447. MessageDigestContext.
  14448. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14449. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14450. * src/Util.h
  14451. (fileChecksum): Updated according to the changes in
  14452. MessageDigestContext.
  14453. * src/Util.cc
  14454. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14455. (fileChecksum): Updated according to the changes in
  14456. MessageDigestContext.
  14457. * src/messageDigest.h: Rewritten.
  14458. * src/MetalinkEntry.cc
  14459. (check): Removed.
  14460. (Supported): Updated.
  14461. (dropUnsupportedResource): Fixed a memory leak.
  14462. * src/ShaVisitor.cc
  14463. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14464. (~ShaVisitor): Updated according to the changes in
  14465. MessageDigestContext.
  14466. (visit): Updated according to the changes in MessageDigestContext.
  14467. * src/main.cc
  14468. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14469. command-line option added.
  14470. * src/DownloadEngine.h
  14471. (SocketEntry): New class.
  14472. (SocketEntries): New definition.
  14473. (PairFind): Removed.
  14474. (SockCmdMap): Removed.
  14475. * src/DownloadEngine.cc
  14476. (DownloadEngine): Rewritten.
  14477. (~DownloadEngine): Rewritten.
  14478. (run): Renamed activeCommandUuids as activeUuids.
  14479. (SetDescriptor): Rewritten.
  14480. (AccumulateActiveCommandUuid): Removed.
  14481. (AccumulateActiveUuid): New function object.
  14482. (waitData): Rewritten.
  14483. (updateFdSet): Rewritten.
  14484. (addSocket): Rewritten.
  14485. (deleteSocket): Rewritten.
  14486. (addSocketForReadCheck): Rewritten.
  14487. (deleteSocketForReadCheck): Rewritten.
  14488. (addSocketForWriteCheck): Rewritten.
  14489. (deleteSocketForWriteCheck): Rewritten.
  14490. * src/Xml2MetalinkProcessor.cc
  14491. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14492. * src/DownloadCommand.cc
  14493. (executeInternal): Added the check routine for lowest speed limit.
  14494. * src/AbstractDiskWriter.cc
  14495. (AbstractDiskWriter): Updated according to the changes in
  14496. MessageDigestContext.
  14497. (~AbstractDiskWriter): Updated according to the changes in
  14498. MessageDigestContext.
  14499. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14500. * src/RequestInfo.h: New class.
  14501. * src/UrlRequestInfo.h: New class.
  14502. * src/UrlRequestInfo.cc: New class.
  14503. * src/TorrentRequestInfo.h: New class.
  14504. * src/TorrentRequestInfo.cc: New class.
  14505. * src/MetalinkRequestInfo.h: New class.
  14506. * src/MetalinkRequestInfo.cc: New class.
  14507. * src/Checksum.h: New class.
  14508. * src/DownloadEngineFactory.h: New class.
  14509. * src/DownloadEngineFactory.cc: New class.
  14510. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14511. * src/Option.h
  14512. (getAsBool): New function.
  14513. * src/Option.cc
  14514. (prefs.h): Included.
  14515. (defined): 0-length value is now recognized as undefined.
  14516. (getAsInt): Rewritten.
  14517. (getAsLLInt): Rewritten.
  14518. (getAsBool): New function.
  14519. * src/FeatureConfig.h: Rewritten.
  14520. * src/FeatureConfig.cc: Rewritten.
  14521. * src/prefs.h
  14522. (PREF_STDOUT_LOG): New definition.
  14523. (PREF_LOG): New definition.
  14524. (PREF_DIR): New definition.
  14525. (PREF_OUT): New definition.
  14526. (PREF_SPLIT): New definition.
  14527. (PREF_DAEMON): New definition.
  14528. (PREF_REFERER): New definition.
  14529. (PREF_TORRENT_FILE): New definition.
  14530. (PREF_LISTEN_PORT): New definition.
  14531. (PREF_METALINK_FILE): New definition.
  14532. (PREF_METALINK_VERSION): New definition.
  14533. (PREF_METALINK_LANGUAGE): New definition.
  14534. (PREF_METALINK_OS): New definition.
  14535. (PREF_METALINK_SERVERS): New definition.
  14536. * src/main.cc
  14537. (main): Following command-line parameters are now put into Option
  14538. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14539. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14540. metalinkLanguage, metalinkOs, metalinkServers
  14541. To fix the bug that aria2 can not handle http response header properly.
  14542. * src/HttpHeader.cc
  14543. (put): Made name lowercased.
  14544. (defined): Made name lowercased.
  14545. (getFirst): Made name lowercased.
  14546. (get): Made name lowercased.
  14547. (getFirstAsInt): Rewritten.
  14548. (getFirstAsLLInt): Rewritten.
  14549. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14550. * src/TorrentMan.h:
  14551. (advertisePiece): Updated doc.
  14552. (getAdvertisedPieceIndexes): Updated doc.
  14553. (removeAdvertisedPiece); New function.
  14554. * src/TorrentMan.cc
  14555. (FindElapsedHave): New function object.
  14556. (removeAdvertisedPiece): New function.
  14557. * src/HaveEraseCommand.h: New class.
  14558. * src/HaveEraseCommand.cc: New class.
  14559. * src/FeatureConfig.h: New class.
  14560. * src/FeatureConfig.cc: New class.
  14561. * src/Request.h
  14562. (defaultPorts): Removed.
  14563. * src/Request.cc
  14564. (FeatureConfig.h): Included.
  14565. (Request): Removed the statements related to defaultPorts.
  14566. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14567. A default port number is now retrieved from FeatureConfig.
  14568. * src/main.cc
  14569. (HaveEraseCommand.h): Included.
  14570. (showVersion): Added the output of feature list.
  14571. (main): Added HaveEraseCommand to command queue in BitTorrent
  14572. downloading.
  14573. * src/PeerInteractionCommand.h
  14574. (chokeCheckPoint): Commented out.
  14575. (periodicExecPoint): New variable.
  14576. * src/PeerInteractionCommand.cc
  14577. (executeInternal): Following methods are now called in at least every
  14578. 0.5 seconds to reduce CPU usage:
  14579. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14580. checkHave(), sendKeepAlive().
  14581. (checkLongTimePeerChoking): Commented out.
  14582. * src/BitfieldMan.h
  14583. (getNthBitIndex): Changed the method signature.
  14584. (getMissingIndexRandomly): Changed the method signature.
  14585. * src/BitfieldMan.cc
  14586. (getNthBitIndex): Rewritten
  14587. (getMissingIndexRandomly): Rewritten.
  14588. (hasMissingPiece): Rewritten.
  14589. (getMissingIndex): Refactored.
  14590. (getMissingUnusedIndex); Refactored.
  14591. (getMissingIndex): Refactored.
  14592. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14593. * src/PeerMessage.h
  14594. (Piece.h): Included.
  14595. (SharedHandle.h): Included.
  14596. (invalidate): New variable.
  14597. (uploading): New variable.
  14598. (isInvalidate): New function.
  14599. (isUploading): New function.
  14600. (onPush): New function.
  14601. (onChoked): New function.
  14602. (onCanceled): New function.
  14603. (onAbortPiece): New function.
  14604. (PeerMessageHandle): New type definition.
  14605. * src/PeerMessage.cc
  14606. (PeerMessage): Added the initialization for invalidate and uploading.
  14607. * src/CancelMessage.h
  14608. (CancelMessage): Rewritten.
  14609. * src/RejectMessage.h
  14610. (RejectMessage): Rewritten.
  14611. * src/Metalinker.h
  14612. (operator=): Defined.
  14613. * src/MetaEntry.h
  14614. (operator=): Defined.
  14615. * src/MetalinkResource.h
  14616. (operator=): Defined.
  14617. * src/AllowedFastMessage.h
  14618. (AllowedFastMessage): Rewritten.
  14619. * src/HandshakeMessage.h
  14620. (HandshakeMessage): New function(overload).
  14621. * src/HandshakeMessage.cc
  14622. (HandshakeMessage): Rewritten.
  14623. (init): New function.
  14624. * src/HaveMessage.h
  14625. (HaveMessage): Rewritten.
  14626. * src/Time.h
  14627. (operator=): Defined the function body here.
  14628. * src/Time.cc
  14629. (operator=): Removed.
  14630. * src/SocketCore.h
  14631. (operator==): Defined here.
  14632. (operator!=): Defined here.
  14633. (operator<): Defined here.
  14634. * src/SocketCore.cc
  14635. (operator==): Removed.
  14636. (operator<): Removed.
  14637. * src/BitfieldMan.h
  14638. (operator=): Defined the function body here.
  14639. * src/BitfieldMan.cc
  14640. (operator=): Removed.
  14641. * src/TorrentMan.h
  14642. (deleteErrorPeer): Removed.
  14643. (deleteUnusedPeer); New function.
  14644. * src/TorrentMan.cc
  14645. (addPeer): Call deleteUnusedPeer.
  14646. (deleteErrorPeer): Removed.
  14647. (deleteUnusedPeer): New function.
  14648. * src/PeerAbstractCommand.h
  14649. (setNoCheck): New function.
  14650. (noCheck): New variable.
  14651. * src/PeerAbstractCommand.cc
  14652. (PeerAbstractCommand): Added the initialization of noCheck.
  14653. (execute): Added a check for noCheck.
  14654. (setNoCheck): New function.
  14655. * src/Util.h
  14656. (stdio.h): Included.
  14657. * src/Util.cc
  14658. (unistd.h): Included.
  14659. * src/DefaultDiskWriter.cc
  14660. (unistd.h): Included.
  14661. * src/Peer.h
  14662. (operator==): Defined the function body here.
  14663. (operator!=): Defined the function body here.
  14664. * src/Peer.cc
  14665. (operator==): Removed.
  14666. (operator!=): Removed.
  14667. * src/Piece.h
  14668. (Piece): Defined the function body here(copy constructor).
  14669. (operator=): Defined the function body here.
  14670. (operator==): Defined the function body here.
  14671. * src/Piece.cc
  14672. (Piece): Removed(copy constructor).
  14673. (operator=): Removed.
  14674. (operator==): Removed.
  14675. * src/PeerMessageUtil.h
  14676. (ChokeMessage.h): Removed.
  14677. (UnchokeMessage.h): Removed.
  14678. (InterestedMessage.h): Removed.
  14679. (NotInterestedMessage.h): Removed.
  14680. (HaveMessage.h): Removed.
  14681. (BitfieldMessage.h): Removed.
  14682. (RequestMessage.h): Removed.
  14683. (CancelMessage.h): Removed.
  14684. (PieceMessage.h): Removed.
  14685. (HandshakeMessage.h): Removed.
  14686. (KeepAliveMessage.h): Removed.
  14687. (PortMessage.h): Removed.
  14688. (HaveAllMessage.h): Removed.
  14689. (HaveNoneMessage.h): Removed.
  14690. (PeerConnection.h): Removed.
  14691. (HandshakeMessage.h): Included.
  14692. * src/BitfieldMessage.h
  14693. (init): New function.
  14694. (BitfieldMessage): Rewritten.
  14695. (BitfieldMessage): New function(overload).
  14696. * src/RequestSlot.h
  14697. (operator=): Defined the function body here.
  14698. (operator==): Defined the function body here.
  14699. * src/RequestSlot.cc
  14700. (operator=): Removed.
  14701. (operator==): Removed.
  14702. To remove the dependency on the PeerMessage subclass from
  14703. PeerInteraction:
  14704. * src/PeerMessageFactory.h: New class.
  14705. * src/PeerMessageFactory.cc: New class.
  14706. * src/SimplePeerMessage.cc
  14707. (send): If invalidate is true then do nothing.
  14708. * src/PeerInteractionCommand.cc
  14709. (HandshakeMessage.h): Included.
  14710. (KeepAliveMessage.h): Included.
  14711. (ChokeMessage.h): Included.
  14712. (UnchokeMessage.h): Included.
  14713. (HaveMessage.h): Included.
  14714. (executeInternal): Call setNoCheck().
  14715. Removed setWriteCheckSocket(socket).
  14716. * src/PeerInteraction.h
  14717. (ChokeMessage.h): Removed.
  14718. (UnchokeMessage.h): Removed.
  14719. (InterestedMessage.h): Removed.
  14720. (NotInterestedMessage.h): Removed.
  14721. (HaveMessage.h): Removed.
  14722. (BitfieldMessage.h): Removed.
  14723. (RequestMessage.h): Removed.
  14724. (CancelMessage.h): Removed.
  14725. (PieceMessage.h): Removed.
  14726. (HandshakeMessage.h): Removed.
  14727. (KeepAliveMessage.h): Removed.
  14728. (PortMessage.h): Removed.
  14729. (HaveAllMessage.h): Removed.
  14730. (HaveNoneMessage.h): Removed.
  14731. (RejectMessage.h): Removed.
  14732. (AllowedFastMessage.h): Removed.
  14733. (SuggestPieceMessage.h): Removed.
  14734. (PeerMessageFactory.h): Included.
  14735. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14736. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14737. (PeerMessageFactory): New variable.
  14738. (createPeerMessage): Removed.
  14739. (createHandshakeMessage): Removed.
  14740. (setPeerMessageCommonProperty): Removed.
  14741. (addRequestSlot): New function.
  14742. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14743. (getPeerMessageFactory): New function.
  14744. (createRequestMessage): Removed.
  14745. (createCancelMessage): Removed.
  14746. (createPieceMessage): Removed.
  14747. (createHaveMessage): Removed.
  14748. (createChokeMessage): Removed.
  14749. (createUnchokeMessage): Removed.
  14750. (createInterestedMessage): Removed.
  14751. (createNotInterestedMessage): Removed.
  14752. (createBitfieldMessage): Removed.
  14753. (createKeepAliveMessage): Removed.
  14754. (createHaveAllMessage): Removed.
  14755. (createHaveNoneMessage): Removed.
  14756. (createRejectMessage): Removed.
  14757. (createAllowedFastMessage): Removed.
  14758. * src/PeerInteraction.cc
  14759. (PeerInteraction): Allocate PeerMessageFactory here.
  14760. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14761. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14762. PieceMessage::ID.
  14763. (addMessage): Simplified by using PeerMessage::onPush().
  14764. (addRequestSlot): New function.
  14765. (rejectAllPieceMessageInQueue): Simplified by using
  14766. PeerMessage::onChoked().
  14767. (rejectPieceMessageInQueue): Simplified by using
  14768. PeerMessage::onCanceled().
  14769. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14770. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14771. (createHandshakeMessage): Removed.
  14772. (createPeerMessage): Removed.
  14773. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14774. (setPeerMessageCommonProperty): Removed.
  14775. (createRequestMessage): Removed.
  14776. (createCancelMessage): Removed.
  14777. (createPieceMessage): Removed.
  14778. (createHaveMessage): Removed.
  14779. (createChokeMessage): Removed.
  14780. (createUnchokeMessage): Removed.
  14781. (createInterestedMessage): Removed.
  14782. (createNotInterestedMessage): Removed.
  14783. (createBitfieldMessage): Removed.
  14784. (createKeepAliveMessage): Removed.
  14785. (createHaveAllMessage): Removed.
  14786. (createHaveNoneMessage): Removed.
  14787. (createRejectMessage): Removed.
  14788. (createAllowedFastMessage): Removed.
  14789. * src/PieceMessage.h
  14790. (createRejectMessage): New function.
  14791. (PieceMessage): Rewritten.
  14792. (onChoked): New function.
  14793. (onCanceled): New function.
  14794. * src/PieceMessage.cc
  14795. (send): If invalidate is true then do nothing, just return.
  14796. (createRejectMessage): New function.
  14797. (onChoked): New function.
  14798. (onCanceled): New function.
  14799. * src/RequestMessage.h
  14800. (RequestMessage): Rewritten.
  14801. (onPush): New function.
  14802. (onAbortPiece): New function.
  14803. * src/RequestMessage.cc
  14804. (onPush): New function.
  14805. (onAbortPiece): New function.
  14806. Update fd_set when a socket is added or deleted in order to improve
  14807. performance:
  14808. * src/DownloadEngine.h
  14809. (rfdset): New variable.
  14810. (wfdset): New variable.
  14811. (updateFdSet): New function.
  14812. * src/DownloadEngine.cc
  14813. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14814. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14815. (waitData): Copy rfdset and wfdset.
  14816. (updateFdSet): New function.
  14817. (addSocket): Call updateFdSet.
  14818. (deleteSocket): Call updateFdSet.
  14819. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14820. To add the support for Metalink3.0 backward compatible links:
  14821. * src/Request.h
  14822. (SAFE_CHARS): Added '#'.
  14823. (METALINK_MARK): New definition.
  14824. * src/Request.cc
  14825. (parseUrl): Added the support for Metalink3.0 backward compatible
  14826. links.
  14827. etc
  14828. * src/PeerInteraction.cc
  14829. (MsgPushBack): Removed.
  14830. (sendMessages): Use STL copy and back_inserter.
  14831. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14832. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14833. * src/TorrentMan.h
  14834. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14835. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14836. * src/SharedHandle.h: New class.
  14837. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14838. * src/HttpResponseCommand.h
  14839. (HttpResponseCommand): Wrapped Socket.
  14840. * src/SocketCore.h
  14841. (operator==): New function.
  14842. (operator!=): New function.
  14843. (operator<): New function.
  14844. (getSockfd): New function.
  14845. (isOpen): New function.
  14846. (writeData): New function.
  14847. * src/SocketCore.cc
  14848. (operator==): New function.
  14849. (operator!=): New function.
  14850. (operator<): New function.
  14851. * src/AbstractCommand.h
  14852. (socket): Changed its type to SocketHandle.
  14853. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14854. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14855. (disableReadCheckSocket): New function.
  14856. (disableWriteCheckSocket): New function.
  14857. (readCheckTarget): Changed its type to SocketHandle.
  14858. (writeCheckTarget): Changed its type to SocketHandle.
  14859. (AbstractCommand): Replaced Socket with SocketHandle.
  14860. * src/AbstractCommand.cc
  14861. (AbstractCommand): Replaced Socket with SocketHandle.
  14862. (~AbstractCommand): Removed the deallocation for Socket object.
  14863. (disableReadCheckSocket): New function.
  14864. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14865. (disableWriteCheckSocket): New function.
  14866. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14867. * src/HttpDownloadCommand.cc
  14868. (DownloadCommand): Replaced Socket with SocketHandle.
  14869. * src/PeerAbstractCommand.h
  14870. (socket): Changed its type to SocketHandle.
  14871. (peer): Changed its type to PeerHandle.
  14872. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14873. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14874. (disableReadCheckSocket): New function.
  14875. (disableWriteCheckSocket): New function.
  14876. (readCheckTarget): Changed its type to SocketHandle.
  14877. (writeCheckTarget): Changed its type to SocketHandle.
  14878. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14879. Replaced Peer with PeerHandle.
  14880. * src/HttpRequestCommand.cc
  14881. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14882. Use disableReadCheckSocket.
  14883. * src/PeerInitiateConnectionCommand.h
  14884. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14885. * src/PeerChokeCommand.cc
  14886. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14887. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14888. (execute): Use PeerHandle.
  14889. * src/PeerConnection.h
  14890. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14891. (socket): Changed its type to SocketHandle.
  14892. (PeerConnection): Replaced Socket with SocketHandle.
  14893. * src/PeerConnection.cc
  14894. (PeerConnection): Replaced Socket with SocketHandle.
  14895. * src/PeerInteractionCommand.h
  14896. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14897. Replaced Peer with PeerHandle.
  14898. * src/PeerInteractionCommand.cc
  14899. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14900. Replaced Peer with PeerHandle.
  14901. (executeInternal): Use disableWriteCheckSocket.
  14902. Use HandshakeMessageHandle.
  14903. (receiveMessages): Use PeerMessageHandle.
  14904. (prepareForNextPeer): Use PeerHandle.
  14905. * src/HttpProxyRequestCommand.h
  14906. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14907. * src/HttpResponseCommand.cc
  14908. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14909. * src/TorrentMan.cc
  14910. (nullPeer): Added external reference.
  14911. (~TorrentMan): Removed the deallocation of the elements of peers.
  14912. (addPeer): Rewritten.
  14913. (isPeerAvailable): Use nullPeer.
  14914. (deleteOldpeers): Replaced with deleteErrorPeer.
  14915. (deleteErrorPeer): New function.
  14916. (getPeer): Use PeerHandle and nullPeer.
  14917. (hasMissingPiece): Replaced Peer with PeerHandle.
  14918. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14919. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14920. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14921. (getMissingPiece): Replaced Peer with PeerHandle.
  14922. * src/FtpNegotiateCommand.cc
  14923. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14924. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14925. (recvGreeting): Use disableWriteCheckSocket.
  14926. (recvPasv): Removed the allocation of Socket.
  14927. Use disableReadCheckSocket.
  14928. (sendRestPasv): Use disableWriteCheckSocket.
  14929. (recvRetr): Changed assertion.
  14930. * src/PeerInteraction.h
  14931. (SharedHandle.h): Included SharedHandle.h.
  14932. (PeerMessageHandle): New type definition.
  14933. (HandshakeMessageHandle): New type definition.
  14934. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14935. (peer): Changed its type to PeerHandle.
  14936. (createHandshakeMessage): Replaced HandshakeMessage with
  14937. HandshakeMessageHandle.
  14938. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14939. (PeerInteraction): Replaced Peer with PeerHandle.
  14940. Replaced Socket with SocketHandle.
  14941. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14942. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14943. (receiveHandshake): Replaced HandshakeMessage with
  14944. HandshakeMessageHandle.
  14945. * src/PeerInteraction.cc
  14946. (PeerInteraction): Replaced Peer with PeerHandle.
  14947. Replaced Socket with SocketHandle.
  14948. (~PeerInteraction): Removed the deallocation of the elements of
  14949. messageQueue.
  14950. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14951. (isSendingMessageInProgress): Replaced PeerMessage with
  14952. PeerMessageHandle.
  14953. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14954. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14955. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14956. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14957. (abortPiece): Use PeerMessageHandle.
  14958. (receiveHandshake): Replaced HandshakeMessage with
  14959. HandshakeMessageHandle. Removed try-catch block.
  14960. (createHandshakeMessage): Replaced HandshakeMessage with
  14961. HandshakeMessageHandle.
  14962. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14963. Removed try-catch block.
  14964. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14965. * src/HttpProxyResponseCommand.cc
  14966. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14967. * src/FtpTunnelResponseCommand.h
  14968. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14969. * src/HttpConnection.cc
  14970. (HttpConnection): Replaced Socket with SocketHandle.
  14971. * src/PeerAbstractCommand.cc
  14972. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14973. (~PeerAbstractCommand): Removed the deallocation of socket.
  14974. Use disableReadCheckSocket, disableWriteCheckSocket.
  14975. (disableReadCheckSocket): New function.
  14976. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14977. (disableWriteCheckSocket): New function.
  14978. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14979. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14980. * src/FtpTunnelRequestCommand.cc
  14981. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14982. (~FtpTunnelRequestCommand): Corrected indentation.
  14983. * src/DownloadCommand.h
  14984. (DownloadCommand): Replaced Socket with SocketHandle.
  14985. * src/PeerListenCommand.cc
  14986. (PeerListenCommand): Removed the initialization of socket.
  14987. (~PeerListenCommand): Removed the deallocation of socket.
  14988. (bindPort): Use SocketHandle.
  14989. (execute): Use SocketHandle and PeerHandle.
  14990. * src/FtpDowndloadCommand.cc
  14991. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14992. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14993. * src/main.cc
  14994. (main): Corrected indentation.
  14995. * src/HttpInitiateConnectionCommand.cc
  14996. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14997. (executeInternal): Removed the allocation of socket.
  14998. * src/HttpRequestCommand.h
  14999. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15000. * src/FtpNegotiationCommand.h
  15001. (dataSocket): Changed its type to SocketHandle.
  15002. (serverSocket): Changed its type to SocketHandle.
  15003. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15004. * src/TorrentMan.h
  15005. (MAX_PEER_UPDATE): Removed.
  15006. (MAX_PEERS): New definition.
  15007. (Peers): The element is now of type PeerHandle.
  15008. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15009. (getPeer): Replaced Peer with PeerHandle.
  15010. (deleteOldErrorPeers): Removed.
  15011. (deleteErrorPeer): New function.
  15012. (hasMissingPiece): Replaced Peer with PeerHandle.
  15013. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15014. (getMissingPiece): Replaced Peer with PeerHandle.
  15015. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15016. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15017. (addActivePeer): Replaced Peer with PeerHandle.
  15018. (deleteActivePeer): Replaced Peer with PeerHandle.
  15019. Added a check for the return value of find.
  15020. * src/FtpTunnelResponseCommand.cc
  15021. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15022. * src/FtpInitiateConnectionCommand.cc
  15023. (executeInternal): Removed the allocation of socket.
  15024. * src/DownloadEngine.h
  15025. (Sockets): An element is now of type SocketHandle.
  15026. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15027. (CommandUuids): New type definition.
  15028. (rsockets): Changed its type to SockCmdMap.
  15029. (wsockets): Changed its type to SockCmdMap.
  15030. (addSocket): Rewritten.
  15031. (deleteSocket): Rewritten.
  15032. (addSocketForReadCheck): Rewritten.
  15033. (deleteSocketForReadCheck): Rewritten.
  15034. (addSocketForWriteCheck): Rewritten.
  15035. (deleteSocketForWriteCheck): Rewritten.
  15036. (PairFind): New template class.
  15037. * src/HttpDownloadCommand.h
  15038. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15039. * src/FtpConnection.cc
  15040. (FtpConnection): Replaced Socket with SocketHandle.
  15041. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15042. block.
  15043. * src/InitiateConnectionCommandFactory.cc
  15044. (DlAbortEx.h): Included DlAbortEx.h.
  15045. (createInitiateConnectionCommand): Throw exception if the protocol of
  15046. requested URI is not supported.
  15047. * src/Peer.cc
  15048. (nullPeer): Changed its type to PeerHandle.
  15049. (operator==): New function.
  15050. (operator!=): New function.
  15051. * src/Peer.h
  15052. (SharedHandle.h): Included SharedHandle.h.
  15053. (operator==): New function.
  15054. (operator!=): New function.
  15055. (Peer): Added the default constructor.
  15056. Use resetStatus() to initialize member variables.
  15057. (nullPeer): Removed.
  15058. * src/TrackerUpdateCommand.cc
  15059. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15060. with MIN_PEERS.
  15061. * src/PeerListenCommand.h
  15062. (socket): Changed its type to SocketHandle.
  15063. * src/Command.h
  15064. (CommandUuid): New type definition.
  15065. (uuid): New variable.
  15066. (uuidGen): New variable.
  15067. (Command): Added the initialization of uuid.
  15068. (getUuid): New function.
  15069. * src/Socket.h
  15070. (Socket): Removed.
  15071. (SocketHandle): New type definition.
  15072. * src/DownloadEngine.h
  15073. (FindCommand): New function object.
  15074. (run): The portion of socket check was rewritten.
  15075. (SetDescriptor): New function object.
  15076. (AccumulateActiveCommandUuid): New function object.
  15077. (waitData): Rewritten.
  15078. (addSocket): Rewritten.
  15079. (deleteSocket): Rewritten.
  15080. (addSocketForReadCheck): Rewritten.
  15081. (addSocketForWriteCheck): Rewritten.
  15082. (deleteSocketForReadCheck): Rewritten.
  15083. (deleteSocketForWriteCheck): Rewritten.
  15084. * src/HttpProxyResponseCommand.h
  15085. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15086. * src/HttpConnection.h
  15087. (socket): Changed its type to SocketHandle.
  15088. (HttpConnection): Replaced Socket with SocketHandle.
  15089. * src/PeerInitiateConnectionCommand.cc
  15090. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15091. (executeInternal): Removed the allocation of socket.
  15092. (prepareForNextPeer): Use PeerHandle.
  15093. * src/PeerMessage.h
  15094. (peer): Changed its type to PeerHandle.
  15095. (getPeer): Replaced Peer with PeerHandle.
  15096. (setPeer): Replaced Peer with PeerHandle.
  15097. * src/DownloadCommand.cc
  15098. (DownloadCommand): Replaced Socket with SocketHandle.
  15099. * src/FtpConnection.h
  15100. (socket): Changed its type to SocketHandle.
  15101. (FtpConnection): Replaced Socket with SocketHandle.
  15102. (sendPort); Replaced Socket with SocketHandle.
  15103. * src/FtpDowndloadCommand.h
  15104. (ctrlSocket): Changed its type to SocketHandle.
  15105. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15106. * src/HttpProxyRequestCommand.cc
  15107. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15108. * src/FtpTunnelRequestCommand.h
  15109. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15110. etc
  15111. * src/PeerChokeCommand.h
  15112. (setAllPeerChoked): Removed.
  15113. (setAllPeerResetDelta): Removed.
  15114. * src/PeerChokeCommand.cc
  15115. (setAllPeerChoked): Removed.
  15116. (ChokePeer): New function object.
  15117. (setAllPeerResetDelta): Removed.
  15118. (ResetDelta): New function object.
  15119. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15120. (execute): Show download speed when the local node is a seeder.
  15121. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15122. using STL.
  15123. * src/TrackerWatcherCommand.h
  15124. (MIN_PEERS): Removed.
  15125. * src/TorrentMan.cc
  15126. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15127. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15128. To fix the bug that .aria2 file is not saved if downloading is stopped
  15129. by the errors:it results that aria2 can not resume downloading:
  15130. * src/main.cc
  15131. (normalDownload): Added the call to save().
  15132. (main): Added the deletion of the elements in 'reserved'.
  15133. To fix log:
  15134. * src/PeerInteraction.cc
  15135. (receiveHandshake): Fixed log.
  15136. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15137. To improve download performance in BitTorrent:
  15138. * src/TorrentMan.cc
  15139. (getPeer): Check the number of connections. Return nullPeer if
  15140. it is greater than MAX_PEER_UPDATE.
  15141. This code was originally here, but was removed in 0.5.1.
  15142. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15143. To improve the conditional compilation:
  15144. * src/MultiDiskWriter.h:
  15145. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15146. * src/MultiDiskWriter.cc:
  15147. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15148. * src/Util.h:
  15149. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15150. Added ENABLE_BITTORRENT around computeFastSet().
  15151. * src/Util.cc:
  15152. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15153. Added ENABLE_BITTORRENT around computeFastSet().
  15154. * src/messageDigest.h:
  15155. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15156. * src/ShaVisitor.h:
  15157. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15158. * src/ShaVisitor.cc:
  15159. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15160. * src/main.cc:
  15161. Added ENABLE_BITTORRENT around includes and blocks related to
  15162. BitTorrent.
  15163. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15164. digest support is not available.
  15165. * src/AbstractDiskWriter.h:
  15166. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15167. * src/AbstractDiskWriter.cc:
  15168. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15169. * src/MetalinkEntry.cc
  15170. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15171. support is not available.
  15172. To add command-line options for Metalink:
  15173. * src/main.cc:
  15174. Added metalink-version, metalink-language, metalink-os,
  15175. follow-metalink.
  15176. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15177. * src/main.cc: Use these definition.
  15178. * Release 0.6.0
  15179. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15180. To add Metalink support(http/ftp only):
  15181. * src/AbstractCommand.h
  15182. (tryReserved): New function.
  15183. * src/AbstractCommand.cc
  15184. (execute): Call tryReserved().
  15185. (tryReserved): New function.
  15186. * src/Request.h
  15187. (Requests): New type definition.
  15188. * src/SegmentMan.h
  15189. (reserved): New variable.
  15190. * src/Util.h
  15191. (fileChecksum): New function.
  15192. (toUpper): New function.
  15193. (toLower): New function.
  15194. * src/Util.cc
  15195. (messageDigest.h): Included.
  15196. (trim): Trim \r\n\t.
  15197. (fileChecksum): New function.
  15198. (toUpper): New function.
  15199. (toLower): New function.
  15200. * src/main.cc
  15201. (normalDownload): New function.
  15202. (main): Added 2 command-line options: metalink-file,
  15203. metalink-connection. Their usage has not been written yet.
  15204. * src/MetalinkProcessor.h: New class.
  15205. * src/Xml2MetalinkProcessor.h: New class.
  15206. * src/Xml2MetalinkProcessor.cc: New class.
  15207. * src/MetalinkEntry.h: New class.
  15208. * src/MetalinkEntry.cc: New class.
  15209. * src/MetalinkResource.h: New class.
  15210. * src/MetalinkResource.cc: New class.
  15211. To add md5 message digest checking:
  15212. * src/messageDigest.h: Rewritten.
  15213. * src/MultiDiskWriter.cc: Updated according to the changes in
  15214. messageDigest.h.
  15215. * src/ShaVisitor.cc: Updated according to the changes in
  15216. messageDigest.h.
  15217. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15218. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15219. messageDigest.h.
  15220. To fix a bug that causes segfault when the payload length in peer
  15221. message is less than 0:
  15222. * src/PeerConnection.cc:
  15223. (receiveMessage): Fixed the bug.
  15224. * src/PeerMessageUtil.cc
  15225. (checkLength): Throw an exception if length is less than or equals to
  15226. 0.
  15227. To add new interfaces to Base64 encoding/decoding:
  15228. * src/Base64.h
  15229. (part_encode): Changed the method signature.
  15230. (encode): New function(overload).
  15231. (decode): New function(overload).
  15232. * src/Base64.cc
  15233. (part_encode): Rewritten.
  15234. (encode): Rewritten.
  15235. (encode): New function(overload).
  15236. To prevent a peer to download same piece if there is an error in
  15237. checksum:
  15238. * src/PieceMessage.cc
  15239. (receivedAction): Call peerInteraction->abortPiece().
  15240. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15241. To fix the bug that causes same have message is sent many times to
  15242. a single peer.
  15243. * src/Time.cc
  15244. (isNewer): Use Util::difftv().
  15245. * src/Util.cc
  15246. (difftv): Added a cast to (long long int).
  15247. * src/TorrentMan.cc
  15248. (advertisePiece): Use push_front.
  15249. (getAdvertisedPieceIndexes): A performance improvement was made.
  15250. To fix the bug that sends tracker requests without a sleep interval
  15251. when the number of connections is less than 15.
  15252. * src/TrackerWatcherCommand.cc
  15253. (execute): Now the number of connections is not a factor to decide
  15254. whether or not a tracker request should be sent or not.
  15255. * src/Time.h
  15256. (setTimeInSec): New function.
  15257. * src/Time.cc
  15258. (setTimeInSec): New function.
  15259. etc.
  15260. * src/ChokeMessage.cc
  15261. (receivedAction): Removed peer->snubbing = false
  15262. * src/PeerConnection.h
  15263. (receiveHandshake): Updated doc.
  15264. * src/TorrentMan.h
  15265. (getAdvertisedPieceIndexes): Updated the method signature.
  15266. * src/TorrentMan.cc
  15267. (getAdvertisedPieceIndexes): Updated the method signature.
  15268. * src/Time.h
  15269. (getTimeInMicros): Added a cast to (long long int).
  15270. (getTimeInMillis): Added a cast to (long long int).
  15271. * Release 0.5.2
  15272. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15273. To make a listening socket non-block:
  15274. * src/SocketCore.h
  15275. (setNonBlockingMode): New function.
  15276. * src/SocketCore.cc
  15277. (setNonBlockingMode): New function.
  15278. (beginListen): Added a call to setNonBlockingMode().
  15279. (acceptConnection): Call setNonBlockingMode().
  15280. (setBlockingMode): Updated.
  15281. To handle tracker's NAT-checking:
  15282. * src/PeerConnection.cc
  15283. (receiveHandshake): 'msg' param is filled with received data and
  15284. its length is assigned to 'length' param, even if all handshake
  15285. message is not yet received.
  15286. * src/PeerInteractionCommand.cc
  15287. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15288. a new peer connects to localhost.
  15289. A call to peerInteraction->sendHandshake() was removed because
  15290. it is called from peerInteraction->receiveHandshake(true).
  15291. * src/PeerInteraction.h
  15292. (quickReplied): New variable.
  15293. (receiveHandshake): Added an argument.
  15294. * src/PeerInteraction.cc
  15295. (PeerInteraction): Added the initialization of quickReplied.
  15296. (receiveHandshake): Send handshake message as soon as the info hash
  15297. in a handshake message from a peer is correct.
  15298. To change the random part of peer id and key parameter:
  15299. * src/TorrentMan.h
  15300. (key): New variable.
  15301. * src/TorrentMan.cc
  15302. (setupInternal1): Use Util::randomAlpha() to generate random part
  15303. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15304. key is also generated by Util::randomAlpha() and it is now 8 character
  15305. long.
  15306. * src/Util.h
  15307. (randomAlpha): New function.
  15308. * src/Util.cc
  15309. (randomAlpha): New function.
  15310. * src/TrackerWatcherCommand.cc
  15311. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15312. Added no_peer_id=1.
  15313. Set snubbing flag to false when a choke message is received from a
  15314. snubbed peer.
  15315. * src/ChokeMessage.cc
  15316. (receivedAction): Set snubbing flag to false.
  15317. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15318. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15319. * src/SimpleLogger.h (writeHeader): New function.
  15320. * src/SimpleLogger.cc (writeHeader): New function.
  15321. (writeLog): Fixed the bug that causes segfaults if exception message
  15322. contains an unescaped "%" character.
  15323. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15324. when a tracker request fails.
  15325. * src/Request.cc (parseUrl): Query string is now handled properly.
  15326. * Release 0.5.1
  15327. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15328. To add Time class which represents a specific instant in time and
  15329. its precision is microseconds. Time checking procedures were rewritten
  15330. using this object.
  15331. * src/Time.h: New class.
  15332. * src/Time.cc: New class.
  15333. * src/AbstractCommand.h
  15334. (updateCheckPoint): Removed.
  15335. (isTimeoutDetected): Removed.
  15336. (checkPoint): Changed the type to Time.
  15337. (timeout): New variable.
  15338. (setTimeout): New function.
  15339. * src/AbstractCommand.cc
  15340. (AbstractCommand): Removed the initialization of checkPoint.
  15341. Added the initialization of timeout.
  15342. (updateCheckPoint): Removed.
  15343. (isTimeoutDetected): Removed.
  15344. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15345. * src/PeerChokeCommand.h
  15346. (checkPoint): Changed the type to Time.
  15347. * src/PeerChokeCommand.cc
  15348. (PeerChokeCommand): Removed the initialization of checkPoint.
  15349. (execute): Rewritten using Time object.
  15350. * src/TrackerWatcherCommand.h
  15351. (checkPoint): Changed the type to Time.
  15352. * src/TrackerWatcherCommand.cc
  15353. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15354. (execute): Rewritten.
  15355. * src/ConsoleDownloadEngine.h
  15356. (cp): Changed the type to Time.
  15357. (startup): Changed the type to Time.
  15358. * src/ConsoleDownloadEngine.cc
  15359. (initStatistics): Use cp.reset(), startup.reset().
  15360. (calculateStatistics): Rewritten using Time object.
  15361. * src/PeerAbstractCommand.h
  15362. (updateCheckPoint): Removed.
  15363. (isTimeoutDetected): Removed.
  15364. (checkPoint): Changed the type to Time.
  15365. * src/PeerAbstractCommand.cc
  15366. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15367. (updateCheckPoint): Removed.
  15368. (isTimeoutDetected): Removed.
  15369. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15370. * src/PeerInteractionCommand.cc
  15371. (PeerInteractionCommand): Removed the initializations of struct
  15372. timeval variables.
  15373. * src/PeerInteractionCommand.h
  15374. (keepAliveCheckPoint): Changed the type to Time.
  15375. (chokeCheckPoint): Changed the type to Time.
  15376. (freqCheckPoint): Changed the type to Time.
  15377. (haveCheckTime): Changed the type to Time.
  15378. * src/PeerInteractionCommand.cc
  15379. (executeInternal): Rewritten using Time object.
  15380. (detectMessageFlooding): Rewritten using Time object.
  15381. (checkLongTimePeerChoking): Rewritten using Time object.
  15382. (sendKeepAlive): Rewritten using Time object.
  15383. (checkHave): Rewritten using Time object.
  15384. * src/SleepCommand.h
  15385. (checkPoint): Changed the type to Time.
  15386. * src/SleepCommand.cc
  15387. (SleepCommand): Removed the initialization of checkPoint.
  15388. (execute): Rewritten using Time object.
  15389. * src/TorrentAutoSaveCommand.h
  15390. (checkPoint): Changed the type to Time.
  15391. * src/TorrentAutoSaveCommand.cc
  15392. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15393. (execute): Rewritten.
  15394. * src/DownloadCommand.h
  15395. (sw): Changed the type to Time.
  15396. * src/DownloadCommand.cc
  15397. (DownloadCommand): Removed the initialization of sw.
  15398. (executeInternal): Rewritten.
  15399. * src/RequestSlot.h
  15400. (dispatchedTime): Changed the type to Time.
  15401. * src/RequestSlot.cc
  15402. (RequestSlot): Removed the call to setDispatchedTime().
  15403. (setDispatchedTime): Rewirtten.
  15404. (isTimeout): Rewritten.
  15405. (getLatencyInMillis): Rewritten.
  15406. * src/TorrentDownloadEngine.h
  15407. (cp): Changed the type to Time[2].
  15408. (startup): Changed the type to Time.
  15409. * src/TorrentDownloadEngine.cc
  15410. (initStatistics): Rewritten.
  15411. (calculateStatistics): Rewritten.
  15412. * src/DownloadEngine.cc
  15413. (run): Rewritten.
  15414. To detect all attempts to connect to the tracker are failed:
  15415. * src/AbstractCommand.cc
  15416. (execute): Increment e->segmentMan->errors if a command aborted.
  15417. * src/SegmentMan.h
  15418. (errors): New variable.
  15419. * src/SegmentMan.cc
  15420. (SegmentMan): Added the initialization of errors.
  15421. (init): Added the initialization of errors.
  15422. * src/TrackerWatcherCommand.cc
  15423. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15424. request was failed.
  15425. To handle snubbed peers:
  15426. * src/PeerChokeCommand.cc
  15427. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15428. (execute): Snubbed peers don't get unchoked.
  15429. * src/PeerInteraction.h
  15430. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15431. * src/PeerInteraction.cc
  15432. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15433. back the requested 16k block in 60 seconds.
  15434. * src/PieceMessage.cc
  15435. (receivedAction): A peer's snubbed state is cleard if it sends
  15436. the requested 16k block in 60 seconds.
  15437. * src/Peer.h
  15438. (snubbing): New variable.
  15439. * src/Peer.cc
  15440. (resetStatus): Added snubbed = false.
  15441. To fix the bug that causes have message is not sent:
  15442. * src/PeerInteractionCommand.cc
  15443. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15444. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15445. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15446. * src/TorrentMan.h
  15447. (HaveEntry): New class.
  15448. (advertisePiece): Rewritten.
  15449. (getAdvertisedPieceIndexes): Rewritten.
  15450. (Haves): Changed the type.
  15451. (getAdvertisedPieceIndexes): Added an argument.
  15452. Others:
  15453. * src/TorrentMan.h
  15454. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15455. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15456. * src/TorrentMan.cc
  15457. (getPeer): Don't check the number of connections here.
  15458. (setupInternal1): Changed peerId.
  15459. * src/PeerInteractionCommand.h
  15460. (KEEP_ALIVE_INTERVAL): New definition.
  15461. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15462. * src/main.cc
  15463. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15464. * src/DownloadEngine.h: Removed unnecessary header includes.
  15465. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15466. To fix the bug that causes segfaults if a tracker returns a zero-length
  15467. list as "peers":
  15468. * src/TrackerUpdateCommand.cc
  15469. (execute): Added a check to see wether the type of peers is Data*.
  15470. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15471. * Release 0.5.0
  15472. To fix compile issue with gcc3:
  15473. * src/CancelMessage.h
  15474. (ID): Renamed as ID_t
  15475. (ID_t): New enum.
  15476. * src/RejectMessage.h
  15477. (ID): Renamed as ID_t
  15478. (ID_t): New enum.
  15479. * src/SuggestPieceMessage.h
  15480. (ID): Renamed as ID_t
  15481. (ID_t): New enum.
  15482. * src/AllowedFastMessage.h
  15483. (ID): Renamed as ID_t
  15484. (ID_t): New enum.
  15485. * src/PortMessage.h
  15486. (ID): Renamed as ID_t
  15487. (ID_t): New enum.
  15488. * src/HaveNoneMessage.h
  15489. (ID): Renamed as ID_t
  15490. (ID_t): New enum.
  15491. * src/KeepAliveMessage.h
  15492. (ID): Renamed as ID_t
  15493. (ID_t): New enum.
  15494. * src/HaveAllMessage.h
  15495. (ID): Renamed as ID_t
  15496. (ID_t): New enum.
  15497. * src/UnchokeMessage.h
  15498. (ID): Renamed as ID_t
  15499. (ID_t): New enum.
  15500. * src/BitfieldMessage.h
  15501. (ID): Renamed as ID_t
  15502. (ID_t): New enum.
  15503. * src/PieceMessage.h
  15504. (ID): Renamed as ID_t
  15505. (ID_t): New enum.
  15506. * src/RequestMessage.h
  15507. (ID): Renamed as ID_t
  15508. (ID_t): New enum.
  15509. * src/NotInterestedMessage.h
  15510. (ID): Renamed as ID_t
  15511. (ID_t): New enum.
  15512. * src/ChokeMessage.h
  15513. (ID): Renamed as ID_t
  15514. (ID_t): New enum.
  15515. * src/InterestedMessage.h
  15516. (ID): Renamed as ID_t
  15517. (ID_t): New enum.
  15518. * src/HaveMessage.h
  15519. (ID): Renamed as ID_t
  15520. (ID_t): New enum.
  15521. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15522. * src/PeerAbstractCommand.h
  15523. (beforeSocketCheck): Removed.
  15524. * src/PeerAbstractCommand.cc
  15525. Modified in order to call executeInternal() even if socket check
  15526. and upload limit check fail.
  15527. * src/PeerInteractionCommand.h
  15528. (keepAlive): Removed.
  15529. (sendKeepAlive): New function.
  15530. (checkHave): New function.
  15531. (beforeSocketCheck): Removed.
  15532. * src/PeerInteractionCommand.cc
  15533. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15534. calls to checkHave() and sendKeepAlive().
  15535. (keepAlive): Renamed to sendKeepAlive().
  15536. (sendKeepAlive): New function.
  15537. (beforeSocketCheck): Removed.
  15538. (checkHave): New function.
  15539. * src/BitfieldMan.cc
  15540. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15541. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15542. 0.
  15543. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15544. * src/TorrentMan.h
  15545. (UsedPieces): Removed.
  15546. (Pieces): New type definition.
  15547. * src/Piece.h: Updated doc.
  15548. * src/Peer.h
  15549. (totalLength): Removed.
  15550. * src/Peer.cc
  15551. (updateLatency): Fixed the latency calculation.
  15552. * src/TorrentMan.cc
  15553. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15554. than or equal to MAX_PEER_LIST_SIZE.
  15555. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15556. then return false.
  15557. (deleteOldErrorPeers): Rewritten.
  15558. (deleteUsedPiece): Fixed the miss use of STL remove.
  15559. * src/PeerInteraction.h
  15560. (Pieces): Removed.
  15561. (deleteTimeoutRequestSlot): Removed.
  15562. (deleteCompletedRequestSlot): Removed.
  15563. (checkRequestSlot): New function.
  15564. * src/PeerInteraction.cc
  15565. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15566. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15567. (checkRequestSlot): New function.
  15568. * src/DownloadEngine.cc
  15569. (run): Clear activeSockets before calling waitData().
  15570. (waitData): Removed a call to activeSockets.clear().
  15571. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15572. To attempt to handle EINTR:
  15573. * src/SocketCore.cc
  15574. (isReadable): Added EINTR handling.
  15575. (isWritable): Added EINTR handling.
  15576. To improve the performance:
  15577. * src/AbstractCommand.cc
  15578. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15579. * src/PeerInteractionCommand.h
  15580. (receiveMessage): Renamed as receiveMessages().
  15581. (receiveMessages): New function.
  15582. * src/PeerInteractionCommand.cc
  15583. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15584. () function. detectMessageFlooding() is moved here.
  15585. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15586. (). The flooding detection for have message is comment out.
  15587. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15588. Util::difftv().
  15589. (receiveMessage): Renamed as receiveMessages().
  15590. (receiveMessages): New function.
  15591. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15592. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15593. * src/SleepCommand.cc
  15594. (execute): Use Util::difftvsec() instead of Util::difftv().
  15595. * src/BitfieldMan.h
  15596. (getNthBitIndex): New function.
  15597. (hasMissingPiece): New function.
  15598. (getAllMissingIndexes): New function.
  15599. * src/BitfieldMan.cc
  15600. (countSetBit): Rewritten.
  15601. (getNthBitIndex): New function.
  15602. (getMissingIndexRandomly): Rewritten.
  15603. (hasMissingPiece): New function.
  15604. (getAllMissingIndexes): New function.
  15605. * src/TorrentMan.cc
  15606. (hasMissingPiece): New function.
  15607. (deleteUsedPiece): Rewritten using STL.
  15608. * src/PeerInteraction.cc
  15609. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15610. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15611. (addRequests): Updated the number of pending requests.
  15612. * src/PeerAbstractCommand.cc
  15613. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15614. (execute): Returns true if TorrentMan::isHalt() is true.
  15615. Corrected the condition of upload limit checking.
  15616. * src/Util.h
  15617. (countBit): New function.
  15618. * src/Util.cc
  15619. (nbits): New variable.
  15620. (countBit): New function.
  15621. * src/DownloadEngine.h
  15622. (SockCmdMap): New type definition.
  15623. (waitData): Added an argument.
  15624. (addSocket): Added an argument.
  15625. (addSocketForReadCheck): Added an argument.
  15626. (addSocketForWriteCheck): Added an argument.
  15627. * src/DownloadEngine.cc
  15628. (run): Executes only commands whose sockets are ready to read or write.
  15629. All commands are executed in every 1 second.
  15630. (waitData): Calls select() again if it returned
  15631. EINTR.
  15632. (addSocket): Saves socket and command object pair to the map.
  15633. (deleteSocket): Deletes socket and command object pair from the map.
  15634. (addSocketForReadCheck): Added an argument.
  15635. (addSocketForWriteCheck): Added an argument.
  15636. * src/DownloadCommand.cc
  15637. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15638. To send "event=stopped" to the tracker when the application finishes:
  15639. * src/PeerChokeCommand.h
  15640. (checkPoint): New variable.
  15641. * src/PeerChokeCommand.cc
  15642. (PeerChokeCommand): Added the initialization of checkPoint.
  15643. (execute): The interval check is now done by checkPoint, not
  15644. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15645. * src/TorrentMan.h
  15646. (halt): New function.
  15647. (hasMissingPiece): New function.
  15648. (isHalt): New function.
  15649. (setHalt): New function.
  15650. * src/TorrentMan.cc
  15651. (TorrentMan): Added the initialization of halt.
  15652. * src/TorrentAutoSaveCommand.h
  15653. (checkPoint): New variable.
  15654. * src/PeerListenCommand.cc
  15655. (execute): Returns true if TorrentMan::isHalt() is true.
  15656. * src/main.cc
  15657. (setSignalHander): Added flags argument.
  15658. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15659. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15660. Removed printDownloadAbortMessage() after torrent downloading loop.
  15661. * src/TorrentAutoSaveCommand.cc
  15662. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15663. (execute): Returns true if TorrentMan::isHalt() is true.
  15664. The interval check is now done by checkPoint, not SleepCommand.
  15665. * src/TrackerWatcherCommand.cc
  15666. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15667. event=stopped.
  15668. * src/TrackerUpdateCommand.cc
  15669. (prepareForRetry): Do not use SleepCommand here.
  15670. (execute): Returns true if TorrentMan::isHalt() is true.
  15671. Others:
  15672. * src/TorrentMan.cc
  15673. (getMissingPieceIndex): Updated log message.
  15674. * src/PeerInteraction.cc
  15675. (createPeerMessag): Updated log message.
  15676. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15677. To add the ability to download several pieces in mix in a command and
  15678. increase the number of request slots according to request-cancel
  15679. latency:
  15680. * src/PeerInteractionCommand.cc
  15681. (executeInternal): The number of messages to be received at a time
  15682. is increased from 10 to 50.
  15683. * src/LogFactory
  15684. (getInstance): Added NullLogger.
  15685. * src/NullLogger.h: New class.
  15686. * src/BitfieldMan.h
  15687. (getMissingIndex): New function.
  15688. * src/BitfieldMan.cc
  15689. (getMissingIndex): New function.
  15690. * src/TorrentMan.h
  15691. (checkOutPiece): New function.
  15692. (getMissingPieceIndex): New function.
  15693. (getMissingFastPieceIndex): New function.
  15694. (getMissingFastPiece): New function.
  15695. * src/TorrentMan.cc
  15696. (updatePiece): Rewritten using STL.
  15697. (syncPiece): Rewritten using STL.
  15698. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15699. checkOutPiece().
  15700. (getMissingPieceIndex): New function.
  15701. (getMissingFastPieceIndex): New function.
  15702. (getMissingFastPiece): New function.
  15703. (checkOutPiece): New function.
  15704. * src/PeerInteraction.h
  15705. (Pieces): New type definition.
  15706. (piece): Removed.
  15707. (pieces): New variable.
  15708. (getNewPieceAndSendInterest): Added the "piece" argument.
  15709. (abortPiece): Added the "piece" argument.
  15710. (abortAllPieces): New function.
  15711. (isInRequestSlot): New function.
  15712. (hasDownloadPiece): Added the "index" argument.
  15713. (setDownloadPiece): Removed.
  15714. (getDownloadPiece): Added the "index" argument.
  15715. (updatePiece): New function.
  15716. (createRequestMessage): Added the "index" argument.
  15717. * src/PeerInteraction.cc
  15718. (onChoked): Rewritten.
  15719. (abortPiece): Rewirtten.
  15720. (abortAllPieces): New function.
  15721. (deleteTimeoutRequestSlot): Rewritten.
  15722. Clarified code a little bit.
  15723. (deleteCompletedRequestSlot): Rewritten.
  15724. (isInRequestSlot): New function.
  15725. (syncPiece): Rewritten.
  15726. (updatePiece): New function.
  15727. (getNewPieceAndSendInterest): Rewritten.
  15728. (addRequests): Rewritten.
  15729. (getDownloadPiece): Rewritten.
  15730. (hasDownloadPiece): Rewritten.
  15731. (createRequestMessage): Added the "index" argument.
  15732. * src/common.h
  15733. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15734. (DIV_FLOOR): New definition.
  15735. * src/PieceMessage.cc
  15736. (receivedAction): Update request-piece latency here.
  15737. * src/RequestSlot.h
  15738. (getLatencyInMillis): New function.
  15739. * src/RequestSlot.cc
  15740. (isTimeout): Rewritten using getLatencyInMillis.
  15741. (getLatencyInMillis): New function.
  15742. * src/Piece.h
  15743. (operator==): New function.
  15744. (getMissingBlockIndex): New function.
  15745. * src/Piece.cc
  15746. (operator==): New function.
  15747. (getMissingBlockIndex): New function.
  15748. * src/Peer.h
  15749. (DEFAULT_LATENCY): New definition.
  15750. (latency): New variable.
  15751. (updateLatency): New function.
  15752. (getLatency): New function.
  15753. * src/Peer.cc
  15754. (resetStatus): Reset latecy.
  15755. (updateLatency): New function.
  15756. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15757. * src/SocketCore.cc
  15758. (isReadable): Added secure to the condition.
  15759. * src/HttpConnection.cc
  15760. (receiveResponse): Fixed a bug that causes no response header
  15761. exception.
  15762. * src/Peer.h
  15763. (getFastSet): Fixed the return value type.
  15764. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15765. To remove a wait from download loop:
  15766. * src/DownloadEngine.cc
  15767. (run): Comment out shortSleep.
  15768. To rewrite the message handling:
  15769. * src/SimplePeerMessage.h: New class.
  15770. * src/SimplePeerMessage.cc: New class.
  15771. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15772. (msg): New variable.
  15773. (create): New function.
  15774. (send): Removed.
  15775. (getMessage): New function.
  15776. (getMessageLength): New function.
  15777. * src/CancelMessage.cc
  15778. (create): New function.
  15779. (receivedAction): Replaced deleteRequestMessageInQueue with
  15780. rejectPieceMessageInQueue.
  15781. (send): Removed.
  15782. (getMessage): New function.
  15783. (getMessageLength): New function.
  15784. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15785. (msg): New variable.
  15786. (msgLength): New variable.
  15787. (~BitfieldMessage): Deleted msg.
  15788. (send): Removed.
  15789. (getMessage): New function.
  15790. (getMessageLength): New function.
  15791. * src/BitfieldMessage.cc
  15792. (create): New function.
  15793. (send): Removed.
  15794. (getMessage): New function.
  15795. (getMessageLength): New function.
  15796. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15797. (msg): New variable.
  15798. (sendPredicate): New function.
  15799. (onSendComplete): New function.
  15800. (send): Removed.
  15801. (getMessage): New function.
  15802. (getMessageLength): New function.
  15803. (create): New function.
  15804. * src/ChokeMessage.cc
  15805. (create): New function.
  15806. (send): Removed.
  15807. (sendPredicate): New function.
  15808. (getMessage): New function.
  15809. (getMessageLength): New function.
  15810. (onSendComplete): New function.
  15811. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15812. (msg): New variable.
  15813. (send): Removed.
  15814. (getMessage): New function.
  15815. (getMessageLength): New function.
  15816. * src/KeepAliveMessage.cc
  15817. (send): Removed.
  15818. (getMessage): New function.
  15819. (getMessageLength): New function.
  15820. * src/PortMessage.h
  15821. (create): New function.
  15822. (receivedAction): Updated log message.
  15823. * src/PortMessage.cc: New file.
  15824. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15825. (msg): New variable.
  15826. (sendPredicate): New function.
  15827. (onSendComplete): New function.
  15828. (create): New function.
  15829. (send): Removed.
  15830. (getMessage): New function.
  15831. (getMessageLength): New function.
  15832. * src/UnchokeMessage.cc
  15833. (create): New function.
  15834. (send): Removed.
  15835. (sendPredicate): New function.
  15836. (getMessage): New function.
  15837. (getMessageLength): New function.
  15838. (onSendComplete): New function.
  15839. * src/PieceMessage.h
  15840. (leftPieceDataLength): Removed.
  15841. (leftDataLength): New variable.
  15842. (headerSend): New variable.
  15843. (pendingCount): New variable.
  15844. (msgHeader): New variable.
  15845. (sendPieceData): New function.
  15846. (incrementPendingCount): New function.
  15847. (isPendingCountMax): New function.
  15848. (create): New function.
  15849. (getMessageHeader): New function.
  15850. (getMessageHeaderLength): New function.
  15851. * src/PieceMessage.cc
  15852. (create): New function.
  15853. (getMessageHeader): New function.
  15854. (getMessageHeaderLength): New function.
  15855. (send): Rewritten.
  15856. (sendPieceData): New function.
  15857. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15858. (msg): New variable.
  15859. (create): New function.
  15860. (getMessage): New function.
  15861. (getMessageLength): New function.
  15862. * src/HaveMessage.cc
  15863. (create): New function.
  15864. (send): Removed.
  15865. (sendPieceData): New function.
  15866. (getMessage): New function.
  15867. (getMessageLength): New function.
  15868. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15869. (msg): New variable.
  15870. (create): New function.
  15871. (send): Removed.
  15872. (getMessage): New function.
  15873. (getMessageLength): New function.
  15874. * src/RequestMessage.cc
  15875. (create): New function.
  15876. (receivedAction): Added the handling of fast extension.
  15877. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15878. (send): Removed.
  15879. (getMessage): New function.
  15880. (getMessageLength): New function.
  15881. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15882. (msg): New variable.
  15883. (sendPredicate): New function.
  15884. (onSendComplete): New function.
  15885. (create): New function.
  15886. (getMessage): New function.
  15887. (getMessageLength): New function.
  15888. * src/InterestedMessage.cc
  15889. (create): New function.
  15890. (send): Removed.
  15891. (sendPieceData): New function.
  15892. (getMessage): New function.
  15893. (getMessageLength): New function.
  15894. (onSendComplete): New function.
  15895. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15896. (msg): New variable.
  15897. (sendPieceData): New function.
  15898. (onSendComplete): New function.
  15899. (create): New function.
  15900. (send): Removed.
  15901. (getMessage): New function.
  15902. (getMessageLength): New function.
  15903. * src/NotInterestedMessage.cc
  15904. (create): New function.
  15905. (send): Removed.
  15906. (sendPredicate): New function.
  15907. (getMessage): New function.
  15908. (getMessageLength): New function.
  15909. (onSendComplete): New function.
  15910. * src/AllowedFastMessage.h: New class.
  15911. * src/AllowedFastMessage.cc: New class.
  15912. * src/RejectMessage.h: New class.
  15913. * src/RejectMessage.cc: New class.
  15914. * src/SuggestPieceMessage.h: New class.
  15915. * src/SuggestPieceMessage.cc: New class.
  15916. * src/HaveAllMessage.h: New class.
  15917. * src/HaveAllMessage.cc: New class.
  15918. * src/HaveNoneMessage.h: New class.
  15919. * src/HaveNoneMessage.cc: New class.
  15920. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15921. (msg): New variable.
  15922. (reserved): New variable.
  15923. (create): New function.
  15924. (getId): New function.
  15925. (receivedAction): New function.
  15926. (getMessage): New function.
  15927. (getMessageLength): New function.
  15928. (isFastExtensionSupported): New function.
  15929. * src/HandshakeMessage.cc
  15930. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15931. (create): New function.
  15932. (getMessage): New function.
  15933. (getMessageLength): New function.
  15934. (toString): Added the output of reserved field.
  15935. (check): Added const qualifier.
  15936. (isFastExtensionSupported): New function.
  15937. * src/PeerMessageUtil.h
  15938. (createChokeMessage): Removed.
  15939. (createUnchokeMessage): Removed.
  15940. (createInterestedMessage): Removed.
  15941. (createNotInterestedMessage): Removed.
  15942. (createHaveMessage): Removed.
  15943. (createBitfieldMessage): Removed.
  15944. (createRequestMessage): Removed.
  15945. (createCancelMessage): Removed.
  15946. (createPieceMessage): Removed.
  15947. (createPortMessage): Removed.
  15948. (createChokeMessage): Removed.
  15949. (createUnchokeMessage): Removed.
  15950. (createInterestedMessage): Removed.
  15951. (createNotInterestedMessage): Removed.
  15952. (createHaveMessage): Removed.
  15953. (createBitfieldMessage): Removed.
  15954. (createRequestMessage): Removed.
  15955. (createCancelMessage): Removed.
  15956. (createPieceMessage): Removed.
  15957. (createKeepAliveMessage): Removed.
  15958. (createHandshakeMessage): Removed.
  15959. (setIntParam): New function.
  15960. (createPeerMessageString): New function.
  15961. * src/PeerMessageUtil.cc
  15962. (createChokeMessage): Removed.
  15963. (createUnchokeMessage): Removed.
  15964. (createInterestedMessage): Removed.
  15965. (createNotInterestedMessage): Removed.
  15966. (createHaveMessage): Removed.
  15967. (createBitfieldMessage): Removed.
  15968. (createRequestMessage): Removed.
  15969. (createCancelMessage): Removed.
  15970. (createPieceMessage): Removed.
  15971. (createPortMessage): Removed.
  15972. (createRequestMessage): Removed.
  15973. (createCancelMessage): Removed.
  15974. (createPieceMessage): Removed.
  15975. (createHaveMessage): Removed.
  15976. (createChokeMessage): Removed.
  15977. (createUnchokeMessage): Removed.
  15978. (createInterestedMessage): Removed.
  15979. (createNotInterestedMessage): Removed.
  15980. (createBitfieldMessage): Removed.
  15981. (createKeepAliveMessage): Removed.
  15982. (createHandshakeMessage): Removed.
  15983. (setIntParam): New function.
  15984. (createPeerMessageString): New function.
  15985. * src/PeerConnection.h
  15986. (peer): Removed.
  15987. (torrentMan): Removed.
  15988. (createNLengthMessage): Removed.
  15989. (setIntParam): Removed.
  15990. (writeOutgoingMessageLog): Removed all overloaded functions.
  15991. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15992. (sendMessage): New function.
  15993. (sendHandshake): Removed.
  15994. (sendKeepAlive): Removed.
  15995. (sendChoke): Removed.
  15996. (sendUnchoke): Removed.
  15997. (sendInterested): Removed.
  15998. (sendNotInterested): Removed.
  15999. (sendHave): Removed.
  16000. (sendBitfield): Removed.
  16001. (sendRequest): Removed.
  16002. (sendPiece): Removed.
  16003. (sendPieceHeader): Removed.
  16004. (sendPieceData): Removed.
  16005. (sendCancel): Removed.
  16006. (getPeer): Removed.
  16007. * src/PeerConnection.cc
  16008. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16009. (sendHandshake): Removed.
  16010. (sendKeepAlive): Removed.
  16011. (createNLengthMessage): Removed.
  16012. (setIntParam): Removed.
  16013. (writeOutgoingMessageLog): Removed all overloaded functions.
  16014. (sendChoke): Removed.
  16015. (sendUnchoke): Removed.
  16016. (sendInterested): Removed.
  16017. (sendNotInterested): Removed.
  16018. (sendHave): Removed.
  16019. (sendBitfield): Removed.
  16020. (sendRequest): Removed.
  16021. (sendPiece): Removed.
  16022. (sendPieceHeader): Removed.
  16023. (sendPieceData): Removed.
  16024. (sendMessage): New function.
  16025. (sendCancel): Removed.
  16026. * src/PeerInteractionCommand.cc
  16027. (PeerInteractionCommand): Call setUploadLimit.
  16028. (executeInternal): Call setUploadLimit.
  16029. Added the handling of "inProgress" state of handshake message.
  16030. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16031. sendNow().
  16032. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16033. sendNow().
  16034. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16035. * src/TorrentMan.h
  16036. (PEER_ID_LENGTH): New definition.
  16037. (hasAllPieces): New function.
  16038. * src/TorrentMan.cc
  16039. (getMissingPiece): Added the handling of fast extension.
  16040. (cancelPiece): Call updatePiece().
  16041. (hasAllPieces): New function.
  16042. * src/PeerInteraction.h
  16043. (fastSet): New variable.
  16044. (getNewPieceAndSendInterest): Changed the return type to void.
  16045. (send): Renamed as sendMessages.
  16046. (deleteAllRequestSlot): Removed.
  16047. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16048. (cancelAllRequest): Removed all overloaded functions.
  16049. (deleteAllRequestSlot): Removed.
  16050. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16051. (rejectPieceMessageInQueue): New function.
  16052. (rejectAllPieceMessageInQueue): New function.
  16053. (onChoked): New function.
  16054. (isSendingMessageInProgress): New function.
  16055. (getCorrespondingRequestSlot): Changed its arguments.
  16056. (isInFastSet): New function.
  16057. (addFastSetIndex): New function.
  16058. (addRequests): New function.
  16059. (sendNow): Removed.
  16060. (trySendNow): Removed.
  16061. (sendBitfield): New function.
  16062. (sendAllowdFast): New function.
  16063. (createHaveAllMessage): New function.
  16064. (createHaveNoneMessage): New function.
  16065. (createRejectMessage): New function.
  16066. (createAllowedFastMessage): New function.
  16067. * src/PeerInteraction.cc
  16068. (send): Renamed as sendMessages.
  16069. (sendMessages): New function.
  16070. (MsgPushBack): New class.
  16071. (isSendingMessageInProgress): New function.
  16072. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16073. (rejectAllPieceMessageInQueue): New function.
  16074. Added the handling of fast extension.
  16075. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16076. (rejectPieceMessageInQueue): New function.
  16077. Added the handling of fast extension.
  16078. (deleteRequestSlot): Replaced for loop with std::find.
  16079. (onChoked): New function.
  16080. (deleteAllRequestSlot): Removed.
  16081. (abortPiece): Rewirtten.
  16082. (deleteTimeoutRequestSlot): Updated log messages.
  16083. (getCorrespondingRequestSlot): Changed its arguments.
  16084. (cancelAllRequest): Removed all overloaded functions.
  16085. (receiveHandshake): Added the check to see whether an incoming peer
  16086. supports fast extension.
  16087. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16088. PeerMessageUtil.
  16089. (createPeerMessage): Use create() of each message class instead of
  16090. PeerMessageUtil.
  16091. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16092. AllowedFastMessage were added.
  16093. (getNewPieceAndSendInterest): Changed its return value type to void.
  16094. Added the handling of fast extension.
  16095. (addRequests): New function.
  16096. (sendNow): Removed.
  16097. (sendHandshake): Rewritten.
  16098. (trySendNow): Removed.
  16099. (sendBitfield): New function.
  16100. (sendAllowdFast): New function.
  16101. (isInFastSet): New function.
  16102. (addFastSetIndex): New function.
  16103. (createRequestMessage): Use RequestMessage::create instead of
  16104. PeerMessageUtil.
  16105. (createCancelMessage): Use CancelMessage::create instead of
  16106. PeerMessageUtil.
  16107. (createPieceMessage): Use PieceMessage::create instead of
  16108. PeerMessageUtil.
  16109. (createHaveMessage): Use HaveMessage::create instead of
  16110. PeerMessageUtil.
  16111. (createChokeMessage): Use ChokeMessage::create instead of
  16112. PeerMessageUtil.
  16113. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16114. PeerMessageUtil.
  16115. (createInterestedMessage): Use InterestedMessage::create instead of
  16116. PeerMessageUtil.
  16117. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16118. of PeerMessageUtil.
  16119. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16120. PeerMessageUtil.
  16121. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16122. PeerMessageUtil.
  16123. (createHaveAllMessage): New function.
  16124. (createHaveNoneMessage): New function.
  16125. (createRejectMessage): New function.
  16126. (createAllowedFastMessage: New function.
  16127. * src/Util.h
  16128. (sha1Sum): New function.
  16129. (computeFastSet): New function.
  16130. * src/Util.cc
  16131. (sha1Sum): New function.
  16132. (computeFastSet): New function.
  16133. * src/Peer.h
  16134. (fastExtensionEnabled): New variable.
  16135. (fastSet): New variable.
  16136. (setAllBitfield): New function.
  16137. (setFastExtensionEnabled): New function.
  16138. (isFastExtensionEnabled): New function.
  16139. (addFastSetIndex): New function.
  16140. (getFastSet): New function.
  16141. (isInFastSet): New function.
  16142. (countFastSet): New function.
  16143. * src/Peer.cc
  16144. (isInFastSet): New function.
  16145. (addFastSetIndex): New function.
  16146. (setAllBitfield): New function.
  16147. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16148. sockets.
  16149. * src/PeerAbstractCommand.cc
  16150. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16151. and uploadLimit.
  16152. (execute): Changed the procedure of checking sockets. The upload speed
  16153. checking were added.
  16154. (setUploadLimit): New function.
  16155. (setUploadLimitCheck): New function.
  16156. * src/PeerAbstractCommand.h
  16157. (setUploadLimit): New function.
  16158. (setUploadLimitCheck): New function.
  16159. (uploadLimit): New variable.
  16160. (uploadLimitCheck): New variable.
  16161. To contact a tracker regularly:
  16162. * src/TrackerWatcherCommand.h (interval): New variable.
  16163. (checkPoint): New variable.
  16164. (TrackerWatcherCommand): Added interval argument.
  16165. * src/TrackerWatcherCommand.cc
  16166. (TrackerWatcherCommand): Initialized checkPoint.
  16167. (execute): Now a tracker is contacted in every specified period.
  16168. If peer list is not needed, send request with numwant=0.
  16169. * src/TrackerUpdateCommand.cc
  16170. (execute): Updated log messages.
  16171. * src/DownloadEngine.cc
  16172. (~DownloadEngine): Removed two asserts.
  16173. (waitData): Uncommented wfds. May be a bug fix.
  16174. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16175. * src/PeerInteractionCommand.h
  16176. (checkInactiveConnection): Removed.
  16177. * src/PeerInteractionCommand.cc
  16178. (executeInternal): Removed following function calls:
  16179. detectMessageFlooding(), checkLongTimePeerChoking and
  16180. checkInactiveConnection().
  16181. (checkInactiveConnection): Removed.
  16182. (detectMessageFlooding): Removed function call to
  16183. checkInactiveConnection().
  16184. * src/PeerMessageUtil.h
  16185. (createChokeMessage): New function. Overload.
  16186. (createUnchokeMessage): New function. Overload.
  16187. (createInterestedMessage): New function. Overload.
  16188. (createNotInterestedMessage): New function. Overload.
  16189. (createHaveMessage): New function. Overload.
  16190. (createBitfieldMessage): New function. Overload.
  16191. (createRequestMessage): New function. Overload.
  16192. (createCancelMessage): New function. Overload.
  16193. (createPieceMessage): New function. Overload.
  16194. (createKeepAliveMessage): New function. Overload.
  16195. * src/PeerMessageUtil.cc
  16196. (createChokeMessage): New function. Overload.
  16197. (createUnchokeMessage): New function. Overload.
  16198. (createInterestedMessage): New function. Overload.
  16199. (createNotInterestedMessage): New function. Overload.
  16200. (createHaveMessage): New function. Overload.
  16201. (createBitfieldMessage): New function. Overload.
  16202. (createRequestMessage): New function. Overload.
  16203. (createCancelMessage): New function. Overload.
  16204. (createPieceMessage): New function. Overload.
  16205. (createKeepAliveMessage): New function. Overload.
  16206. * src/SendMessageQueue.cc
  16207. (createRequestMessage): Use PeerMessageUtil.
  16208. (createCancelMessage): Use PeerMessageUtil.
  16209. (createPieceMessage): Use PeerMessageUtil.
  16210. (createHaveMessage): Use PeerMessageUtil.
  16211. (createChokeMessage): Use PeerMessageUtil.
  16212. (createUnchokeMessage): Use PeerMessageUtil.
  16213. (createInterestedMessage): Use PeerMessageUtil.
  16214. (createNotInterestedMessage): Use PeerMessageUtil.
  16215. (createBitfieldMessage): Use PeerMessageUtil.
  16216. (createKeepAliveMessage): Use PeerMessageUtil.
  16217. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16218. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16219. * src/PeerInteraction.h: New class.
  16220. * src/PeerInteraction.cc: New class.
  16221. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16222. Each peer message has its own class.
  16223. * src/PendingMessages.h: Removed.
  16224. * src/PendingMessages.cc: Removed. The sending process was moved to
  16225. each message class.
  16226. * src/RequestSlotMan.h: Removed.
  16227. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16228. SendMessageQueue.
  16229. * src/RequestMessage.h: New class.
  16230. * src/RequestMessage.cc: New class.
  16231. * src/CancelMessage.h: New class.
  16232. * src/CancelMessage.cc: New class.
  16233. * src/BitfieldMessage.h: New class.
  16234. * src/BitfieldMessage.cc: New class.
  16235. * src/ChokeMessage.h: New class.
  16236. * src/ChokeMessage.cc: New class.
  16237. * src/KeepAliveMessage.h: New class.
  16238. * src/KeepAliveMessage.cc: New class.
  16239. * src/PortMessage.h: New class.
  16240. * src/UnchokeMessage.h: New class.
  16241. * src/UnchokeMessage.cc: New class.
  16242. * src/PieceMessage.h: New class.
  16243. * src/PieceMessage.cc: New class.
  16244. * src/HaveMessage.h: New class.
  16245. * src/HaveMessage.cc: New class.
  16246. * src/BitfieldMessage.h: New class.
  16247. * src/BitfieldMessage.cc: New class.
  16248. * src/NotInterestedMessage.h: New class.
  16249. * src/NotInterestedMessage.cc: New class.
  16250. * src/InterestedMessage.h: New class.
  16251. * src/InterestedMessage.cc: New class.
  16252. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16253. (getSendMessageQueue): New function.
  16254. (setSendMessageQueue): New function.
  16255. * src/HandshakeMessage.cc: New class.
  16256. * src/PeerConnection.h (receiveMessage): Changed return value and
  16257. arguments.
  16258. (receiveHandshake): Changed return value and arguments.
  16259. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16260. here.
  16261. (receiveHandshake): Do not create handshake class here.
  16262. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16263. (piece): Removed.
  16264. (syncPiece): Removed.
  16265. (sendInterest): Removed.
  16266. (sendMessages): Removed.
  16267. (createRequestPendingMessage): Removed.
  16268. (checkPieceHash): Removed.
  16269. (erasePieceOnDisk): Removed.
  16270. (getNewPieceAndSendInterest): Removed.
  16271. (onGotNewPice): Removed.
  16272. (onGotWrongPiece): Removed.
  16273. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16274. Removed peerConnection, piece.
  16275. (~PeerInteractionCommand): Removed peerConnection.
  16276. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16277. (syncPiece): Moved to SendMessageQueue.
  16278. (decideChoking): Removed PendingMessage.
  16279. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16280. The action after receiving peer message was moved to each message
  16281. class.
  16282. (onGotNewPice): Moved to SendMessageQueue.
  16283. (onGotWrongPiece): Moved to SendMessageQueue.
  16284. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16285. (sendInterest): Moved to SendMessageQueue.
  16286. (createRequestPendingMessage): Removed.
  16287. (sendMessages): Moved to SendMessageQueue.
  16288. (onAbort): Use SendMessageQueue::abortPiece()
  16289. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16290. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16291. (checkPieceHash): Moved to SendMessageQueue.
  16292. (erasePieceOnDisk): Moved to SendMessageQueue.
  16293. * src/PeerMessageUtil.h
  16294. (createBitfieldMessage): Removed.
  16295. (createHaveMessage): Changed return value and arguments.
  16296. (createBitfieldMessage): Changed return value and arguments.
  16297. (createRequestCancelMessage): Removed.
  16298. (createPieceMessage): Changed return value and arguments.
  16299. (getShortIntParam): New function.
  16300. (checkIndex): Changed arguments.
  16301. (checkBegin): Changed arguments.
  16302. (checkLength): Changed arguments.
  16303. (checkPieceOffset): Removed.
  16304. (checkRange): New function.
  16305. (checkBitfield): Changed arguments.
  16306. (createPeerMessage): Removed.
  16307. (checkIntegrity): Removed.
  16308. (createHandshakeMessage): Changed arguments.
  16309. (createChokeMessage): New function.
  16310. (createUnchokeMessage): New function.
  16311. (createInterestedMessage): New function.
  16312. (createNotInterestedMessage): New function.
  16313. (createRequestMessage): New function.
  16314. (createCancelMessage): New function.
  16315. (createPortMessage): New function.
  16316. * src/PeerMessageUtil.cc
  16317. (createBitfieldMessage): Removed.
  16318. (createHaveMessage): Changed return value and arguments.
  16319. (createBitfieldMessage): Changed return value and arguments.
  16320. (createRequestCancelMessage): Removed.
  16321. (createPieceMessage): Changed return value and arguments.
  16322. (getShortIntParam): New function.
  16323. (checkIndex): Changed arguments.
  16324. (checkBegin): Changed arguments.
  16325. (checkLength): Changed arguments.
  16326. (checkPieceOffset): Removed.
  16327. (checkRange): New function.
  16328. (checkBitfield): Changed arguments.
  16329. (createPeerMessage): Removed.
  16330. (checkIntegrity): Removed.
  16331. (createHandshakeMessage): Changed arguments.
  16332. (createChokeMessage): New function.
  16333. (createUnchokeMessage): New function.
  16334. (createInterestedMessage): New function.
  16335. (createNotInterestedMessage): New function.
  16336. (createRequestMessage): New function.
  16337. (createCancelMessage): New function.
  16338. (createPortMessage): New function.
  16339. * src/PeerMessage.h
  16340. (id): Removed.
  16341. (index): Removed.
  16342. (begin): Removed.
  16343. (length): Removed.
  16344. (bitfield): Removed.
  16345. (bitfieldLength): Removed.
  16346. (block): Removed.
  16347. (blockLength): Removed.
  16348. (inProgress): New variable.
  16349. (cuid): New variable.
  16350. (peer): New variable.
  16351. (sendMessageQueue): New variable.
  16352. (logger): New variable.
  16353. (setBitfield): Removed.
  16354. (getBitfield): Removed.
  16355. (setBlock): Removed.
  16356. (getBlock): Removed.
  16357. (getBitfieldLength): Removed.
  16358. (getBlockLength): Removed.
  16359. (isInProgress): New function.
  16360. (toString): Made pure virtual.
  16361. (check): New function.
  16362. (send): New function.
  16363. (receivedAction): New function.
  16364. (getId): Made pure virtual.
  16365. (setId): Removed.
  16366. (getIndex): Removed.
  16367. (setIndex): Removed.
  16368. (getBegin): Removed.
  16369. (setBegin): Removed.
  16370. (getLength): Removed.
  16371. (setLength): Removed.
  16372. (getCuid): New function.
  16373. (setCuid): New function.
  16374. (getPeer): New function.
  16375. (setPeer): New function.
  16376. (getSendMessageQueue): New function.
  16377. (setSendMessageQueue): New function.
  16378. (ID): Removed.
  16379. * src/PeerMessage.cc
  16380. (setBitfield): Removed.
  16381. (setBlock): Removed.
  16382. (toString): Removed.
  16383. * src/TorrentMan.h
  16384. (getPieceLength): New function.
  16385. (getPieceLength): New function.
  16386. * src/SendMessageQueue.h
  16387. (REQUEST_TIME_OUT): New definition.
  16388. (RequestSlots): New definition.
  16389. (MessageQueue): New definition.
  16390. (requestSlotMan): Removed.
  16391. (pendingMessages): Removed.
  16392. (requestSlots): New variable.
  16393. (messageQueue): New variable.
  16394. (torrentMan): New variable.
  16395. (peerConnection): New variable.
  16396. (peer): New variable.
  16397. (piece): New variable.
  16398. (getNewPieceAndSendInterest): New function.
  16399. (createPeerMessage): New function.
  16400. (createHandshakeMessage): New function.
  16401. (send): Made private.
  16402. (setPeerMessageCommonProperty): New function.
  16403. (deleteAllRequestSlot): New function.
  16404. (deleteRequestMessageInQueue): New function.
  16405. (cancelAllRequest): Made private.
  16406. (cancelAllRequest): Made private.
  16407. (countRequestSlot): Made private.
  16408. (addPendingMessage): Removed.
  16409. (deletePendingPieceMessage): Removed.
  16410. (deletePendingRequestMessage): Removed.
  16411. (addMessage): New function.
  16412. (deletePieceMessageInQueue): New function.
  16413. (deleteTimeoutRequestSlot): Changed argument.
  16414. (deleteCompletedRequestSlot): Changed argument.
  16415. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16416. (getCorrespondingRequestSlot): New function.
  16417. (countPendingMessage): Removed.
  16418. (countMessageInQueue): New function.
  16419. (getTorrentMan): New function.
  16420. (getPeerConnection): New function.
  16421. (hasDownloadPiece): New function.
  16422. (getDownloadPiece): New function.
  16423. (setDownloadPiece): New function.
  16424. (syncPiece): New function.
  16425. (sendMessages): New function.
  16426. (sendNow): New function.
  16427. (trySendNow): New function.
  16428. (abortPiece): New function.
  16429. (sendHandshake): New function.
  16430. (receiveMessage): New function.
  16431. (receiveHandshake): New function.
  16432. (createRequestMessage): New function.
  16433. (createCancelMessage): New function.
  16434. (createPieceMessage): New function.
  16435. (createHaveMessage): New function.
  16436. (createChokeMessage): New function.
  16437. (createUnchokeMessage): New function.
  16438. (createInterestedMessage): New function.
  16439. (createNotInterestedMessage): New function.
  16440. (createBitfieldMessage): New function.
  16441. (createKeepAliveMessage): New function.
  16442. * src/SendMessageQueue.cc
  16443. (SendMessageQueue): Removed requestSlotMan.
  16444. Instantiated peerConnection here.
  16445. (~SendMessageQueue): Removed requestSlotMan.
  16446. Added deletion of peerConnection and the contents of messageQueue.
  16447. (send): Updated according to the change of messageQueue.
  16448. (addPendingMessage): Renamed to addMessage.
  16449. (addMessage): New function.
  16450. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16451. (deletePieceMessageInQueue): New function.
  16452. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16453. (deleteRequestMessageInQueue): New function.
  16454. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16455. here.
  16456. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16457. (...) was moved here.
  16458. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16459. moved here.
  16460. (deleteCompletedRequestSlot):
  16461. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16462. (getCorrespondingRequestSlot):
  16463. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16464. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16465. (countPendingMessage): Renamed to countMessageInQueue.
  16466. (countMessageInQueue): New function.
  16467. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16468. (receiveHandshake): New function.
  16469. (createHandshakeMessage): New function.
  16470. (receiveMessage): New function.
  16471. (createPeerMessage): New function.
  16472. (syncPiece): New function.
  16473. (getNewPieceAndSendInterest): New function.
  16474. (sendMessages): New function.
  16475. (sendNow): New function.
  16476. (trySendNow): New function.
  16477. (sendHandshake): New function.
  16478. (abortPiece): New function.
  16479. (getDownloadPiece): New function.
  16480. (getPeerMessageCommonProperty): New function.
  16481. (createRequestMessage): New function.
  16482. (createCancelMessage): New function.
  16483. (createPieceMessage): New function.
  16484. (createHaveMessage): New function.
  16485. (createChokeMessage): New function.
  16486. (createUnchokeMessage): New function.
  16487. (createInterestedMessage): New function.
  16488. (createNotInterestedMessage): New function.
  16489. (createBitfieldMessage): New function.
  16490. (createKeepAliveMessage): New function.
  16491. To add simple Content-Disposition support:
  16492. * src/HttpResponseCommand.h (determinFilename): New function.
  16493. * src/HttpResponseCommand.cc (executeInternal):
  16494. Use determinFilename(headers) instead of req->getFile() when comparing
  16495. filename.
  16496. (determinFilename): New function.
  16497. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16498. req->getFile().
  16499. (handleOtherEncoding): Use determinFilename(headers) instead of
  16500. req->getFile().
  16501. * src/Util.h (getContentDispositionFilename): New function.
  16502. * src/Util.cc (getContentDispositionFilename): New function.
  16503. * src/LogFactory.h (release): New function.
  16504. * src/LogFactory.cc (release): New function.
  16505. To fix a bug that causes out-of-bound exception when HTTP status
  16506. line is wrong:
  16507. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16508. size.
  16509. * src/common.h (Deleter): New class.
  16510. * src/SegmentMan.cc
  16511. (~SegmentMan): Added deletion of splitter and diskWriter.
  16512. * src/DownloadEngine.h
  16513. (Commands): Use deque.
  16514. (clearQueue): New function.
  16515. * src/DownloadEngine.cc
  16516. (~DownloadEngine): Added deletion of segmentMan.
  16517. (cleanQueue): New function.
  16518. * src/TorrentDownloadEngine.h
  16519. (TorrentDownloadEngine): The implementation was moved to
  16520. TorrentDownloadEngine.cc.
  16521. (~TorrentDownloadEngine): The implementation was moved to
  16522. TorrentDownloadEngine.cc.
  16523. * src/TorrentDownloadEngine.cc
  16524. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16525. * src/main.cc
  16526. (clearRequest): Removed.
  16527. (handler): Added deletion of e.
  16528. (torrentHandler): Added deletion of te.
  16529. (main): Do not share splitter.
  16530. Use Deleter instead of clearRequest.
  16531. Deletion of classes were updated.
  16532. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16533. * src/main.cc (main): Fixed typo.
  16534. * src/message.h: Fixed typo.
  16535. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16536. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16537. To add --select-file command-line option:
  16538. * src/Util.cc
  16539. (unfoldRange): New function.
  16540. (getNum): New function.
  16541. (unfoldSubRange): New function
  16542. * src/main.cc
  16543. (showUsage): Added help message.
  16544. (main): Added --select-file command-line option. Updated the layout of
  16545. file listing.
  16546. * src/common.h
  16547. (Integers): New definition.
  16548. * src/SocketCore.cc
  16549. (writeData): Removed timeout argument.
  16550. (readData): Removed timeout argument.
  16551. (peekData): Removed timeout argument.
  16552. * src/Socket.cc
  16553. (writeData): Removed timeout argument.
  16554. (readData): Removed timeout argument.
  16555. (peekData): Removed timeout argument.
  16556. * Release 0.4.1
  16557. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16558. To deploy upload rate based choking algorithm:
  16559. * src/PeerInteractionCommand.cc
  16560. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16561. peer currently used.
  16562. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16563. download completes. Simplified.
  16564. (receiveMessage): Updated.
  16565. * src/TorrentMan.h
  16566. (activePeers): New variable.
  16567. (addActivePeer): New function.
  16568. (getActivePeers): New function.
  16569. (deleteActivePeer): New function.
  16570. * src/TorrentMan.cc
  16571. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16572. * src/PeerAbstractCommand.cc
  16573. (onAbort): Use peer->resetStatus().
  16574. * src/main.cc
  16575. (PeerChokeCommand.h): Included.
  16576. (main): Added the instance of ChokingCommand to the command queue.
  16577. * src/Peer.h
  16578. (amChoking): Renamed from amChocking
  16579. (chokingRequired): New variable.
  16580. (optUnchoking): New variable.
  16581. (deltaUpload): New variable.
  16582. (deltaDownload): New variable.
  16583. (addDeltaUpload): New function.
  16584. (resetDeltaUpload): New function.
  16585. (addDeltaDownload): New function.
  16586. (resetDeltaDownload): New function.
  16587. (addPeerUpload): Added a call to addDeltaUpload.
  16588. (addPeerDownload): Added a call to addDeltaDownload.
  16589. * src/Peer.cc
  16590. (shouldBeChoking): Renamed from shouldChoke.
  16591. (resetStatus): New function.
  16592. * src/PeerChokeCommand.h: New class.
  16593. * src/PeerChokeCommand.cc: New class.
  16594. To add lazy upload speed limiter:
  16595. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16596. statistics calculation to TorrentDownloadEngine.
  16597. * src/TorrentConsoleDownloadEngine.cc
  16598. (sendStatistics): Renamed from printStatistics.
  16599. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16600. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16601. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16602. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16603. calculation.
  16604. (sendStatistics): New function as pure virtual function.
  16605. (getUploadSpeed): New function.
  16606. * src/TorrentDownloadEngine.cc
  16607. (initStatistics): New function.
  16608. (calculateSpeed): New function.
  16609. (calculateStatistics): New function.
  16610. * src/SendMessageQueue.h
  16611. (uploadLength): New variable.
  16612. (send): Added an argument.
  16613. (setUploadLimit): New function.
  16614. (getUploadLimit): New function.
  16615. * src/SendMessageQueue.cc
  16616. (send): Added upload speed limiter.
  16617. * src/prefs.h
  16618. (PREF_UPLOAD_LIMIT): New definition.
  16619. * src/PeerInteractionCommand.cc
  16620. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16621. * src/main.cc
  16622. (main): Added --upload-limit option
  16623. For bug fixes:
  16624. * src/main.cc
  16625. (showUsage): Corrected --listen-port help
  16626. Other changes:
  16627. * src/TorrentMan.cc
  16628. (getPeer): Return nullPeer if connection is grather than
  16629. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16630. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16631. To add some useful information to the exception message:
  16632. * src/SocketCore.cc : Updated messages.
  16633. * src/SegmentMan.cc :
  16634. * src/TorrentMan.cc : Updated messages.
  16635. * src/MultiDiskWriter.cc : Updated messages.
  16636. * src/Util.cc : Updated messages.
  16637. * src/AbstractDiskWriter.cc : Updated messages.
  16638. * src/PreAllocationDiskWriter.cc : Updated messages.
  16639. * src/message.cc : Added new messages. Updated some messages.
  16640. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16641. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16642. Updated threshold from 30 to 15.
  16643. * src/AbstractDiskWriter.h (filename): New variable.
  16644. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16645. (createFile): Assigned filename.
  16646. * src/main.cc: Updated the help message for http-auth-scheme.
  16647. * Release 0.4.0
  16648. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16649. To add TrackerUpdateCommand with which replaces
  16650. CompactTrackerResponseProcessor:
  16651. * src/TrackerWatcherCommand.h (req): Removed.
  16652. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16653. if the number of peer connections are less than 30.
  16654. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16655. * src/SegmentMan.h (diskWriter): New function.
  16656. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16657. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16658. (main): Use TrackerUpdateCommand.
  16659. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16660. (req): New variable.
  16661. (setTrackerResponseProcessor): Removed.
  16662. (getTrackerResponseProcessor): Removed.
  16663. (processTrackerResponse): Removed.
  16664. * src/DownloadEngine.h (diskWriter): Removed.
  16665. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16666. to torrentMan->processTrackerResponse().
  16667. To add Util::expandBuffer:
  16668. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16669. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16670. * src/Util.h (expandBuffer): New function.
  16671. To fix the bug that causes segmentation fault when "-l ." is specified
  16672. in command-line option:
  16673. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16674. (openFile): New function.
  16675. (closeFile): New function.
  16676. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16677. (~SimpleLogger): Call closeFile();
  16678. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16679. * src/main.cc (main): Added a check to see logger is configured
  16680. properly.
  16681. To enable HTTP authentication without specifying "--http-auth-scheme"
  16682. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16683. * src/HttpConnection.cc (createRequest): Send Authorization header
  16684. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16685. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16686. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16687. * src/Peer.cc (shouldChoke): Updated algorithm.
  16688. * src/message.h (EX_AUTH_FAILED): New definition.
  16689. (EX_FILE_OPEN): New definition.
  16690. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16691. if status == 401.
  16692. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16693. if req->isTorrent == true.
  16694. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16695. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16696. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16697. (createFile): Updated message.
  16698. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16699. To add a readout of estimated remaining time to normal HTTP/FTP
  16700. downloads:
  16701. * src/ConsoleDownloadEngine.h (startup): New variable.
  16702. (startupLength): New variable.
  16703. (isStartupLengthSet): New variable.
  16704. (avgSpeed): New variable.
  16705. (eta): New variable.
  16706. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16707. estimated remaining time.
  16708. (initStatistics): Initialized newly added variables.
  16709. (calculateStatistics): Calculate average speed and estimated remaining
  16710. time.
  16711. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16712. * src/TrackerDownloadCommand.h: Removed.
  16713. * src/TrackerDownloadCommand.cc: Removed.
  16714. * src/TrackerInitCommand.h: Removed.
  16715. * src/TrackerInitCommand.cc: Removed.
  16716. * src/TrackerUpdateCommand.h: Removed.
  16717. * src/TrackerUpdateCommand.cc: Removed.
  16718. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16719. url written in TrackerInitCommand was moved here. Do not create
  16720. tracker request command if torrentMan->trackers != 0.
  16721. * src/CompactTrackerResponseProcessor.h: New class.
  16722. * src/CompactTrackerResponseProcessor.cc: New class.
  16723. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16724. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16725. Decoupled TorrentDownloadEngine from this.
  16726. * src/SegmentMan.h (init): New function.
  16727. * src/SegmentMan.cc (init): New function.
  16728. * src/TorrentMan.h (responseProcessor): New variable.
  16729. (trackers): New variable.
  16730. (setTrackerResponseProcessor): New function.
  16731. (getTrackerResponseProcessor): New function.
  16732. (processTrackerResponse): New function.
  16733. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16734. (processTrackerResponse): New function.
  16735. * src/main.cc (main): Use ByteArrayDiskWriter and
  16736. CompactTrackerResponseProcessor.
  16737. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16738. processTrackerResponse().
  16739. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16740. readout.
  16741. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16742. which indicates download has completed.
  16743. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16744. (closeFile): fd >= 0, not fd > 0
  16745. * src/main.cc (main): Added short cut for show-files.
  16746. Added short cut for torrent-file.
  16747. Added new command-line option listen-port.
  16748. Updated i18n messages.
  16749. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16750. To add LogFactory which creates singleton logger:
  16751. * src/LogFactory.h: New class.
  16752. * src/LogFactory.cc: New class.
  16753. * src/Command.h (logger): New variable.
  16754. (Constructor): Use LogFactory.
  16755. * src/AbstractCommand.cc: Use Command::logger
  16756. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16757. Use LogFactory.
  16758. * src/SegmentSplitter.h : Made logger protected.
  16759. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16760. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16761. * src/DownloadEngine.h : Made logger protected.
  16762. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16763. * src/PeerInteractionCommand.cc : Use Command::logger.
  16764. * src/HttpResponseCommand.cc : Use Command::logger.
  16765. * src/SegmentMan.h : Made logger private.
  16766. * src/TorrentMan.h : Made logger private.
  16767. * src/TorrentMan.cc : Use LogFactory.
  16768. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16769. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16770. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16771. Use LogFactory.
  16772. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16773. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16774. Use LogFactory.
  16775. * src/DownloadCommand.cc : Use Command::logger.
  16776. * src/PeerAbstractCommand.cc : Use Command::logger.
  16777. * src/PeerListenCommand.cc : Use Command::logger.
  16778. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16779. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16780. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16781. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16782. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16783. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16784. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16785. Use LogFactory.
  16786. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16787. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16788. Use LogFactory.
  16789. * src/main.cc (main): Use LogFactory.
  16790. * src/DiskAdaptor.h (logger): New variable.
  16791. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16792. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16793. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16794. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16795. parameter to a tracker request.
  16796. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16797. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16798. * src/main.cc (setSignalHander): New function.
  16799. (main): Added a handler for SIGTERM.
  16800. (handler): Updated message.
  16801. (torrentHandler): Updated message.
  16802. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16803. * src/TorrentConsoleDownloadEngine.cc
  16804. (onPartialDownloadingCompletes): Renamed as
  16805. onSelectiveDownloadingCompletes.
  16806. (onSelectiveDownloadingCompletes): Updated message.
  16807. To add DiskAdaptor which abstract DiskWriter family:
  16808. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16809. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16810. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16811. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16812. MultiDiskAdaptor.h.
  16813. (readFileEntry): Changed its arguments.
  16814. (setup): setupDiskWriter is merged into this function.
  16815. (setupDiskWriter): Removed.
  16816. (setFileFilter): New function.
  16817. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16818. made in readFileEntry.
  16819. (getFilePath): Removed.
  16820. (getTempFilePath): Removed.
  16821. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16822. (fixFilename): Removed.
  16823. (copySingleFile): Removed.
  16824. (splitMultiFile): Removed.
  16825. (deleteTempFile): Removed.
  16826. (setFileEntriesToDownload): Removed.
  16827. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16828. (isSelectiveDownloadingMode): New function.
  16829. (setAllMultiFileRequestedState): Removed.
  16830. (finishPartialDownloadingMode): Renamed as
  16831. finishSelectiveDownloadingMode.
  16832. (finishSelectiveDownloadingMode): New function.
  16833. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16834. (getSelectedTotalLength): New function.
  16835. (onDownloadComplete): Use diskAdaptor.
  16836. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16837. (Range): Removed.
  16838. (setMultiFileEntries): Renamed as setFileEntries.
  16839. (setFileEntries): New function.
  16840. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16841. (pieceLength): New variable.
  16842. * src/main.cc (printDownloadCompeleteMessage): New function.
  16843. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16844. (main): Renamed torrent-show-files to show-files.
  16845. Rewritten file contents listing.
  16846. * src/TorrentMan.h (FileEntry): Removed.
  16847. (multiFileTopDir): Removed.
  16848. (multiFileEntries): Removed.
  16849. (diskWriter): Removed.
  16850. (diskAdaptor): New variable.
  16851. * src/DefaultDiskWriter.h (totalLength): New variable.
  16852. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16853. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16854. diskWriter.
  16855. * src/TorrentConsoleDownloadEngine.h
  16856. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16857. (partialTotalLength): Renamed as selectedTotalLength.
  16858. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16859. openExistingFile, otherwise call initAndOpenFile.
  16860. (closeFile): fd > 0, not fd != 0.
  16861. * src/DirectDiskAdaptor.h: New class.
  16862. * src/DirectDiskAdaptor.cc: New class.
  16863. * src/MultiDiskAdaptor.h: New class.
  16864. * src/MultiDiskAdaptor.cc: New class.
  16865. * src/CopyDiskAdaptor.h: New class.
  16866. * src/CopyDiskAdaptor.cc: New class.
  16867. * src/DiskAdaptor.h: New class.
  16868. * src/DiskAdaptor.cc: New class.
  16869. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16870. (PREF_SHOW_FILES): New definition.
  16871. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16872. To add the ability to download multi torrent into respective files
  16873. directly:
  16874. * src/DiskWriter.h (openFile): New function.
  16875. (seek): Removed.
  16876. * src/MultiDiskWriter.h: New class.
  16877. * src/MultiDiskWriter.cc: New class.
  16878. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16879. protected.
  16880. (openFile): New function.
  16881. * src/AbstractDiskWriter.cc (openFile): New function.
  16882. * src/prefs.h (V_FALSE): New definition.
  16883. (PREF_DIRECT_FILE_MAPPING): New definition.
  16884. * src/TorrentMan.h (setupDiskWriter): New function.
  16885. (setAllMultiFileRequestedState): New function.
  16886. (onDownloadComplete): New function.
  16887. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16888. (setupDiskWriter): New function.
  16889. (getFilePath): Updated.
  16890. (getTempFilePath): Updated.
  16891. (getSegmentFilePath): Updated.
  16892. (fixFilename): Updated.
  16893. (deleteTempFile): Updated.
  16894. (setAllMultiFileRequestedState): New function.
  16895. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16896. (finishPartialDownloadingMode): Reset requested flags.
  16897. (onDownloadComplete): New function.
  16898. * src/main.cc: Added --direct-file-mapping option.
  16899. Use TorrentMan::setupDiskWriter().
  16900. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16901. onDownloadComplete().
  16902. To fix ETA bug:
  16903. * src/Util.h (difftvsec): New function.
  16904. * src/Util.cc (difftvsec): New function.
  16905. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16906. type of "elapsed" instead of long long int.
  16907. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16908. The updates of statistics takes place every 1 seconds.
  16909. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16910. (calculateSpeed): Changed its argument signature.
  16911. * src/PeerMessage.cc (toString): Fixed message.
  16912. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16913. To print ETA:
  16914. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16915. completion handling when dealing with
  16916. TorrentMan::isPartialDownloadingMode() == true.
  16917. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16918. New function.
  16919. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16920. (sessionDownloadLength): New variable.
  16921. (avgSpeed): New variable.
  16922. (eta): New variable.
  16923. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16924. new variables: eta, avgSpeed, startup.
  16925. (calculateSpeed): Calculate average speed and ETA.
  16926. (printStatistics): Added ETA.
  16927. * src/Util.h (secfmt): New function.
  16928. * src/Util.cc (secfmt): New function.
  16929. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16930. To detect "keep alive" flooding:
  16931. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16932. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16933. variable: keepAliveCount.
  16934. (detectMessageFlooding): Added "keep alive" flooding detection.
  16935. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16936. received.
  16937. To add the ability to download only specified files in multi-file
  16938. torrent:
  16939. * src/BitfieldMan.h (filterBitfield): New variable.
  16940. (filterEnabled): New variable.
  16941. (setFilterBit): New function.
  16942. (enableFilter): New function.
  16943. (disableFilter): New function.
  16944. (isFilterEnabled): New function.
  16945. (getFilteredTotalLength): New function.
  16946. (getCompletedLength): New function.
  16947. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16948. filterBitfield, filterEnabled.
  16949. (CopyConstructor): Added filterBitfield and filterEnabled.
  16950. (operator==): Added filterBitfield and filterEnabled.
  16951. (Destructor): Added filterBitfield.
  16952. (getMissingIndex): Use filterBitfield.
  16953. (getMissingUnusedIndex): Use filterBitfield.
  16954. (getFirstMissingUnusedIndex): Use filterBitfield.
  16955. (getFirstMissingUnusedIndex): Use filterBitfield.
  16956. (getAllMissingIndexes): Use filterBitfield.
  16957. (countMissingBlock): Use filterBitfield.
  16958. (countBlock): Use filterBitfield.
  16959. (setBitInternal): Added new argument on.
  16960. (setUseBit): Use setBitInternal.
  16961. (unsetUseBit): Use setBitInternal.
  16962. (setBit): Use setBitInternal.
  16963. (unsetBit): Use setBitInternal.
  16964. (isAllBitSet): Use filterBitfield.
  16965. (setFilterBit): New function.
  16966. (addFilter): New function.
  16967. (enableFilter): New function.
  16968. (disableFilter): New function.
  16969. (clearFilter): New function.
  16970. (isFilterEnabled): New function.
  16971. (getFilteredTotalLength): New function.
  16972. (getCompletedLength): New function.
  16973. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16974. Initalized newly added variables.
  16975. [FileEntry](offset): New variable.
  16976. [FileEntry](extracted): New variable.
  16977. [FileEntry](requested): New variable.
  16978. (readFileEntry): New function.
  16979. (option): New variable.
  16980. (splitMultiFile): Removed const qualifier.
  16981. (fixFilename): Removed const qualifier.
  16982. (readFileEntryFromMetaInfoFile): New function.
  16983. (finishPartialDownloadingMode): New function.
  16984. (isPartialDownloadingMode): New function.
  16985. (setFileEntriesToDownload): New function.
  16986. (getCompletedLength): New function.
  16987. (getPartialTotalLength): New function.
  16988. * src/TorrentMan.cc (readFileEntry): New function.
  16989. (setup): Use readFileEntry. If no-preallocation option is specified,
  16990. use DefaultDiskWriter.
  16991. (readFileEntryFromMetaInfoFile): New function.
  16992. (fixFilename): Removed const qualifier.
  16993. (splitMultiFile): Removed const qualifier.
  16994. (setFileEntriesToDownload): New function.
  16995. (isPartialDownloadingMode): New function.
  16996. (finishPartialDownloadingMode): New function.
  16997. (getCompletedLength): New function.
  16998. (getPartialTotalLength): New function.
  16999. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17000. New variable.
  17001. (partialTotalLength): New variable.
  17002. (downloadLength): New variable.
  17003. (totalLength): New variable.
  17004. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17005. Added log.
  17006. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17007. partialTotalLength, downloadLength, totalLength.
  17008. (calculate): Calculate downloadLength and totalLength.
  17009. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17010. * src/main.cc (addCommand): Changed argument signature.
  17011. (main): Added new variable: args. Added new option "torrent-show-files"
  17012. "no-preallocation". Usage is not updated yet.
  17013. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17014. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17015. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17016. Attempt to add the ability to listing file entries in a .torrent file.
  17017. This feature is not yet complete.
  17018. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17019. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17020. (getName): New function.
  17021. * src/TorrentMan.h (getMultiFileEntries): New function.
  17022. (getName): New function.
  17023. * src/main.cc (main): Use above 2 funtion.
  17024. * Release 0.3.2
  17025. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17026. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17027. (detectMessageFlooding): Updated threshold value.
  17028. (checkLongTimePeerChoking): Updated timeout value.
  17029. (getNewPieceAndSendInterest): Added debug log.
  17030. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17031. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17032. (getPeer): Updated.
  17033. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17034. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17035. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17036. is localhost.
  17037. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17038. * src/PendingMessage.cc (processMessage): Not to send piece message
  17039. if peer is not interested in the pieces localhost has.
  17040. * src/Peer.cc (shouldChoke): Updated.
  17041. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17042. * src/Util.cc (isPowerOf): New function.
  17043. * src/Util.h (isPowerOf): New function.
  17044. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17045. whether or not it is power of 2.
  17046. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17047. Added new class SendMessageQueue that includes PendingMessages and
  17048. RequestSlotMan.
  17049. * src/SendMessageQueue.h: New class.
  17050. * src/SendMessageQueue.cc: New class.
  17051. * src/PendingMessage.h: Added new member variable blockIndex and its
  17052. accessors.
  17053. (createRequestMessage): Updated.
  17054. * src/PendingMessage.cc (createRequestMessage): Updated.
  17055. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17056. SendMessageQueue.
  17057. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17058. (receiveMessage): Updated with SendMessageQueue.
  17059. (deletePendingPieceMessage): Removed.
  17060. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17061. (sendInterest): Updated with SendMessageQueue.
  17062. (createRequestPendingMessage): Updated with SendMessageQueue.
  17063. (sendMessages): Updated with SendMessageQueue.
  17064. (onAbort): Updated with SendMessageQueue.
  17065. (keepAlive): Updated with SendMessageQueue.
  17066. (beforeSocketCheck): Updated SendMessageQueue.
  17067. * src/PeerInteractionCommand (sendMessages): Shuffle
  17068. missingBLockIndexes before using it.
  17069. Added its own timeout for peer connection.
  17070. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17071. setter.
  17072. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17073. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17074. Added setTimeout() call.
  17075. (executeInternal): Added setTimeout() call.
  17076. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17077. Added timeout.
  17078. (isTimeoutDetected): Updated.
  17079. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17080. option.
  17081. Added *simple* message flooding checker.
  17082. * src/PeerInteractionCommand.cc (executeInternal):
  17083. Added detectMessageFlooding() call.
  17084. (detectMessageFlooding): New function.
  17085. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17086. (beforeSocketCheck): Added detectMessageFlooding() call.
  17087. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17088. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17089. Removed deletePendingPieceMessage(), getRequestSlot(),
  17090. deleteRequestSlot(), deleteAllRequestSlot().
  17091. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17092. Added checkLongTimePeerChoking() call.
  17093. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17094. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17095. if duplicate == false.
  17096. The parameter "uploaded" and "downloaded" in the tracker request are
  17097. the size since the client sent the "started" event to the tracker.
  17098. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17099. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17100. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17101. getSessionDownloadedSize(), getSessionUploadedSize().
  17102. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17103. getSessionUploadedSize() instead of getDownloadedSize(),
  17104. getUploadedSize().
  17105. * src/PendingMessage.cc (processMessage): Do not send request message
  17106. if the peer is choking the client.
  17107. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17108. less than interval.
  17109. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17110. * configure.in: Added gnutls support. Added several CPP macros.
  17111. * m4/openssl.m4: Added.
  17112. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17113. readData(), peekData(). Added gnutls support.
  17114. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17115. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17116. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17117. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17118. Instead, added a check for whether setup method has executed
  17119. successfully.
  17120. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17121. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17122. * src/Makefile.am: Updated.
  17123. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17124. using whether OpenSSL or gcrypt, depending on the result of configure
  17125. script.
  17126. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17127. messageDigest.h.
  17128. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17129. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17130. Fixed memory leak.
  17131. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17132. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17133. Removed instantiation of TrackerInitCommand. Instead,
  17134. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17135. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17136. ENABLE_SSL.
  17137. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17138. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17139. If a piece is already acquired by another command, delete the request
  17140. slots for the piece.
  17141. * src/TrackerUpdateCommand.cc (execute):
  17142. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17143. Added a check whether peer list is null.
  17144. Fixed the bug that causes sending completed event to the tracker
  17145. several times.
  17146. * src/TrackerInitCommand.cc (execute):
  17147. Fixed the bug that causes sending completed event to the tracker
  17148. several times.
  17149. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17150. by using messageDigest.h.
  17151. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17152. * PeerConnection.cc: Replaced log message "keep-alive" with
  17153. "keep alive".
  17154. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17155. localhost long time.
  17156. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17157. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17158. at most 100 failure entry from the list. If with duplicate = false,
  17159. MAX_PEER_LIST is not checked.
  17160. * PeerListenCommand.cc: Fixed the argument order of log message.
  17161. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17162. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17163. Added warn().
  17164. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17165. Implemented warn().
  17166. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17167. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17168. * Request.h: Added AFTER_COMPLETED event.
  17169. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17170. instead of downloaded size and progress(%) after download completes.
  17171. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17172. message to the peer if it is interested in what localhost has
  17173. downloaded.
  17174. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17175. destination instead of just renaming it.
  17176. * TorrentMan.cc: Added deleteTempFile().
  17177. * PeerAbstractCommand.cc: do not stop execution after download
  17178. completes. This makes localhost a seeder.
  17179. * Util.{h,cc}: Added fileCopy().
  17180. * PeerListenCommand.cc: do not stop execution after download completes.
  17181. This makes localhost a seeder.
  17182. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17183. Added TorrentMan::deleteTempFile() to torrentHandler.
  17184. Initialized the variable dir as ".".
  17185. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17186. Deleted renameSingleFile().
  17187. Added copySingleFile(), deleteTempFile().
  17188. * DownloadEngine.h: Added virtual function afterEachIteration().
  17189. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17190. in onEndOfRun() to afterEachIteration().
  17191. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17192. true.
  17193. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17194. In rangedFileCopy(), added try-catch block to properly close file
  17195. descriptors.
  17196. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17197. Added afterEachIteration(), isFilenameFixed().
  17198. * Peer.cc: Changed choking strategy.
  17199. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17200. * TrackerInitCommand.cc: Send completed event only once.
  17201. * DownloadEngine.cc: Added a call to afterEachIteration().
  17202. * TrackerUpdateCommand.cc: Do not stop execution after download
  17203. completes.
  17204. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17205. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17206. received from a tracker.
  17207. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17208. Decreased the number of failure peers to delete to 0(just comment out
  17209. the line).
  17210. * Release 0.3.1
  17211. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17212. * PeerInteractionCommand.cc: added a call to
  17213. TorrentMan::unadvertisePiece in Destructor.
  17214. * PeerInteractionCommand.cc: make have message sent immediately
  17215. if the size of pending message queue is zero.
  17216. * TorrentMan.cc: set the maximum size of peer list to 250.
  17217. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17218. to deque.
  17219. * Util.cc: fixed rangedFileCopy.
  17220. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17221. to Constructor. Also, moved digest cleanup to Destructor.
  17222. * MetaFileUtil.cc: fixed memory leak
  17223. * replaced std::vector with std::deque.
  17224. * AbstractCommand.cc: casted timeout value to long long int.
  17225. * ChunkedEncoding.cc: fixed memory leak.
  17226. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17227. * SleepCommand.cc: casted timeout value to long long int.
  17228. * Data.cc: fixed memory leak.
  17229. * Data.cc: fixed toLLInt().
  17230. * BitfieldMan.cc: fixed memory leak.
  17231. * TorrentMan.cc: initialized storeDir to ".".
  17232. * TorrentMan.cc: fixed memory leak.
  17233. * TorrentMan.cc: corrected file paths of splitted files.
  17234. * PeerAbstractCommand.cc: casted timeout to long long int.
  17235. * main.cc: added delete(req) and delete(te->diskWriter).
  17236. * RequestSlot.cc: casted timeout value to long long int.
  17237. * Request.cc: fixed memory leak.
  17238. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17239. have the piece.
  17240. * Peer.{h,cc}: added hasPiece(int index).
  17241. * main.cc: corrected addCommand.
  17242. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17243. * BitTorrent protocol support added.
  17244. * Release 0.3.0
  17245. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17246. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17247. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17248. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17249. decoding did not work properly.
  17250. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17251. * DownloadEngine.h: included sys/time.h
  17252. * DownloadEngine.cc: remove sys/time.h
  17253. * Makefile.am (SUBDIRS): Add intl.
  17254. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17255. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17256. * main.cc: correct help message for --http-auth-scheme.
  17257. * main.cc: changed e-mail address for bug reports.
  17258. * ja.po: added japanese translation.
  17259. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17260. * SimpleLogger.cc: flush log file instead of stdout.
  17261. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17262. * main.cc: Fixed command-line option: max-tries
  17263. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17264. does not equal to seg.sp.
  17265. * DownloadCommand.cc: If EOF is got from the server and the total size
  17266. of file is not zero, then throw DlRetryEx.
  17267. * main.cc: Set the minium value of min-segment-size to 1024.
  17268. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17269. fails because of a regression since 0.2.0 release.
  17270. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17271. * HttpConnection.cc:
  17272. * common.h: defined the user agent name as macro
  17273. * DownloadEngine.{h, cc}:
  17274. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17275. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17276. * main.cc: Download complete/abort message is now generated by main.
  17277. * Makefile.am (SUBDIRS): Add m4.
  17278. (ACLOCAL_AMFLAGS): New variable.
  17279. (EXTRA_DIST): New variable.
  17280. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17281. * gettext: added gettext functionality
  17282. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17283. * AbstractCommand.cc:
  17284. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17285. unregister its cuid from SegmentMan.
  17286. * DownloadEngine.cc: .aria2 file was written when a downloading
  17287. failed with errors.
  17288. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17289. Added "User-Agent" header to CONNECT proxy request.
  17290. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17291. properly.
  17292. * Logger.h:
  17293. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17294. * ChunkedEncoding.cc: Added #include directive for strings.h
  17295. * Release 0.2.1
  17296. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17297. * Util.{h,cc}: added startsWith().
  17298. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17299. Util::endsWith().
  17300. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17301. * common.h: added #include directive of limit.h.
  17302. * DownloadEngine.cc: added #include directive of sys/time.h and
  17303. algorithm.
  17304. * Exception.h: added #include directive of stdio.h.
  17305. * AbstractCommand.h: added #include directive of sys/time.h.
  17306. * DownloadCommand.h: added #include directive of sys/time.h.
  17307. * *.h: added #include directive of common.h to all base classes.
  17308. subclasses' one was removed.
  17309. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17310. does not define these macros.
  17311. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17312. * Release 0.2.0
  17313. * main.cc:
  17314. * HttpInitiateConnectionCommand.{h,cc}:
  17315. * prefs.h:
  17316. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17317. We can now use GET command in http proxy.
  17318. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17319. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17320. that splits slowest segment of SegmentMan::commands vector.
  17321. This is the default split algorithm of aria2.
  17322. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17323. that splits first segment of SegmentMan::commands vector.
  17324. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17325. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17326. * Segment.h:
  17327. * SegmentMan.cc: Added speed field to Segment.h
  17328. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17329. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17330. * message.h: Change file size related %d to %lld.
  17331. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17332. * FtpInitiateConnectionCommand.{h,cc}:
  17333. * FtpNegotiationCommand.{h,cc}:
  17334. * FtpDownloadCommand.{h,cc}:
  17335. * FtpConnection.{h,cc}: Added FTP support
  17336. * SimpleLogger.cc: Log message now includes time information.
  17337. * main.cc: The value of --http-auth-scheme option is chagned from
  17338. 'BASIC' to 'basic'
  17339. * main.cc: Added --timeout command-line option.
  17340. * main.cc: Added --min-segment-size command-line option.
  17341. * main.cc: Added --max-retries command-line option.
  17342. * prefs.h: option string constants are now defined in prefs.h
  17343. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17344. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17345. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17346. with version 0.1.0's one.
  17347. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17348. * configure.in: Added --enable-ssl option to configure script.
  17349. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17350. cannot permit absoluteURI as Request-URI.
  17351. * HttpConnection.cc: Added Referer support.
  17352. * main.cc: Added referer command-line option.
  17353. * main.cc: Added rety-wait command-line option.
  17354. * Exception.h: Fixed formating bug in Exception::setMsg()
  17355. * SocketCore.{h,cc}:
  17356. * Socket.{h, cc}:
  17357. * Request.cc:
  17358. * InitiateConnectionCommandFactory.cc:
  17359. * HttpRequestCommand.cc: Added HTTPS support.
  17360. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17361. for SocketCore.
  17362. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17363. size is wrong
  17364. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17365. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17366. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17367. * Release 0.1.0