ChangeLog 640 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572
  1. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  3. * src/DefaultPieceStorage.h
  4. * src/PieceStorage.h
  5. * src/UnknownLengthPieceStorage.h
  6. * test/MockPieceStorage.h
  7. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Added markTotalLengthIsKnown().
  9. * src/DownloadContext.h
  10. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  12. missing. If metadata is missing, always use DHT when it is ready.
  13. * src/BtSetup.cc
  14. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Added parseMagnetLink(). Hex encoded info hash is supported.
  16. Base32 encoded info hash is not supported yet.
  17. * src/bittorrent_helper.cc
  18. * src/bittorrent_helper.h
  19. * test/BittorrentHelperTest.cc
  20. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added FromHex()
  22. * src/util.cc
  23. * src/util.h
  24. * test/UtilTest.cc
  25. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Added _metadataGetMode member variable. It toggles the action when
  27. messages are received: usually they almost do nothing if
  28. _metadataGetMode is true.
  29. * src/AbstractBtMessage.cc
  30. * src/AbstractBtMessage.h
  31. * src/BtAllowedFastMessage.cc
  32. * src/BtBitfieldMessage.cc
  33. * src/BtCancelMessage.cc
  34. * src/BtChokeMessage.cc
  35. * src/BtHaveAllMessage.cc
  36. * src/BtHaveMessage.cc
  37. * src/BtInterestedMessage.cc
  38. * src/BtNotInterestedMessage.cc
  39. * src/BtPieceMessage.cc
  40. * src/BtRejectMessage.cc
  41. * src/BtRequestMessage.cc
  42. * src/BtUnchokeMessage.cc
  43. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Added bencode::decode overload functions. They have extra argument
  45. 'end', passed by reference. 'end' points to the beyond the last
  46. position of data used in decoding process.
  47. * src/bencode.cc
  48. * src/bencode.h
  49. * test/BencodeTest.cc
  50. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Initial support of Extension for Peers to Send Metadata
  52. Files(BEP9). Currently aria2 only serves metadata and cannot get
  53. metadata from swarm.
  54. * src/BtConstants.h
  55. * src/DefaultBtInteractive.cc
  56. * src/DefaultExtensionMessageFactory.cc
  57. * src/DefaultExtensionMessageFactory.h
  58. * src/ExtensionMessage.h
  59. * src/ExtensionMessageRegistry.h
  60. * src/HandshakeExtensionMessage.cc
  61. * src/HandshakeExtensionMessage.h
  62. * src/Makefile.am
  63. * src/PeerConnection.h
  64. * src/PeerInteractionCommand.cc
  65. * src/UTMetadataDataExtensionMessage.cc
  66. * src/UTMetadataDataExtensionMessage.h
  67. * src/UTMetadataExtensionMessage.cc
  68. * src/UTMetadataExtensionMessage.h
  69. * src/UTMetadataRejectExtensionMessage.cc
  70. * src/UTMetadataRejectExtensionMessage.h
  71. * src/UTMetadataRequestExtensionMessage.cc
  72. * src/UTMetadataRequestExtensionMessage.h
  73. * src/bittorrent_helper.cc
  74. * src/bittorrent_helper.h
  75. * test/BittorrentHelperTest.cc
  76. * test/DefaultExtensionMessageFactoryTest.cc
  77. * test/HandshakeExtensionMessageTest.cc
  78. * test/Makefile.am
  79. * test/UTMetadataDataExtensionMessageTest.cc
  80. * test/UTMetadataRejectExtensionMessageTest.cc
  81. * test/UTMetadataRequestExtensionMessageTest.cc
  82. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Cancel segment in prepareForRetry() because there is a chance that
  84. the command has segments.
  85. * src/CreateRequestCommand.cc
  86. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Fixed the bug that slow server is not knocked down in favor of
  88. faster one.
  89. * src/AbstractCommand.cc
  90. * src/DefaultPieceStorage.cc
  91. * src/DefaultPieceStorage.h
  92. * src/PieceStorage.h
  93. * src/UnknownLengthPieceStorage.cc
  94. * src/UnknownLengthPieceStorage.h
  95. * test/MockPieceStorage.h
  96. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Fixed the bug that Request object is not added to
  98. _inFlightRequests in findFasterRequest().
  99. * src/FileEntry.cc
  100. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Changed the strategry of how to increase the number of outstanding
  102. requests. Now the number is doubled if there are no outstanding
  103. requests after receiving messages.
  104. * src/BtConstants.h
  105. * src/DefaultBtInteractive.cc
  106. * src/DefaultBtInteractive.h
  107. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Check socket for reading if there are outstanding requests.
  109. * src/PeerInteractionCommand.cc
  110. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Moved frequently called methods to header file so they get
  112. inlined.
  113. * src/RequestSlot.cc
  114. * src/RequestSlot.h
  115. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Copied in_addr instead of just casting from char* which might
  117. violate strict aliasing rules.
  118. * src/AsyncNameResolver.cc
  119. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Use dynamic_pointer_cast
  121. * test/BtPieceMessageTest.cc
  122. * test/BtRequestMessageTest.cc
  123. * test/DefaultBtRequestFactoryTest.cc
  124. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Added testSetUrl20()
  126. * test/RequestTest.cc
  127. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Code cleanup
  129. * src/bittorrent_helper.cc
  130. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Use C++ style cast
  132. * src/AsyncNameResolver.cc
  133. * src/Base64.h
  134. * src/BtBitfieldMessage.cc
  135. * src/BtHandshakeMessage.cc
  136. * src/DefaultBtMessageFactory.cc
  137. * src/DefaultBtProgressInfoFile.cc
  138. * src/EpollEventPoll.cc
  139. * src/ExpatMetalinkProcessor.cc
  140. * src/IteratableChecksumValidator.cc
  141. * src/IteratableChunkChecksumValidator.cc
  142. * src/MessageDigestHelper.cc
  143. * src/Platform.cc
  144. * src/RequestGroupMan.cc
  145. * src/SingleFileAllocationIterator.cc
  146. * src/Sqlite3MozCookieParser.cc
  147. * src/XML2SAXMetalinkProcessor.cc
  148. * src/Xml2XmlRpcRequestProcessor.cc
  149. * src/util.cc
  150. * src/util.h
  151. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Fixed integer potential alignment problem.
  153. * src/bitfield.h
  154. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Applied a patch from tizianomueller to fix sigbus errors on Linux
  156. sparc. I modified the patch to eliminate a cast to uint32_t* and
  157. include file ordering.
  158. * src/PeerListProcessor.h
  159. * src/bittorrent_helper.cc
  160. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  162. * src/Request.cc
  163. * src/util.cc
  164. * src/util.h
  165. * test/RequestTest.cc
  166. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Rewritten util::uitos()
  168. * src/util.h
  169. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Code cleanup
  171. * src/Request.cc
  172. * src/Request.h
  173. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Rewritten Request::parseUrl()
  175. * src/Request.cc
  176. * test/RequestTest.cc
  177. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Removed unused macro SAFE_CHARS
  179. * src/Request.cc
  180. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Updated doc
  182. * src/DHTRoutingTableDeserializer.cc
  183. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Release 1.6.3
  185. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Removed unused function.
  187. * test/DHTPeerAnnounceStorageTest.cc
  188. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Only decrement cols if cols > 0
  190. * src/ConsoleStatCalc.cc
  191. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Updated Polish, Catalan, French, Italian, Russian and Japanese
  193. translations. Thanks to all translators.
  194. * po/ca.po
  195. * po/fr.po
  196. * po/it.po
  197. * po/ja.po
  198. * po/pl.po
  199. * po/ru.po
  200. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Updated translation template
  202. * po
  203. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Fixed compile error without ssl library.
  205. * src/util.cc
  206. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Logged received nodes in get_peers reply message.
  208. * src/DHTAbstractNodeLookupTask.cc
  209. * src/DHTAbstractNodeLookupTask.h
  210. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  212. error occurred in DHTMessageDispatcherImpl::sendMessage().
  213. * src/DHTMessageDispatcherImpl.cc
  214. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Don't reuse URI if Request pool is not empty.
  216. * src/CreateRequestCommand.cc
  217. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  219. receive get_peers request for torrent which the client is now
  220. downloading.
  221. * src/BtSetup.cc
  222. * src/DHTPeerAnnounceEntry.cc
  223. * src/DHTPeerAnnounceEntry.h
  224. * src/DHTPeerAnnounceStorage.cc
  225. * src/DHTPeerAnnounceStorage.h
  226. * src/RequestGroup.cc
  227. * test/DHTPeerAnnounceEntryTest.cc
  228. * test/DHTPeerAnnounceStorageTest.cc
  229. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Fixed the bug that in Windows environment new blank line is
  231. inserted when console readout is updated.
  232. * src/ConsoleStatCalc.cc
  233. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Throw exception if binding listening port is failed. Removed
  235. RequestGroupMan::getInitialCommand(). Use
  236. fillRequestGroupFromReserver() instead. Delete commands for
  237. RequestGroup which has errors when it is being added.
  238. * src/BtSetup.cc
  239. * src/DownloadEngine.cc
  240. * src/DownloadEngine.h
  241. * src/DownloadEngineFactory.cc
  242. * src/MultiUrlRequestInfo.cc
  243. * src/RequestGroupMan.cc
  244. * src/RequestGroupMan.h
  245. * test/RequestGroupManTest.cc
  246. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Fixed the bug that when downloading more than one torrent,
  248. listening port is not reported properly to tracker for 2nd or
  249. later torrents.
  250. * src/BtSetup.cc
  251. * src/PeerListenCommand.cc
  252. * src/PeerListenCommand.h
  253. * src/RequestGroup.cc
  254. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Bump up version number to 1.6.3
  256. * configure.ac
  257. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Removed Util.cc from POTFILES.in
  259. * po/POTFILES.in
  260. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Updated man page for previous change.
  262. * doc/aria2c.1.txt
  263. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. If user name is embedded but password is missing in URI, first
  265. resolve password using .netrc. If password is found in .netrc,
  266. then use it as password. If not, use the password specified in
  267. --ftp-passwd.
  268. * src/AuthConfigFactory.cc
  269. * src/Request.cc
  270. * src/Request.h
  271. * test/AuthConfigFactoryTest.cc
  272. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Fixed typo
  274. * doc/aria2c.1.txt
  275. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Fixed typo
  277. * src/usage_text.h
  278. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Added missing bitfield.cc
  280. * src/bitfield.cc
  281. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Renamed Util.{cc,h} as util.{cc,h}
  283. * src/Util.cc
  284. * src/Util.h
  285. * src/util.cc
  286. * src/util.h
  287. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Moved static functions in Util class to namespace util.
  289. * src
  290. * test
  291. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  293. Moved generateRandomKey to bittorrent_helper.cc.
  294. * src/DHTBucket.cc
  295. * src/DHTGetPeersMessage.cc
  296. * src/DHTGetPeersReplyMessage.cc
  297. * src/DHTMessage.cc
  298. * src/DHTNode.cc
  299. * src/DHTTokenTracker.cc
  300. * src/DHTUtil.cc: Removed.
  301. * src/DHTUtil.h: Removed.
  302. * src/Makefile.am
  303. * src/Util.cc
  304. * src/Util.h
  305. * src/bitfield.h
  306. * src/bittorrent_helper.cc
  307. * src/bittorrent_helper.h
  308. * test/ARC4Test.cc
  309. * test/BNodeTest.cc
  310. * test/DHTAnnouncePeerMessageTest.cc
  311. * test/DHTAnnouncePeerReplyMessageTest.cc
  312. * test/DHTFindNodeMessageTest.cc
  313. * test/DHTFindNodeReplyMessageTest.cc
  314. * test/DHTGetPeersMessageTest.cc
  315. * test/DHTGetPeersReplyMessageTest.cc
  316. * test/DHTPingMessageTest.cc
  317. * test/DHTPingReplyMessageTest.cc
  318. * test/DHTTokenTrackerTest.cc
  319. * test/DHTUtilTest.cc: Removed.
  320. * test/Makefile.am
  321. * test/UtilTest.cc
  322. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Removed the call to trim() because trim() is called for each
  324. element in split().
  325. * src/CookieParser.cc
  326. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Replaced Util::slice() with split()
  328. * src/AbstractCommand.cc
  329. * src/CookieParser.cc
  330. * src/File.cc
  331. * src/HttpHeaderProcessor.cc
  332. * src/HttpRequest.cc
  333. * src/Metalink2RequestGroup.cc
  334. * src/MetalinkParserController.cc
  335. * src/Netrc.cc
  336. * src/NsCookieParser.cc
  337. * src/ParameterizedStringParser.cc
  338. * src/ServerStatMan.cc
  339. * src/UriListParser.cc
  340. * src/Util.cc
  341. * src/Util.h
  342. * src/bittorrent_helper.cc
  343. * test/UtilTest.cc
  344. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Use request->getDir() instead of "/" for embedded user/pass in
  346. URI.
  347. * src/AuthConfigFactory.cc
  348. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Fixed wrong insertion point for BasicCred.
  350. * src/AuthConfigFactory.cc
  351. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Allowed non-regular file in LocalFilePathOptionHandler
  353. * src/OptionHandlerImpl.h
  354. * src/message.h
  355. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed the bug that Netrc::parse() cannot recognize comment line.
  357. * src/Netrc.cc
  358. * src/Util.h
  359. * test/NetrcTest.cc
  360. * test/sample.netrc
  361. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Fixed typo
  363. * src/BtDependency.cc
  364. * src/BtRejectMessage.cc
  365. * src/FtpConnection.cc
  366. * src/HttpHeaderProcessor.h
  367. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Fixed lintian report in man page
  369. * doc/aria2c.1.txt
  370. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Release 1.6.2
  372. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Updated Ukrainian translation. Thanks to all translators.
  374. * po/uk.po
  375. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Updated translation template
  377. * po
  378. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Bump up version number to 1.6.2
  380. * configure.ac
  381. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Updated licence message in -v output.
  383. * src/version_usage.cc
  384. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Replaced aria2 with aria2c in help message.
  386. * src/version_usage.cc
  387. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  389. * src/version_usage.cc
  390. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Quoted localedir
  392. * src/Makefile.am
  393. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  395. utime. Check header for utime.h.
  396. * configure.ac
  397. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  399. * configure.ac
  400. * src/daemon.cc
  401. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Don't set localedir manually. Leave it to autoconf.
  403. * configure.ac
  404. * src/Makefile.am
  405. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added --install to ACLOCAL_AMFLAGS.
  407. Removed m4 from SUBDIRS.
  408. Updated automake 1.11 and autoconf 2.64.
  409. Replaced some obsolute macros with new one.
  410. * Makefile.am
  411. * configure.ac
  412. * m4/aria2_arg.m4
  413. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Removed Makefile.am in m4 directory.
  415. * configure.ac
  416. * m4/ChangeLog
  417. * m4/Makefile.am
  418. * m4/Makefile.in
  419. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Removed unused m4 macros.
  421. * m4/intldir.m4
  422. * m4/inttypes.m4
  423. * m4/isc-posix.m4
  424. * m4/libgnutls-extra.m4
  425. * m4/ulonglong.m4
  426. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Fixed the bug that causes segmentation fault if
  428. req->getCurrentUrl() contains printf formatting characters such as
  429. %d. The statement that causes this bug is useless and removed.
  430. * src/AbstractCommand.cc
  431. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. * Release 1.6.1
  433. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Updated Simplified Chinese translation. Thanks to translators.
  435. * po/zh_CN.po
  436. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Updated translation template
  438. * po
  439. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Bump up version number to 1.6.1
  441. * configure.ac
  442. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Changed interval from 120 to 60 for dropping inactive peer.
  444. * src/DefaultBtInteractive.cc
  445. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Updated man page for --user-agent and --peer-id-prefix option.
  447. * doc/aria2c.1.txt
  448. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Code clean up
  450. * src/BtPostDownloadHandler.cc
  451. * src/ContentTypeRequestGroupCriteria.cc
  452. * src/ContentTypeRequestGroupCriteria.h
  453. * src/DownloadHandlerConstants.cc
  454. * src/DownloadHandlerConstants.h
  455. * src/DownloadHandlerFactory.cc
  456. * src/MetalinkPostDownloadHandler.cc
  457. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Don't save control file when aria2 exists while checking piece
  459. hash(behavior of -V option). If control file doesn't exist when
  460. aria2 launched, the completed length in saved control file will be
  461. 0 byte and this confuses user. disableSaveControlFile() is called
  462. in RequestGroup::processCheckIntegrityEntry().
  463. enableSaveControlFile() will be called after hash checking is
  464. done. See CheckIntegrityCommand.
  465. * src/CheckIntegrityCommand.cc
  466. * src/RequestGroup.cc
  467. * src/RequestGroup.h
  468. * src/RequestGroupMan.cc
  469. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Included version number in Peer ID and client version. Peer ID
  471. now starts with "aria2/VERSION-", where VERSION is
  472. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  473. * src/DefaultBtInteractive.cc
  474. * src/OptionHandlerFactory.cc
  475. * src/bittorrent_helper.cc
  476. * src/bittorrent_helper.h
  477. * src/main.cc
  478. * src/usage_text.h
  479. * test/BittorrentHelperTest.cc
  480. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Fixed memory leak.
  482. * src/DownloadCommand.cc
  483. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Removed server, port, user and passwd key from options before
  485. XMLRPC::Client.call since they are not options of aria2.
  486. * doc/xmlrpc/aria2mon
  487. * doc/xmlrpc/aria2rpc
  488. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Included version number in user-agent string.
  490. * src/OptionHandlerFactory.cc
  491. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Fixed the bug that the option values changed by XML-RPC
  493. method(changeOption and changeGlobalOption) are overwritten to the
  494. previous value by the next these request which doesn't contain
  495. that option value. Supporse max-download-limit is initially 0. You
  496. changed this value to 100K by changeOption. Then you issue
  497. changeOption request to change max-upload-limit to 50K. This
  498. second request doesn't contain xml-download-limit, so it is back
  499. to initial value, 0. Another improvement is that exception is
  500. thrown when changeOption and changeGlobalOption request contains
  501. option name which doesn't allowed in each request.
  502. * src/DownloadEngine.h
  503. * src/XmlRpcMethod.cc
  504. * src/XmlRpcMethod.h
  505. * src/XmlRpcMethodImpl.cc
  506. * src/download_helper.cc
  507. * src/download_helper.h
  508. * test/XmlRpcMethodTest.cc
  509. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Added missing MetalinkParserStateImpl.{cc,h}
  511. * src/MetalinkParserStateImpl.cc
  512. * src/MetalinkParserStateImpl.h
  513. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Put all MetalinkParserState subclasses into
  515. MetalinkParserStateImpl.cc. Use stack to track element structure.
  516. * src/FileMetalinkParserState.cc: Removed
  517. * src/FileMetalinkParserState.h: Removed
  518. * src/FilesMetalinkParserState.cc: Removed
  519. * src/FilesMetalinkParserState.h: Removed
  520. * src/FinMetalinkParserState.cc: Removed
  521. * src/FinMetalinkParserState.h: Removed
  522. * src/HashMetalinkParserState.cc: Removed
  523. * src/HashMetalinkParserState.h: Removed
  524. * src/InitialMetalinkParserState.cc: Removed
  525. * src/InitialMetalinkParserState.h: Removed
  526. * src/LanguageMetalinkParserState.cc: Removed
  527. * src/LanguageMetalinkParserState.h: Removed
  528. * src/Makefile.am
  529. * src/MetalinkMetalinkParserState.cc: Removed
  530. * src/MetalinkMetalinkParserState.h: Removed
  531. * src/MetalinkParserState.h
  532. * src/MetalinkParserStateMachine.cc
  533. * src/MetalinkParserStateMachine.h
  534. * src/OSMetalinkParserState.cc: Removed
  535. * src/OSMetalinkParserState.h: Removed
  536. * src/PieceHashMetalinkParserState.cc: Removed
  537. * src/PieceHashMetalinkParserState.h: Removed
  538. * src/PiecesMetalinkParserState.cc: Removed
  539. * src/PiecesMetalinkParserState.h: Removed
  540. * src/ResourcesMetalinkParserState.cc: Removed
  541. * src/ResourcesMetalinkParserState.h: Removed
  542. * src/SignatureMetalinkParserState.cc: Removed
  543. * src/SignatureMetalinkParserState.h: Removed
  544. * src/SizeMetalinkParserState.cc: Removed
  545. * src/SizeMetalinkParserState.h: Removed
  546. * src/SkipTagMetalinkParserState.cc: Removed
  547. * src/SkipTagMetalinkParserState.h: Removed
  548. * src/URLMetalinkParserState.cc: Removed
  549. * src/URLMetalinkParserState.h: Removed
  550. * src/VerificationMetalinkParserState.cc: Removed
  551. * src/VerificationMetalinkParserState.h: Removed
  552. * src/VersionMetalinkParserState.cc: Removed
  553. * src/VersionMetalinkParserState.h: Removed
  554. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Move all functions in PeerMessageUtil to bittorrent_helper.
  556. * src/BtBitfieldMessage.cc
  557. * src/BtBitfieldMessageValidator.h
  558. * src/BtExtendedMessage.cc
  559. * src/BtHandshakeMessage.cc
  560. * src/BtHandshakeMessageValidator.h
  561. * src/BtPieceMessage.cc
  562. * src/BtPieceMessageValidator.h
  563. * src/BtPortMessage.cc
  564. * src/DHTFindNodeReplyMessage.cc
  565. * src/DHTGetPeersReplyMessage.cc
  566. * src/DHTMessageFactoryImpl.cc
  567. * src/DHTRoutingTableDeserializer.cc
  568. * src/DHTRoutingTableSerializer.cc
  569. * src/DHTTokenTracker.cc
  570. * src/DefaultBtMessageFactory.cc
  571. * src/IndexBtMessage.cc
  572. * src/IndexBtMessage.h
  573. * src/IndexBtMessageValidator.h
  574. * src/Makefile.am
  575. * src/PeerMessageUtil.cc: Removed.
  576. * src/PeerMessageUtil.h: Removed.
  577. * src/RangeBtMessage.cc
  578. * src/RangeBtMessage.h
  579. * src/RangeBtMessageValidator.h
  580. * src/UTPexExtensionMessage.cc
  581. * src/ZeroBtMessage.cc
  582. * src/ZeroBtMessage.h
  583. * src/bittorrent_helper.cc
  584. * src/bittorrent_helper.h
  585. * test/BittorrentHelperTest.cc
  586. * test/BtAllowedFastMessageTest.cc
  587. * test/BtBitfieldMessageTest.cc
  588. * test/BtCancelMessageTest.cc
  589. * test/BtChokeMessageTest.cc
  590. * test/BtExtendedMessageTest.cc
  591. * test/BtHandshakeMessageTest.cc
  592. * test/BtHaveAllMessageTest.cc
  593. * test/BtHaveMessageTest.cc
  594. * test/BtHaveNoneMessageTest.cc
  595. * test/BtInterestedMessageTest.cc
  596. * test/BtNotInterestedMessageTest.cc
  597. * test/BtPieceMessageTest.cc
  598. * test/BtPortMessageTest.cc
  599. * test/BtRejectMessageTest.cc
  600. * test/BtRequestMessageTest.cc
  601. * test/BtSuggestPieceMessageTest.cc
  602. * test/BtUnchokeMessageTest.cc
  603. * test/DHTFindNodeReplyMessageTest.cc
  604. * test/DHTGetPeersReplyMessageTest.cc
  605. * test/DHTMessageFactoryImplTest.cc
  606. * test/DHTRoutingTableDeserializerTest.cc
  607. * test/DHTRoutingTableSerializerTest.cc
  608. * test/DefaultBtMessageFactoryTest.cc
  609. * test/DefaultExtensionMessageFactoryTest.cc
  610. * test/Makefile.am
  611. * test/PeerListProcessorTest.cc
  612. * test/PeerMessageUtilTest.cc: Removed.
  613. * test/UTPexExtensionMessageTest.cc
  614. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Limit the size of values list when sending get_peers reply.
  616. * src/DHTGetPeersReplyMessage.cc
  617. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Updated banner
  619. * doc/xmlrpc/aria2rpc
  620. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Added missing help message for remove command.
  622. * doc/xmlrpc/aria2rpc
  623. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Generated configure and config.h.in
  625. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  626. Add check for fork(), which is missing on MinGW
  627. * src/daemon.cc
  628. * configure.ac
  629. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  631. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  632. Util::httpGMT().
  633. * src/Util.cc
  634. * src/Util.h
  635. * test/UtilTest.cc
  636. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. * Release 1.6.0
  638. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Fixed a path to xmlrpc/README.txt
  640. * doc/Makefile.am
  641. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Added XML-RPC in -v Configuration output.
  643. * src/FeatureConfig.cc
  644. * src/FeatureConfig.h
  645. * test/FeatureConfigTest.cc
  646. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Updated Bulgarian, Russian, Slovak and Japanese
  648. translations. Thanks to all translators.
  649. * po/bg.po
  650. * po/ja.po
  651. * po/ru.po
  652. * po/sk.po
  653. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Removed --retry-wait option from aria2rpc
  655. * doc/xmlrpc/aria2rpc
  656. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Removed --retry-wait option from man page.
  658. * doc/aria2c.1.txt
  659. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Removed --retry-wait option since the current architecture doesn't
  661. allow sleep for particular URI.
  662. * src/AbstractCommand.cc
  663. * src/OptionHandlerFactory.cc
  664. * src/download_helper.cc
  665. * src/prefs.cc
  666. * src/prefs.h
  667. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Removed Retry-After header support. Since the current architecture
  669. doesn't allow sleep for particular URI.
  670. * src/HttpSkipResponseCommand.cc
  671. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Updated the help message for --daemon option.
  673. * doc/aria2c.1.txt
  674. * src/usage_text.h
  675. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Added our own daemon() function for systems which desn't have
  677. daemon(3).
  678. * configure.ac
  679. * src/Makefile.am
  680. * src/daemon.cc
  681. * src/daemon.h
  682. * src/option_processing.cc
  683. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Simplified File::getCurrentDir()
  685. * src/File.cc
  686. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Use exit() instead of _exit
  688. * src/RequestGroupMan.cc
  689. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Replaced "CATEGORY" with "TAGS".
  691. * src/usage_text.h
  692. * doc/aria2c.1.txt
  693. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Updated the help message for --help option.
  695. * src/usage_text.h
  696. * doc/aria2c.1.txt
  697. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Updated man page for added help tags.
  699. * doc/aria2c.1.txt
  700. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Added help category #file. Added #file tag to the options related
  702. to downloaded file.
  703. * src/OptionHandlerFactory.cc
  704. * src/help_tags.h
  705. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Added help categories: #cookie and #hook. Added #https tag to
  707. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  708. * src/OptionHandlerFactory.cc
  709. * src/help_tags.h
  710. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Made MSG_NOT_FILE translatable.
  712. * src/message.h
  713. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Updated man page for --help option.
  715. * doc/aria2c.1.txt
  716. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Updated doc.
  718. * src/XmlRpcMethod.h
  719. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Help category now starts with "#" to distinguish a category from
  721. keyword search. For example, "http" categroy is now "#http". You
  722. can type "--help=#http" to get explanation of options related to
  723. http. If '#' is omitted, then the argument is treated as a keyword
  724. and aria2 searches options whose name includes the keyword and
  725. print matched ones. For example, "--help=http" will show options
  726. whose name includes "http".
  727. * src/OptionHandlerFactory.cc
  728. * src/help_tags.h
  729. * src/usage_text.h
  730. * src/version_usage.cc
  731. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Documented missing experimental tag and newly added xml-rpc tag in
  733. man page.
  734. * doc/aria2c.1.txt
  735. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Added xml-rpc help tag. Tagged xml-rpc related options with
  737. xml-rpc tag.
  738. * src/OptionHandlerFactory.cc
  739. * src/help_tags.h
  740. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Updated message when a path is not a file. Updated common message
  742. for wrong option.
  743. * src/OptionHandlerException.cc
  744. * src/message.h
  745. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Use File::isFile() instead of File::exists(). Updated message when
  747. a path is not a file.
  748. * src/OptionHandlerImpl.cc
  749. * src/message.h
  750. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Fixed the bug that server performence profile is not updated when
  752. aria2c was terminated by emergency shutdown.
  753. * src/TrackerWatcherCommand.cc
  754. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Use LocalFilePathOptionHandler for -T and -M option.
  756. Updated message of MSG_FILE_NOT_EXIST.
  757. * src/OptionHandlerFactory.cc
  758. * src/message.h
  759. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Added LocalFilePathOptionHandler which check whether the specified
  761. file path does exist or not.
  762. * src/OptionHandlerImpl.cc
  763. * src/message.h
  764. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Updated wiki page URI.
  766. * README
  767. * doc/aria2c.1.txt
  768. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Added README.txt for xmlrpc directory.
  770. * doc/Makefile.am
  771. * doc/xmlrpc/README.txt
  772. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Bump up version number to 1.6.0.
  774. * configure.ac
  775. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Added XML-RPC client scripts written in ruby.
  777. * doc/Makefile.am
  778. * doc/xmlrpc/aria2mon
  779. * doc/xmlrpc/aria2rpc
  780. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Added support for IPv6 literal address in URI. Now aria2 can
  782. handle URI such as http://[::1]/
  783. * src/HttpRequest.cc
  784. * src/HttpRequest.h
  785. * src/Request.cc
  786. * src/Request.h
  787. * test/HttpRequestTest.cc
  788. * test/OptionHandlerTest.cc
  789. * test/RequestTest.cc
  790. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed the bug that HTTP request header for XML-RPC request is not
  792. parsed properly.
  793. * src/HttpHeader.cc
  794. * src/HttpHeaderProcessor.cc
  795. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed the bug that XML-RPC authorization might be done before HTTP
  797. request header is fully received.
  798. * src/HttpServerCommand.cc
  799. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Documented --xml-rpc-listen-all option in man page.
  801. * doc/aria2c.1.txt
  802. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Added --xml-rpc-listen-all option. If true is given to this
  804. option, aria2 listens incoming XML-RPC requests on all network
  805. interfaces. If false is given, listens only on local loopback
  806. interface. The default value is false.
  807. * src/HttpListenCommand.cc
  808. * src/OptionHandlerFactory.cc
  809. * src/SocketCore.cc
  810. * src/SocketCore.h
  811. * src/prefs.cc
  812. * src/prefs.h
  813. * src/usage_text.h
  814. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. * Release 1.5.2
  816. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Updated Ukrainian and Russian translations. Thanks to all
  818. translators.
  819. * po/ru.po
  820. * po/uk.po
  821. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Bump up version number to 1.5.2
  823. * configure.ac
  824. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Get comment, comment.utf-8, created by and creation date from
  826. .torrent file and print them in -S output.
  827. * src/bittorrent_helper.cc
  828. * src/bittorrent_helper.h
  829. * test/BittorrentHelperTest.cc
  830. * test/test.torrent
  831. * test/utf8.torrent
  832. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Show exact file size along in -S option output.
  834. * src/Util.h
  835. * src/bittorrent_helper.cc
  836. * test/UtilTest.cc
  837. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Avoided unnecessary memory allocation in
  839. BitfieldMan::getCompletedLength().
  840. * src/BitfieldMan.cc
  841. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Fixed the bug that download fails if
  843. SocketCore::establishConnection() throws exception and aria2
  844. doesn't try another address.
  845. * src/AbstractCommand.cc
  846. * src/InitiateConnectionCommand.cc
  847. * src/message.h
  848. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  850. detected properly.
  851. * m4/sqlite3.m4
  852. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  854. because it causes compile error if PARAMS macro is defined.
  855. * src/XmlRpcElements.cc
  856. * src/XmlRpcElements.h
  857. * src/XmlRpcRequestParserStateImpl.cc
  858. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. * Release 1.5.1
  860. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Bump up version number to 1.5.1
  862. * configure.ac
  863. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed compile error without BitTorrent support
  865. * src/DefaultBtProgressInfoFile.cc
  866. * src/DownloadEngine.cc
  867. * src/DownloadEngine.h
  868. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Added missing '=' in Download Results
  870. * src/RequestGroupMan.cc
  871. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Fixed compiler warning
  873. * src/DefaultBtProgressInfoFile.cc
  874. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Fixed compiler warning on 32bit systems.
  876. * src/DownloadCommand.cc
  877. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Call flush from ServerStatMan::save()
  879. * src/ServerStatMan.cc
  880. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Check stream status after file is opened.
  882. * src/CookieStorage.cc
  883. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Rewritten Signature::save()
  885. * src/Signature.cc
  886. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Rewritten RequestGroupMan::saveServerStat()
  888. * src/RequestGroupMan.cc
  889. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Rewritten stream error handling
  891. * src/DHTAutoSaveCommand.cc
  892. * src/DHTRoutingTableDeserializer.cc
  893. * src/DHTRoutingTableSerializer.cc
  894. * src/DHTSetup.cc
  895. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Check stream status after file is opened.
  897. * src/DefaultBtProgressInfoFile.cc
  898. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Rewritten stream error handling
  900. * src/DefaultBtProgressInfoFile.cc
  901. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Make sure that stream is closed before renaming file. Unit test
  903. fails on mingw32 in the previous implementation.
  904. * src/CookieStorage.cc
  905. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Fixed the unit test error without sqlite3
  907. * test/CookieStorageTest.cc
  908. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Fixed the undefined reference error
  910. * test/HttpResponseTest.cc
  911. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. * Release 1.5.0
  913. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  915. Ukrainian translations. Thanks to all translators.
  916. * po/ru.po
  917. * po/it.po
  918. * po/da.po
  919. * po/bg.po
  920. * po/ja.po
  921. * po/uk.po
  922. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Added missing src/Logger.cc
  924. * src/Logger.cc
  925. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Rewritten Logger to avoiding constly virtual call.
  927. * src/LogFactory.cc
  928. * src/LogFactory.h
  929. * src/Logger.h
  930. * src/Makefile.am
  931. * src/Makefile.in
  932. * src/NullLogger.h: Removed.
  933. * src/SimpleLogger.cc
  934. * src/SimpleLogger.h
  935. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Updated doc
  937. * src/main.cc
  938. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Updated debug log message
  940. * src/AbstractCommand.cc
  941. * src/message.h
  942. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Avoid to create zombie process when commands specified in
  944. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  945. X and NetBSD.
  946. * src/main.cc
  947. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Fixed typo
  949. * src/usage_text.h
  950. * doc/aria2c.1.txt
  951. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Documented 'errorCode' of tellStatus in man page.
  953. * doc/aria2c.1.txt
  954. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  956. This key is only available for stopped/completed downloads and its
  957. value is the error code defined in EXIT STATUS in man page.
  958. * src/XmlRpcMethodImpl.cc
  959. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Fixed the bug that session download length is not updated when
  961. PeerStat is not fastest one.
  962. * src/SegmentMan.cc
  963. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Updated doc.
  965. * doc/aria2c.1.txt
  966. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Updated doc.
  968. * src/AbstractCommand.cc
  969. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Handle the case when DownloadContext has no FileEntry.
  971. * src/XmlRpcMethodImpl.cc
  972. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Handle the situation where struct option.name is char *.
  974. * configure.ac
  975. * src/OptionParser.cc
  976. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Code cleanup
  978. * src/AbstractCommand.cc
  979. * src/DownloadCommand.cc
  980. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Use option of each download to create AuthConfig instead of global
  982. option.
  983. * src/AuthConfigFactory.cc
  984. * src/AuthConfigFactory.h
  985. * src/FtpNegotiationCommand.cc
  986. * src/HttpRequest.cc
  987. * src/HttpRequest.h
  988. * src/HttpRequestCommand.cc
  989. * src/HttpSkipResponseCommand.cc
  990. * src/MultiUrlRequestInfo.cc
  991. * test/AuthConfigFactoryTest.cc
  992. * test/FtpConnectionTest.cc
  993. * test/HttpRequestTest.cc
  994. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Don't call prepareForRetry(1) if all segments are ignored in
  996. SegmentMan.
  997. * src/AbstractCommand.cc
  998. * src/BitfieldMan.cc
  999. * src/BitfieldMan.h
  1000. * src/SegmentMan.cc
  1001. * src/SegmentMan.h
  1002. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Removed FileEntry::getAssociatedUris()
  1004. * src/FileEntry.h
  1005. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Updated doc: TODO1.5 -> TODO
  1007. * src/FileEntry.cc
  1008. * src/HttpResponseCommand.cc
  1009. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1011. involved.
  1012. * src/RequestGroup.cc
  1013. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Eliminated duplicated filterBitfield initialization code.
  1015. * src/BitfieldMan.cc
  1016. * src/BitfieldMan.h
  1017. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1019. relatively naive approach, though). For DownloadFailureException,
  1020. we handle the case when req is null properly.
  1021. * src/AbstractCommand.cc
  1022. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added function returning suffix of control file to
  1024. DefaultBtProgressInfoFile.
  1025. * src/DefaultBtProgressInfoFile.cc
  1026. * src/DefaultBtProgressInfoFile.h
  1027. * src/RequestGroup.cc
  1028. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Documented getVersion in man page.
  1030. * doc/aria2c.1.txt
  1031. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Documented type of offset and num for tellWaiting xml-rpc method.
  1033. * doc/aria2c.1.txt
  1034. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Implemented getVersion xml-rpc method. This method returns struct
  1036. which has 2 key-value pairs: "version" key is associated to the
  1037. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1038. associated to the list of enabled features, such as "Async DNS",
  1039. "BitTorrent".
  1040. * src/FeatureConfig.h
  1041. * src/XmlRpcMethodFactory.cc
  1042. * src/XmlRpcMethodImpl.cc
  1043. * src/XmlRpcMethodImpl.h
  1044. * test/XmlRpcMethodTest.cc
  1045. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1047. for compatibility issue.
  1048. * src/SocketCore.cc
  1049. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Fixed compile error with openSSL
  1051. * src/bittorrent_helper.cc
  1052. * src/messageDigest.h
  1053. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Removed bad code: setting certificate type priority to key
  1055. exchange priority.
  1056. * src/SocketCore.cc
  1057. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Disconnect seeder if client is also in seed state.
  1059. * src/BtBitfieldMessage.cc
  1060. * src/BtHaveAllMessage.cc
  1061. * src/BtHaveMessage.cc
  1062. * src/message.h
  1063. * test/BtBitfieldMessageTest.cc
  1064. * test/BtHaveAllMessageTest.cc
  1065. * test/BtHaveMessageTest.cc
  1066. * test/MockPieceStorage.h
  1067. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Keep CreateRequestCommand in queue when no segment is available so
  1069. that they can pick up pieces which slow BitTorrent peers are
  1070. downloading.
  1071. * src/AbstractCommand.cc
  1072. * src/CreateRequestCommand.cc
  1073. * src/CreateRequestCommand.h
  1074. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. --bt-stop-timeout now only checks download speed.
  1076. * src/BtStopDownloadCommand.cc
  1077. * src/BtStopDownloadCommand.h
  1078. * src/BtSetup.cc
  1079. * src/usage_text.h
  1080. * doc/aria2c.1.txt
  1081. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Fixed compile error regarding BUFSIZE.
  1083. * src/DownloadCommand.cc
  1084. * src/DownloadCommand.h
  1085. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Documented tellWaiting xml-rpc method in man page.
  1087. * doc/aria2c.1.txt
  1088. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Bump up version number to 1.5.0
  1090. * configure.ac
  1091. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Removed resolved TODO1.5
  1093. * src/AbstractCommand.cc
  1094. * src/DownloadCommand.cc
  1095. * src/RequestGroup.cc
  1096. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Release pooled and in-flight Request objectsand URIResult objects
  1098. in FileEntry after download completed.
  1099. * src/DownloadContext.cc
  1100. * src/DownloadContext.h
  1101. * src/FileEntry.cc
  1102. * src/FileEntry.h
  1103. * src/RequestGroup.cc
  1104. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Set manual and source attribute in aria2c.1.txt
  1106. * doc/aria2c.1.txt
  1107. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Documented that the default value of --use-head is 'false' in man
  1109. page.
  1110. * doc/aria2c.1.txt
  1111. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Added bt-stop-timeout option to -i list.
  1113. * doc/aria2c.1.txt
  1114. * src/download_helper.cc
  1115. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Fixed typo
  1117. * doc/aria2c.1.txt
  1118. * src/usage_text.h
  1119. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Removed peer-id-prefix option from -i list.
  1121. * doc/aria2c.1.txt
  1122. * src/download_helper.cc
  1123. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Fixed typo
  1125. * doc/aria2c.1.txt
  1126. * src/usage_text.h
  1127. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Documented --bt-stop-timeout option in man page.
  1129. * doc/aria2c.1.txt
  1130. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Updated README regarding multi-file torrent web-seeding.
  1132. * doc/README.txt
  1133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Updated man page regarding multi-file torrent web-seeding.
  1135. * doc/aria2c.1.txt
  1136. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Updated doc
  1138. * src/version_usage.cc
  1139. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Winsock select() doesn't work if no socket is in FD_SET. To
  1141. overcome this problem, a dummy socket is added to FD_SET and it is
  1142. given to select().
  1143. * src/SelectEventPoll.cc
  1144. * src/SelectEventPoll.h
  1145. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Disabled --use-head option by default because --use-head=true
  1147. causes problems on some web sites.
  1148. * src/OptionHandlerFactory.cc
  1149. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Print URL List in -S option for torrent.
  1151. * src/bittorrent_helper.cc
  1152. * src/bittorrent_helper.h
  1153. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Allocate buffer in ctor of DownloadCommand.
  1155. * src/DownloadCommand.cc
  1156. * src/DownloadCommand.h
  1157. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Removed DiskAdaptor::onDownloadComplete()
  1159. * src/DirectDiskAdaptor.cc
  1160. * src/DirectDiskAdaptor.h
  1161. * src/DiskAdaptor.h
  1162. * src/MultiDiskAdaptor.cc
  1163. * src/MultiDiskAdaptor.h
  1164. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Committed missing BtStopDownloadCommand.{cc,h}
  1166. * src/BtStopDownloadCommand.cc
  1167. * src/BtStopDownloadCommand.h
  1168. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1170. download if the download speed is 0 and the number of seeder is 0
  1171. in consecutive SEC seconds. By default, this function is disabled.
  1172. * src/BtSetup.cc
  1173. * src/Makefile.am
  1174. * src/OptionHandlerFactory.cc
  1175. * src/prefs.cc
  1176. * src/prefs.h
  1177. * src/usage_text.h
  1178. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Removed the call to DiskAdaptor::onDownloadComplete() from
  1180. BtCheckIntegrityEntry and DefaultPieceStorage.
  1181. * src/BtCheckIntegrityEntry.cc
  1182. * src/DefaultPieceStorage.cc
  1183. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Commented out throw statements when number of piece is 0 to
  1185. download 0 length torrent.
  1186. * src/bittorrent_helper.cc
  1187. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Call RequestGroup::createNextCommandWithAdj() from
  1189. BtFileAllocationEntry if at least one FileEntry has URI. The
  1190. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1191. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1192. * src/BtFileAllocationEntry.cc
  1193. * src/FileEntry.h
  1194. * src/RequestGroup.cc
  1195. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Generate peer ID after SimpleRandomizer is initialized.
  1197. * src/main.cc
  1198. * src/option_processing.cc
  1199. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Removed unused method argument.
  1201. * src/CreateRequestCommand.cc
  1202. * src/RequestGroup.cc
  1203. * src/RequestGroup.h
  1204. * src/RequestGroupMan.cc
  1205. * src/TrackerWatcherCommand.cc
  1206. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Made URI reusing function work.
  1208. * src/CreateRequestCommand.cc
  1209. * src/FileEntry.cc
  1210. * src/FileEntry.h
  1211. * test/FileEntryTest.cc
  1212. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Add formerly fastest PeerStat's sessionDownloadLength to new
  1214. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1215. bytes in a session.
  1216. * src/PeerStat.cc
  1217. * src/SegmentMan.cc
  1218. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. If pipelining is enabled, we can always pool socket.
  1220. * src/HttpDownloadCommand.cc
  1221. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. In a single file download, file size becomes known just after
  1223. downloading, set total length to FileEntry object when download
  1224. completed.
  1225. * src/DownloadCommand.cc
  1226. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Use std::vector::reserve() for fileEntries and pieceHashes in
  1228. bittorrent_helper
  1229. * src/bittorrent_helper.cc
  1230. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1232. Removed hidden option PREF_RESET_URI.
  1233. * src/AbstractCommand.cc
  1234. * src/OptionHandlerFactory.cc
  1235. * src/prefs.cc
  1236. * src/prefs.h
  1237. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Removed unused variable/function.
  1239. * src/PeerStat.h
  1240. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Show first URL in Download Results if file path is not available.
  1242. * src/FileEntry.h
  1243. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Throw exception if file path doesn't exist in FTP URL.
  1245. * src/InitiateConnectionCommandFactory.cc
  1246. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1248. * src/BitfieldMan.cc
  1249. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1251. of PeerStat in SegmentMan. peerStats is used for calculating
  1252. download speed. Therefore all active PeerStats should be in
  1253. there. Another one is _fastestPeerStats and it only contains
  1254. fastest PeerStat for each hostname/protocol pair. They are used
  1255. for updating ServerStat.
  1256. * src/DownloadCommand.cc
  1257. * src/Request.h
  1258. * src/RequestGroupMan.cc
  1259. * src/SegmentMan.cc
  1260. * src/SegmentMan.h
  1261. * test/SegmentManTest.cc
  1262. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Try all available addresses returned by DNS until it gets
  1264. connected in HTTP(S)/FTP download
  1265. * src/AbstractCommand.cc
  1266. * src/AbstractCommand.h
  1267. * src/AbstractProxyRequestCommand.cc
  1268. * src/AbstractProxyRequestCommand.h
  1269. * src/DNSCache.h
  1270. * src/DownloadEngine.cc
  1271. * src/DownloadEngine.h
  1272. * src/FtpInitiateConnectionCommand.cc
  1273. * src/FtpInitiateConnectionCommand.h
  1274. * src/FtpNegotiationCommand.cc
  1275. * src/FtpNegotiationCommand.h
  1276. * src/HttpInitiateConnectionCommand.cc
  1277. * src/HttpInitiateConnectionCommand.h
  1278. * src/HttpRequestCommand.cc
  1279. * src/HttpRequestCommand.h
  1280. * src/InitiateConnectionCommand.cc
  1281. * src/InitiateConnectionCommand.h
  1282. * test/DNSCacheTest.cc
  1283. * test/Makefile.am
  1284. * test/SimpleDNSCacheTest.cc
  1285. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Updated doc
  1287. * src/download_helper.cc
  1288. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Refactored fieldMan ctor.
  1290. * src/BitfieldMan.cc
  1291. * src/BitfieldMan.h
  1292. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Don't print "No files to download." message if -S is given.
  1294. * src/main.cc
  1295. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Set referer and method to newly created Request object.
  1297. * src/CreateRequestCommand.cc
  1298. * src/FileEntry.cc
  1299. * src/FileEntry.h
  1300. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1302. * src/AbstractCommand.cc
  1303. * src/AbstractCommand.h
  1304. * src/CreateRequestCommand.cc
  1305. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Get proxy download working
  1307. * src/AbstractProxyRequestCommand.cc
  1308. * src/AbstractProxyRequestCommand.h
  1309. * src/AbstractProxyResponseCommand.cc
  1310. * src/AbstractProxyResponseCommand.h
  1311. * src/FtpInitiateConnectionCommand.cc
  1312. * src/FtpTunnelRequestCommand.cc
  1313. * src/FtpTunnelRequestCommand.h
  1314. * src/FtpTunnelResponseCommand.cc
  1315. * src/FtpTunnelResponseCommand.h
  1316. * src/HttpInitiateConnectionCommand.cc
  1317. * src/HttpProxyRequestCommand.cc
  1318. * src/HttpProxyRequestCommand.h
  1319. * src/HttpProxyResponseCommand.cc
  1320. * src/HttpProxyResponseCommand.h
  1321. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Use SegmentMan::getSegment(cuid) for single file download.
  1323. * src/AbstractCommand.cc
  1324. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Fixed bufSize calculation
  1326. * src/DownloadCommand.cc
  1327. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Don't append "/" if base URI ends with "/".
  1329. * src/bittorrent_helper.cc
  1330. * test/url-list-multiFile.torrent
  1331. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. HTTP pipelining is now working. Fixed Segmention fault in
  1333. BitfieldMan's copy ctor.
  1334. * src/AbstractCommand.cc
  1335. * src/BitfieldMan.cc
  1336. * src/BitfieldMan.h
  1337. * src/DownloadCommand.cc
  1338. * src/HttpDownloadCommand.cc
  1339. * src/HttpRequest.cc
  1340. * src/SegmentMan.cc
  1341. * src/SegmentMan.h
  1342. * test/BitfieldManTest.cc
  1343. * test/SegmentManTest.cc
  1344. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Removed ServerHost. Same functionality is implemented using
  1346. FileEntry's in-flight Request objects.
  1347. * src/AbstractCommand.cc
  1348. * src/BtDependency.cc
  1349. * src/CreateRequestCommand.cc
  1350. * src/FileEntry.cc
  1351. * src/FileEntry.h
  1352. * src/FtpNegotiationCommand.cc
  1353. * src/HttpResponseCommand.cc
  1354. * src/Makefile.am
  1355. * src/Metalink2RequestGroup.cc
  1356. * src/RequestGroup.cc
  1357. * src/RequestGroup.h
  1358. * src/ServerHost.cc: Removed
  1359. * src/ServerHost.h: Removed
  1360. * test/BtDependencyTest.cc
  1361. * test/FileEntryTest.cc
  1362. * test/RequestGroupTest.cc
  1363. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Rewritten PeerStat handling. In the previous implementation,
  1365. faster command tries to find slower command. In this new
  1366. implementation, slower command tries to find faster command.
  1367. PeerStat is now created in each HTTP/FTP request to get download
  1368. rate correctly. If the download range is small, the download rate
  1369. tends to small and this will occur at the later stage of download.
  1370. * src/AbstractCommand.cc
  1371. * src/DownloadCommand.cc
  1372. * src/FileEntry.cc
  1373. * src/FileEntry.h
  1374. * src/Request.cc
  1375. * src/Request.h
  1376. * src/RequestGroup.h
  1377. * src/RequestGroupMan.cc
  1378. * src/SegmentMan.cc
  1379. * src/SegmentMan.h
  1380. * test/SegmentManTest.cc
  1381. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Removed _uris from RequestGroup. All functions that refer to _uris
  1383. were moved to FileEntry. Exit status code are now defined in
  1384. DownloadResultCode.h.
  1385. * src/AbstractCommand.cc
  1386. * src/AdaptiveURISelector.cc
  1387. * src/AdaptiveURISelector.h
  1388. * src/AutoSaveCommand.cc
  1389. * src/BtPostDownloadHandler.cc
  1390. * src/CheckIntegrityDispatcherCommand.cc
  1391. * src/CookieStorage.cc
  1392. * src/DHTAutoSaveCommand.cc
  1393. * src/DHTBucketRefreshCommand.cc
  1394. * src/DHTEntryPointNameResolveCommand.cc
  1395. * src/DHTInteractionCommand.cc
  1396. * src/DHTPeerAnnounceCommand.cc
  1397. * src/DHTTokenUpdateCommand.cc
  1398. * src/DlAbortEx.h
  1399. * src/DlRetryEx.h
  1400. * src/DownloadCommand.cc
  1401. * src/DownloadContext.h
  1402. * src/DownloadFailureException.h
  1403. * src/DownloadResult.h
  1404. * src/DownloadResultCode.h
  1405. * src/FeedbackURISelector.cc
  1406. * src/FeedbackURISelector.h
  1407. * src/FileEntry.cc
  1408. * src/FileEntry.h
  1409. * src/FtpNegotiationCommand.cc
  1410. * src/HttpListenCommand.cc
  1411. * src/HttpResponseCommand.cc
  1412. * src/HttpServerResponseCommand.cc
  1413. * src/HttpSkipResponseCommand.cc
  1414. * src/InOrderURISelector.cc
  1415. * src/InOrderURISelector.h
  1416. * src/Makefile.am
  1417. * src/Makefile.in
  1418. * src/Metalink2RequestGroup.cc
  1419. * src/MultiUrlRequestInfo.cc
  1420. * src/MultiUrlRequestInfo.h
  1421. * src/OptionHandlerFactory.cc
  1422. * src/PeerListenCommand.cc
  1423. * src/RecoverableException.h
  1424. * src/RequestGroup.cc
  1425. * src/RequestGroup.h
  1426. * src/RequestGroupMan.cc
  1427. * src/RequestGroupMan.h
  1428. * src/TimedHaltCommand.cc
  1429. * src/TrackerWatcherCommand.cc
  1430. * src/URIResult.cc
  1431. * src/URIResult.h
  1432. * src/URISelector.h
  1433. * src/XmlRpcMethodImpl.cc
  1434. * src/bittorrent_helper.cc
  1435. * src/bittorrent_helper.h
  1436. * src/download_helper.cc
  1437. * src/main.cc
  1438. * src/option_processing.cc
  1439. * test/BtDependencyTest.cc
  1440. * test/BtPostDownloadHandlerTest.cc
  1441. * test/CookieStorageTest.cc
  1442. * test/DefaultBtMessageDispatcherTest.cc
  1443. * test/DownloadHandlerFactoryTest.cc
  1444. * test/DownloadHelperTest.cc
  1445. * test/FeedbackURISelectorTest.cc
  1446. * test/FileEntryTest.cc
  1447. * test/InOrderURISelectorTest.cc
  1448. * test/Metalink2RequestGroupTest.cc
  1449. * test/MetalinkPostDownloadHandlerTest.cc
  1450. * test/RequestGroupManTest.cc
  1451. * test/RequestGroupTest.cc
  1452. * test/XmlRpcMethodTest.cc
  1453. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Removed MockBtContext.h
  1455. * test/Makefile.am
  1456. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Removed _currentRequest from StreamCheckIntegrityEntry and
  1458. StreamFileAllocationEntry.
  1459. * src/AbstractCommand.cc
  1460. * src/HttpResponseCommand.cc
  1461. * src/RequestGroup.cc
  1462. * src/StreamCheckIntegrityEntry.cc
  1463. * src/StreamCheckIntegrityEntry.h
  1464. * src/StreamFileAllocationEntry.cc
  1465. * src/StreamFileAllocationEntry.h
  1466. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Rewritten DownloadContext and removed SingleFileDownloadContext
  1468. and BtContext and its derived classes. BitTorrent specific
  1469. attributes are now set by DownloadContext::setAttribute() with key
  1470. bittorrent::BITTORRENT.
  1471. * src/AbstractBtMessage.cc
  1472. * src/AbstractBtMessage.h
  1473. * src/AbstractCommand.cc
  1474. * src/AbstractCommand.h
  1475. * src/AbstractProxyRequestCommand.cc
  1476. * src/AbstractProxyResponseCommand.cc
  1477. * src/ActivePeerConnectionCommand.cc
  1478. * src/ActivePeerConnectionCommand.h
  1479. * src/AnnounceList.cc
  1480. * src/BtCheckIntegrityEntry.cc
  1481. * src/BtConstants.h
  1482. * src/BtContext.h: Removed
  1483. * src/BtDependency.cc
  1484. * src/BtExtendedMessage.cc
  1485. * src/BtPieceMessage.cc
  1486. * src/BtPieceMessage.h
  1487. * src/BtPostDownloadHandler.cc
  1488. * src/BtRegistry.cc
  1489. * src/BtRegistry.h
  1490. * src/BtSetup.cc
  1491. * src/CheckIntegrityCommand.cc
  1492. * src/CheckIntegrityEntry.cc
  1493. * src/ChecksumCheckIntegrityEntry.cc
  1494. * src/ConsoleStatCalc.cc
  1495. * src/ContentTypeRequestGroupCriteria.cc
  1496. * src/DHTGetPeersCommand.cc
  1497. * src/DHTGetPeersCommand.h
  1498. * src/DHTPeerLookupTask.cc
  1499. * src/DHTPeerLookupTask.h
  1500. * src/DHTTaskFactory.h
  1501. * src/DHTTaskFactoryImpl.cc
  1502. * src/DHTTaskFactoryImpl.h
  1503. * src/DefaultBtAnnounce.cc
  1504. * src/DefaultBtAnnounce.h
  1505. * src/DefaultBtContext.cc: Removed
  1506. * src/DefaultBtContext.h: Removed
  1507. * src/DefaultBtInteractive.cc
  1508. * src/DefaultBtInteractive.h
  1509. * src/DefaultBtMessageDispatcher.cc
  1510. * src/DefaultBtMessageDispatcher.h
  1511. * src/DefaultBtMessageFactory.cc
  1512. * src/DefaultBtMessageFactory.h
  1513. * src/DefaultBtMessageReceiver.cc
  1514. * src/DefaultBtMessageReceiver.h
  1515. * src/DefaultBtProgressInfoFile.cc
  1516. * src/DefaultBtRequestFactory.cc
  1517. * src/DefaultBtRequestFactory.h
  1518. * src/DefaultExtensionMessageFactory.cc
  1519. * src/DefaultExtensionMessageFactory.h
  1520. * src/DefaultPeerStorage.cc
  1521. * src/DefaultPeerStorage.h
  1522. * src/DefaultPieceStorage.cc
  1523. * src/DefaultSegmentManFactory.cc
  1524. * src/DiskAdaptor.cc
  1525. * src/DiskAdaptor.h
  1526. * src/DownloadContext.cc
  1527. * src/DownloadContext.h
  1528. * src/DownloadEngine.cc
  1529. * src/DownloadEngineFactory.cc
  1530. * src/DownloadHandler.cc
  1531. * src/DownloadResult.h
  1532. * src/FileAllocationCommand.cc
  1533. * src/FileAllocationDispatcherCommand.cc
  1534. * src/FileAllocationEntry.cc
  1535. * src/FileEntry.h
  1536. * src/FillRequestGroupCommand.cc
  1537. * src/FtpDownloadCommand.cc
  1538. * src/FtpFinishDownloadCommand.cc
  1539. * src/FtpInitiateConnectionCommand.cc
  1540. * src/FtpNegotiationCommand.cc
  1541. * src/FtpTunnelRequestCommand.cc
  1542. * src/FtpTunnelResponseCommand.cc
  1543. * src/HandshakeExtensionMessage.cc
  1544. * src/HandshakeExtensionMessage.h
  1545. * src/HaveEraseCommand.cc
  1546. * src/HttpDownloadCommand.cc
  1547. * src/HttpInitiateConnectionCommand.cc
  1548. * src/HttpProxyRequestCommand.cc
  1549. * src/HttpProxyResponseCommand.cc
  1550. * src/HttpRequest.cc
  1551. * src/HttpRequest.h
  1552. * src/HttpRequestCommand.cc
  1553. * src/HttpResponseCommand.cc
  1554. * src/HttpServerBodyCommand.cc
  1555. * src/HttpServerCommand.cc
  1556. * src/HttpSkipResponseCommand.cc
  1557. * src/InitiateConnectionCommandFactory.cc
  1558. * src/InitiatorMSEHandshakeCommand.cc
  1559. * src/InitiatorMSEHandshakeCommand.h
  1560. * src/IteratableChecksumValidator.cc
  1561. * src/IteratableChecksumValidator.h
  1562. * src/IteratableChunkChecksumValidator.cc
  1563. * src/MSEHandshake.cc
  1564. * src/MSEHandshake.h
  1565. * src/Makefile.am
  1566. * src/Makefile.in
  1567. * src/Metalink2RequestGroup.cc
  1568. * src/MetalinkPostDownloadHandler.cc
  1569. * src/MultiDiskAdaptor.cc
  1570. * src/MultiDiskAdaptor.h
  1571. * src/MultiFileAllocationIterator.cc
  1572. * src/MultiUrlRequestInfo.cc
  1573. * src/PeerChokeCommand.cc
  1574. * src/PeerChokeCommand.h
  1575. * src/PeerInitiateConnectionCommand.cc
  1576. * src/PeerInitiateConnectionCommand.h
  1577. * src/PeerInteractionCommand.cc
  1578. * src/PeerInteractionCommand.h
  1579. * src/PeerReceiveHandshakeCommand.cc
  1580. * src/PieceHashCheckIntegrityEntry.cc
  1581. * src/RealtimeCommand.cc
  1582. * src/ReceiverMSEHandshakeCommand.cc
  1583. * src/RequestGroup.cc
  1584. * src/RequestGroup.h
  1585. * src/RequestGroupEntry.cc
  1586. * src/RequestGroupMan.cc
  1587. * src/SeedCheckCommand.cc
  1588. * src/SeedCheckCommand.h
  1589. * src/SegmentMan.cc
  1590. * src/ShareRatioSeedCriteria.h
  1591. * src/SingleFileDownloadContext.cc: Removed
  1592. * src/SingleFileDownloadContext.h: Removed
  1593. * src/SleepCommand.cc
  1594. * src/StreamCheckIntegrityEntry.cc
  1595. * src/TrackerWatcherCommand.cc
  1596. * src/TrackerWatcherCommand.h
  1597. * src/UnknownLengthPieceStorage.cc
  1598. * src/Util.cc
  1599. * src/Util.h
  1600. * src/XmlRpcMethodImpl.cc
  1601. * src/bittorrent_helper.cc
  1602. * src/bittorrent_helper.h
  1603. * src/download_helper.cc
  1604. * src/main.cc
  1605. * src/option_processing.cc
  1606. * test/BitfieldManTest.cc
  1607. * test/BittorrentHelperTest.cc
  1608. * test/BtCancelMessageTest.cc
  1609. * test/BtChokeMessageTest.cc
  1610. * test/BtDependencyTest.cc
  1611. * test/BtPieceMessageTest.cc
  1612. * test/BtPostDownloadHandlerTest.cc
  1613. * test/BtRegistryTest.cc
  1614. * test/BtRejectMessageTest.cc
  1615. * test/BtRequestMessageTest.cc
  1616. * test/DHTPeerAnnounceStorageTest.cc
  1617. * test/DefaultBtAnnounceTest.cc
  1618. * test/DefaultBtContextTest.cc: Removed
  1619. * test/DefaultBtMessageDispatcherTest.cc
  1620. * test/DefaultBtMessageFactoryTest.cc
  1621. * test/DefaultBtProgressInfoFileTest.cc
  1622. * test/DefaultBtRequestFactoryTest.cc
  1623. * test/DefaultExtensionMessageFactoryTest.cc
  1624. * test/DefaultPeerStorageTest.cc
  1625. * test/DefaultPieceStorageTest.cc
  1626. * test/DirectDiskAdaptorTest.cc
  1627. * test/DownloadContextTest.cc
  1628. * test/DownloadHandlerFactoryTest.cc
  1629. * test/DownloadHelperTest.cc
  1630. * test/HandshakeExtensionMessageTest.cc
  1631. * test/HttpRequestTest.cc
  1632. * test/HttpResponseTest.cc
  1633. * test/IteratableChecksumValidatorTest.cc
  1634. * test/IteratableChunkChecksumValidatorTest.cc
  1635. * test/MSEHandshakeTest.cc
  1636. * test/Makefile.am
  1637. * test/Makefile.in
  1638. * test/Metalink2RequestGroupTest.cc
  1639. * test/MetalinkPostDownloadHandlerTest.cc
  1640. * test/MockBtContext.h: Removed
  1641. * test/MockDHTTaskFactory.h
  1642. * test/MockDownloadContext.h: Removed
  1643. * test/MockPieceStorage.h
  1644. * test/MultiDiskAdaptorTest.cc
  1645. * test/MultiFileAllocationIteratorTest.cc
  1646. * test/RequestGroupManTest.cc
  1647. * test/RequestGroupTest.cc
  1648. * test/SegmentManTest.cc
  1649. * test/ShareRatioSeedCriteriaTest.cc
  1650. * test/SingleFileDownloadContextTest.cc: Removed
  1651. * test/UtilTest.cc
  1652. * test/XmlRpcMethodTest.cc
  1653. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Added experimental support of WEB-Seeding for multi-file torrent.
  1655. Due to fundamental changes in file handling in HTTP/FTP code, many
  1656. functions are not working: PeerStat, ServerHost, proxy..etc
  1657. * src/AbstractCommand.cc
  1658. * src/AbstractCommand.h
  1659. * src/BitfieldMan.cc
  1660. * src/BitfieldMan.h
  1661. * src/CreateRequestCommand.cc
  1662. * src/CreateRequestCommand.h
  1663. * src/DefaultPieceStorage.cc
  1664. * src/DefaultPieceStorage.h
  1665. * src/DownloadCommand.cc
  1666. * src/DownloadCommand.h
  1667. * src/DownloadContext.cc
  1668. * src/DownloadContext.h
  1669. * src/FileEntry.cc
  1670. * src/FileEntry.h
  1671. * src/FtpDownloadCommand.cc
  1672. * src/FtpDownloadCommand.h
  1673. * src/FtpFinishDownloadCommand.cc
  1674. * src/FtpFinishDownloadCommand.h
  1675. * src/FtpInitiateConnectionCommand.cc
  1676. * src/FtpInitiateConnectionCommand.h
  1677. * src/FtpNegotiationCommand.cc
  1678. * src/FtpNegotiationCommand.h
  1679. * src/FtpTunnelResponseCommand.cc
  1680. * src/HttpDownloadCommand.cc
  1681. * src/HttpDownloadCommand.h
  1682. * src/HttpInitiateConnectionCommand.cc
  1683. * src/HttpInitiateConnectionCommand.h
  1684. * src/HttpProxyResponseCommand.cc
  1685. * src/HttpRequest.cc
  1686. * src/HttpRequest.h
  1687. * src/HttpRequestCommand.cc
  1688. * src/HttpRequestCommand.h
  1689. * src/HttpResponseCommand.cc
  1690. * src/HttpResponseCommand.h
  1691. * src/HttpSkipResponseCommand.cc
  1692. * src/HttpSkipResponseCommand.h
  1693. * src/InitiateConnectionCommand.cc
  1694. * src/InitiateConnectionCommand.h
  1695. * src/InitiateConnectionCommandFactory.cc
  1696. * src/InitiateConnectionCommandFactory.h
  1697. * src/Makefile.am
  1698. * src/PieceStorage.h
  1699. * src/RequestGroup.cc
  1700. * src/RequestGroup.h
  1701. * src/RequestGroupMan.cc
  1702. * src/SegmentMan.cc
  1703. * src/SegmentMan.h
  1704. * src/SingleFileDownloadContext.h
  1705. * src/StreamFileAllocationEntry.cc
  1706. * src/TrackerWatcherCommand.cc
  1707. * src/UnknownLengthPieceStorage.cc
  1708. * src/UnknownLengthPieceStorage.h
  1709. * src/array_fun.h
  1710. * src/bitfield.h
  1711. * src/download_helper.cc
  1712. * test/DownloadContextTest.cc
  1713. * test/Makefile.am
  1714. * test/MockDownloadContext.h
  1715. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Added tellWaiting XML-RPC method.
  1717. * src/SingleFileDownloadContext.cc
  1718. * src/XmlRpcMethodFactory.cc
  1719. * src/XmlRpcMethodImpl.cc
  1720. * src/XmlRpcMethodImpl.h
  1721. * test/XmlRpcMethodTest.cc
  1722. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Updated CookieStorageTest
  1724. * test/CookieStorageTest.cc
  1725. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1727. handle excepion inside these functions.
  1728. * src/LibgnutlsTLSContext.cc
  1729. * src/LibgnutlsTLSContext.h
  1730. * src/LibsslTLSContext.cc
  1731. * src/LibsslTLSContext.h
  1732. * src/MultiUrlRequestInfo.cc
  1733. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Added comment
  1735. * src/RequestGroup.cc
  1736. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. In CookieStorage::load() and saveNsFormat(), handle exception
  1738. inside the functions. When saving Cookies, first write temporary
  1739. file and after successful writes, then renames it to final
  1740. destination.
  1741. * src/CookieStorage.cc
  1742. * src/CookieStorage.h
  1743. * src/MultiUrlRequestInfo.cc
  1744. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. The default value of --dir option is the absolute path to the
  1746. current directory. If getcwd() is failed, then it is ".", which is
  1747. the same value with old implementation. This change is necessary
  1748. because after daemon() call, the current working directory is
  1749. changed to /.
  1750. * src/File.cc
  1751. * src/File.h
  1752. * src/OptionHandlerFactory.cc
  1753. * src/option_processing.cc
  1754. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Call daemon() with arguments(0,0), which means daemon() changes
  1756. current working directory to / and redirects stdin, stdout and
  1757. stderr to /dev/null.
  1758. * src/option_processing.cc
  1759. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Small performance optimizations.
  1761. * src/RequestGroupMan.cc
  1762. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1764. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1765. * src/RequestGroupMan.cc
  1766. * src/RequestGroupMan.h
  1767. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1769. setNoWiat(true) if newly created command calls
  1770. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1771. * src/HttpListenCommand.cc
  1772. * src/HttpServerBodyCommand.cc
  1773. * src/HttpServerCommand.cc
  1774. * src/HttpServerResponseCommand.cc
  1775. * src/InitiateConnectionCommand.cc
  1776. * src/RequestGroup.cc
  1777. * src/StreamFileAllocationEntry.cc
  1778. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Removed include vector
  1780. * src/BtRegistry.h
  1781. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Rewritten BtRegistry
  1783. * src/BtRegistry.cc
  1784. * src/BtRegistry.h
  1785. * src/BtSetup.cc
  1786. * src/ConsoleStatCalc.cc
  1787. * src/PeerInteractionCommand.cc
  1788. * src/PeerReceiveHandshakeCommand.cc
  1789. * src/ReceiverMSEHandshakeCommand.cc
  1790. * src/RequestGroup.cc
  1791. * src/XmlRpcMethodImpl.cc
  1792. * test/BtRegistryTest.cc
  1793. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1795. * src/DefaultBtProgressInfoFile.cc
  1796. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Throw an exception if position is less than 0.
  1798. * src/XmlRpcMethodImpl.cc
  1799. * test/XmlRpcMethodTest.cc
  1800. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1801. Use writeFilePath() in ConsoleStatCalc.cc
  1802. * src/ConsoleStatCalc.cc
  1803. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Receive the return value as const reference from
  1805. DownloadContext::getFileEntries().
  1806. * src/DefaultPieceStorage.cc
  1807. * src/RequestGroupMan.cc
  1808. * src/XmlRpcMethodImpl.cc
  1809. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. DownloadContext now has _fileEntries so that
  1811. DownloadContext::getFileEntries() can returns its const reference.
  1812. * src/DefaultBtContext.cc
  1813. * src/DefaultBtContext.h
  1814. * src/DownloadContext.cc
  1815. * src/DownloadContext.h
  1816. * src/SingleFileDownloadContext.cc
  1817. * src/SingleFileDownloadContext.h
  1818. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1820. writeFilePath() function template from RequestGroupMan.cc to
  1821. FileEntry.h
  1822. * src/FileEntry.h
  1823. * src/RequestGroupMan.cc
  1824. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Documented 'position' parameter is starting from 0 in man page.
  1826. * doc/aria2c.1.txt
  1827. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Updated doc.
  1829. * src/MSEHandshake.cc
  1830. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Removed _acceptFeatures and its accessor functions from
  1832. RequestGroup since they are not used practically.
  1833. * src/HttpRequestCommand.cc
  1834. * src/RequestGroup.cc
  1835. * src/RequestGroup.h
  1836. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Removed member _maxTries from RequestGroup class to avoid
  1838. duplicate option value. Those classes who refer this variable
  1839. should use option value of PREF_MAX_TRIES directly.
  1840. * src/AbstractCommand.cc
  1841. * src/RequestGroup.cc
  1842. * src/RequestGroup.h
  1843. * src/TrackerWatcherCommand.cc
  1844. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. * Release 1.4.1
  1846. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Fixed compiler warnings on netbsd
  1848. * src/DHTConnectionImpl.cc
  1849. * src/PeerListenCommand.cc
  1850. * src/PeerSessionResource.cc
  1851. * src/SegmentMan.cc
  1852. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Updated Ukrainian translation. Thanks to all translators.
  1854. * po/uk.po
  1855. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Bump up version number to 1.4.1.
  1857. * configure.ac
  1858. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Added unit tests for strjoin, strconcat and strappend.
  1860. * test/a2functionalTest.cc
  1861. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Rewritten strconcat and strappend using operator+ instead of
  1863. append().
  1864. * src/a2functional.h
  1865. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1867. is enabled.
  1868. * src/Makefile.am
  1869. * test/Makefile.am
  1870. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Added countSeeder() function which counts seeder in the given
  1872. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1873. * src/ConsoleStatCalc.cc
  1874. * src/Peer.h
  1875. * src/XmlRpcMethodImpl.cc
  1876. * test/PeerTest.cc
  1877. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Documented missing seeder in getPeers xml-rpc method.
  1879. Documented uploadLength and numSeeders.
  1880. * doc/aria2c.1.txt
  1881. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Added uploadLength and numSeeders to the response of tellStatus
  1883. xml-rpc method. Assert that PeerStorage instance is not null
  1884. instead of checking if statement. It should be non-null in this
  1885. context.
  1886. * src/XmlRpcMethodImpl.cc
  1887. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1889. * src/XmlRpcResponse.cc
  1890. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Avoid intermediate object during string concatenation.
  1892. * src/HttpRequest.cc
  1893. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Added strjoin function template. Use it in pathJoin()
  1895. * src/Util.h
  1896. * src/a2functional.h
  1897. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Avoid intermediate object during string concatenation. Replaced
  1899. post-increment unary operator with pre-increment one in for loop.
  1900. * src/AdaptiveURISelector.cc
  1901. * src/AnnounceList.cc
  1902. * src/AuthConfig.h
  1903. * src/BtBitfieldMessage.cc
  1904. * src/BtExtendedMessage.cc
  1905. * src/BtHandshakeMessage.cc
  1906. * src/BtPieceMessage.cc
  1907. * src/BtPortMessage.cc
  1908. * src/Cookie.cc
  1909. * src/DHTAnnouncePeerMessage.cc
  1910. * src/DHTAutoSaveCommand.cc
  1911. * src/DHTGetPeersReplyMessage.cc
  1912. * src/DHTNode.cc
  1913. * src/DHTQueryMessage.cc
  1914. * src/DHTResponseMessage.cc
  1915. * src/DHTUnknownMessage.cc
  1916. * src/DefaultBtAnnounce.cc
  1917. * src/DefaultBtContext.cc
  1918. * src/DefaultBtInteractive.cc
  1919. * src/DefaultBtProgressInfoFile.cc
  1920. * src/DefaultPeerStorage.cc
  1921. * src/DownloadEngine.cc
  1922. * src/FeatureConfig.cc
  1923. * src/File.cc
  1924. * src/FtpConnection.cc
  1925. * src/FtpNegotiationCommand.cc
  1926. * src/HandshakeExtensionMessage.cc
  1927. * src/HttpConnection.cc
  1928. * src/HttpRequest.cc
  1929. * src/HttpResponseCommand.cc
  1930. * src/HttpServer.cc
  1931. * src/IndexBtMessage.cc
  1932. * src/Metalink2RequestGroup.cc
  1933. * src/OptionHandlerImpl.h
  1934. * src/PStringBuildVisitor.cc
  1935. * src/Peer.cc
  1936. * src/PeerListenCommand.cc
  1937. * src/Piece.cc
  1938. * src/RangeBtMessage.cc
  1939. * src/Request.cc
  1940. * src/Request.h
  1941. * src/RequestGroup.cc
  1942. * src/RequestGroupMan.cc
  1943. * src/ServerStat.cc
  1944. * src/ServerStatMan.cc
  1945. * src/UTPexExtensionMessage.cc
  1946. * src/Util.cc
  1947. * src/a2functional.h
  1948. * src/download_helper.cc
  1949. * src/messageDigest.cc
  1950. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Unchoke a peer randomly at first and second choke round in seed
  1952. state.
  1953. * src/BtSeederStateChoke.cc
  1954. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1955. Added (sock_t) to quiet compiler warnings in MinGW
  1956. * src/SocketCore.cc
  1957. * src/SocketCore.h
  1958. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1960. * src/EpollEventPoll.h
  1961. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1962. Added fork() emulation using CreateProcess() in MinGW
  1963. * src/RequestGroupMan.cc
  1964. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. * Release 1.4.0
  1966. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Added utf8.torrent to EXTRA_DIST
  1968. * test/Makefile.am
  1969. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Fixed docs of aria2.addMetalink xml-rpc method.
  1971. * doc/aria2c.1.txt
  1972. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Added Slovak translation. Updated Ukrainian and Brazilian
  1974. Portuguese translation. Thanks to all translators.
  1975. * po/sk.po
  1976. * po/uk.po
  1977. * po/pt_BR.po
  1978. * po/LINGUAS
  1979. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Added test case for XmlRpcProcessor to fail to parse malformed
  1981. document.
  1982. * test/XmlRpcRequestProcessorTest.cc
  1983. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Removed *.gmo files in po because they are generated on 'make
  1985. dist'
  1986. * po/*.gmo
  1987. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Documented max-concurrent-downloads of changeGlobalOption method
  1989. in man page.
  1990. * doc/aria2c.1.txt
  1991. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added max-concurrent-downloads option to changeGlobalOption
  1993. xml-rpc method. Rewritten loop conditional in
  1994. RequestGroupMan::fillRequestGroupFromReserver().
  1995. * src/RequestGroupMan.cc
  1996. * src/RequestGroupMan.h
  1997. * src/XmlRpcMethod.cc
  1998. * src/XmlRpcMethodImpl.cc
  1999. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Documented position parameter in man page.
  2001. * doc/aria2c.1.txt
  2002. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Added 'position' parameter to addUri, addTorrent and addMetalink
  2004. xml-rpc method.
  2005. * src/RequestGroupMan.cc
  2006. * src/RequestGroupMan.h
  2007. * src/XmlRpcMethodImpl.cc
  2008. * test/XmlRpcMethodTest.cc
  2009. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Removed Peer.cc from compile source list when --disable-bittorrent
  2011. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2012. takes Peer.
  2013. * src/DefaultPieceStorage.cc
  2014. * src/DefaultPieceStorage.h
  2015. * src/Makefile.am
  2016. * src/PieceStorage.h
  2017. * src/UnknownLengthPieceStorage.cc
  2018. * src/UnknownLengthPieceStorage.h
  2019. * test/MockPieceStorage.h
  2020. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Implemented getter methods in header files to give them more
  2022. chance of optimization.
  2023. Return const reference for SharadHandle if possible.
  2024. * src/AbstractAuthResolver.cc
  2025. * src/AbstractAuthResolver.h
  2026. * src/AbstractBtMessage.cc
  2027. * src/AbstractBtMessage.h
  2028. * src/AbstractSingleDiskAdaptor.cc
  2029. * src/AbstractSingleDiskAdaptor.h
  2030. * src/AsyncNameResolver.cc
  2031. * src/AsyncNameResolver.h
  2032. * src/BNode.cc
  2033. * src/BNode.h
  2034. * src/BitfieldMan.cc
  2035. * src/BitfieldMan.h
  2036. * src/BtAbortOutstandingRequestEvent.h
  2037. * src/BtExtendedMessage.cc
  2038. * src/BtExtendedMessage.h
  2039. * src/BtSeederStateChoke.cc
  2040. * src/BtSeederStateChoke.h
  2041. * src/Cookie.cc
  2042. * src/Cookie.h
  2043. * src/DHTBucket.cc
  2044. * src/DHTBucket.h
  2045. * src/DHTConnectionImpl.cc
  2046. * src/DHTConnectionImpl.h
  2047. * src/DHTFindNodeReplyMessage.cc
  2048. * src/DHTFindNodeReplyMessage.h
  2049. * src/DHTGetPeersReplyMessage.cc
  2050. * src/DHTGetPeersReplyMessage.h
  2051. * src/DHTInteractionCommand.cc
  2052. * src/DHTMessage.cc
  2053. * src/DHTMessage.h
  2054. * src/DHTMessageDispatcherImpl.cc
  2055. * src/DHTMessageEntry.cc
  2056. * src/DHTMessageReceiver.cc
  2057. * src/DHTMessageReceiver.h
  2058. * src/DHTMessageTrackerEntry.cc
  2059. * src/DHTMessageTrackerEntry.h
  2060. * src/DHTPeerAnnounceEntry.cc
  2061. * src/DHTPeerAnnounceEntry.h
  2062. * src/DHTPeerLookupTask.cc
  2063. * src/DHTPeerLookupTask.h
  2064. * src/DHTRoutingTableDeserializer.cc
  2065. * src/DHTRoutingTableDeserializer.h
  2066. * src/DefaultBtAnnounce.cc
  2067. * src/DefaultBtAnnounce.h
  2068. * src/DefaultBtMessageDispatcher.cc
  2069. * src/DefaultBtMessageDispatcher.h
  2070. * src/DefaultBtRequestFactory.cc
  2071. * src/DefaultBtRequestFactory.h
  2072. * src/DiskAdaptor.cc
  2073. * src/DiskAdaptor.h
  2074. * src/DownloadContext.cc
  2075. * src/DownloadContext.h
  2076. * src/DownloadEngine.cc
  2077. * src/DownloadEngine.h
  2078. * src/EpollEventPoll.cc
  2079. * src/EpollEventPoll.h
  2080. * src/FtpConnection.cc
  2081. * src/FtpConnection.h
  2082. * src/HttpConnection.cc
  2083. * src/HttpConnection.h
  2084. * src/HttpHeader.cc
  2085. * src/HttpHeader.h
  2086. * src/HttpRequest.cc
  2087. * src/HttpRequest.h
  2088. * src/HttpResponse.cc
  2089. * src/HttpResponse.h
  2090. * src/LibsslTLSContext.cc
  2091. * src/LibsslTLSContext.h
  2092. * src/MSEHandshake.cc
  2093. * src/MSEHandshake.h
  2094. * src/MetalinkEntry.cc
  2095. * src/MetalinkEntry.h
  2096. * src/MetalinkParserController.cc
  2097. * src/MetalinkParserController.h
  2098. * src/MetalinkParserStateMachine.cc
  2099. * src/MetalinkParserStateMachine.h
  2100. * src/MultiDiskAdaptor.cc
  2101. * src/MultiDiskAdaptor.h
  2102. * src/NetrcAuthResolver.cc
  2103. * src/NetrcAuthResolver.h
  2104. * src/Peer.cc
  2105. * src/Peer.h
  2106. * src/PeerSessionResource.cc
  2107. * src/PeerSessionResource.h
  2108. * src/Piece.cc
  2109. * src/Piece.h
  2110. * src/PieceStatMan.cc
  2111. * src/PieceStatMan.h
  2112. * src/Request.cc
  2113. * src/Request.h
  2114. * src/RequestGroup.cc
  2115. * src/RequestGroup.h
  2116. * src/RequestGroupMan.cc
  2117. * src/RequestGroupMan.h
  2118. * src/RequestSlot.cc
  2119. * src/RequestSlot.h
  2120. * src/SegmentMan.cc
  2121. * src/SegmentMan.h
  2122. * src/SelectEventPoll.cc
  2123. * src/SelectEventPoll.h
  2124. * src/ServerStat.cc
  2125. * src/ServerStat.h
  2126. * src/Signature.cc
  2127. * src/Signature.h
  2128. * src/URIResult.cc
  2129. * src/URIResult.h
  2130. * src/UTPexExtensionMessage.cc
  2131. * src/UTPexExtensionMessage.h
  2132. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Fixed compile error without BitTorrent and Metalink support.
  2134. * src/XmlRpcMethod.cc
  2135. * src/XmlRpcMethodFactory.cc
  2136. * src/XmlRpcMethodImpl.cc
  2137. * src/XmlRpcMethodImpl.h
  2138. * test/XmlRpcMethodTest.cc
  2139. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Rewritten the help message for --allow-overwrite option.
  2141. * doc/aria2c.1.txt
  2142. * src/usage_text.h
  2143. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Fixed typo
  2145. * doc/aria2c.1.txt
  2146. * src/usage_text.h
  2147. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Updated README for 1.4.0 release. Use new table syntax of
  2149. asciidoc.
  2150. * README
  2151. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Documented --xml-rpc-max-request-size option in man page.
  2153. * doc/aria2c.1.txt
  2154. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Moved C_* constants from BtContext to DefaultBtContext.
  2156. * src/BtContext.cc: Removed.
  2157. * src/BtContext.h
  2158. * src/DefaultBtContext.cc
  2159. * src/DefaultBtContext.h
  2160. * src/Makefile.am
  2161. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2163. path key respectively when persing .torrent file.
  2164. * src/BtContext.cc
  2165. * src/BtContext.h
  2166. * src/DefaultBtContext.cc
  2167. * test/DefaultBtContextTest.cc
  2168. * test/utf8.torrent
  2169. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added --xml-rpc-max-request-size option to limit the size of
  2171. XML-RPC request.
  2172. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Documented XML-RPC API in man page.
  2174. * doc/aria2c.1.txt
  2175. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2177. will break strict-aliasing rules
  2178. * src/PeerConnection.cc
  2179. * test/DHTRoutingTableSerializerTest.cc
  2180. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2182. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2183. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2184. PKG_CHECK_MODULES macro uses latter name.
  2185. * m4/sqlite3.m4
  2186. * src/Makefile.am
  2187. * test/Makefile.am
  2188. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Fixed typo
  2190. * configure.ac
  2191. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2193. presence of libgnutls using pkg-config first. If it fails, fall
  2194. back to old macro libgnutls.m4.
  2195. * configure.ac
  2196. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Use s itself instead of !s.bad()
  2198. * src/CookieStorage.cc
  2199. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Documented --on-download-* option and --save-cookies option in man
  2201. page.
  2202. * doc/aria2c.1.txt
  2203. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Set possible values for --load-cookie option to "/path/to/file".
  2205. * src/OptionHandlerFactory.cc
  2206. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Added --save-cookies option.
  2208. * src/Cookie.cc
  2209. * src/Cookie.h
  2210. * src/CookieStorage.cc
  2211. * src/CookieStorage.h
  2212. * src/MultiUrlRequestInfo.cc
  2213. * src/OptionHandlerFactory.cc
  2214. * src/prefs.cc
  2215. * src/prefs.h
  2216. * src/usage_text.h
  2217. * test/CookieStorageTest.cc
  2218. * test/CookieTest.cc
  2219. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Removed tellAll XML-RPC command because its reponse tends to be
  2221. big if stopped/waiting downloads pile up.
  2222. * src/XmlRpcMethodFactory.cc
  2223. * src/XmlRpcMethodImpl.cc
  2224. * src/XmlRpcMethodImpl.h
  2225. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Added the ability to execute command when download starts and
  2227. stops. You can also specify command for particular cases such as
  2228. complete/error download. Added --on-download-start,
  2229. --on-download-stop, --on-download-complete and --on-download-error
  2230. option.
  2231. * src/OptionHandlerFactory.cc
  2232. * src/RequestGroupMan.cc
  2233. * src/prefs.cc
  2234. * src/prefs.h
  2235. * src/usage_text.h
  2236. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Fixed test error
  2238. * test/BencodeTest.cc
  2239. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added unit tests.
  2241. * test/XmlRpcMethodTest.cc
  2242. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Made exception message more verbose.
  2244. * src/bencode.cc
  2245. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2247. space in console readout. Also they are now shown in MiB/s if
  2248. speed > 1024KiB/s.
  2249. * src/ConsoleStatCalc.cc
  2250. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Added SEED to console output, which represents the number of
  2252. seeders currently the client is connecting to.
  2253. * src/ConsoleStatCalc.cc
  2254. * src/ConsoleStatCalc.h
  2255. * src/DownloadEngine.cc
  2256. * src/NullStatCalc.h
  2257. * src/StatCalc.h
  2258. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Added source filename(__FILE__) and line number(__LINE__) to
  2260. exception message.
  2261. * src/AbstractCommand.cc
  2262. * src/AbstractDiskWriter.cc
  2263. * src/AbstractProxyResponseCommand.cc
  2264. * src/BDE.h
  2265. * src/BtAllowedFastMessage.cc
  2266. * src/BtHandshakeMessageValidator.h
  2267. * src/BtHaveAllMessage.cc
  2268. * src/BtHaveNoneMessage.cc
  2269. * src/BtPieceMessage.cc
  2270. * src/BtRejectMessage.cc
  2271. * src/ChunkedDecoder.cc
  2272. * src/CookieStorage.cc
  2273. * src/DHTAnnouncePeerMessage.cc
  2274. * src/DHTEntryPointNameResolveCommand.cc
  2275. * src/DHTMessageFactoryImpl.cc
  2276. * src/DHTMessageTracker.cc
  2277. * src/DHTRoutingTableDeserializer.cc
  2278. * src/DHTRoutingTableSerializer.cc
  2279. * src/DHTSetup.cc
  2280. * src/DHTTokenTracker.cc
  2281. * src/DefaultBtAnnounce.cc
  2282. * src/DefaultBtContext.cc
  2283. * src/DefaultBtInteractive.cc
  2284. * src/DefaultBtMessageFactory.cc
  2285. * src/DefaultBtProgressInfoFile.cc
  2286. * src/DefaultExtensionMessageFactory.cc
  2287. * src/DlAbortEx.h
  2288. * src/DlRetryEx.h
  2289. * src/DownloadCommand.cc
  2290. * src/DownloadEngineFactory.cc
  2291. * src/DownloadFailureException.h
  2292. * src/Exception.cc
  2293. * src/Exception.h
  2294. * src/ExpatMetalinkProcessor.cc
  2295. * src/ExpatXmlRpcRequestProcessor.cc
  2296. * src/FallocFileAllocationIterator.cc
  2297. * src/FatalException.h
  2298. * src/FtpConnection.cc
  2299. * src/FtpFinishDownloadCommand.cc
  2300. * src/FtpInitiateConnectionCommand.cc
  2301. * src/FtpNegotiationCommand.cc
  2302. * src/GZipDecoder.cc
  2303. * src/HandshakeExtensionMessage.cc
  2304. * src/HttpConnection.cc
  2305. * src/HttpHeaderProcessor.cc
  2306. * src/HttpInitiateConnectionCommand.cc
  2307. * src/HttpResponse.cc
  2308. * src/HttpResponseCommand.cc
  2309. * src/HttpServer.cc
  2310. * src/HttpSkipResponseCommand.cc
  2311. * src/InitiateConnectionCommandFactory.cc
  2312. * src/IteratableChunkChecksumValidator.cc
  2313. * src/LibgcryptARC4Context.h
  2314. * src/LibgcryptARC4Decryptor.h
  2315. * src/LibgcryptARC4Encryptor.h
  2316. * src/LibgcryptDHKeyExchange.h
  2317. * src/LibgnutlsTLSContext.cc
  2318. * src/LibsslARC4Context.h
  2319. * src/LibsslARC4Decryptor.h
  2320. * src/LibsslARC4Encryptor.h
  2321. * src/LibsslDHKeyExchange.h
  2322. * src/LibsslTLSContext.cc
  2323. * src/MSEHandshake.cc
  2324. * src/MessageDigestHelper.cc
  2325. * src/MetalinkHelper.cc
  2326. * src/MultiDiskAdaptor.cc
  2327. * src/NameMatchOptionHandler.h
  2328. * src/NameResolver.cc
  2329. * src/Netrc.cc
  2330. * src/NsCookieParser.cc
  2331. * src/OptionHandlerException.cc
  2332. * src/OptionHandlerException.h
  2333. * src/OptionHandlerImpl.h
  2334. * src/OptionParser.cc
  2335. * src/ParameterizedStringParser.cc
  2336. * src/PeerAbstractCommand.cc
  2337. * src/PeerConnection.cc
  2338. * src/PeerMessageUtil.cc
  2339. * src/PeerReceiveHandshakeCommand.cc
  2340. * src/Platform.cc
  2341. * src/ReceiverMSEHandshakeCommand.cc
  2342. * src/RecoverableException.h
  2343. * src/RequestGroup.cc
  2344. * src/SimpleLogger.cc
  2345. * src/SocketCore.cc
  2346. * src/Sqlite3MozCookieParser.cc
  2347. * src/UTPexExtensionMessage.cc
  2348. * src/Util.cc
  2349. * src/XML2SAXMetalinkProcessor.cc
  2350. * src/Xml2XmlRpcRequestProcessor.cc
  2351. * src/XmlRpcMethodImpl.cc
  2352. * src/bencode.cc
  2353. * src/download_helper.cc
  2354. * src/messageDigest.h
  2355. * test/ExceptionTest.cc
  2356. * test/TestUtil.cc
  2357. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Bump up version number to 1.4.0
  2359. * configure.ac
  2360. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Added 2files.metalink to EXTRA_DIST
  2362. * test/Makefile.am
  2363. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Added missing 2files.metalink
  2365. * test/2files.metalink
  2366. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Show "[MEMORY]" prefix before filename in download summary if it
  2368. is downloaded into memory.
  2369. * src/DownloadResult.h
  2370. * src/RequestGroup.cc
  2371. * src/RequestGroupMan.cc
  2372. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2374. * src/ExpatXmlRpcRequestProcessor.cc
  2375. * src/Xml2XmlRpcRequestProcessor.cc
  2376. * src/message.h
  2377. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Defined const BDEs to avoid duplicate instantiation.
  2379. Defined MSG_GID_NOT_PROVIDED.
  2380. * src/XmlRpcMethodImpl.cc
  2381. * src/message.h
  2382. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Code cleanup
  2384. * src/Xml2XmlRpcRequestProcessor.cc
  2385. * src/Xml2XmlRpcRequestProcessor.h
  2386. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Defined ENABLE_XML_RPC
  2388. * configure.ac
  2389. * configure
  2390. * config.h.in
  2391. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Added ExpatXmlRpcRequestProcessor
  2393. * src/ExpatXmlRpcRequestProcessor.cc
  2394. * src/ExpatXmlRpcRequestProcessor.h
  2395. * src/Makefile.am
  2396. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Added tests for addTorrent and addMetalink command.
  2398. * test/TestUtil.cc
  2399. * test/TestUtil.h
  2400. * test/XmlRpcMethodTest.cc
  2401. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Corrected the description of --file-allocation option.
  2403. * doc/aria2c.1.txt
  2404. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Added tellAll command.
  2406. * src/XmlRpcMethodFactory.cc
  2407. * src/XmlRpcMethodImpl.cc
  2408. * src/XmlRpcMethodImpl.h
  2409. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2411. * src/XmlRpcMethodImpl.cc
  2412. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added changeGlobalOption command. Currently,
  2414. max-overall-download-limit and max-overall-upload-limit option are
  2415. available.
  2416. * src/RequestGroupMan.h
  2417. * src/XmlRpcMethod.cc
  2418. * src/XmlRpcMethod.h
  2419. * src/XmlRpcMethodFactory.cc
  2420. * src/XmlRpcMethodImpl.cc
  2421. * src/XmlRpcMethodImpl.h
  2422. * test/XmlRpcMethodTest.cc
  2423. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Added changeOption command. Currently, max-download-limit,
  2425. max-upload-limit option are available in this command.
  2426. * src/RequestGroup.h
  2427. * src/XmlRpcMethod.cc
  2428. * src/XmlRpcMethod.h
  2429. * src/XmlRpcMethodFactory.cc
  2430. * src/XmlRpcMethodImpl.cc
  2431. * src/XmlRpcMethodImpl.h
  2432. * test/XmlRpcMethodTest.cc
  2433. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Added purgeDownloadResult command.
  2435. * src/RequestGroupMan.cc
  2436. * src/RequestGroupMan.h
  2437. * src/XmlRpcMethodFactory.cc
  2438. * src/XmlRpcMethodImpl.cc
  2439. * src/XmlRpcMethodImpl.h
  2440. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Refactored.
  2442. * src/XmlRpcMethod.cc
  2443. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2445. XmlRpcResponse.
  2446. * src/HttpServerBodyCommand.cc
  2447. * src/Makefile.am
  2448. * src/XmlRpcMethod.cc
  2449. * src/XmlRpcMethod.h
  2450. * src/XmlRpcMethodImpl.cc
  2451. * src/XmlRpcResponse.cc
  2452. * src/XmlRpcResponse.h
  2453. * test/XmlRpcMethodTest.cc
  2454. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. In XML-RPC option struct, header and index-out option can take
  2456. array as value.
  2457. * src/XmlRpcMethod.cc
  2458. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Removed unused option member from PeerConnection.
  2460. * src/InitiatorMSEHandshakeCommand.cc
  2461. * src/PeerConnection.cc
  2462. * src/PeerConnection.h
  2463. * src/PeerInteractionCommand.cc
  2464. * src/PeerReceiveHandshakeCommand.cc
  2465. * src/ReceiverMSEHandshakeCommand.cc
  2466. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Added "seeder" key to getPeers response.
  2468. * src/XmlRpcMethodImpl.cc
  2469. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Added addMetalink XML-RPC command.
  2471. * src/XmlRpcMethodFactory.cc
  2472. * src/XmlRpcMethodImpl.cc
  2473. * src/XmlRpcMethodImpl.h
  2474. * src/download_helper.cc
  2475. * src/download_helper.h
  2476. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed the bug that POU peers are never choked in seeding.
  2478. * src/BtSeederStateChoke.cc
  2479. * src/BtSeederStateChoke.h
  2480. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Added web-seeding URI handling in addTorrent command.
  2482. * src/XmlRpcMethodImpl.cc
  2483. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added "length" key to getFiles response.
  2485. * src/XmlRpcMethodImpl.cc
  2486. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Moved --no-netrc option from ftp option section to http/ftp option
  2488. section.
  2489. * doc/aria2c.1.txt
  2490. * src/OptionHandlerFactory.cc
  2491. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Removed garbage "\" character before '
  2493. * doc/aria2c.1.txt
  2494. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Removed garbage "\" character before http.
  2496. * doc/aria2c.1.txt
  2497. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Documented additional options that can be specified in -i list.
  2499. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2500. and --xml-rpc-passwd. Removed --enable-http-server and
  2501. --http-server-listen-port.
  2502. * doc/aria2c.1.txt
  2503. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2505. * src/DefaultPeerStorage.cc
  2506. * src/DefaultPeerStorage.h
  2507. * src/PeerStorage.h
  2508. * src/XmlRpcMethodImpl.cc
  2509. * test/MockPeerStorage.h
  2510. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2511. Put a call to Socket::isReadable() in try block.
  2512. * src/HttpServerBodyCommand.cc
  2513. * src/HttpServerCommand.cc
  2514. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2516. exception , so it is now in try block.
  2517. * src/HttpServerResponseCommand.cc
  2518. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Added "amChoking" and "peerChoking" key in getPeers response.
  2520. * src/XmlRpcMethodImpl.cc
  2521. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Added test case for zero-length filter.
  2523. * test/BitfieldManTest.cc
  2524. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. getFiles command now returns file data for finished/stopped
  2526. downloads.
  2527. * src/XmlRpcMethodImpl.cc
  2528. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. DownloadResult now has the list of FileEntry. The download
  2530. summary displays the path of first selected file and the number of
  2531. remaining files for multi-file torrent.
  2532. * src/DownloadResult.h
  2533. * src/RequestGroup.cc
  2534. * src/RequestGroupMan.cc
  2535. * test/RequestGroupTest.cc
  2536. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Fixed segmentation fault error when no file is selected in
  2538. multi-file torrent.
  2539. * src/BitfieldMan.cc
  2540. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Escaped <,>,& character in XML-RPC response.
  2542. * src/XmlRpcMethod.cc
  2543. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Throw DlAbortEx instead of FatalException during parsing options
  2545. because we don't want for aria2 to quit when bad option is passed
  2546. via XML-RPC.
  2547. * src/OptionHandlerException.cc
  2548. * src/OptionHandlerException.h
  2549. * src/OptionHandlerImpl.h
  2550. * src/OptionParser.cc
  2551. * src/OptionParser.h
  2552. * src/PStringSegment.cc
  2553. * src/ParameterizedStringParser.cc
  2554. * src/download_helper.cc
  2555. * test/ParameterizedStringParserTest.cc
  2556. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Selecting files are now done in
  2558. DefaultBtContext::setFileFileter().
  2559. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2560. functions are removed because they are no longer used. Creating
  2561. filter in BitfieldMan is done in new funtion
  2562. PieceStorage::setupFileFilter()
  2563. * src/BtContext.cc
  2564. * src/BtContext.h
  2565. * src/DefaultBtContext.cc
  2566. * src/DefaultBtContext.h
  2567. * src/DefaultPieceStorage.cc
  2568. * src/DefaultPieceStorage.h
  2569. * src/DiskAdaptor.cc
  2570. * src/DiskAdaptor.h
  2571. * src/PieceStorage.h
  2572. * src/RequestGroup.cc
  2573. * src/UnknownLengthPieceStorage.h
  2574. * src/XmlRpcMethodImpl.cc
  2575. * test/DefaultBtContextTest.cc
  2576. * test/MockBtContext.h
  2577. * test/MockPieceStorage.h
  2578. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Fixed compile error on Mac OS X
  2580. * src/HttpServer.cc
  2581. * src/XmlRpcMethod.h
  2582. * src/XmlRpcMethodImpl.cc
  2583. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Use std::binary_search instead of std::find
  2585. * src/DefaultPieceStorage.cc
  2586. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Removed unnecessary BDE() call; leave them to implicit conversion.
  2588. * src/XmlRpcMethodImpl.cc
  2589. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Return connections and gid in string
  2591. * src/XmlRpcMethodImpl.cc
  2592. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Renamed addURI as addUri
  2594. * src/XmlRpcMethodFactory.cc
  2595. * src/XmlRpcMethodImpl.cc
  2596. * src/XmlRpcMethodImpl.h
  2597. * test/XmlRpcMethodTest.cc
  2598. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Renamed addTorrentFile as addTorrent
  2600. * src/XmlRpcMethodFactory.cc
  2601. * src/XmlRpcMethodImpl.cc
  2602. * src/XmlRpcMethodImpl.h
  2603. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. The information for files, URIs, peers are removed from the
  2605. reponse of TellaActive, TellStatus command because they tend to be
  2606. large. Instead they can be retrieved by the dedicated commands:
  2607. getFiles, getUris and getPeers respectively.
  2608. * src/XmlRpcMethodFactory.cc
  2609. * src/XmlRpcMethodImpl.cc
  2610. * src/XmlRpcMethodImpl.h
  2611. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Removed --max-overall-upload-limit and
  2613. --max-overall-download-limit option from listRequestOptions.
  2614. * src/download_helper.cc
  2615. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Log incoming host in HttpListenCommand.
  2617. * src/HttpListenCommand.cc
  2618. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2620. --xml-rpc-passwd option.
  2621. * src/HttpServer.cc
  2622. * src/HttpServer.h
  2623. * src/HttpServerCommand.cc
  2624. * src/OptionHandlerFactory.cc
  2625. * src/prefs.cc
  2626. * src/prefs.h
  2627. * src/usage_text.h
  2628. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2630. processing 0 length request.
  2631. * src/HttpServerBodyCommand.cc
  2632. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Removed --enable-http-server and --http-server-listen-port
  2634. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2635. instead. The original feature for --enable-http-server that
  2636. reports download progress in HTML was officially removed. Persist
  2637. XML-RPC connection if client supports keep-alive.
  2638. * src/DownloadEngineFactory.cc
  2639. * src/HttpServerCommand.cc
  2640. * src/HttpServerResponseCommand.cc
  2641. * src/Makefile.am
  2642. * src/Makefile.in
  2643. * src/OptionHandlerFactory.cc
  2644. * src/RequestGroupMan.cc
  2645. * src/main.cc
  2646. * src/option_processing.cc
  2647. * src/prefs.cc
  2648. * src/prefs.h
  2649. * src/usage_text.h
  2650. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Added "uris" key to the response of tellStatus command. Added
  2652. "connections" key to the response of tellStatus and tellActive
  2653. command.
  2654. * src/XmlRpcMethodImpl.cc
  2655. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2657. Added TellStatusXmlRpcMethod. Remove command can now remove
  2658. waiting RequestGroup.
  2659. * src/RequestGroupMan.cc
  2660. * src/RequestGroupMan.h
  2661. * src/XmlRpcMethodFactory.cc
  2662. * src/XmlRpcMethodImpl.cc
  2663. * src/XmlRpcMethodImpl.h
  2664. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Initialized _peerId
  2666. * src/Peer.cc
  2667. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Return fault structure for error. FailXmlRpcMethod is renamed as
  2669. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2670. in non-torrent download. Return single param value.
  2671. * src/XmlRpcMethod.cc
  2672. * src/XmlRpcMethodFactory.cc
  2673. * src/XmlRpcMethodImpl.cc
  2674. * src/XmlRpcMethodImpl.h
  2675. * test/XmlRpcMethodTest.cc
  2676. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2678. command.
  2679. * src/RequestGroup.cc
  2680. * src/RequestGroup.h
  2681. * src/RequestGroupMan.cc
  2682. * src/XmlRpcMethodImpl.cc
  2683. * test/RequestGroupTest.cc
  2684. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Added more options that can be specified in -i list and xml-rpc
  2686. add* command.
  2687. * src/download_helper.h
  2688. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. The available options in -i list should be listed in
  2690. listRequestOptions().
  2691. * src/download_helper.cc
  2692. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2694. command.
  2695. * src/XmlRpcMethodImpl.cc
  2696. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Now RequestGroup has its own copy of Option object. This will help
  2698. to give custom option for each RequestGroup.
  2699. addTorrentFile command now takes options.
  2700. * src/AbstractCommand.cc
  2701. * src/AbstractCommand.h
  2702. * src/AbstractProxyRequestCommand.cc
  2703. * src/ActivePeerConnectionCommand.cc
  2704. * src/ActivePeerConnectionCommand.h
  2705. * src/AdaptiveURISelector.cc
  2706. * src/BtCheckIntegrityEntry.cc
  2707. * src/BtDependency.cc
  2708. * src/BtDependency.h
  2709. * src/BtFileAllocationEntry.cc
  2710. * src/BtPostDownloadHandler.cc
  2711. * src/CheckIntegrityEntry.cc
  2712. * src/DownloadCommand.cc
  2713. * src/FtpDownloadCommand.cc
  2714. * src/FtpFinishDownloadCommand.cc
  2715. * src/FtpInitiateConnectionCommand.cc
  2716. * src/FtpNegotiationCommand.cc
  2717. * src/HttpInitiateConnectionCommand.cc
  2718. * src/HttpRequestCommand.cc
  2719. * src/HttpResponseCommand.cc
  2720. * src/HttpSkipResponseCommand.cc
  2721. * src/InitiateConnectionCommand.cc
  2722. * src/InitiateConnectionCommandFactory.cc
  2723. * src/InitiatorMSEHandshakeCommand.cc
  2724. * src/InitiatorMSEHandshakeCommand.h
  2725. * src/Metalink2RequestGroup.cc
  2726. * src/Metalink2RequestGroup.h
  2727. * src/MetalinkPostDownloadHandler.cc
  2728. * src/MultiUrlRequestInfo.cc
  2729. * src/MultiUrlRequestInfo.h
  2730. * src/PeerAbstractCommand.cc
  2731. * src/PeerInteractionCommand.cc
  2732. * src/PeerInteractionCommand.h
  2733. * src/PeerReceiveHandshakeCommand.cc
  2734. * src/PeerReceiveHandshakeCommand.h
  2735. * src/RequestGroup.cc
  2736. * src/RequestGroup.h
  2737. * src/TrackerWatcherCommand.cc
  2738. * src/TrackerWatcherCommand.h
  2739. * src/XmlRpcMethod.cc
  2740. * src/XmlRpcMethod.h
  2741. * src/XmlRpcMethodImpl.cc
  2742. * src/download_helper.cc
  2743. * src/download_helper.h
  2744. * src/main.cc
  2745. * test/BtDependencyTest.cc
  2746. * test/BtPostDownloadHandlerTest.cc
  2747. * test/DefaultBtMessageDispatcherTest.cc
  2748. * test/DownloadHandlerFactoryTest.cc
  2749. * test/DownloadHelperTest.cc
  2750. * test/Metalink2RequestGroupTest.cc
  2751. * test/MetalinkPostDownloadHandlerTest.cc
  2752. * test/RequestGroupManTest.cc
  2753. * test/RequestGroupTest.cc
  2754. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Added tellActiveStatus xml-rpc command which reports download
  2756. status of active downloads.
  2757. * src/XmlRpcMethodFactory.cc
  2758. * src/XmlRpcMethodImpl.cc
  2759. * src/XmlRpcMethodImpl.h
  2760. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added addTorrentFile xml-rpc command which receives uploaded
  2762. torrent file and add download for it.
  2763. * src/RequestGroupMan.cc
  2764. * src/XmlRpcMethodFactory.cc
  2765. * src/XmlRpcMethodImpl.cc
  2766. * src/XmlRpcMethodImpl.h
  2767. * src/download_helper.cc
  2768. * src/download_helper.h
  2769. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Added remove xml-rpc command which removes specified download.
  2771. There is a known issue: the removed unfinished downloads are
  2772. reported ERR when aria2 exits. They should be reported as INPR.
  2773. * src/RequestGroupMan.cc
  2774. * src/RequestGroupMan.h
  2775. * src/XmlRpcMethodFactory.cc
  2776. * src/XmlRpcMethodImpl.cc
  2777. * src/XmlRpcMethodImpl.h
  2778. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. If --enable-http-server is enabled, don't stop aria2 when all
  2780. download finished and don't quit when no files to download at
  2781. start up.
  2782. * src/RequestGroupMan.cc
  2783. * src/main.cc
  2784. * src/option_processing.cc
  2785. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Added missing AM_CONDITIONAL
  2787. * configure.ac
  2788. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Added xml-rpc functionality. Currently only addURI commad is
  2790. supported. To enable xml-rpc, run aria2 with
  2791. --enable-http-server. This option name is temporal and will be
  2792. changed. The feature that reports download progress in html format
  2793. is temporarily disabled.
  2794. * src/HttpServer.cc
  2795. * src/HttpServer.h
  2796. * src/HttpServerBodyCommand.cc
  2797. * src/HttpServerBodyCommand.h
  2798. * src/HttpServerCommand.cc
  2799. * src/HttpServerResponseCommand.cc
  2800. * src/Makefile.am
  2801. * src/OptionParser.cc
  2802. * src/OptionParser.h
  2803. * src/RequestGroupMan.cc
  2804. * src/RequestGroupMan.h
  2805. * src/XmlRpcMethod.cc
  2806. * src/XmlRpcMethod.h
  2807. * src/XmlRpcMethodFactory.cc
  2808. * src/XmlRpcMethodFactory.h
  2809. * src/XmlRpcMethodImpl.cc
  2810. * src/XmlRpcMethodImpl.h
  2811. * src/download_helper.cc
  2812. * src/download_helper.h
  2813. * test/Makefile.am
  2814. * test/XmlRpcMethodTest.cc
  2815. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Added xml-rpc request parser. The supported value types are:
  2817. i4/int, string, double, struct, array, base64. Currently only
  2818. libxml2 version is provided.
  2819. * src/Xml2XmlRpcRequestProcessor.cc
  2820. * src/Xml2XmlRpcRequestProcessor.h
  2821. * src/XmlRpcElements.cc
  2822. * src/XmlRpcElements.h
  2823. * src/XmlRpcRequest.h
  2824. * src/XmlRpcRequestParserController.cc
  2825. * src/XmlRpcRequestParserController.h
  2826. * src/XmlRpcRequestParserState.h
  2827. * src/XmlRpcRequestParserStateImpl.cc
  2828. * src/XmlRpcRequestParserStateImpl.h
  2829. * src/XmlRpcRequestParserStateMachine.cc
  2830. * src/XmlRpcRequestParserStateMachine.h
  2831. * src/XmlRpcRequestProcessor.h
  2832. * test/XmlRpcRequestParserControllerTest.cc
  2833. * test/XmlRpcRequestProcessorTest.cc
  2834. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. * Release 1.3.3
  2836. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Fixed compile error since r1202.
  2838. * src/ExpatMetalinkProcessor.cc
  2839. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Updated Ukrainian, Russian and Simplified Chinese
  2841. translations. Thanks to all translators.
  2842. * po/ru.po
  2843. * po/uk.po
  2844. * po/zh_CN.po
  2845. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Pass reference of Option object instead of pointer.
  2847. * src/download_helper.cc
  2848. * src/download_helper.h
  2849. * src/main.cc
  2850. * test/DownloadHelperTest.cc
  2851. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2853. from option directly. Instead, get them from RequestGroup.
  2854. * src/ActivePeerConnectionCommand.cc
  2855. * src/ActivePeerConnectionCommand.h
  2856. * src/PeerReceiveHandshakeCommand.cc
  2857. * src/RequestGroup.h
  2858. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Removed unused uploadLimitCheck and uploadLimit from
  2860. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2861. PeerInteractionCommand.
  2862. * src/PeerAbstractCommand.cc
  2863. * src/PeerAbstractCommand.h
  2864. * src/PeerInteractionCommand.cc
  2865. * src/PeerInteractionCommand.h
  2866. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Fixed broken file renaming feature since r1202.
  2868. * src/FtpNegotiationCommand.cc
  2869. * src/FtpNegotiationCommand.h
  2870. * src/HttpResponseCommand.cc
  2871. * src/RequestGroup.cc
  2872. * src/RequestGroup.h
  2873. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Removed unused debug log
  2875. * src/SocketCore.cc
  2876. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Generated configure and Makefile.in using autoconf 2.63 and
  2878. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2879. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2880. * configure.ac
  2881. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Moved piece statistics stuff to new PieceStatMan class.
  2883. Refactored PieceSelector interface.
  2884. * src/DefaultPieceStorage.cc
  2885. * src/DefaultPieceStorage.h
  2886. * src/LongestSequencePieceSelector.cc
  2887. * src/LongestSequencePieceSelector.h
  2888. * src/Makefile.am
  2889. * src/PieceSelector.h
  2890. * src/PieceStatMan.cc
  2891. * src/PieceStatMan.h
  2892. * src/RarestPieceSelector.cc
  2893. * src/RarestPieceSelector.h
  2894. * src/RequestGroup.cc
  2895. * test/DefaultPieceStorageTest.cc
  2896. * test/InOrderPieceSelector.h
  2897. * test/Makefile.am
  2898. * test/PieceStatManTest.cc
  2899. * test/RarestPieceSelectorTest.cc
  2900. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Added static member _protocolFamily to SocketCore. By default,
  2902. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2903. address. Sometime SocketCore::bind() and
  2904. SocketCore::establishConnection() use difference protocl family
  2905. and latter cannot connect to former. To avoid this situation, we
  2906. limit protocol family to AF_INET for unit tests.
  2907. * src/SocketCore.cc
  2908. * src/SocketCore.h
  2909. * test/AllTest.cc
  2910. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Avoid std::bad_alloc for negative bencode string length.
  2912. * src/bencode.cc
  2913. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Supported segmented downloading with chunked transfer encoding and
  2915. content-length.
  2916. * src/DownloadCommand.cc
  2917. * src/HttpResponseCommand.cc
  2918. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Bump up version number to 1.3.3
  2920. * configure.ac
  2921. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2923. from 4096 to 65536 (for insanely large ftp login banners)
  2924. * src/FtpConnection.h
  2925. * test/FtpConnectionTest.cc
  2926. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. In DefaultBtContext::getActualBasePath(), return first
  2928. FileEntry::getPath() for single file torrent.
  2929. * src/DefaultBtContext.cc
  2930. * test/DefaultBtContextTest.cc
  2931. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2933. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2934. Removed _directIOAllowed member from DiskWriter.
  2935. * src/AbstractDiskWriter.cc
  2936. * src/AbstractDiskWriter.h
  2937. * src/AbstractSingleDiskAdaptor.cc
  2938. * src/AbstractSingleDiskAdaptor.h
  2939. * src/BinaryStream.h
  2940. * src/ByteArrayDiskWriter.h
  2941. * src/DefaultPieceStorage.cc
  2942. * src/DiskWriter.h
  2943. * src/MultiDiskAdaptor.cc
  2944. * src/MultiDiskAdaptor.h
  2945. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Now the constructor of AbstractDiskWriter takes filename as an
  2947. argument and filename argument is removed from openFile(),
  2948. initAndOpenFile(), openExistingFile() interface. storeDir member
  2949. and its accessor functions are removed from DiskAdaptor because it
  2950. is not used anymore. size() member function of DefaultDiskWriter,
  2951. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2952. opening file.
  2953. * src/AbstractDiskWriter.cc
  2954. * src/AbstractDiskWriter.h
  2955. * src/AbstractSingleDiskAdaptor.cc
  2956. * src/AbstractSingleDiskAdaptor.h
  2957. * src/ByteArrayDiskWriter.cc
  2958. * src/ByteArrayDiskWriter.h
  2959. * src/ByteArrayDiskWriterFactory.cc
  2960. * src/ByteArrayDiskWriterFactory.h
  2961. * src/DefaultDiskWriter.cc
  2962. * src/DefaultDiskWriter.h
  2963. * src/DefaultDiskWriterFactory.cc
  2964. * src/DefaultDiskWriterFactory.h
  2965. * src/DefaultPieceStorage.cc
  2966. * src/DirectDiskAdaptor.cc
  2967. * src/DirectDiskAdaptor.h
  2968. * src/DiskAdaptor.h
  2969. * src/DiskWriter.h
  2970. * src/DiskWriterFactory.h
  2971. * src/MessageDigestHelper.cc
  2972. * src/MultiDiskAdaptor.cc
  2973. * src/RequestGroup.cc
  2974. * src/UnknownLengthPieceStorage.cc
  2975. * src/Util.cc
  2976. * test/DefaultDiskWriterTest.cc
  2977. * test/DirectDiskAdaptorTest.cc
  2978. * test/FallocFileAllocationIteratorTest.cc
  2979. * test/MessageDigestHelperTest.cc
  2980. * test/MetalinkProcessorTest.cc
  2981. * test/MultiDiskAdaptorTest.cc
  2982. * test/MultiFileAllocationIteratorTest.cc
  2983. * test/SingleFileAllocationIteratorTest.cc
  2984. * test/UtilTest.cc
  2985. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Fixed the bug that aria2 aborts when --select-file is used. This
  2987. bug was introduced in r1199.
  2988. * src/MultiDiskAdaptor.cc
  2989. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2990. Code cleanup
  2991. * test/MockPieceStorage.cc
  2992. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Fixed the bug that read-only file with wrong file size will cause
  2994. error because it cannot be truncated to the correct size. Now if
  2995. file size is different than the expected one, re-open file in
  2996. writable mode.
  2997. * src/AbstractSingleDiskAdaptor.cc
  2998. * src/AbstractSingleDiskAdaptor.h
  2999. * src/BtCheckIntegrityEntry.cc
  3000. * src/DiskAdaptor.h
  3001. * src/MultiDiskAdaptor.h
  3002. * src/RequestGroup.cc
  3003. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Fixed the bug that with --check-integrity option aria2 reports
  3005. downloaded file size is 0 even if some parts of file is correctly
  3006. downloaded. This bug is reproducible for the download that a file
  3007. includes last piece is missing. This bug doesn't reveal for
  3008. single-torrent with file allocation on.
  3009. * src/IteratableChecksumValidator.cc
  3010. * test/IteratableChecksumValidatorTest.cc
  3011. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3013. * src/RequestGroupMan.cc
  3014. * src/AdaptiveURISelector.cc
  3015. * src/AdaptiveURISelector.h
  3016. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. * Release 1.3.2
  3018. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Updated README
  3020. * README
  3021. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Updated Ukrainian translations. Thanks to Alexander10.
  3023. * po/uk.po
  3024. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Code cleanup
  3026. * src/MetalinkParserStateMachine.cc
  3027. * src/MetalinkParserStateMachine.h
  3028. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3030. and expat simultaneously, MetalinkProcessor is now not base class
  3031. and it is directly implemented in XML2SAXMetalinkProcessor and
  3032. ExpatMetalinkProcessor.
  3033. * src/ExpatMetalinkProcessor.cc
  3034. * src/ExpatMetalinkProcessor.h
  3035. * src/Makefile.am
  3036. * src/MetalinkHelper.cc
  3037. * src/MetalinkProcessor.h
  3038. * src/MetalinkProcessorFactory.cc: Removed.
  3039. * src/MetalinkProcessorFactory.h: Removed
  3040. * src/XML2SAXMetalinkProcessor.cc
  3041. * src/XML2SAXMetalinkProcessor.h
  3042. * test/MetalinkProcessorTest.cc
  3043. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Bump up version number to 1.3.2
  3045. * configure.ac
  3046. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Added missing file.
  3048. * test/Makefile.am
  3049. * test/url-list-singleFileEndsWithSlash.torrent
  3050. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3052. request.
  3053. * src/AnnounceList.cc
  3054. * src/AnnounceList.h
  3055. * src/BDE.cc: Added
  3056. * src/BDE.h: Added
  3057. * src/DHTAbstractMessage.cc
  3058. * src/DHTAbstractMessage.h
  3059. * src/DHTAnnouncePeerMessage.cc
  3060. * src/DHTAnnouncePeerMessage.h
  3061. * src/DHTAnnouncePeerReplyMessage.cc
  3062. * src/DHTAnnouncePeerReplyMessage.h
  3063. * src/DHTFindNodeMessage.cc
  3064. * src/DHTFindNodeMessage.h
  3065. * src/DHTFindNodeReplyMessage.cc
  3066. * src/DHTFindNodeReplyMessage.h
  3067. * src/DHTGetPeersMessage.cc
  3068. * src/DHTGetPeersMessage.h
  3069. * src/DHTGetPeersReplyMessage.cc
  3070. * src/DHTGetPeersReplyMessage.h
  3071. * src/DHTMessageFactory.h
  3072. * src/DHTMessageFactoryImpl.cc
  3073. * src/DHTMessageFactoryImpl.h
  3074. * src/DHTMessageReceiver.cc
  3075. * src/DHTMessageTracker.cc
  3076. * src/DHTMessageTracker.h
  3077. * src/DHTPingMessage.cc
  3078. * src/DHTPingMessage.h
  3079. * src/DHTPingReplyMessage.cc
  3080. * src/DHTPingReplyMessage.h
  3081. * src/DHTQueryMessage.cc
  3082. * src/DHTQueryMessage.h
  3083. * src/DHTResponseMessage.cc
  3084. * src/DHTResponseMessage.h
  3085. * src/DefaultBtAnnounce.cc
  3086. * src/DefaultBtContext.cc
  3087. * src/DefaultBtContext.h
  3088. * src/HandshakeExtensionMessage.cc
  3089. * src/Makefile.am
  3090. * src/PeerListProcessor.h
  3091. * src/UTPexExtensionMessage.cc
  3092. * src/bencode.cc
  3093. * src/bencode.h
  3094. * test/AnnounceListTest.cc
  3095. * test/BDETest.cc: Added
  3096. * test/BencodeTest.cc
  3097. * test/DHTAnnouncePeerMessageTest.cc
  3098. * test/DHTAnnouncePeerReplyMessageTest.cc
  3099. * test/DHTFindNodeMessageTest.cc
  3100. * test/DHTFindNodeReplyMessageTest.cc
  3101. * test/DHTGetPeersMessageTest.cc
  3102. * test/DHTGetPeersReplyMessageTest.cc
  3103. * test/DHTMessageFactoryImplTest.cc
  3104. * test/DHTMessageTrackerTest.cc
  3105. * test/DHTPingMessageTest.cc
  3106. * test/DHTPingReplyMessageTest.cc
  3107. * test/Makefile.am
  3108. * test/MockDHTMessageFactory.h
  3109. * test/PeerListProcessorTest.cc
  3110. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Use url-list (web-seeding) only for single-file torrent. This is
  3112. basically the same behavior with Metalink file with torrent and
  3113. URIs.
  3114. * src/RequestGroup.cc
  3115. * src/DefaultBtContext.cc
  3116. * test/DefaultBtContextTest.cc
  3117. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Rewritten expr
  3119. * src/array_fun.h
  3120. * test/array_funTest.cc
  3121. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3123. * src/DefaultBtMessageDispatcher.cc
  3124. * src/a2algo.h
  3125. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Removed ExtendedMessagingAware. Instead of using inheritance,
  3127. added ExtensionMessageRegistry and it is passed to
  3128. DefaultExtensionMessageFactory.
  3129. * src/DefaultBtInteractive.cc
  3130. * src/DefaultBtInteractive.h
  3131. * src/DefaultExtensionMessageFactory.cc
  3132. * src/DefaultExtensionMessageFactory.h
  3133. * src/ExtendedMessagingAware.h: Removed.
  3134. * src/ExtensionMessageFactory.h
  3135. * src/ExtensionMessageRegistry.h: Added.
  3136. * src/Makefile.am
  3137. * src/PeerInteractionCommand.cc
  3138. * test/DefaultExtensionMessageFactoryTest.cc
  3139. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Fixed typo in log messages
  3141. * src/MSEHandshake.cc
  3142. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. Fixed the bug that prevents torrent download from finishing. The
  3144. bug doesn't reveal for all torrents. The torrents affected this
  3145. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3146. of pieces.
  3147. * src/bitfield.h
  3148. * test/bitfieldTest.cc
  3149. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Code cleanup
  3151. * src/PeerListProcessor.h
  3152. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Removed RequestGroupAware
  3154. * src/AbstractCommand.cc
  3155. * src/AbstractCommand.h
  3156. * src/ActivePeerConnectionCommand.cc
  3157. * src/ActivePeerConnectionCommand.h
  3158. * src/DHTGetPeersCommand.cc
  3159. * src/DHTGetPeersCommand.h
  3160. * src/InitiatorMSEHandshakeCommand.cc
  3161. * src/InitiatorMSEHandshakeCommand.h
  3162. * src/Makefile.am
  3163. * src/PeerInitiateConnectionCommand.cc
  3164. * src/PeerInitiateConnectionCommand.h
  3165. * src/PeerInteractionCommand.cc
  3166. * src/PeerInteractionCommand.h
  3167. * src/RealtimeCommand.cc
  3168. * src/RealtimeCommand.h
  3169. * src/RequestGroupAware.cc: Removed
  3170. * src/RequestGroupAware.h: Removed
  3171. * src/SeedCheckCommand.cc
  3172. * src/SeedCheckCommand.h
  3173. * src/SleepCommand.cc
  3174. * src/TrackerWatcherCommand.cc
  3175. * src/TrackerWatcherCommand.h
  3176. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Rewritten PeerListProcessor
  3178. * src/PeerListProcessor.h
  3179. * src/CompactPeerListProcessor.h: Removed
  3180. * src/CompactPeerListProcessor.cc: Removed
  3181. * src/DelegatingPeerListProcessor.cc: Removed.
  3182. * src/DefaultBtAnnounce.cc
  3183. * src/Makefile.am
  3184. * src/UTPexExtensionMessage.cc
  3185. * src/DefaultPeerListProcessor.h: Removed.
  3186. * src/DefaultPeerListProcessor.cc: Removed.
  3187. * src/DelegatingPeerListProcessor.h: Removed.
  3188. * test/Makefile.am
  3189. * test/PeerListProcessorTest.cc
  3190. * test/DefaultPeerListProcessorTest.cc: Removed.
  3191. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Rewritten RequestGroupMan::calculateStat()
  3193. * src/RequestGroupMan.cc
  3194. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Removed unnecessary virtual destructor for Request class.
  3196. * src/Request.cc
  3197. * src/Request.h
  3198. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Avoid dynamic_pointer_cast.
  3200. * src/DHTGetPeersCommand.cc
  3201. * src/DHTGetPeersCommand.h
  3202. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3204. BtEvent.
  3205. * src/AbstractBtEventListener.h: Removed.
  3206. * src/AbstractBtMessage.cc
  3207. * src/AbstractBtMessage.h
  3208. * src/BtAbortOutstandingRequestEvent.h
  3209. * src/BtCancelSendingPieceEvent.h
  3210. * src/BtChokedEvent.h: Removed.
  3211. * src/BtChokingEvent.h
  3212. * src/BtEvent.h: Removed
  3213. * src/BtEventListener.h: Removed.
  3214. * src/BtMessage.h
  3215. * src/BtPieceMessage.cc
  3216. * src/BtPieceMessage.h
  3217. * src/BtRequestMessage.cc
  3218. * src/BtRequestMessage.h
  3219. * src/DefaultBtMessageDispatcher.cc
  3220. * src/Makefile.am
  3221. * src/a2functional.h
  3222. * test/BtPieceMessageTest.cc
  3223. * test/BtRequestMessageTest.cc
  3224. * test/DefaultBtMessageDispatcherTest.cc
  3225. * test/MockBtMessage.h
  3226. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Code cleanup
  3228. * src/RequestGroupMan.cc
  3229. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Code cleanup
  3231. * src/DownloadCommand.cc
  3232. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3234. byte.
  3235. * src/DownloadCommand.cc
  3236. * src/bitfield.h
  3237. * test/bitfieldTest.cc
  3238. Fixed the bug that causes infinite loop if broken web server
  3239. returns chunked response without last "0" chunk-size marker and
  3240. closes connection.
  3241. * src/DownloadCommand.cc
  3242. Instantiate properly configured HttpDownloadCommand for
  3243. non-resumable downlaods.
  3244. * src/HttpResponseCommand.cc
  3245. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Rewritten array operation functions.
  3247. * src/BitfieldMan.cc
  3248. * src/array_fun.h
  3249. * test/array_funTest.cc
  3250. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Removed unused variable 'query'
  3252. * src/Request.cc
  3253. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3255. accidentally set to false in r1162.
  3256. * configure.ac
  3257. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Code cleanup
  3259. * src/BNode.cc
  3260. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3261. Increase prefixLength for the bucket which doesn't own local node
  3262. ID when splitting bucket.
  3263. * src/DHTBucket.cc
  3264. * test/DHTBucketTest.cc
  3265. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. * Release 1.3.1
  3267. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Bump up version number to 1.3.1
  3269. * configure.ac
  3270. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Removed unused variable checkPoint. Also removed include directive
  3272. for TimeA2.h.
  3273. * src/SeedCheckCommand.h
  3274. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Fixed the bug that upload limit exceeds the value specified in
  3276. --seed-ratio option depending on the timing of the execution of
  3277. SeedCheckCommand.
  3278. * src/SeedCheckCommand.cc
  3279. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Fixed the bug that removed peer's session upload/download length
  3281. are counted twice in _cachedTransferStat before it is
  3282. re-calculated. This affected the calculation of shara ratio,
  3283. resulting aria2 wrongly determines that specified share ratio is
  3284. reached. Also fixed the typo in calculateStatFor function name.
  3285. * src/BtSetup.cc
  3286. * src/DefaultPeerStorage.cc
  3287. * src/ShareRatioSeedCriteria.h
  3288. * test/ShareRatioSeedCriteriaTest.cc
  3289. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. * Release 1.3.0
  3291. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3293. Nynorsk translations. Thanks to all translators.
  3294. * po/es.po
  3295. * po/ja.po
  3296. * po/nn.po
  3297. * po/ru.po
  3298. * po/uk.po
  3299. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Rewritten isInRange()
  3301. * src/DHTBucket.cc
  3302. * test/DHTBucketTest.cc
  3303. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Fixed typo
  3305. * doc/aria2c.1.txt
  3306. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3307. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3308. malloc/realloc is not used.
  3309. * src/configure.ac
  3310. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3312. char* bitfield instead of stl container for efficiency.
  3313. PieceSelector::select now takes this
  3314. bitfield. RarestPieceSelector::select now also performs
  3315. efficiently for this change. bitfield namespace is introduced and
  3316. it has several helper functions to handle basic bitfield
  3317. operations such as test, count set bits, etc.
  3318. * src/BitfieldMan.cc
  3319. * src/BitfieldMan.h
  3320. * src/DefaultBtRequestFactory.cc
  3321. * src/DefaultPieceStorage.cc
  3322. * src/DefaultPieceStorage.h
  3323. * src/LongestSequencePieceSelector.cc
  3324. * src/LongestSequencePieceSelector.h
  3325. * src/Makefile.am
  3326. * src/Piece.cc
  3327. * src/Piece.h
  3328. * src/PieceSelector.h
  3329. * src/RarestPieceSelector.cc
  3330. * src/RarestPieceSelector.h
  3331. * src/Util.cc
  3332. * src/Util.h
  3333. * src/bitfield.h
  3334. * test/BitfieldManTest.cc
  3335. * test/LongestSequencePieceSelectorTest.cc
  3336. * test/Makefile.am
  3337. * test/RarestPieceSelectorTest.cc
  3338. * test/UtilTest.cc
  3339. * test/bitfieldTest.cc
  3340. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Made accepted socket non-block.
  3342. * src/FtpNegotiationCommand.cc
  3343. * src/HttpListenCommand.cc
  3344. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3346. * src/AbstractSingleDiskAdaptor.cc
  3347. * src/DefaultPieceStorage.cc
  3348. * src/DiskAdaptor.h
  3349. * src/DiskAdaptor.h
  3350. * src/MultiFileAllocationIterator.cc
  3351. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3352. Run
  3353. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3354. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3355. it doesn't need to be called every time when
  3356. DefaultBtInteractive::doInteractionProcessing() is called.
  3357. * src/DefaultBtInteractive.cc
  3358. * src/DefaultBtInteractive.h
  3359. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Documented 'falloc' in man page.
  3361. * doc/aria2c.1.txt
  3362. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Updated doc
  3364. * src/usage_text.h
  3365. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3367. allocation mode uses posix_fallocate() system call to allocate
  3368. file on disk. If you are using newer file systems such as ext4
  3369. (with extents support), btrfs or xfs, 'falloc' is your best
  3370. choice. It allocates large(few GiB) files almost instantly. Don't
  3371. use 'falloc' with legacy file systems such as ext3 because it
  3372. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3373. until allocation finishes. 'falloc' may not be available if your
  3374. system doesn't have posix_fallocate() system call.
  3375. * configure.ac
  3376. * src/AbstractDiskWriter.cc
  3377. * src/AbstractDiskWriter.h
  3378. * src/AbstractSingleDiskAdaptor.cc
  3379. * src/BinaryStream.h
  3380. * src/BtCheckIntegrityEntry.cc
  3381. * src/ByteArrayDiskWriter.h
  3382. * src/CheckIntegrityEntry.cc
  3383. * src/CheckIntegrityEntry.h
  3384. * src/DefaultPieceStorage.cc
  3385. * src/DiskAdaptor.cc
  3386. * src/DiskAdaptor.h
  3387. * src/DiskWriter.h
  3388. * src/FallocFileAllocationIterator.cc
  3389. * src/FallocFileAllocationIterator.h
  3390. * src/FileAllocationEntry.cc
  3391. * src/FileAllocationEntry.h
  3392. * src/Makefile.am
  3393. * src/MultiFileAllocationIterator.cc
  3394. * src/MultiFileAllocationIterator.h
  3395. * src/OptionHandlerFactory.cc
  3396. * src/RequestGroup.cc
  3397. * src/StreamCheckIntegrityEntry.cc
  3398. * src/prefs.cc
  3399. * src/prefs.h
  3400. * src/usage_text.h
  3401. * test/FallocFileAllocationIteratorTest.cc
  3402. * test/Makefile.am
  3403. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Removed duplicate enableDirectIO() call.
  3405. * src/MultiFileAllocationIterator.cc
  3406. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3408. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3409. cost of std::rotate().
  3410. * src/RarestPieceSelector.cc
  3411. * src/RarestPieceSelector.h
  3412. * test/RarestPieceSelectorTest.cc
  3413. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Updated usage doc for --bt-tracker-interval option.
  3415. * src/usage_text.h
  3416. * doc/aria2c.1.txt
  3417. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Documented --bt-tracker-interval option in man page.
  3419. * doc/aria2c.1.txt
  3420. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Added an option to specify the interval between tracker requests.
  3422. If non-zero value is specified, aria2 uses it and ignores the
  3423. interval value in the response of tracker. If zero is specified,
  3424. aria2 determines the inteval value based on the tarcker response
  3425. and download progress.
  3426. * src/DefaultBtAnnounce.cc
  3427. * src/DefaultBtAnnounce.h
  3428. * src/OptionHandlerFactory.cc
  3429. * src/RequestGroup.cc
  3430. * src/prefs.cc
  3431. * src/prefs.h
  3432. * src/usage_text.h
  3433. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Added operator+=, operator-=, operator-
  3435. * src/TransferStat.cc
  3436. * src/TransferStat.h
  3437. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Refactored RarestPieceSelector to reduce CPU load, especially for
  3439. addPieceStats.
  3440. * src/RarestPieceSelector.cc
  3441. * src/RarestPieceSelector.h
  3442. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3444. getAllMissingBlockIndexes to reduce a call to
  3445. array_function_base::operator[].
  3446. * src/BitfieldMan.cc
  3447. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Cached TransferStat/download speed to avoid to sum them up in each
  3449. call.
  3450. * src/DefaultPeerStorage.cc
  3451. * src/DefaultPeerStorage.h
  3452. * src/SegmentMan.cc
  3453. * src/SegmentMan.h
  3454. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Typedefed cuid_t as int32_t in Command.h
  3456. * src/CUIDCounter.h
  3457. * src/Command.cc
  3458. * src/Command.h
  3459. * src/DownloadEngine.cc
  3460. * src/DownloadEngine.h
  3461. * src/PeerStat.h
  3462. * src/SegmentMan.cc
  3463. * src/SegmentMan.h
  3464. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Reduced the number of calls to PeerStorage::calculateStat() and
  3466. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3467. transfer rate.
  3468. * src/DefaultBtInteractive.cc
  3469. * src/DefaultBtMessageDispatcher.cc
  3470. * src/DefaultPeerStorage.cc
  3471. * src/DefaultPeerStorage.h
  3472. * src/DownloadCommand.cc
  3473. * src/DownloadEngine.cc
  3474. * src/PeerStorage.h
  3475. * src/SegmentMan.cc
  3476. * src/SegmentMan.h
  3477. * test/MockPeerStorage.h
  3478. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Prepended _dir+"/" after joining path elements in torrent file.
  3480. * src/DefaultBtContext.cc
  3481. * test/DefaultBtContextTest.cc
  3482. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Added missing IndexBtMessageValidator.h
  3484. * src/Makefile.am
  3485. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3487. Chinese translations. Thank you for contributing our project.
  3488. * po/id.po
  3489. * po/it.po
  3490. * po/ru.po
  3491. * po/uk.po
  3492. * po/zh_CN.po
  3493. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Updated README
  3495. * README
  3496. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Bump up version number to 1.3.0
  3498. * configure.ac
  3499. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Updated doc
  3501. * src/DefaultBtContext.h
  3502. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Slice/joinPath for name of single torrent.
  3504. * src/DefaultBtContext.cc
  3505. * test/DefaultBtContextTest.cc
  3506. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Updated man page: Documented --dry-run and --index-out
  3508. options. Changed the default value of --uri-selector and
  3509. --http-auth-challenge options. Removed --direct-file-mapping
  3510. option. Added example for --index-out
  3511. * doc/aria2c.1.txt
  3512. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Updated TEXT_DRY_RUN
  3514. * src/usage_text.h
  3515. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Changed the default value of --uri-selector option from 'inorder'
  3517. to 'feedback'
  3518. * src/OptionHandlerFactory.cc
  3519. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3520. Included current URI in exception message.
  3521. * src/AbstractCommand.cc
  3522. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Renamed ServerStatURISelector as FeedbackURISelector.
  3524. * src/FeedbackURISelector.cc
  3525. * src/FeedbackURISelector.h
  3526. * src/Makefile.am
  3527. * src/RequestGroupMan.cc
  3528. * src/ServerStatURISelector.cc
  3529. * src/ServerStatURISelector.h
  3530. * test/FeedbackURISelectorTest.cc
  3531. * test/Makefile.am
  3532. * test/ServerStatURISelectorTest.cc
  3533. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3535. all URIs are tested and their timeout is not reached.
  3536. * src/AdaptiveURISelector.cc
  3537. * src/AdaptiveURISelector.h
  3538. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3539. Changed the default value of --http-auth-challenge option to false.
  3540. * src/OptionHandlerFactory.cc
  3541. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Reuse URIs when all unused URIs run out.
  3543. * src/OptionHandlerFactory.cc
  3544. * src/RequestGroup.cc
  3545. * src/prefs.cc
  3546. * src/prefs.h
  3547. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3549. and BtRejectMessage are derived from RangeBtMessage class.
  3550. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3551. derived from IndexBtMessage class. BtChokeMessage,
  3552. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3553. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3554. ZeroBtMessage class.
  3555. * src/AbstractBtMessage.cc
  3556. * src/AbstractBtMessage.h
  3557. * src/BtAllowedFastMessage.cc
  3558. * src/BtAllowedFastMessage.h
  3559. * src/BtAllowedFastMessageValidator.h: Removed
  3560. * src/BtBitfieldMessage.cc
  3561. * src/BtBitfieldMessage.h
  3562. * src/BtCancelMessage.cc
  3563. * src/BtCancelMessage.h
  3564. * src/BtCancelMessageValidator.h: Removed
  3565. * src/BtChokeMessage.cc
  3566. * src/BtChokeMessage.h
  3567. * src/BtExtendedMessage.cc
  3568. * src/BtExtendedMessage.h
  3569. * src/BtHandshakeMessage.cc
  3570. * src/BtHandshakeMessage.h
  3571. * src/BtHaveAllMessage.cc
  3572. * src/BtHaveAllMessage.h
  3573. * src/BtHaveMessage.cc
  3574. * src/BtHaveMessage.h
  3575. * src/BtHaveMessageValidator.h: Removed
  3576. * src/BtHaveNoneMessage.cc
  3577. * src/BtHaveNoneMessage.h
  3578. * src/BtInterestedMessage.cc
  3579. * src/BtInterestedMessage.h
  3580. * src/BtKeepAliveMessage.cc
  3581. * src/BtKeepAliveMessage.h
  3582. * src/BtNotInterestedMessage.cc
  3583. * src/BtNotInterestedMessage.h
  3584. * src/BtPieceMessage.cc
  3585. * src/BtPieceMessage.h
  3586. * src/BtPortMessage.cc
  3587. * src/BtPortMessage.h
  3588. * src/BtRejectMessage.cc
  3589. * src/BtRejectMessage.h
  3590. * src/BtRejectMessageValidator.h: Removed
  3591. * src/BtRequestMessage.cc
  3592. * src/BtRequestMessage.h
  3593. * src/BtRequestMessageValidator.h: Removed
  3594. * src/BtSuggestPieceMessage.cc
  3595. * src/BtSuggestPieceMessage.h
  3596. * src/BtSuggestPieceMessageValidator.h: Removed
  3597. * src/BtUnchokeMessage.cc
  3598. * src/BtUnchokeMessage.h
  3599. * src/DefaultBtMessageFactory.cc
  3600. * src/IndexBtMessage.cc
  3601. * src/IndexBtMessage.h
  3602. * src/IndexBtMessageValidator.h
  3603. * src/Makefile.am
  3604. * src/PeerMessageUtil.cc
  3605. * src/PeerMessageUtil.h
  3606. * src/RangeBtMessage.cc
  3607. * src/RangeBtMessage.h
  3608. * src/RangeBtMessageValidator.h
  3609. * src/SimpleBtMessage.cc
  3610. * src/SimpleBtMessage.h
  3611. * src/ZeroBtMessage.cc
  3612. * src/ZeroBtMessage.h
  3613. * test/BtRequestMessageTest.cc
  3614. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Reverted usage_text.h to r1093 to avoid to lose translated
  3616. messages.
  3617. * src/usage_text.h
  3618. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3620. declared as non-const previously is now const and defined in class
  3621. definition.
  3622. * src/AbstractBtMessage.cc
  3623. * src/AbstractBtMessage.h
  3624. * src/BtAllowedFastMessage.cc
  3625. * src/BtAllowedFastMessage.h
  3626. * src/BtBitfieldMessage.h
  3627. * src/BtCancelMessage.cc
  3628. * src/BtCancelMessage.h
  3629. * src/BtChokeMessage.cc
  3630. * src/BtChokeMessage.h
  3631. * src/BtExtendedMessage.cc
  3632. * src/BtExtendedMessage.h
  3633. * src/BtHandshakeMessage.cc
  3634. * src/BtHandshakeMessage.h
  3635. * src/BtHaveAllMessage.cc
  3636. * src/BtHaveAllMessage.h
  3637. * src/BtHaveMessage.cc
  3638. * src/BtHaveMessage.h
  3639. * src/BtHaveNoneMessage.cc
  3640. * src/BtHaveNoneMessage.h
  3641. * src/BtInterestedMessage.cc
  3642. * src/BtInterestedMessage.h
  3643. * src/BtKeepAliveMessage.cc
  3644. * src/BtKeepAliveMessage.h
  3645. * src/BtMessage.h
  3646. * src/BtNotInterestedMessage.cc
  3647. * src/BtNotInterestedMessage.h
  3648. * src/BtPieceMessage.h
  3649. * src/BtPortMessage.cc
  3650. * src/BtPortMessage.h
  3651. * src/BtRejectMessage.cc
  3652. * src/BtRejectMessage.h
  3653. * src/BtRequestMessage.cc
  3654. * src/BtRequestMessage.h
  3655. * src/BtSuggestPieceMessage.cc
  3656. * src/BtSuggestPieceMessage.h
  3657. * src/BtUnchokeMessage.cc
  3658. * src/BtUnchokeMessage.h
  3659. * src/SimpleBtMessage.cc
  3660. * src/SimpleBtMessage.h
  3661. * test/MockBtMessage.h
  3662. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Use FileEntry::exists()
  3664. * src/MultiDiskAdaptor.cc
  3665. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Added exists()
  3667. * src/FileEntry.cc
  3668. * src/FileEntry.h
  3669. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Added missing prefix dir.
  3671. * src/download_helper.cc
  3672. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3674. * src/CopyDiskAdaptor.cc: Removed
  3675. * src/CopyDiskAdaptor.h: Removed
  3676. * src/DefaultPieceStorage.cc
  3677. * src/Makefile.am
  3678. * src/OptionHandlerFactory.cc
  3679. * src/prefs.cc
  3680. * src/prefs.h
  3681. * src/usage_text.h
  3682. * test/CopyDiskAdaptorTest.cc: Removed
  3683. * test/Makefile.am
  3684. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Rewritten isSameFileBeingDownloaded()
  3686. * src/RequestGroupMan.cc
  3687. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3688. Removed getName() from DownloadContext. getName() is declared in
  3689. BtContext.
  3690. * src/BtContext.h
  3691. * src/DownloadContext.h
  3692. * src/SingleFileDownloadContext.cc
  3693. * src/SingleFileDownloadContext.h
  3694. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3695. in AbstractSingleDiskAdaptor.
  3696. * src/AbstractSingleDiskAdaptor.h
  3697. * src/DiskAdaptor.h
  3698. * src/MultiDiskAdaptor.h
  3699. * src/RequestGroup.cc
  3700. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3701. MultiDiskAdaptor.
  3702. * src/DefaultPieceStorage.cc
  3703. * src/MultiDiskAdaptor.cc
  3704. * src/MultiDiskAdaptor.h
  3705. * test/MultiDiskAdaptorTest.cc
  3706. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. FileEntry::getPath() contains store(top level) directory to
  3708. simplify path handling operation. In the previous implementation,
  3709. store directory is concatenated to FileEntry::getPath() in
  3710. DownloadContext.
  3711. * src/BtDependency.cc
  3712. * src/BtPostDownloadHandler.cc
  3713. * src/CopyDiskAdaptor.cc
  3714. * src/DefaultBtContext.cc
  3715. * src/DirectDiskAdaptor.cc
  3716. * src/FileEntry.cc
  3717. * src/FileEntry.h
  3718. * src/FtpNegotiationCommand.cc
  3719. * src/HttpResponse.cc
  3720. * src/HttpResponseCommand.cc
  3721. * src/Metalink2RequestGroup.cc
  3722. * src/MultiDiskAdaptor.cc
  3723. * src/MultiDiskAdaptor.h
  3724. * src/MultiFileAllocationIterator.cc
  3725. * src/RequestGroup.cc
  3726. * src/SingleFileDownloadContext.cc
  3727. * src/SingleFileDownloadContext.h
  3728. * src/download_helper.cc
  3729. * test/BtDependencyTest.cc
  3730. * test/CopyDiskAdaptorTest.cc
  3731. * test/DefaultBtContextTest.cc
  3732. * test/DefaultBtProgressInfoFileTest.cc
  3733. * test/DirectDiskAdaptorTest.cc
  3734. * test/DownloadHelperTest.cc
  3735. * test/FileEntryTest.cc
  3736. * test/MultiDiskAdaptorTest.cc
  3737. * test/MultiFileAllocationIteratorTest.cc
  3738. * test/RequestGroupTest.cc
  3739. * test/SingleFileDownloadContextTest.cc
  3740. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Fixed compiler warning
  3742. * src/download_helper.cc
  3743. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Throw exception if same infohash torrent is now downloading.
  3745. * src/RequestGroup.cc
  3746. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added --dry-run option. In this mode, aria2 just checks whether
  3748. the remote file is available and doesn't download data. This
  3749. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3750. are canceled in this mode.
  3751. * src/FtpNegotiationCommand.cc
  3752. * src/HttpResponseCommand.cc
  3753. * src/HttpResponseCommand.h
  3754. * src/OptionHandlerFactory.cc
  3755. * src/RequestGroup.cc
  3756. * src/RequestGroupMan.cc
  3757. * src/prefs.cc
  3758. * src/prefs.h
  3759. * src/usage_text.h
  3760. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Fixed compiler waring
  3762. * test/UriListParserTest.cc
  3763. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Parse options in -i list using OptionParser.
  3765. * src/UriListParser.cc
  3766. * src/UriListParser.h
  3767. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Don't reset URI in retry to avoid additional round trips because
  3769. of redirects.
  3770. * src/AbstractCommand.cc
  3771. * src/OptionHandlerFactory.cc
  3772. * src/prefs.cc
  3773. * src/prefs.h
  3774. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Declared hide() in OptionHandler.
  3776. * src/NameMatchOptionHandler.h
  3777. * src/OptionHandler.h
  3778. * src/OptionHandlerImpl.h
  3779. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Updated doc
  3781. * src/Peer.h
  3782. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Added log message in setStatusInternal()
  3784. * src/ServerStat.cc
  3785. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3787. effectively exclude failed server.
  3788. * src/AbstractCommand.cc
  3789. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Added --index-out option to specify each file path for torrent.
  3791. Here index shown in --show-files option is used to specify which
  3792. file path should be altered. For example, to change the file path
  3793. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3794. option multiple times: --index-out=1=aria2.tar.bz2
  3795. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3796. available. This option can be specified in -i list.
  3797. * src/DefaultBtContext.cc
  3798. * src/DefaultBtContext.h
  3799. * src/MultiDiskAdaptor.cc
  3800. * src/MultiDiskAdaptor.h
  3801. * src/MultiFileAllocationIterator.cc
  3802. * src/OptionHandlerFactory.cc
  3803. * src/OptionHandlerImpl.h
  3804. * src/Util.cc
  3805. * src/Util.h
  3806. * src/download_helper.cc
  3807. * src/prefs.cc
  3808. * src/prefs.h
  3809. * src/usage_text.h
  3810. * test/DefaultBtContextTest.cc
  3811. * test/MultiDiskAdaptorTest.cc
  3812. * test/MultiFileAllocationIteratorTest.cc
  3813. * test/UtilTest.cc
  3814. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Use Util::pathJoin()
  3816. * src/MetalinkParserController.cc
  3817. * test/test.xml
  3818. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Use Util::pathJoin()
  3820. * src/DefaultBtContext.cc
  3821. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Added Util::pathJoin()
  3823. * src/Util.h
  3824. * test/UtilTest.cc
  3825. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Applied basename function to remove directory element in
  3827. content-disposition value.
  3828. Return empty string if content-disposition value is ".." or ".".
  3829. * src/Util.cc
  3830. * test/UtilTest.cc
  3831. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Added --max-overall-download-limit in man page.
  3833. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3834. * doc/aria2c.1.txt
  3835. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Added --max-overall-download-limit option. Now --max-upload-limit
  3837. option is not ignored when --max-overall-upload-limit option has
  3838. non-zero value. aria2 checks download(upload) speed in the order:
  3839. first checks overall speed limit and if it is not exceeded, then
  3840. checks speed limit per download. Thus you can specify both
  3841. value. For example, set --max-overall-download-limit=1M and
  3842. --max-download-limit=500K to prevent from one download from eating
  3843. all overall speed limit.
  3844. * src/DefaultBtInteractive.cc
  3845. * src/DefaultBtInteractive.h
  3846. * src/DefaultBtMessageDispatcher.cc
  3847. * src/DefaultBtMessageDispatcher.h
  3848. * src/DownloadCommand.cc
  3849. * src/DownloadCommand.h
  3850. * src/FtpNegotiationCommand.cc
  3851. * src/HttpResponseCommand.cc
  3852. * src/OptionHandlerFactory.cc
  3853. * src/PeerInteractionCommand.cc
  3854. * src/RequestGroup.cc
  3855. * src/RequestGroup.h
  3856. * src/RequestGroupMan.cc
  3857. * src/RequestGroupMan.h
  3858. * src/prefs.cc
  3859. * src/prefs.h
  3860. * src/usage_text.h
  3861. * test/DefaultBtMessageDispatcherTest.cc
  3862. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3863. Documented select-file option in Input File section.
  3864. Documented --http-auth-challenge option.
  3865. * doc/aria2c.1.txt
  3866. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Now select-file can be specified in the uri list(-i list).
  3868. * src/BtContext.cc
  3869. * src/BtContext.h
  3870. * src/RequestGroup.cc
  3871. * src/Sequence.h
  3872. * src/download_helper.cc
  3873. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Made the upper value of --max-concurrent-downloads options unlimited.
  3875. * src/OptionHandlerFactory.cc
  3876. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Fixed the bug that disk writer is not created even if it shares
  3878. same piece with the preceding file if the length of previous file
  3879. is 0.
  3880. * src/MultiDiskAdaptor.cc
  3881. * test/MultiDiskAdaptorTest.cc
  3882. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. In BitTorrent, Open files in read-only mode for hash check. After
  3884. that, re-open file in read/write mode only when the download is
  3885. not finished.
  3886. * src/AbstractDiskWriter.cc
  3887. * src/AbstractDiskWriter.h
  3888. * src/AbstractSingleDiskAdaptor.cc
  3889. * src/AbstractSingleDiskAdaptor.h
  3890. * src/BtCheckIntegrityEntry.cc
  3891. * src/DiskAdaptor.h
  3892. * src/DiskWriter.h
  3893. * src/MultiDiskAdaptor.cc
  3894. * src/MultiDiskAdaptor.h
  3895. * src/RequestGroup.cc
  3896. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Added --http-auth-challenge option. If it is set to true(by
  3898. default), aria2 sends HTTP authorization header only when it is
  3899. requested by the server. If false is set, then authorization
  3900. header is always sent to the server. This is useful for servers
  3901. that don't respond 401 code when authentication is required.
  3902. There is an exception: if username and password are embedded in
  3903. URI, authorization header is always sent to the server regardless
  3904. of this option.
  3905. * src/AuthConfigFactory.cc
  3906. * src/HttpSkipResponseCommand.cc
  3907. * src/OptionHandlerFactory.cc
  3908. * src/prefs.cc
  3909. * src/prefs.h
  3910. * src/usage_text.h
  3911. * test/AuthConfigFactoryTest.cc
  3912. * test/HttpRequestTest.cc
  3913. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. * Release 1.2.0
  3915. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3917. Thanks to all translators.
  3918. * po/es.po
  3919. * po/ja.po
  3920. * po/ru.po
  3921. * po/uk.po
  3922. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Call deleteSocketForReadCheck() before socket is closed.
  3924. * src/HttpListenCommand.cc
  3925. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Defined virtual destructor for BObject.
  3927. * src/bencode.h
  3928. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Rewritten BDE to make it efficient.
  3930. * src/bencode.cc
  3931. * src/bencode.h
  3932. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Removed function throw list.
  3934. * src/bencode.cc
  3935. * src/bencode.h
  3936. * test/BencodeTest.cc
  3937. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Enclosed all URLs in double quotes in command-line examples.
  3939. * doc/aria2c.1.txt
  3940. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Updated reference/see also section.
  3942. * README
  3943. * doc/aria2c.1.txt
  3944. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Reorganized man page based on man man-pages.
  3946. * doc/aria2c.1.txt
  3947. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3949. because same documents are available in man page. Added
  3950. References section.
  3951. * README
  3952. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3954. PERFORMANCE PROFILE section.
  3955. * doc/aria2c.1.txt
  3956. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Rewritten the section for configuration file.
  3958. * README
  3959. * doc/aria2c.1.txt
  3960. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Fixed the segmentation fault during execution of choking algorithm
  3962. in leecher state because of broken compare operator
  3963. implementation.
  3964. * src/BtLeecherStateChoke.cc
  3965. * src/BtLeecherStateChoke.h
  3966. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Open file in binary mode.
  3968. * src/CookieStorage.cc
  3969. * src/DHTSetup.cc
  3970. * src/DHTUtil.cc
  3971. * src/Netrc.cc
  3972. * src/NsCookieParser.cc
  3973. * src/ProtocolDetector.cc
  3974. * src/RequestGroupMan.cc
  3975. * src/Signature.cc
  3976. * src/bencode.cc
  3977. * src/download_helper.cc
  3978. * src/option_processing.cc
  3979. * test/CookieParserTest.cc
  3980. * test/DefaultBtProgressInfoFileTest.cc
  3981. * test/FileTest.cc
  3982. * test/GZipDecoderTest.cc
  3983. * test/RequestGroupManTest.cc
  3984. * test/SignatureTest.cc
  3985. * test/SingleFileAllocationIteratorTest.cc
  3986. * test/UriListParserTest.cc
  3987. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Removed operator[] because it is ambiguous with built-in []
  3989. operator.
  3990. * src/array_fun.h
  3991. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Fixed compile error
  3993. * src/OptionParser.cc
  3994. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Added missing call to arrayWrapperConst
  3996. * test/array_funTest.cc
  3997. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Use array_wrapper instead of array_ptr.
  3999. * src/DHTRoutingTableDeserializer.cc
  4000. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4002. * src/array_fun.h
  4003. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Added array_wrapper template.
  4005. * src/array_fun.h
  4006. * test/array_funTest.cc
  4007. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Use operator T* of array_ptr.
  4009. * src/OptionParser.cc
  4010. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Use localhost instead of 127.0.0.1
  4012. * test/FtpConnectionTest.cc
  4013. * test/MSEHandshakeTest.cc
  4014. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Added operator T*
  4016. * src/array_fun.h
  4017. * test/array_funTest.cc
  4018. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Use dynamically allocated char array to detect memory access
  4020. violation.
  4021. * src/DHTRoutingTableDeserializer.cc
  4022. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4024. defined.
  4025. * src/PeerMessageUtil.cc
  4026. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4028. * configure.ac
  4029. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Added a check to see struct sockaddr_in has sin_len member.
  4031. * configure.ac
  4032. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Fixed buffer overrun.
  4034. * src/DHTRoutingTableDeserializer.cc
  4035. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Added LL for long long int constant.
  4037. * test/FtpConnectionTest.cc
  4038. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Casted to unsigned int to suppress compiler warning on netbsd.
  4040. * src/BtRuntime.h
  4041. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4043. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4044. type time_t.
  4045. * src/SimpleLogger.cc
  4046. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Added test for FtpConnection::receiveSizeResponse().
  4048. * test/FtpConnectionTest.cc
  4049. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Fix epoll error on the old kernel 2.6.8 or ealier.
  4051. * src/EpollEventPoll.cc
  4052. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Use Util::parseLLInt instead of sscanf for portability. The
  4054. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4055. * src/FtpConnection.cc
  4056. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4058. block. It should not filter anything.
  4059. * src/BitfieldMan.cc
  4060. * src/ConsoleStatCalc.cc
  4061. * test/BitfieldManTest.cc
  4062. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Fixed the bug that the boolean options that don't take arguments
  4064. don't work.
  4065. * src/OptionHandlerImpl.h
  4066. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Fixed broken selected file BitTorrent download.
  4068. * src/MultiDiskAdaptor.cc
  4069. * test/MultiDiskAdaptorTest.cc
  4070. * test/MultiFileAllocationIteratorTest.cc
  4071. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. Fixed #define guard for EpollEventPoll
  4073. * src/EpollEventPoll.h
  4074. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Wait 2 seconds. 1 second is sometimes not enough.
  4076. * test/TimeSeedCriteriaTest.cc
  4077. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Use localhost instead of 127.0.0.1.
  4079. * test/DHTConnectionImplTest.cc
  4080. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Suppressed compiler warning.
  4082. * src/AdaptiveURISelector.cc
  4083. * src/DefaultPieceStorage.cc
  4084. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Defined virtual destructor.
  4086. * src/MetalinkParserState.h
  4087. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Give NULL for second argument of getaddrinfo instead of "0".
  4089. * src/NameResolver.cc
  4090. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4092. included strptime doesn't parse data for this format.
  4093. * src/FtpConnection.cc
  4094. * test/FtpConnectionTest.cc
  4095. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Removed tests giving -1 for unsigned argument.
  4097. * test/SingleFileDownloadContextTest.cc
  4098. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Don't use sha256 in tests because it might not be supported by the
  4100. SSL library.
  4101. * test/MetalinkProcessorTest.cc
  4102. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Removed tests giving -1 for unsigned argument.
  4104. * test/AlphaNumberDecoratorTest
  4105. * test/BitfieldManTest.cc
  4106. * test/DefaultBtContextTest.cc
  4107. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Fixed compile error without libcares when epoll is available.
  4109. * src/EpollEventPoll.cc
  4110. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4111. Included fstream instead of iostream.
  4112. * test/SignatureTest.cc
  4113. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Removed #include <algorithm>
  4115. * test/RequestGroupTest.cc
  4116. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4118. using RequestGroup::extractURIResult().
  4119. * src/AdaptiveURISelector.cc
  4120. * src/RequestGroup.cc
  4121. * src/RequestGroup.h
  4122. * test/RequestGroupTest.cc
  4123. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. Added tests for array_ptr.
  4125. * test/array_funTest.cc
  4126. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Don't send ip parameter to a tracker if ip parameter is empty
  4128. string.
  4129. * src/DefaultBtAnnounce.cc
  4130. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Adjusted line feed.
  4132. * src/version_usage.cc
  4133. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Print tags, possible values when OptionHandlerException is caught.
  4135. * src/option_processing.cc
  4136. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Changed the message for FatalException.
  4138. * src/OptionParser.cc
  4139. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Documented --bt-external-ip option in man page. Updated man pages
  4141. for --proxy-method option.
  4142. * doc/aria2c.1.txt
  4143. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4144. Use GET method for FTP via HTTP proxy.
  4145. * src/FtpInitiateConnectionCommand.cc
  4146. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Changed the default value of --proxy-method option from 'tunnel'
  4148. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4149. option.
  4150. * src/AbstractCommand.cc
  4151. * src/AbstractCommand.h
  4152. * src/FtpInitiateConnectionCommand.cc
  4153. * src/HttpDownloadCommand.cc
  4154. * src/HttpInitiateConnectionCommand.cc
  4155. * src/HttpInitiateConnectionCommand.h
  4156. * src/OptionHandlerFactory.cc
  4157. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Initialized _logger
  4159. * src/SelectEventPoll.cc
  4160. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Defined a copy constructor for the same type.
  4162. * src/SharedHandle.h
  4163. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added OptionParser::parseArg() which internally uses getopt_long
  4165. to parse command-line options. All command-line options are now
  4166. configured by OptionHandler. No manual editing of struct option*
  4167. is required any more.
  4168. * src/NameMatchOptionHandler.h
  4169. * src/OptionHandler.h
  4170. * src/OptionHandlerFactory.cc
  4171. * src/OptionHandlerImpl.h
  4172. * src/OptionParser.cc
  4173. * src/OptionParser.h
  4174. * src/array_fun.h
  4175. * src/main.cc
  4176. * src/option_processing.cc
  4177. * test/OptionHandlerTest.cc
  4178. * test/OptionParserTest.cc
  4179. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4180. Fixed configure error with --disable-epoll
  4181. * configure.ac
  4182. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Fixed compile error when HAVE_EPOLL is not defined.
  4184. Fixed linker error on bigendian systems.
  4185. * src/SocketCore.cc
  4186. * src/SocketCore.h
  4187. * test/DefaultBtProgressInfoFileTest.cc
  4188. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Added --bt-external-ip option. You can specify the external IP
  4190. address to report to a BitTorrent tracker. Although this function
  4191. is named 'external', it can accept any kind of IP addresses.
  4192. * src/DefaultBtAnnounce.cc
  4193. * src/OptionHandlerFactory.cc
  4194. * src/option_processing.cc
  4195. * src/prefs.cc
  4196. * src/prefs.h
  4197. * src/usage_text.h
  4198. * test/DefaultBtAnnounceTest.cc
  4199. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Extracted the algorithm to find the longest incremental sequence
  4201. as max_sequence template.
  4202. * src/LongestSequencePieceSelector.cc
  4203. * src/a2algo.h
  4204. * test/Makefile.am
  4205. * test/a2algoTest.cc
  4206. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4208. * src/usage_text.h
  4209. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Updated doc for --uri-selector, --http-server-listen-port and
  4211. --enable-http-server option. Documented --event-poll option.
  4212. * doc/aria2c.1.txt
  4213. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Updated doc for --enable-http-server.
  4215. * src/usage_text.h
  4216. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Documented --http-server-listen-port and --enable-http-server in
  4218. man page.
  4219. * doc/aria2c.1.txt
  4220. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4222. translations. Thanks to all translators.
  4223. * po/es.po
  4224. * po/id.po
  4225. * po/it.po
  4226. * po/ru.po
  4227. * po/uk.po
  4228. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4229. Bump up version number to 1.2.0
  4230. * configure.ac
  4231. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. BtContext::getAnnounceTiers() now returns const reference.
  4233. * src/BtContext.h
  4234. * src/DefaultBtContext.cc
  4235. * src/DefaultBtContext.h
  4236. * test/MockBtContext.h
  4237. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Change the number of retries for tracker request based on the
  4239. number of available tracker in a torrent file.
  4240. * src/TrackerWatcherCommand.cc
  4241. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Added _maxTries property to RequestGroup and assign the option
  4243. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4244. RequestGroup::getMaxTries() instead of
  4245. Option::getAsInt(PREF_MAX_TRIES).
  4246. * src/AbstractCommand.cc
  4247. * src/RequestGroup.cc
  4248. * src/RequestGroup.h
  4249. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4251. Mandriva. I modified the patch: make RequestGroup have the
  4252. timeout value and AdaptiveURISelector directly modifies that
  4253. value.
  4254. * src/AbstractCommand.cc
  4255. * src/AdaptiveURISelector.cc
  4256. * src/AdaptiveURISelector.h
  4257. * src/FtpNegotiationCommand.cc
  4258. * src/RequestGroup.cc
  4259. * src/RequestGroup.h
  4260. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4261. Fixed compiler warning
  4262. * test/IteratableChecksumValidatorTest.cc
  4263. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4265. integrated downloads. This PieceSelector subclass finds the
  4266. longest continuous sequence in the available missing pieces and
  4267. selects the last index of such sequence. This makes HTTP/FTP
  4268. connections less interrupted by the pieces obtained by BitTorrent
  4269. peers.
  4270. * src/DefaultPieceStorage.cc
  4271. * src/DefaultPieceStorage.h
  4272. * src/LongestSequencePieceSelector.cc
  4273. * src/LongestSequencePieceSelector.h
  4274. * src/Makefile.am
  4275. * src/PieceSelector.h
  4276. * src/RarestPieceSelector.h
  4277. * src/RequestGroup.cc
  4278. * test/BtDependencyTest.cc
  4279. * test/DefaultPieceStorageTest.cc
  4280. * test/IteratableChecksumValidatorTest.cc
  4281. * test/LongestSequencePieceSelectorTest.cc
  4282. * test/Makefile.am
  4283. * test/SegmentManTest.cc
  4284. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Fixed the bug that the average speed is wrong in
  4286. http/ftp/BitTorrent integrated download. Only the download bytes
  4287. in BitTorrent were considered.
  4288. * src/RequestGroup.cc
  4289. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4290. Choose port for BitTorrent/DHT randomly from the specified range.
  4291. * src/DHTConnectionImpl.cc
  4292. * src/PeerListenCommand.cc
  4293. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4294. Send HTTP Authorization header only if it is requested by the
  4295. server(response 401). There are some exceptions. The authorization
  4296. header for proxy is always sent if it is available without request
  4297. by the server. If username/password is specified in the URI, it
  4298. is immediately sent to the server without request by the server.
  4299. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4300. SharedHandle<AuthConfig>().
  4301. NetrcAuthResolver::resolveAuthConfig() returns
  4302. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4303. * src/AbstractAuthResolver.cc
  4304. * src/AbstractProxyRequestCommand.cc
  4305. * src/AuthConfigFactory.cc
  4306. * src/AuthConfigFactory.h
  4307. * src/HttpConnection.cc
  4308. * src/HttpRequest.cc
  4309. * src/HttpRequest.h
  4310. * src/HttpResponse.cc
  4311. * src/HttpResponseCommand.cc
  4312. * src/HttpSkipResponseCommand.cc
  4313. * test/AuthConfigFactoryTest.cc
  4314. * test/HttpRequestTest.cc
  4315. * test/HttpResponseTest.cc
  4316. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4317. Remove leading "--" from help keyword and a substring after "="
  4318. from help keyword, so that one can query options by '-h--max-' or
  4319. '-hmax-peers=10'.
  4320. * src/option_processing.cc
  4321. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Rewritten PStringVisitor and its implementation.
  4323. * src/PStringBuildVisitor.cc
  4324. * src/PStringBuildVisitor.h
  4325. * src/PStringDatum.h
  4326. * src/PStringNumLoop.h
  4327. * src/PStringSegment.cc
  4328. * src/PStringSegment.h
  4329. * src/PStringSelect.h
  4330. * src/PStringVisitor.h
  4331. * src/download_helper.cc
  4332. * test/PStringBuildVisitorTest.cc
  4333. * test/ParameterizedStringParserTest.cc
  4334. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Persist connection between the built-in HTTP server and a client
  4336. if a client supports keep-alive. Fixed the bug that aria2 exits
  4337. when the HTTP server receives EOF from a client.
  4338. * src/HttpServer.cc
  4339. * src/HttpServer.h
  4340. * src/HttpServerCommand.cc
  4341. * src/HttpServerCommand.h
  4342. * src/HttpServerResponseCommand.cc
  4343. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Added experimental built-in HTTP server. Currently, when a client
  4345. accesses to the server, it responds with the current download
  4346. progress. By default, it is disabled. To enable the server, give
  4347. --enable-http-server option. To change the default port number
  4348. for the server to listen to, use --http-server-listen-port option.
  4349. The response HTML is very simple and refreshes it self each 1
  4350. second. Because of this refresh, you see flicker in normal web
  4351. browser such as Firefox. I recommend to use console-based browser
  4352. such as elinks, w3m. To connect to the server, run 'elinks
  4353. http://localhost:6800/' while running aria2. Please replace port
  4354. number '6800'(which is default) with your preference.
  4355. * src/DownloadEngineFactory.cc
  4356. * src/HttpHeader.cc
  4357. * src/HttpHeader.h
  4358. * src/HttpHeaderProcessor.cc
  4359. * src/HttpHeaderProcessor.h
  4360. * src/HttpListenCommand.cc
  4361. * src/HttpListenCommand.h
  4362. * src/HttpServer.cc
  4363. * src/HttpServer.h
  4364. * src/HttpServerCommand.cc
  4365. * src/HttpServerCommand.h
  4366. * src/HttpServerResponseCommand.cc
  4367. * src/HttpServerResponseCommand.h
  4368. * src/Makefile.am
  4369. * src/OptionHandlerFactory.cc
  4370. * src/Util.cc
  4371. * src/Util.h
  4372. * src/help_tags.h
  4373. * src/option_processing.cc
  4374. * src/prefs.cc
  4375. * src/prefs.h
  4376. * src/usage_text.h
  4377. * test/HttpHeaderProcessorTest.cc
  4378. * test/UtilTest.cc
  4379. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Removed.
  4381. * src/CheckIntegrityMan.cc
  4382. * src/FileAllocationMan.cc
  4383. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Made (piece) hash check sequential for each RequestGroup because
  4385. simultaneous hash check is slower than sequential execution.
  4386. * src/CheckIntegrityCommand.cc
  4387. * src/CheckIntegrityDispatcherCommand.cc
  4388. * src/CheckIntegrityDispatcherCommand.h
  4389. * src/CheckIntegrityMan.h
  4390. * src/ConsoleStatCalc.cc
  4391. * src/DownloadCommand.cc
  4392. * src/DownloadEngine.cc
  4393. * src/DownloadEngine.h
  4394. * src/DownloadEngineFactory.cc
  4395. * src/Makefile.am
  4396. * src/Makefile.in
  4397. * src/RequestGroup.cc
  4398. * src/StatCalc.h
  4399. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4401. SequentialDispatcherCommand.
  4402. * src/FileAllocationDispatcherCommand.cc
  4403. * src/SequentialDispatcherCommand.h
  4404. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Rewritten FileAllocationDispatcherCommand using brand new
  4406. SequentialDispatcherCommand.
  4407. * src/DownloadEngineFactory.cc
  4408. * src/FileAllocationCommand.cc
  4409. * src/FileAllocationDispatcherCommand.cc
  4410. * src/FileAllocationDispatcherCommand.h
  4411. * src/Makefile.am
  4412. * src/SequentialDispatcherCommand.h
  4413. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Replaced FileAllocationMan with
  4415. SequentialPicker<FileAllocationEntry>.
  4416. * src/BtCheckIntegrityEntry.cc
  4417. * src/ConsoleStatCalc.cc
  4418. * src/DownloadEngine.cc
  4419. * src/DownloadEngine.h
  4420. * src/DownloadEngineFactory.cc
  4421. * src/FileAllocationCommand.cc
  4422. * src/FileAllocationDispatcherCommand.cc
  4423. * src/FileAllocationMan.h
  4424. * src/Makefile.am
  4425. * src/SequentialPicker.h
  4426. * src/StatCalc.h
  4427. * src/StreamCheckIntegrityEntry.cc
  4428. * test/Makefile.am
  4429. * test/SequentialPickerTest.cc
  4430. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Added doc for adaptive URI selector.
  4432. * doc/aria2c.1.txt
  4433. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Added doc for adaptive URI selector.
  4435. * src/usage_text.h
  4436. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Added doc for --bt-max-peers option.
  4438. * doc/aria2c.1.txt
  4439. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Added doc for --bt-hash-check-seed option.
  4441. * doc/aria2c.1.txt
  4442. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4443. Documented exit codes.
  4444. * doc/aria2c.1.txt
  4445. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Added --bt-max-peers option to specify the maximum number of peers
  4447. per torrent. 0 means unlimited number of peers.
  4448. * src/ActivePeerConnectionCommand.cc
  4449. * src/BtRuntime.h
  4450. * src/DefaultPeerStorage.cc
  4451. * src/DefaultPeerStorage.h
  4452. * src/OptionHandlerFactory.cc
  4453. * src/RequestGroup.cc
  4454. * src/option_processing.cc
  4455. * src/prefs.cc
  4456. * src/prefs.h
  4457. * src/usage_text.h
  4458. * test/DefaultPeerStorageTest.cc
  4459. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Added --bt-hash-check-seed option. If true is given to this
  4461. option, after hash check using --check-integrity option and file
  4462. is complete, continue to seed file. If you want to check file and
  4463. download it only when it is damaged or incomplete, set this option
  4464. to false. This option has effect only on BitTorrent download.
  4465. The default value is true(This is the same behavior with the
  4466. previous release).
  4467. * src/BtCheckIntegrityEntry.cc
  4468. * src/OptionHandlerFactory.cc
  4469. * src/option_processing.cc
  4470. * src/prefs.cc
  4471. * src/prefs.h
  4472. * src/usage_text.h
  4473. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. Updated copyright year.
  4475. * src/version_usage.cc
  4476. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4478. * doc/aria2c.1.txt
  4479. * src/usage_text.h
  4480. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Made the max value of split option unlimited.
  4482. * doc/aria2c.1.txt
  4483. * src/OptionHandlerFactory.cc
  4484. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Fixed compile warning/error.
  4486. * src/DownloadResult.h
  4487. * src/HttpDownloadCommand.cc
  4488. * src/ServerStat.cc
  4489. * test/RequestGroupTest.cc
  4490. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Added --event-poll option to select the method for polling events.
  4492. The available methods are "select" and "epoll". "epoll" is
  4493. available on Linux only. The earlier release has the compile
  4494. option to choose from these methods.
  4495. * configure.ac
  4496. * src/RequestGroupMan.cc
  4497. * src/OptionHandlerFactory.cc
  4498. * src/EpollEventPoll.h
  4499. * src/StreamFileAllocationEntry.cc
  4500. * src/a2io.h
  4501. * src/SelectEventPoll.h
  4502. * src/option_processing.cc
  4503. * src/prefs.h
  4504. * src/EpollEventPoll.cc
  4505. * src/EventPoll.h
  4506. * src/SocketCore.h
  4507. * src/Makefile.am
  4508. * src/main.cc
  4509. * src/DownloadEngine.h
  4510. * src/SelectEventPoll.cc
  4511. * src/DownloadEngine.cc
  4512. * src/SocketCore.cc
  4513. * src/DownloadEngineFactory.cc
  4514. * src/Makefile.in
  4515. * src/prefs.cc
  4516. * src/usage_text.h
  4517. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. Included RecoverableException.h from main.cc
  4519. * src/main.cc
  4520. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4522. now returns last error encountered in the HTTP/FTP downloads as a
  4523. exit status value. If all downloads finished successfully, aria2
  4524. returns 0. The error code is defined in src/DownloadResult.h.
  4525. The error occurred in the download currently in progress is not
  4526. reported as a last error. If no error has encountered but there
  4527. are in progress or waiting downloads, aria2 returns 7.
  4528. * src/AbstractCommand.cc
  4529. * src/DlAbortEx.h
  4530. * src/DlRetryEx.h
  4531. * src/DownloadCommand.cc
  4532. * src/DownloadFailureException.h
  4533. * src/DownloadResult.h
  4534. * src/FtpNegotiationCommand.cc
  4535. * src/HttpSkipResponseCommand.cc
  4536. * src/Makefile.am
  4537. * src/MultiUrlRequestInfo.cc
  4538. * src/MultiUrlRequestInfo.h
  4539. * src/RecoverableException.h
  4540. * src/RequestGroup.cc
  4541. * src/RequestGroup.h
  4542. * src/RequestGroupMan.cc
  4543. * src/RequestGroupMan.h
  4544. * src/URIResult.cc
  4545. * src/URIResult.h
  4546. * src/main.cc
  4547. * src/option_processing.cc
  4548. * test/RequestGroupTest.cc
  4549. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4550. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4551. patch adds AdaptiveURISelector, which selects one of the bests
  4552. mirrors for first and reserved connections. For supplementary
  4553. ones, it returns mirrors which has not been tested yet, and if
  4554. each of them already tested, returns mirrors which has to be
  4555. tested again. Otherwise, it doesn't return anymore mirrors.
  4556. * src/AdaptiveURISelector.cc
  4557. * src/AdaptiveURISelector.h
  4558. * src/FtpNegotiationCommand.cc
  4559. * src/HttpResponseCommand.cc
  4560. * src/Makefile.am
  4561. * src/Makefile.in
  4562. * src/OptionHandlerFactory.cc
  4563. * src/RequestGroup.cc
  4564. * src/RequestGroup.h
  4565. * src/RequestGroupMan.cc
  4566. * src/ServerStat.cc
  4567. * src/ServerStat.h
  4568. * src/ServerStatMan.cc
  4569. * src/SpeedCalc.cc
  4570. * src/URISelector.h
  4571. * src/prefs.cc
  4572. * src/prefs.h
  4573. * test/RequestGroupManTest.cc
  4574. * test/ServerStatManTest.cc
  4575. * test/ServerStatTest.cc
  4576. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Fixed unit test error.
  4578. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4579. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. * Release 1.1.2
  4581. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Updated Russian translation. Thanks to the translators.
  4583. * po/ru.po
  4584. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Added the description of --use-head option to man page.
  4586. * doc/aria2c.1.txt
  4587. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4588. Bump up version number to 1.1.2
  4589. * configure.ac
  4590. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Added --use-head option to toggle whether HEAD method should be
  4592. used in the first HTTP request. By default aria2 uses HEAD method
  4593. as the first request. When the server doesn't recognize HEAD, then
  4594. give aria2 --use-head=false to force aria2 to use GET method
  4595. instead.
  4596. * src/OptionHandlerFactory.cc
  4597. * src/RequestGroupMan.cc
  4598. * src/option_processing.cc
  4599. * src/prefs.cc
  4600. * src/prefs.h
  4601. * src/usage_text.h
  4602. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4604. message is received before CHOKE message. The old implementation
  4605. doen't clear the use-bit of the piece when recieved REJECT
  4606. message.
  4607. * src/DefaultBtMessageDispatcher.cc
  4608. * test/DefaultBtMessageDispatcherTest.cc
  4609. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. * Release 1.1.1
  4611. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Bump up version number to 1.1.1.
  4613. * configure.ac
  4614. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4616. is printed repeatedly.
  4617. * src/ConsoleStatCalc.cc
  4618. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. * Release 1.1.0
  4620. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Added ifdef clause for conditional compilation.
  4622. * src/main.cc
  4623. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4625. translations. Thanks to all translators.
  4626. * po/ja.po
  4627. * po/ru.po
  4628. * po/uk.po
  4629. * po/zh_CN.po
  4630. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Added the preceding ">>> " before the message "Printing the
  4632. contents of file..." to make the output more readable.
  4633. * src/main.cc
  4634. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Added try-catch block in the loop in showFiles() to continue the
  4636. operation even if the exception occurred in one file.
  4637. * src/main.cc (showFiles)
  4638. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4639. Made messages in showFiles() translatable.
  4640. * po/aria2.pot
  4641. * src/main.cc
  4642. * src/message.h
  4643. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4644. Print the contents of Torrent/Metalink files are printed without
  4645. -T/-M options.
  4646. * src/main.cc
  4647. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Escaped '--' with '\--'
  4649. * README
  4650. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Updated "How to build" section in README. Mentioned about
  4652. --with-ca-bundle compile option.
  4653. * README
  4654. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Bump up version number to 1.1.0.
  4656. * configure.ac
  4657. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Added a note for --dht-listen-port option.
  4659. * doc/aria2c.1.txt
  4660. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Update doc for --realtime-chunk-checksum option.
  4662. * doc/aria2c.1.txt
  4663. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Update doc for --realtime-chunk-checksum option.
  4665. * src/usage_text.h
  4666. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Updated French, Japanese, Russian and Ukrainian translations.
  4668. Thanks to all translators.
  4669. * po/fr.po
  4670. * po/ja.po
  4671. * po/ru.po
  4672. * po/uk.po
  4673. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4674. Renamed aria2c.pot to aria2.pot
  4675. * po/aria2.pot
  4676. * po/aria2c.pot: Removed.
  4677. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Removed MetaEntry.h
  4679. * src/Makefile.am
  4680. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Rename file by appending digits if a local file exists and its
  4682. file size is larger than that of remote file with --continue
  4683. option. The old implementation just throws exception in such case.
  4684. * src/RequestGroup.cc
  4685. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Fixed the bug that download progress summary is not printed in the
  4687. interval specified by the option.
  4688. * src/ConsoleStatCalc.cc
  4689. * src/ConsoleStatCalc.h
  4690. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4691. Fixed compiler warning
  4692. * src/Cookie.cc
  4693. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Fixed the cookie implementation based on RFC2965.
  4695. Now if a value in domain field is not started with dot, then
  4696. prepend dot. That means a cookie with domain=sf.net is sent to
  4697. wiki.sf.net.
  4698. * src/Cookie.cc
  4699. * test/CookieParserTest.cc
  4700. * test/CookieStorageTest.cc
  4701. * test/CookieTest.cc
  4702. * test/NsCookieParserTest.cc
  4703. * test/Sqlite3MozCookieParserTest.cc
  4704. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4706. is enabled and the server doesn't support keep-alive.
  4707. * src/AbstractCommand.cc
  4708. * src/DownloadCommand.cc
  4709. * src/HttpDownloadCommand.cc
  4710. * src/HttpDownloadCommand.h
  4711. * src/HttpResponseCommand.cc
  4712. * src/Request.cc
  4713. * src/Request.h
  4714. * test/RequestTest.cc
  4715. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Removed Dictionary/List/Data and its related classes.
  4717. * src/BencodeVisitor.cc: Removed.
  4718. * src/BencodeVisitor.h: Removed.
  4719. * src/Data.cc: Removed.
  4720. * src/Data.h: Removed.
  4721. * src/Dictionary.cc: Removed.
  4722. * src/Dictionary.h: Removed.
  4723. * src/List.cc: Removed.
  4724. * src/List.h: Removed.
  4725. * src/Makefile.am
  4726. * src/MetaEntry.h: Removed.
  4727. * src/MetaEntryVisitor.h: Removed.
  4728. * src/MetaFileUtil.cc: Removed.
  4729. * src/MetaFileUtil.h: Removed.
  4730. * test/BencodeVisitorTest.cc: Removed.
  4731. * test/DataTest.cc: Removed.
  4732. * test/DictionaryTest.cc: Removed.
  4733. * test/ListTest.cc: Removed.
  4734. * test/Makefile.am
  4735. * test/MetaFileUtilTest.cc: Removed.
  4736. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Removed include of MetaEntry.h
  4738. * test/DHTMessageTrackerEntryTest.cc
  4739. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4740. Use BDE instead of Dictionary/List/Data.
  4741. * src/AnnounceList.cc
  4742. * src/AnnounceList.h
  4743. * test/AnnounceListTest.cc
  4744. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4745. Use BDE instead of Dictionary/List/Data.
  4746. * src/DHTAbstractMessage.cc
  4747. * src/DHTAbstractMessage.h
  4748. * src/DHTAnnouncePeerMessage.cc
  4749. * src/DHTAnnouncePeerMessage.h
  4750. * src/DHTAnnouncePeerReplyMessage.cc
  4751. * src/DHTAnnouncePeerReplyMessage.h
  4752. * src/DHTFindNodeMessage.cc
  4753. * src/DHTFindNodeMessage.h
  4754. * src/DHTFindNodeReplyMessage.cc
  4755. * src/DHTFindNodeReplyMessage.h
  4756. * src/DHTGetPeersMessage.cc
  4757. * src/DHTGetPeersMessage.h
  4758. * src/DHTGetPeersReplyMessage.cc
  4759. * src/DHTGetPeersReplyMessage.h
  4760. * src/DHTMessageFactory.h
  4761. * src/DHTMessageFactoryImpl.cc
  4762. * src/DHTMessageFactoryImpl.h
  4763. * src/DHTMessageReceiver.cc
  4764. * src/DHTMessageTracker.cc
  4765. * src/DHTMessageTracker.h
  4766. * src/DHTPingMessage.cc
  4767. * src/DHTPingMessage.h
  4768. * src/DHTPingReplyMessage.cc
  4769. * src/DHTPingReplyMessage.h
  4770. * src/DHTQueryMessage.cc
  4771. * src/DHTQueryMessage.h
  4772. * src/DHTResponseMessage.cc
  4773. * src/DHTResponseMessage.h
  4774. * test/DHTAnnouncePeerMessageTest.cc
  4775. * test/DHTAnnouncePeerReplyMessageTest.cc
  4776. * test/DHTFindNodeMessageTest.cc
  4777. * test/DHTFindNodeReplyMessageTest.cc
  4778. * test/DHTGetPeersMessageTest.cc
  4779. * test/DHTGetPeersReplyMessageTest.cc
  4780. * test/DHTMessageFactoryImplTest.cc
  4781. * test/DHTMessageTrackerTest.cc
  4782. * test/DHTPingMessageTest.cc
  4783. * test/DHTPingReplyMessageTest.cc
  4784. * test/MockDHTMessageFactory.h
  4785. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4786. Added tests the case where length < 0 is specified.
  4787. * test/BencodeTest.cc
  4788. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Fixed memory leak in decoderawstring()
  4790. * src/bencode.cc
  4791. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Added missing #ifdef guard. Added uc() function for String and
  4793. removeKey() for Dict.
  4794. * src/bencode.cc
  4795. * src/bencode.h
  4796. * test/BencodeTest.cc
  4797. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Use BDE instead of Dictionary/List/Data.
  4799. * src/HandshakeExtensionMessage.cc
  4800. * src/HandshakeExtensionMessage.h
  4801. * test/HandshakeExtensionMessageTest.cc
  4802. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Added --max-overall-upload-limit option. This option limits the
  4804. overall upload speed. Stated in help message that the existing
  4805. --max-upload-limit option limits the upload speed per each
  4806. torrent. Man page is also updated.
  4807. * doc/aria2c.1.txt
  4808. * src/DefaultBtMessageDispatcher.cc
  4809. * src/DefaultBtMessageDispatcher.h
  4810. * src/OptionHandlerFactory.cc
  4811. * src/PeerInteractionCommand.cc
  4812. * src/option_processing.cc
  4813. * src/prefs.cc
  4814. * src/prefs.h
  4815. * src/usage_text.h
  4816. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Use BDE instead of Dictionary/List/Data classes.
  4818. * src/CompactPeerListProcessor.cc
  4819. * src/CompactPeerListProcessor.h
  4820. * src/DefaultBtAnnounce.cc
  4821. * src/DefaultBtContext.cc
  4822. * src/DefaultBtContext.h
  4823. * src/DefaultPeerListProcessor.cc
  4824. * src/DefaultPeerListProcessor.h
  4825. * src/DelegatingPeerListProcessor.cc
  4826. * src/DelegatingPeerListProcessor.h
  4827. * src/PeerListProcessor.h
  4828. * src/UTPexExtensionMessage.cc
  4829. * src/Util.h
  4830. * src/message.h
  4831. * test/DefaultBtContextTest.cc
  4832. * test/DefaultPeerListProcessorTest.cc
  4833. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Added bencode helper functions and BDE class.
  4835. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4836. * src/Makefile.am
  4837. * src/bencode.cc
  4838. * src/bencode.h
  4839. * test/BencodeTest.cc
  4840. * test/Makefile.am
  4841. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. Fixed the bug that bad URI is sent to the tracker when the announe
  4843. URI in torrent file includes query.
  4844. * src/DefaultBtAnnounce.cc
  4845. * test/DefaultBtAnnounceTest.cc
  4846. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Added Option::blank().
  4848. Use !Option::blank(name) instead of Option::defined(name) for
  4849. the options that take filename.
  4850. * src/MultiUrlRequestInfo.cc
  4851. * src/Option.cc
  4852. * src/Option.h
  4853. * src/main.cc
  4854. * src/option_processing.cc
  4855. * test/OptionTest.cc
  4856. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. Documented the default value of --check-certificate option in man
  4858. page.
  4859. * doc/aria2c.1.txt
  4860. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4861. Enabled --check-certificate by default. Added compile
  4862. time(configure) option --with-ca-bundle to specify CA bundle.
  4863. Warn if --check-certificate=true and --ca-certificate is not
  4864. specified or loading CA certificate is failed.
  4865. * configure.ac
  4866. * src/MultiUrlRequestInfo.cc
  4867. * src/OptionHandlerFactory.cc
  4868. * src/message.h
  4869. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4870. Mentioned https tag in help option.
  4871. * doc/aria2c.1.txt
  4872. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4873. Added `https' tag to help option category. Added https tag to
  4874. --ca-certificate, --certificate, --check-certificate and
  4875. --private-key option.
  4876. * src/OptionHandlerFactory.cc
  4877. * src/help_tags.h
  4878. * src/option_processing.cc
  4879. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Changed the package name from `aria2c' to `aria2' in order to fix
  4881. the packaging issue in Debian and Fedora. The name of the
  4882. executable is not changed.
  4883. * configure.ac
  4884. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4885. Fixed typos
  4886. * src/usage_text.h
  4887. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Fixed typos and updated doc.
  4889. * README
  4890. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Fixed typos
  4892. * doc/aria2c.1.txt
  4893. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Fixed typos
  4895. * src/usage_text.h
  4896. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4897. Print a message when no files to download.
  4898. * src/download_helper.cc
  4899. * src/main.cc
  4900. * src/message.h
  4901. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. RFC3986 complied Percent-Encoding(urlencode).
  4903. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4904. ones.
  4905. * src/Request.cc
  4906. * src/Util.cc
  4907. * src/Util.h
  4908. * test/BtHandshakeMessageTest.cc
  4909. * test/DefaultBtAnnounceTest.cc
  4910. * test/DefaultBtContextTest.cc
  4911. * test/RequestTest.cc
  4912. * test/UtilTest.cc
  4913. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Fixed the bug that prevents aria2 from downloading 0-length files
  4915. via HTTP/FTP.
  4916. * src/DefaultBtContext.cc
  4917. * src/DefaultBtContext.h
  4918. * src/DownloadContext.h
  4919. * src/FtpNegotiationCommand.cc
  4920. * src/HttpResponseCommand.cc
  4921. * src/HttpResponseCommand.h
  4922. * src/RequestGroup.cc
  4923. * src/SingleFileDownloadContext.cc
  4924. * src/SingleFileDownloadContext.h
  4925. * test/BtPostDownloadHandlerTest.cc
  4926. * test/MetalinkPostDownloadHandlerTest.cc
  4927. * test/MockBtContext.h
  4928. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4929. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4930. * src/option_processing.cc
  4931. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Applied aria2-1.0.1-mingw.patch.
  4933. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4934. mingw.
  4935. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4936. * src/SocketCore.cc
  4937. * src/a2netcompat.h
  4938. * test/SocketCoreTest.cc
  4939. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. * Release 1.0.1
  4941. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Updated Ukrainian and Norwegian Nynorsk translations.
  4943. Thanks to all translators.
  4944. * po/nn.po
  4945. * po/uk.po
  4946. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Don't show download result when -S option is used.
  4948. * src/main.cc
  4949. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Bump up version number to 1.0.1
  4951. * configure.ac
  4952. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Closed files after the test cases in MultiDiskWriterTest::
  4954. testResetDiskWriterEntries(). This will fix the unit test error
  4955. in mingw32 build.
  4956. * test/MultiDiskWriterTest.cc
  4957. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Use HEAD method to get file size from HTTP server for segmented
  4959. downloading.
  4960. The request to the BitTorrent Tracker always uses GET method because
  4961. the response of the tracker is small and it doesn't need segmented
  4962. download.
  4963. * src/FtpNegotiationCommand.cc
  4964. * src/HttpRequest.cc
  4965. * src/HttpResponseCommand.cc
  4966. * src/HttpSkipResponseCommand.cc
  4967. * src/RequestGroup.cc
  4968. * src/RequestGroup.h
  4969. * src/TrackerWatcherCommand.cc
  4970. * test/HttpRequestTest.cc
  4971. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4972. Fixed the bug that causes floating exception when -T option is used and
  4973. no URIs are given.
  4974. * src/download_helper.cc
  4975. * test/DownloadHelperTest.cc
  4976. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4977. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4978. errors in MinGW:
  4979. Closed file after saving server stats (RequestGroupMan.cc)
  4980. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4981. Ignored case & handled 2-digit years (strptime.c)
  4982. Added missing suseconds_t definition (a2time.h)
  4983. Fixed socket CLOSE() define (SocketCore.cc)
  4984. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4985. Changed utime() test values from x000 to x00000 as MinGW failed on
  4986. values less than timezone offset from Unix epoch
  4987. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4988. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4989. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4990. handle negative dates (CookieParserTest.cc)
  4991. * src/a2time.h
  4992. * src/FtpConnection.cc
  4993. * src/RequestGroupMan.cc
  4994. * src/SocketCore.cc
  4995. * src/strptime.c
  4996. * test/CookieParserTest.cc
  4997. * test/CopyDiskAdaptorTest.cc
  4998. * test/FileTest.cc
  4999. * test/FtpConnectionTest.cc
  5000. * test/MultiDiskAdaptorTest.cc
  5001. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5003. * doc/aria2c.1.txt
  5004. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. * Release 1.0.0
  5006. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Added '~' to reserved characters.
  5008. * src/Util.cc
  5009. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Do not urlencode Request::url in setUrl() because we want unmodified
  5011. URL using Request::getUrl()
  5012. * src/Request.cc
  5013. * src/Request.h
  5014. * test/RequestTest.cc
  5015. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5017. Thanks to all translators.
  5018. * po/bg.po
  5019. * po/fr.po
  5020. * po/ja.po
  5021. * po/ru.po
  5022. * po/uk.po
  5023. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Bump up version number to 1.0.0
  5025. * configure.ac
  5026. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Added nosqlite3 build to build_test.sh.
  5028. Renamed noxml as expat.
  5029. * build_test.sh
  5030. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Updated INPUT FILE section.
  5032. * doc/aria2c.1.txt
  5033. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5035. on big endian systems because test .aria2 files are made for little
  5036. endian systems.
  5037. * test/DefaultBtProgressInfoFileTest.cc
  5038. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Dropped ares support.
  5040. * README
  5041. * configure.ac
  5042. * m4/libares.m4: Removed.
  5043. * src/AsyncNameResolver.cc
  5044. * src/Makefile.am
  5045. * test/Makefile.am
  5046. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5048. Removed const qualifier from DiskWriter::size().
  5049. * src/AbstractDiskWriter.cc
  5050. * src/AbstractDiskWriter.h
  5051. * src/ByteArrayDiskWriter.cc
  5052. * src/ByteArrayDiskWriter.h
  5053. * src/DiskWriter.h
  5054. * test/ByteArrayDiskWriterTest.cc
  5055. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Fixed the bug that causes segmentation fault/bus error during executing
  5057. choking algorithm while seeding. This is caused by improper
  5058. implementation of compare function which returns inconsistent results
  5059. depending on the timing of last unchoke.
  5060. * src/BtSeederStateChoke.cc
  5061. * src/BtSeederStateChoke.h
  5062. * src/DefaultPeerStorage.cc
  5063. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Removed TODO
  5065. * TODO
  5066. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5067. Added a section that explains how to pass argument to options that
  5068. takes optional arguments with its short form.
  5069. * doc/aria2c.1.txt
  5070. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Added -u for the short form of --max-upload-limit option.
  5072. * doc/aria2c.1.txt
  5073. * src/option_processing.cc
  5074. * src/usage_text.h
  5075. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5076. Added -V for the short form of --check-integrity option.
  5077. Now the argument of --check-integrity option is optional:
  5078. if it is omitted, it is evaluated as true.
  5079. * doc/aria2c.1.txt
  5080. * src/option_processing.cc
  5081. * src/usage_text.h
  5082. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Made the default value of --ftp-pasv option set to true and it can take
  5084. true/false values.
  5085. * src/OptionHandlerFactory.cc
  5086. * src/option_processing.cc
  5087. * src/usage_text.h
  5088. * doc/aria2c.1.txt
  5089. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Given custom random number generator to std::random_shuffle.
  5091. * src/AnnounceList.cc
  5092. * src/BtLeecherStateChoke.cc
  5093. * src/BtSeederStateChoke.cc
  5094. * src/DefaultBtRequestFactory.cc
  5095. * src/MetalinkEntry.cc
  5096. * src/RarestPieceSelector.cc
  5097. * src/SimpleRandomizer.cc
  5098. * src/SimpleRandomizer.h
  5099. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Now the default value of --enable-direct-io is true.
  5101. * src/OptionHandlerFactory.cc
  5102. * doc/aria2c.1.txt
  5103. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5104. Erase peer before executing onReturningPeer and onErasingPeer
  5105. because choking algorithm called from onReturningPeer doesn't
  5106. like erasing peer in the active peer list.
  5107. * src/DefaultPeerStorage.cc
  5108. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5109. Instead of creating special filename in createDownloadResult() if
  5110. inMemoryDownload() is true, now it is done in getFilePath().
  5111. * src/RequestGroup.cc
  5112. * test/RequestGroupTest.cc
  5113. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5115. processed in memory. This is the fix for previous comment out.
  5116. * src/MemoryBufferPreDownloadHandler.cc
  5117. * src/RequestGroup.cc
  5118. * src/RequestGroup.h
  5119. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Commented out the code which sets virtual directory path "[MEMORY]"
  5121. propagate directory to store to following RequestGroup.
  5122. * src/MemoryBufferPreDownloadHandler.cc
  5123. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Bump up version number to 1.0.0b
  5125. * configure.ac
  5126. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5127. Added input_uris.txt to EXTRA_DIST
  5128. * test/Makefile.am
  5129. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Removed PeerObject.h from Makefile.am
  5131. * src/Makefile.am
  5132. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Avoid slow seeding
  5134. * src/PeerInteractionCommand.cc
  5135. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Updated usage for -i option.
  5137. * src/usage_text.h (TEXT_INPUT_FILE)
  5138. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Added INPUT FILE section to man page.
  5140. Escaped fake URLs.
  5141. * doc/aria2c.1.txt
  5142. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5143. Fixed wrong note position for -o option.
  5144. * doc/aria2c.1.txt
  5145. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Fixed compile error without SSL/XML library.
  5147. * src/DefaultBtProgressInfoFile.cc
  5148. * src/DefaultBtProgressInfoFile.h
  5149. * src/FileMetalinkParserState.cc
  5150. * src/RequestGroup.h
  5151. * src/SocketCore.cc
  5152. * src/SocketCore.h
  5153. * src/VerificationMetalinkParserState.cc
  5154. * src/download_helper.h
  5155. * src/main.cc
  5156. * test/DefaultBtProgressInfoFileTest.cc
  5157. * test/DownloadHelperTest.cc
  5158. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Rewritten URI handling functions. They are now provided as a testable
  5160. functions.
  5161. * src/Makefile.am
  5162. * src/RequestGroup.cc
  5163. * src/RequestGroup.h
  5164. * src/download_helper.cc
  5165. * src/download_helper.h
  5166. * src/main.cc
  5167. * test/DownloadHelperTest.cc
  5168. * test/Makefile.am
  5169. * test/input_uris.txt
  5170. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. Quickly terminate commands when ctrl-c is pressed.
  5172. * src/DownloadEngine.cc
  5173. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5174. Quickly terminate idle commands when download finished.
  5175. * src/AbstractCommand.cc
  5176. * src/DownloadCommand.cc
  5177. * src/DownloadEngine.cc
  5178. * src/DownloadEngine.h
  5179. * src/SleepCommand.cc
  5180. * src/SleepCommand.h
  5181. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Added the ability to specify output filename and directory in input
  5183. file.
  5184. Additional parameters are added in the following line of URIs
  5185. with proceeding white space(s), 1 parameter in 1 line.
  5186. The parameter names are the same with the command-line option name
  5187. without proceeding "--". Not all the options are available here:
  5188. at the moment, 'dir' and 'out' options are avialable.
  5189. Please note that out option has no effect against Metalink or BitTorrent
  5190. downloads.
  5191. Example input file:
  5192. http://host/foo-1.1.tar.bz2
  5193. out=foo.tar.bz2
  5194. dir=/tmp/downloads
  5195. http://host/thundermonkey-2.0.tar.bz2
  5196. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5197. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5198. thundermonkey-2.0.tar.bz2 is saved as
  5199. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5200. * src/BtPostDownloadHandler.cc
  5201. * src/Metalink2RequestGroup.cc
  5202. * src/Metalink2RequestGroup.h
  5203. * src/MetalinkPostDownloadHandler.cc
  5204. * src/UriListParser.cc
  5205. * src/UriListParser.h
  5206. * src/main.cc
  5207. * test/Metalink2RequestGroupTest.cc
  5208. * test/UriListParserTest.cc
  5209. * test/filelist1.txt
  5210. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Fixed error when SSL library is not found.
  5212. * configure.ac
  5213. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Cross referenced among -s, -C and -j options.
  5215. Updated usage of -C and -s options.
  5216. * src/usage_text.h
  5217. * doc/aria2c.1.txt
  5218. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Fixed bad cast in 32bit platforms.
  5220. * test/DefaultPieceStorageTest.cc
  5221. (DefaultPieceStorageTest::testGetCompletedLength)
  5222. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Fixed unit test fails on 32bit platforms.
  5224. * test/CookieParserTest.cc
  5225. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Show an average download speed in Download results.
  5227. * src/BtFileAllocationEntry.cc
  5228. * src/DefaultPieceStorage.cc
  5229. * src/DownloadContext.cc
  5230. * src/DownloadContext.h
  5231. * src/DownloadResult.h
  5232. * src/RequestGroup.cc
  5233. * src/RequestGroupMan.cc
  5234. * src/StreamFileAllocationEntry.cc
  5235. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Fixed the bug that metalink file is not processed if Content-Type
  5237. field has a paramter.
  5238. * src/HttpResponse.cc
  5239. * src/HttpResponse.h
  5240. * test/HttpResponseTest.cc
  5241. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Removed unused code.
  5243. * src/DefaultBtAnnounce.cc
  5244. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5246. the value larger than DefaultPieceStorage::getTotalLength() when
  5247. in flight pieces are involved.
  5248. * src/DefaultPieceStorage.cc
  5249. * test/DefaultPieceStorageTest.cc
  5250. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Bump up version number to 1.0.0a.
  5252. * configure.ac
  5253. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. Updated configure.ac
  5255. * configure.ac
  5256. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Added usege for proxy.
  5258. * doc/aria2c.1.txt
  5259. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5260. Added usage for --ca-certificate, --certificate, --private-key and
  5261. --check-certificate options.
  5262. * doc/aria2c.1.txt
  5263. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Updated man page
  5265. * doc/aria2c.1.txt
  5266. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5267. Added --no-proxy option. It receives comman separated hostname or
  5268. domains to which proxy should not be used.
  5269. aria2 honors the environment variable no_proxy to override no-proxy
  5270. value in configuration file. The user can override the environment
  5271. variable no_proxy with --no-proxy command-line option.
  5272. * src/AbstractCommand.cc
  5273. * src/OptionHandlerFactory.cc
  5274. * src/option_processing.cc
  5275. * src/prefs.cc
  5276. * src/prefs.h
  5277. * src/usage_text.h
  5278. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5280. The CA certificates are specified in --ca-certificate option.
  5281. By default, the verification is disabled. Use --check-certificate
  5282. option to enable it.
  5283. * src/HttpRequestCommand.cc
  5284. * src/LibgnutlsTLSContext.cc
  5285. * src/LibgnutlsTLSContext.h
  5286. * src/LibsslTLSContext.cc
  5287. * src/LibsslTLSContext.h
  5288. * src/MultiUrlRequestInfo.cc
  5289. * src/OptionHandlerFactory.cc
  5290. * src/SocketCore.cc
  5291. * src/SocketCore.h
  5292. * src/a2functional.h
  5293. * src/message.h
  5294. * src/option_processing.cc
  5295. * src/prefs.cc
  5296. * src/prefs.h
  5297. * src/usage_text.h
  5298. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5299. Added client certificate authentication for SSL/TLS.
  5300. Currently a private key must be decrypted for use with aria2.
  5301. If a user accidentally gives encrypted file to aria2 then following
  5302. thing happens:
  5303. If encrypted private key is given to aria2, it behaves differently
  5304. depending on the ssl library it uses. If aria2 built with openssl then
  5305. openssl prompts the user for password. If aria2 build with gnutls then
  5306. aria2 exists with error at start up.
  5307. * src/DownloadEngineFactory.cc
  5308. * src/MultiUrlRequestInfo.cc
  5309. * src/OptionHandlerFactory.cc
  5310. * src/option_processing.cc
  5311. * src/prefs.cc
  5312. * src/prefs.h
  5313. * src/usage_text.h
  5314. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Introduced TLSContext that holds TLS related data that can be shared
  5316. with multiple SSL connections.
  5317. * src/DownloadEngineFactory.cc
  5318. * src/LibgnutlsTLSContext.cc
  5319. * src/LibgnutlsTLSContext.h
  5320. * src/LibsslTLSContext.cc
  5321. * src/LibsslTLSContext.h
  5322. * src/Makefile.am
  5323. * src/SocketCore.cc
  5324. * src/SocketCore.h
  5325. * src/TLSContext.h
  5326. * src/message.h
  5327. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Fixed the bug that the DiskWriter of the first FileEntry whose
  5329. `needsFileAllocation' property is false is not created
  5330. even if it shares a piece with next FileEntry which `requested' property
  5331. is true.
  5332. Fixed the bug that zero-length file is not created if pre file
  5333. allocation is not done.
  5334. * src/MultiDiskAdaptor.cc
  5335. * src/MultiDiskAdaptor.h
  5336. * test/MultiDiskAdaptorTest.cc
  5337. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Added the ability to pool proxy connection.
  5339. The conneciton in FTP with proxy-method=GET is not pooled.
  5340. Proxy-Connection header will not be sent when sending CONNECT method.
  5341. * src/DownloadEngine.cc
  5342. * src/DownloadEngine.h
  5343. * src/FtpFinishDownloadCommand.cc
  5344. * src/FtpInitiateConnectionCommand.cc
  5345. * src/FtpNegotiationCommand.cc
  5346. * src/HttpDownloadCommand.cc
  5347. * src/HttpInitiateConnectionCommand.cc
  5348. * src/HttpRequest.cc
  5349. * src/HttpRequest.h
  5350. * src/HttpResponse.cc
  5351. * src/HttpSkipResponseCommand.cc
  5352. * test/HttpRequestTest.cc
  5353. * test/HttpResponseTest.cc
  5354. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Handle date before epoch.
  5356. To create *bad* Time object, call Time::null().
  5357. * src/CookieParser.cc
  5358. * src/FtpConnection.cc
  5359. * src/FtpConnection.h
  5360. * src/FtpNegotiationCommand.cc
  5361. * src/RequestGroup.cc
  5362. * src/TimeA2.cc
  5363. * src/TimeA2.h
  5364. * test/CookieParserTest.cc
  5365. * test/FtpConnectionTest.cc
  5366. * test/TimeTest.cc
  5367. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Added support for following envrionment variables: http_proxy,
  5369. https_proxy, ftp_proxy and all_proxy.
  5370. Each variable is equivalent to the aria2 option whose name is the
  5371. variable name with '_' replaced with '-'.
  5372. They overrides options specified in aria2.conf file.
  5373. The envrionment variables can be overrode using command-line option.
  5374. * src/option_processing.cc
  5375. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Renamed --http-proxy-method as --proxy-method.
  5377. * src/AbstractCommand.cc
  5378. * src/FtpInitiateConnectionCommand.cc
  5379. * src/HttpInitiateConnectionCommand.cc
  5380. * src/OptionHandlerFactory.cc
  5381. * src/option_processing.cc
  5382. * src/prefs.cc
  5383. * src/prefs.h
  5384. * src/usage_text.h
  5385. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5387. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5388. Above 3 options and --http-proxy option can handle proxy in URL format
  5389. like: http://user:passwd@host:port.
  5390. If a proxy requires user/password, they must be specified in a URL.
  5391. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5392. instead.
  5393. * src/AbstractCommand.cc
  5394. * src/AbstractCommand.h
  5395. * src/AbstractProxyRequestCommand.cc
  5396. * src/AbstractProxyRequestCommand.h
  5397. * src/AuthConfigFactory.cc
  5398. * src/AuthConfigFactory.h
  5399. * src/FtpFinishDownloadCommand.cc
  5400. * src/FtpInitiateConnectionCommand.cc
  5401. * src/FtpInitiateConnectionCommand.h
  5402. * src/FtpNegotiationCommand.cc
  5403. * src/FtpTunnelRequestCommand.cc
  5404. * src/FtpTunnelRequestCommand.h
  5405. * src/HttpDownloadCommand.cc
  5406. * src/HttpInitiateConnectionCommand.cc
  5407. * src/HttpInitiateConnectionCommand.h
  5408. * src/HttpProxyRequestCommand.cc
  5409. * src/HttpProxyRequestCommand.h
  5410. * src/HttpRequest.cc
  5411. * src/HttpRequest.h
  5412. * src/HttpRequestCommand.cc
  5413. * src/HttpRequestCommand.h
  5414. * src/HttpSkipResponseCommand.cc
  5415. * src/InitiateConnectionCommand.cc
  5416. * src/InitiateConnectionCommand.h
  5417. * src/OptionHandlerFactory.cc
  5418. * src/OptionHandlerImpl.h
  5419. * src/Request.cc
  5420. * src/option_processing.cc
  5421. * src/prefs.cc
  5422. * src/prefs.h
  5423. * src/usage_text.h
  5424. * test/AuthConfigFactoryTest.cc
  5425. * test/HttpRequestTest.cc
  5426. * test/OptionHandlerTest.cc
  5427. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Execute choking algorithm when unchoked and interested peer is
  5429. disconected.
  5430. * src/DefaultPeerStorage.cc
  5431. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Added testcase for BtNotInterestedMessage from unchoked peer.
  5433. * test/BtNotInterestedMessageTest.cc
  5434. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Execute choking algorithm when BtInterestedMessage arrives from
  5436. unchoked peer.
  5437. * src/BtInterestedMessage.cc
  5438. * src/BtInterestedMessage.h
  5439. * src/DefaultBtMessageFactory.cc
  5440. * test/BtInterestedMessageTest.cc
  5441. * test/MockPeerStorage.h
  5442. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. AuthConfigFactory is now part of DownloadEngine.
  5444. * src/AbstractProxyRequestCommand.cc
  5445. * src/AuthConfigFactory.h
  5446. * src/DownloadEngine.cc
  5447. * src/DownloadEngine.h
  5448. * src/FtpConnection.cc
  5449. * src/FtpConnection.h
  5450. * src/FtpNegotiationCommand.cc
  5451. * src/HttpConnection.cc
  5452. * src/HttpRequest.cc
  5453. * src/HttpRequest.h
  5454. * src/HttpRequestCommand.cc
  5455. * src/HttpResponse.cc
  5456. * src/HttpResponseCommand.cc
  5457. * src/HttpSkipResponseCommand.cc
  5458. * src/MultiUrlRequestInfo.cc
  5459. * src/main.cc
  5460. * test/FtpConnectionTest.cc
  5461. * test/HttpRequestTest.cc
  5462. * test/HttpResponseTest.cc
  5463. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Corrected catched exception type.
  5465. * src/ServerStatMan.cc
  5466. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. DNSCache is now part of DownloadEngine.
  5468. * src/DNSCache.h
  5469. * src/DownloadEngine.cc
  5470. * src/DownloadEngine.h
  5471. * src/InitiateConnectionCommand.cc
  5472. * src/MultiUrlRequestInfo.cc
  5473. * test/Makefile.am
  5474. * test/Makefile.in
  5475. * test/SimpleDNSCacheTest.cc
  5476. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5478. DownloadEngine.
  5479. * src/ActivePeerConnectionCommand.cc
  5480. * src/BtSetup.cc
  5481. * src/CUIDCounter.h
  5482. * src/DHTSetup.cc
  5483. * src/DownloadCommand.cc
  5484. * src/DownloadEngine.cc
  5485. * src/DownloadEngine.h
  5486. * src/DownloadEngineFactory.cc
  5487. * src/FileAllocationDispatcherCommand.cc
  5488. * src/InitiatorMSEHandshakeCommand.cc
  5489. * src/PeerInitiateConnectionCommand.cc
  5490. * src/PeerInteractionCommand.cc
  5491. * src/PeerListenCommand.cc
  5492. * src/RequestGroup.cc
  5493. * src/StreamFileAllocationEntry.cc
  5494. * src/TrackerWatcherCommand.cc
  5495. * src/main.cc
  5496. * test/RequestGroupManTest.cc
  5497. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5498. Implemented commented code in BtSeederStateChoke
  5499. * src/BtSeederStateChoke.cc
  5500. * src/Peer.cc
  5501. * src/Peer.h
  5502. * src/PeerInteractionCommand.cc
  5503. * src/PeerSessionResource.cc
  5504. * src/PeerSessionResource.h
  5505. * test/MockBtMessageDispatcher.h
  5506. * test/PeerSessionResourceTest.cc
  5507. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5509. its object.
  5510. * src/AbstractBtMessage.cc
  5511. * src/ActivePeerConnectionCommand.cc
  5512. * src/ActivePeerConnectionCommand.h
  5513. * src/BtContextAwareCommand.cc
  5514. * src/BtContextAwareCommand.h
  5515. * src/BtExtendedMessage.cc
  5516. * src/BtExtendedMessage.h
  5517. * src/BtInterestedMessage.cc
  5518. * src/BtInterestedMessage.h
  5519. * src/BtNotInterestedMessage.cc
  5520. * src/BtNotInterestedMessage.h
  5521. * src/BtRegistry.cc
  5522. * src/BtRegistry.h
  5523. * src/BtSeederStateChoke.cc
  5524. * src/BtSetup.cc
  5525. * src/DHTGetPeersCommand.cc
  5526. * src/DHTGetPeersCommand.h
  5527. * src/DHTPeerAnnounceEntry.cc
  5528. * src/DHTPeerAnnounceEntry.h
  5529. * src/DHTPeerAnnounceStorage.cc
  5530. * src/DHTPeerAnnounceStorage.h
  5531. * src/DHTPeerLookupTask.cc
  5532. * src/DHTPeerLookupTask.h
  5533. * src/DHTSetup.cc
  5534. * src/DHTSetup.h
  5535. * src/DHTTaskFactory.h
  5536. * src/DHTTaskFactoryImpl.cc
  5537. * src/DHTTaskFactoryImpl.h
  5538. * src/DefaultBtAnnounce.cc
  5539. * src/DefaultBtInteractive.cc
  5540. * src/DefaultBtInteractive.h
  5541. * src/DefaultBtMessageDispatcher.cc
  5542. * src/DefaultBtMessageDispatcher.h
  5543. * src/DefaultBtMessageFactory.cc
  5544. * src/DefaultBtMessageFactory.h
  5545. * src/DefaultBtMessageReceiver.cc
  5546. * src/DefaultBtProgressInfoFile.cc
  5547. * src/DefaultBtProgressInfoFile.h
  5548. * src/DefaultBtRequestFactory.cc
  5549. * src/DefaultBtRequestFactory.h
  5550. * src/DefaultExtensionMessageFactory.cc
  5551. * src/DefaultExtensionMessageFactory.h
  5552. * src/DefaultPeerStorage.cc
  5553. * src/DefaultPeerStorage.h
  5554. * src/DownloadEngine.cc
  5555. * src/DownloadEngine.h
  5556. * src/InitiatorMSEHandshakeCommand.cc
  5557. * src/InitiatorMSEHandshakeCommand.h
  5558. * src/MSEHandshake.cc
  5559. * src/MSEHandshake.h
  5560. * src/Makefile.am
  5561. * src/Makefile.in
  5562. * src/PeerChokeCommand.cc
  5563. * src/PeerChokeCommand.h
  5564. * src/PeerInitiateConnectionCommand.cc
  5565. * src/PeerInitiateConnectionCommand.h
  5566. * src/PeerInteractionCommand.cc
  5567. * src/PeerInteractionCommand.h
  5568. * src/PeerObject.h
  5569. * src/PeerReceiveHandshakeCommand.cc
  5570. * src/PeerReceiveHandshakeCommand.h
  5571. * src/ReceiverMSEHandshakeCommand.cc
  5572. * src/RequestGroup.cc
  5573. * src/RequestGroup.h
  5574. * src/RequestGroupMan.cc
  5575. * src/RequestGroupMan.h
  5576. * src/SeedCheckCommand.cc
  5577. * src/SeedCheckCommand.h
  5578. * src/ShareRatioSeedCriteria.h
  5579. * src/SimpleBtMessage.cc
  5580. * src/TrackerWatcherCommand.cc
  5581. * src/TrackerWatcherCommand.h
  5582. * src/UTPexExtensionMessage.cc
  5583. * src/UTPexExtensionMessage.h
  5584. * test/BtCancelMessageTest.cc
  5585. * test/BtChokeMessageTest.cc
  5586. * test/BtExtendedMessageTest.cc
  5587. * test/BtInterestedMessageTest.cc
  5588. * test/BtNotInterestedMessageTest.cc
  5589. * test/BtPieceMessageTest.cc
  5590. * test/BtPortMessageTest.cc
  5591. * test/BtRegistryTest.cc
  5592. * test/BtRejectMessageTest.cc
  5593. * test/BtRequestMessageTest.cc
  5594. * test/DHTPeerAnnounceEntryTest.cc
  5595. * test/DHTPeerAnnounceStorageTest.cc
  5596. * test/DefaultBtMessageDispatcherTest.cc
  5597. * test/DefaultBtMessageFactoryTest.cc
  5598. * test/DefaultBtProgressInfoFileTest.cc
  5599. * test/DefaultBtRequestFactoryTest.cc
  5600. * test/DefaultExtensionMessageFactoryTest.cc
  5601. * test/MSEHandshakeTest.cc
  5602. * test/MockDHTTaskFactory.h
  5603. * test/ShareRatioSeedCriteriaTest.cc
  5604. * test/UTPexExtensionMessageTest.cc
  5605. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Fixed compiler warning.
  5607. * test/UtilTest.cc
  5608. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Treat Cookie object as session cookie if expiry = 0 is given.
  5610. With this change, you can specify session scoped cookies in an external
  5611. file setting expiry value to 0.
  5612. * src/Cookie.cc
  5613. * src/Cookie.h
  5614. * test/CookieParserTest.cc
  5615. * test/CookieStorageTest.cc
  5616. * test/CookieTest.cc
  5617. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Changed signature of DHTMessageFactory::createResponseMessage().
  5619. Removed unused validateIDMatch.
  5620. * src/DHTMessageFactory.h
  5621. * src/DHTMessageFactoryImpl.cc
  5622. * src/DHTMessageFactoryImpl.h
  5623. * src/DHTMessageTracker.cc
  5624. * test/DHTMessageFactoryImplTest.cc
  5625. * test/MockDHTMessageFactory.h
  5626. Dropped DHT message coming from same ID of localhost.
  5627. * src/DHTMessageReceiver.cc
  5628. Rejected adding node whose ID is the same as localhost's.
  5629. * src/DHTRoutingTable.cc
  5630. * test/BtPortMessageTest.cc
  5631. * test/DHTRoutingTableTest.cc
  5632. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Pool connection when redirection occurs with Content-Length = 0.
  5634. * src/HttpSkipResponseCommand.cc
  5635. * src/HttpSkipResponseCommand.h
  5636. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Fixed the bug that causes time out when redirection occurs with
  5638. content-length 0.
  5639. * src/HttpResponseCommand.cc
  5640. * src/HttpSkipResponseCommand.cc
  5641. * src/HttpSkipResponseCommand.h
  5642. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Now each status legends is shown only when it appears in Download
  5644. Result. If Download Result has no item, then status legend will not
  5645. be printed.
  5646. * src/RequestGroupMan.cc
  5647. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Removed duplicate creation of OptionHandlers.
  5649. * src/option_processing.cc
  5650. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Fixed the bug that causes segmentation fault when accessing files which
  5652. don't exist or are not included in --select-file option while
  5653. validating chunk checksum.
  5654. * src/MultiDiskAdaptor.cc
  5655. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Fixed compiler warning.
  5657. * test/UtilTest.cc
  5658. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5660. * src/IteratableChecksumValidator.cc
  5661. * src/IteratableChunkChecksumValidator.cc
  5662. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. * Release 0.16.2
  5664. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. Added Serbian translation. Updated Ukrainian translation.
  5666. Thanks to all translators.
  5667. * po/sr.po
  5668. * po/uk.po
  5669. * po/LINGUAS
  5670. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Bump up version number to 0.16.2
  5672. * configure.ac
  5673. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Added length equality test to operator== to drop a piece message
  5675. whose length does not match to the requested one.
  5676. * src/RequestSlot.cc
  5677. * test/DefaultBtMessageDispatcherTest.cc
  5678. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5680. recieved.
  5681. In this fix, if a request larger than 16KiB length is received, aria2
  5682. disconnects the peer.
  5683. * src/BtConstants.h
  5684. * src/PeerMessageUtil.cc
  5685. * src/PeerMessageUtil.h
  5686. * test/BtRequestMessageTest.cc
  5687. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. * Release 0.16.1
  5689. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5691. * doc/aria2c.1.txt
  5692. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5694. Updated French, Simplified Chinese and Japanese translations.
  5695. Thanks to all translators.
  5696. en@quot and en@boldquot are also added.
  5697. * po/LINGUAS
  5698. * po/fr.po
  5699. * po/ja.po
  5700. * po/uk.po
  5701. * po/vi.po
  5702. * po/zh_CN.po
  5703. * po/zh_TW.po
  5704. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Bump up version number to 0.16.1.
  5706. * configure.ac
  5707. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Updated README.
  5709. * README
  5710. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5712. not to replace '--' with em dash character.
  5713. * doc/aria2c.1.txt
  5714. * doc/makeman
  5715. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5717. every SEC seconds.
  5718. * src/DownloadEngineFactory.cc
  5719. * src/OptionHandlerFactory.cc
  5720. * src/option_processing.cc
  5721. * src/usage_text.h
  5722. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Fixed compile warning on linux-amd64
  5724. * src/FtpConnection.cc
  5725. * src/IteratableChunkChecksumValidator.cc
  5726. * src/MultiDiskAdaptor.cc
  5727. Fixed the bug that unit test fails on linux-amd64
  5728. * test/UtilTest.cc
  5729. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Added --dht-file-path option to change the path to dht.dat, which is a
  5731. serialized DHT routing table.
  5732. * src/OptionHandlerFactory.cc
  5733. * src/option_processing.cc
  5734. * src/usage_text.h
  5735. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Fixed possible underflow.
  5737. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5738. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5739. Fixed the bug that last character in URI is not encoded.
  5740. * src/Request.cc
  5741. * test/RequestTest.cc
  5742. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Fixed the bug that referer header field contains fragment.
  5744. Now Request class removes fragment part of URI and encodes it
  5745. in Request::setUri() and setReferer().
  5746. * src/Request.h
  5747. * src/Request.cc
  5748. * test/RequestTest.cc
  5749. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Added missing m4 macros.
  5751. * m4/cppunit.m4
  5752. * m4/libgcrypt.m4
  5753. * m4/libgnutls-extra.m4
  5754. * m4/libgnutls.m4
  5755. * m4/libxml2.m4
  5756. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Fixed compile error with gcc-4.4(snapshot)
  5758. * src/File.cc
  5759. * src/FtpConnection.cc
  5760. * src/OptionHandlerImpl.h
  5761. * src/Util.cc
  5762. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Removed assert()
  5764. * src/SocketBuffer.cc (SocketBuffer::send)
  5765. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Changed the type of _numNewConnection to unsigned int.
  5767. * src/ActivePeerConnectionCommand.cc
  5768. * src/ActivePeerConnectionCommand.h
  5769. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. * Release 0.16.0
  5771. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Updated doc
  5773. * README
  5774. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5776. translations. Thanks to all translators.
  5777. * po/bg.po
  5778. * po/de.po
  5779. * po/fr.po
  5780. * po/ja.po
  5781. * po/zh_CN.po
  5782. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Bump up version number to 0.16.0.
  5784. * configure.ac
  5785. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5787. int32_t.
  5788. Changed the type of count to int32_t.
  5789. * src/Metalink2RequestGroup.cc
  5790. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Added test for Time::elapsed(time_t).
  5792. * test/TimeTest.cc
  5793. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5795. Util::difftv() should be used instead.
  5796. * src/TimeA2.cc
  5797. * src/TimeA2.h
  5798. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Made socket for dht connections non-blocking
  5800. * src/DHTAbstractMessage.cc
  5801. * src/DHTAbstractMessage.h
  5802. * src/DHTConnection.h
  5803. * src/DHTConnectionImpl.cc
  5804. * src/DHTConnectionImpl.h
  5805. * src/DHTMessage.h
  5806. * src/DHTMessageDispatcherImpl.cc
  5807. * src/DHTMessageDispatcherImpl.h
  5808. * src/DHTUnknownMessage.cc
  5809. * src/DHTUnknownMessage.h
  5810. * src/SocketCore.cc
  5811. * src/SocketCore.h
  5812. * test/MockDHTMessage.h
  5813. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Changed the type of offset to int.
  5815. * src/ParameterizedStringParser.cc
  5816. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Made getAsInt() return int32_t
  5818. * src/Option.h
  5819. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5821. build.
  5822. * configure.ac
  5823. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Use sqlite3_open if sqlite3_open_v2 is not available.
  5825. * src/Sqlite3MozCookieParser.cc
  5826. * src/Sqlite3MozCookieParser.h
  5827. * m4/sqlite3.m4
  5828. * test/Sqlite3MozCookieParserTest.cc
  5829. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5831. * src/BtPieceMessage.cc
  5832. * src/DHTPeerAnnounceStorage.cc
  5833. * src/DefaultPieceStorage.cc
  5834. * src/DownloadCommand.cc
  5835. * src/DownloadEngine.cc
  5836. * src/FtpConnection.cc
  5837. * src/PeerConnection.cc
  5838. * src/PeerMessageUtil.cc
  5839. * src/RequestGroup.cc
  5840. * src/RequestGroupMan.cc
  5841. * src/SimpleBtMessage.cc
  5842. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5844. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5845. * src/AbstractDiskWriter.cc
  5846. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Don't set Request::supportsPersistentConnection() in HttpConnection
  5848. since this code is also used in AbstractProxyResponseCommand.
  5849. Moved those code to HttpResponse.
  5850. * src/HttpResponse.cc
  5851. * src/HttpResponse.h
  5852. * src/HttpConnection.cc
  5853. * src/HttpConnection.h
  5854. * src/HttpResponseCommand.cc
  5855. * test/HttpResponseTest.cc
  5856. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5858. The configuration is minimum: no torrent, no metalink, so there may be
  5859. other compile error on their code.
  5860. * src/a2netcompat.h
  5861. * src/File.cc
  5862. * src/File.h
  5863. * src/SocketCore.cc
  5864. * src/SocketCore.h
  5865. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Made a socket of incoming peer non-blocking.
  5867. * src/PeerListenCommand.cc
  5868. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5870. whole message data is not sent in one send() call.
  5871. * src/BtPieceMessage.cc
  5872. * src/BtPieceMessage.h
  5873. * src/PeerConnection.cc
  5874. * src/PeerConnection.h
  5875. * src/SimpleBtMessage.cc
  5876. * src/SimpleBtMessage.h
  5877. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Fixed the bug that aria2 downloads faster than max-download-limit when
  5879. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5880. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5881. , instead of sum of them.
  5882. * src/ActivePeerConnectionCommand.cc
  5883. * src/DefaultBtInteractive.cc
  5884. * src/DownloadCommand.cc
  5885. * src/PeerInteractionCommand.cc
  5886. * src/PeerReceiveHandshakeCommand.cc
  5887. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Fixed the bug that HTTPS download fails.
  5889. * src/AbstractCommand.cc
  5890. * src/AbstractCommand.h
  5891. * src/DownloadCommand.cc
  5892. * src/FtpConnection.cc
  5893. * src/HttpConnection.cc
  5894. * src/HttpRequestCommand.cc
  5895. * src/HttpResponseCommand.cc
  5896. * src/HttpSkipResponseCommand.cc
  5897. * src/MSEHandshake.cc
  5898. * src/PeerConnection.cc
  5899. * src/SocketCore.cc
  5900. * src/SocketCore.h
  5901. Fixed the bug that aria2 doesn't download whole content body and cannot
  5902. reuse connection if chunked transfer encoding and gzip content encoding
  5903. are set.
  5904. * src/DownloadCommand.cc
  5905. * src/HttpSkipResponseCommand.cc
  5906. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Updated man page.
  5908. * doc/aria2c.1.txt
  5909. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. When error occurred while aria2 was parsing an .aria2.conf file, print
  5911. the usage of the option that caused error.
  5912. * src/option_processing.cc
  5913. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Fixed compile error on OptionHandlerException
  5915. * src/Makefile.am
  5916. * src/OptionHandlerException.cc
  5917. * src/OptionHandlerException.h
  5918. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Moved message of the error to OptionHandlerException.h
  5920. * src/NameMatchOptionHandler.h
  5921. * src/OptionHandlerException.h
  5922. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. When error occurs while aria2 is parsing an command-line option, print
  5924. the usage of the option.
  5925. * src/Makefile.am
  5926. * src/NameMatchOptionHandler.h
  5927. * src/OptionHandlerException.h
  5928. * src/option_processing.cc
  5929. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Reverted previous change.
  5931. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5932. username is not in URI.
  5933. * src/HttpRequest.cc
  5934. * src/Request.cc
  5935. * test/HttpRequestTest.cc
  5936. * test/RequestTest.cc
  5937. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Now colon is required for username and password in FTP URL, like:
  5939. ftp://username:password@host.
  5940. If colon is not there, aria2 don't parse it as a username. For example,
  5941. aria2 don't retrieve username from ftp://username@host.
  5942. This fix was made in order to login FTP server via non-transparent ftp
  5943. proxy.
  5944. * src/Request.cc
  5945. * test/RequestTest.cc
  5946. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Use netrc for HTTP.
  5948. Now FTP user/password is sent in Authorization header when
  5949. --ftp-via-http-proxy=get is given.
  5950. * src/AuthConfigFactory.cc
  5951. * src/HttpRequest.cc
  5952. * src/HttpRequest.h
  5953. * src/NetrcAuthResolver.cc
  5954. * src/NetrcAuthResolver.h
  5955. * src/OptionHandlerFactory.cc
  5956. * src/option_processing.cc
  5957. * src/prefs.cc
  5958. * src/prefs.h
  5959. * test/AuthConfigFactoryTest.cc
  5960. * test/HttpRequestTest.cc
  5961. * test/NetrcAuthResolverTest.cc
  5962. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Issue PWD command first and get working directory and use it as a prefix
  5964. for CWD command.
  5965. * src/DownloadEngine.cc
  5966. * src/DownloadEngine.h
  5967. * src/FtpConnection.cc
  5968. * src/FtpConnection.h
  5969. * src/FtpFinishDownloadCommand.cc
  5970. * src/FtpInitiateConnectionCommand.cc
  5971. * src/FtpNegotiationCommand.cc
  5972. * src/FtpNegotiationCommand.h
  5973. * test/FtpConnectionTest.cc
  5974. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Removed default user/pass for FTP user/pass, since it should not have
  5976. precedence over netrc configuration by default.
  5977. * src/OptionHandlerFactory.cc
  5978. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Added debug log for socket event.
  5980. * src/AbstractCommand.cc
  5981. * src/PeerAbstractCommand.cc
  5982. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5983. Log microseconds.
  5984. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5985. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Replaced HelpItem.cc with OptionHandler.cc.
  5987. * po/POTFILES.in
  5988. Updated po files with 'make update-po'
  5989. * po/aria2c.pot
  5990. * po/*.po
  5991. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Removed possible values from the text.
  5993. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5994. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Removed unused preferences:
  5996. PREF_NO_PREALLOCATION
  5997. PREF_STDOUT_LOG
  5998. PREF_TRACKER_MAX_TRIES
  5999. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6000. PREF_MIN_SEGMENT_SIZE
  6001. * src/option_processing.cc
  6002. * src/prefs.cc
  6003. * src/prefs.h
  6004. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Integrated HelpItem into OptionParser to ease the workload for adding
  6006. new options. Removed default value from usage text.
  6007. * src/HelpItem.cc: Removed.
  6008. * src/HelpItem.h: Removed.
  6009. * src/HelpItemFactory.cc: Removed.
  6010. * src/HelpItemFactory.h: Removed.
  6011. * src/Makefile.am
  6012. * src/Makefile.in
  6013. * src/NameMatchOptionHandler.h
  6014. * src/OptionHandler.cc
  6015. * src/OptionHandler.h
  6016. * src/OptionHandlerFactory.cc
  6017. * src/OptionHandlerImpl.h
  6018. * src/OptionParser.cc
  6019. * src/OptionParser.h
  6020. * src/TagContainer.cc: Removed.
  6021. * src/TagContainer.h: Removed.
  6022. * src/TaggedItem.cc: Removed.
  6023. * src/TaggedItem.h: Removed.
  6024. * src/main.cc
  6025. * src/option_processing.cc
  6026. * src/usage_text.h
  6027. * src/version_usage.cc
  6028. * test/HelpItemTest.cc: Removed.
  6029. * test/Makefile.am
  6030. * test/Makefile.in
  6031. * test/OptionHandlerTest.cc
  6032. * test/OptionParserTest.cc
  6033. * test/TagContainerTest.cc: Removed.
  6034. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Moved `TransferStat stat = ...' to inside the `if' clause.
  6036. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6037. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Fixed the bug that a block in a piece is requested when same block is
  6039. already requested to the same peer in end game mode.
  6040. * src/BtRequestFactory.h
  6041. * src/DefaultBtInteractive.cc
  6042. * src/DefaultBtRequestFactory.cc
  6043. * src/DefaultBtRequestFactory.h
  6044. * src/DefaultPieceStorage.cc
  6045. * src/DefaultPieceStorage.h
  6046. * src/PieceStorage.h
  6047. * src/UnknownLengthPieceStorage.cc
  6048. * src/UnknownLengthPieceStorage.h
  6049. * test/DefaultBtRequestFactoryTest.cc
  6050. * test/DefaultPieceStorageTest.cc
  6051. * test/MockBtRequestFactory.h
  6052. * test/MockPieceStorage.h
  6053. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Removed _uploadLength and _downloadLength from PeerSessionResource
  6055. and use PeerStat::_sessionUploadLength and
  6056. PeerStat::_sessionDownloadLength.
  6057. * src/PeerSessionResource.cc
  6058. * src/PeerSessionResource.h
  6059. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Fixed the bug that prefixLength of split bucket which doesn't include
  6061. local node ID is incremented.
  6062. * src/DHTBucket.cc
  6063. * src/DHTBucket.h
  6064. * test/DHTBucketTest.cc
  6065. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Added cookies.sqlite to EXTRA_DIST
  6067. * test/Makefile.am
  6068. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Added Turkish translation. Updated French, German, Russian and
  6070. Simplified Chinese translations. Thanks to all translators.
  6071. * po/LINGUAS
  6072. * po/de.po
  6073. * po/fr.po
  6074. * po/ru.po
  6075. * po/tr.po
  6076. * po/zh_CN.po
  6077. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Added deliminating text to the beginning of the log so that one can find
  6079. where the log starts easily.
  6080. * src/main.cc
  6081. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6083. to fix compile error when async DNS is not enabled by configuration.
  6084. * src/AbstractCommand.cc
  6085. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. If establishing conneciton to a server is failed, then mark error on
  6087. its ServerStat.
  6088. Added the cause of error to log when error event occurred.
  6089. Moved message string to message.h for translation.
  6090. * src/AbstractCommand.cc
  6091. * src/AbstractCommand.h
  6092. * src/FtpNegotiationCommand.cc
  6093. * src/HttpRequestCommand.cc
  6094. * src/PeerAbstractCommand.cc
  6095. * src/message.h
  6096. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Added the function to get error message from socket.
  6098. * src/SocketCore.cc
  6099. * src/SocketCore.h
  6100. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6102. * src/RequestGroupMan.cc
  6103. * src/RequestGroupMan.h
  6104. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. If error event is received in epoll, then abort download immediately.
  6106. * src/AbstractCommand.cc
  6107. * src/Command.cc
  6108. * src/Command.h
  6109. * src/DownloadEngine.cc
  6110. * src/PeerAbstractCommand.cc
  6111. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added usage message for --uri-selector, --server-stat-of,
  6113. --server-stat-in, --server-stat-timeout options.
  6114. * src/HelpItemFactory.cc
  6115. * src/usage_text.h
  6116. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Added upper limit of FTP response buffer. The current implementation
  6118. uses 4096bytes as a limit.
  6119. * src/FtpConnection.cc
  6120. * src/FtpConnection.h
  6121. * test/FtpConnectionTest.cc
  6122. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Use non-blocking socket for TCP communication to avoid possible
  6124. blocking due to buffer full.
  6125. * src/AbstractProxyRequestCommand.cc
  6126. * src/FtpConnection.cc
  6127. * src/FtpConnection.h
  6128. * src/FtpNegotiationCommand.cc
  6129. * src/FtpNegotiationCommand.h
  6130. * src/HttpConnection.cc
  6131. * src/HttpConnection.h
  6132. * src/HttpRequestCommand.cc
  6133. * src/InitiatorMSEHandshakeCommand.cc
  6134. * src/InitiatorMSEHandshakeCommand.h
  6135. * src/MSEHandshake.cc
  6136. * src/MSEHandshake.h
  6137. * src/Makefile.am
  6138. * src/PeerConnection.cc
  6139. * src/PeerConnection.h
  6140. * src/PeerInteractionCommand.cc
  6141. * src/PeerListenCommand.cc
  6142. * src/ReceiverMSEHandshakeCommand.cc
  6143. * src/ReceiverMSEHandshakeCommand.h
  6144. * src/SocketBuffer.cc
  6145. * src/SocketBuffer.h
  6146. * src/SocketCore.cc
  6147. * src/SocketCore.h
  6148. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Call setStatusRealtime() in constructor.
  6150. * src/RealtimeCommand.cc
  6151. * src/RealtimeCommand.h
  6152. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Call Download::setNoWait(true) to execute newly created command without
  6154. a pause.
  6155. * src/AbstractCommand.cc
  6156. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6158. found' error from HTTP/FTP server NUM times without getting single
  6159. bytes of data, then force the download to fail.
  6160. Basically aria2 tris all URIs available. So if long list of URIs are
  6161. specified in Metalink, then aria2 will take a long time to fail
  6162. eventually if all URIs are outdated. This option eases this situation
  6163. to limit the number of servers to try.
  6164. * src/FtpNegotiationCommand.cc
  6165. * src/HelpItemFactory.cc
  6166. * src/HttpResponseCommand.cc
  6167. * src/OptionHandlerFactory.cc
  6168. * src/PeerStat.h
  6169. * src/RequestGroup.cc
  6170. * src/RequestGroup.h
  6171. * src/SegmentMan.cc
  6172. * src/SegmentMan.h
  6173. * src/option_processing.cc
  6174. * src/prefs.cc
  6175. * src/prefs.h
  6176. * src/usage_text.h
  6177. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6179. response even if more than one response is in it.
  6180. * src/FtpConnection.cc
  6181. * src/FtpConnection.h
  6182. * test/FtpConnectionTest.cc
  6183. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Merged from stable-0.15
  6185. * m4/libcares.m4
  6186. Use pkg-config
  6187. * m4/sqlite3.m4
  6188. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Removed unnecessary if statement.
  6190. * src/DefaultPieceStorage.cc (initPieceStorage)
  6191. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Added --connect-timeout option to specify connect timeout in seconds.
  6193. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6194. connecting to BitTorrent peer is not controlled by this option.
  6195. * src/AbstractProxyRequestCommand.cc
  6196. * src/FtpNegotiationCommand.cc
  6197. * src/HelpItemFactory.cc
  6198. * src/HttpRequestCommand.cc
  6199. * src/OptionHandlerFactory.cc
  6200. * src/option_processing.cc
  6201. * src/prefs.cc
  6202. * src/prefs.h
  6203. * src/usage_text.h
  6204. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Added help message for -R option.
  6206. * src/HelpItemFactory.cc
  6207. * src/usage_text.h
  6208. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Added the message that the time is in local time zone.
  6210. * src/RequestGroup.cc
  6211. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Implemented the ability to get timestamp from remote FTP server using
  6213. MDTM command described in RFC3659.
  6214. * src/FtpConnection.cc
  6215. * src/FtpConnection.h
  6216. * src/FtpNegotiationCommand.cc
  6217. * src/FtpNegotiationCommand.h
  6218. * test/FtpConnectionTest.cc
  6219. * test/Makefile.am
  6220. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Implemented the ability to get timestamp from remote HTTP server and
  6222. apply it to local file. To enable this feature, --remote-time option
  6223. is added. No usage text has been written yet.
  6224. If several servers returns difference timestamp, then aria2 uses latest
  6225. one.
  6226. * src/CopyDiskAdaptor.cc
  6227. * src/CopyDiskAdaptor.h
  6228. * src/DirectDiskAdaptor.cc
  6229. * src/DirectDiskAdaptor.h
  6230. * src/DiskAdaptor.h
  6231. * src/File.cc
  6232. * src/File.h
  6233. * src/HttpHeader.cc
  6234. * src/HttpHeader.h
  6235. * src/HttpResponse.cc
  6236. * src/HttpResponse.h
  6237. * src/HttpResponseCommand.cc
  6238. * src/HttpResponseCommand.h
  6239. * src/MultiDiskAdaptor.cc
  6240. * src/MultiDiskAdaptor.h
  6241. * src/OptionHandlerFactory.cc
  6242. * src/RequestGroup.cc
  6243. * src/RequestGroup.h
  6244. * src/RequestGroupMan.cc
  6245. * src/option_processing.cc
  6246. * src/prefs.cc
  6247. * src/prefs.h
  6248. * test/CopyDiskAdaptorTest.cc
  6249. * test/FileTest.cc
  6250. * test/Makefile.am
  6251. * test/Makefile.in
  6252. * test/MultiDiskAdaptorTest.cc
  6253. * test/TestUtil.cc
  6254. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Fixed the bug that DiskWriterEntry is not created when its
  6256. FileEntry.isRequested() is false and it doesn't share a piece with
  6257. other FileEntries that are requested. This bug causes segmentation fault
  6258. in the end.
  6259. * src/MultiDiskAdaptor.cc
  6260. * src/MultiDiskAdaptor.h
  6261. * src/MultiFileAllocationIterator.cc
  6262. * test/MultiDiskAdaptorTest.cc
  6263. * test/MultiFileAllocationIteratorTest.cc
  6264. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6266. called if the number of file entries are greater than max open files.
  6267. * src/AbstractSingleDiskAdaptor.cc
  6268. * src/AbstractSingleDiskAdaptor.h
  6269. * src/DiskAdaptor.h
  6270. * src/MultiDiskAdaptor.cc
  6271. * src/MultiDiskAdaptor.h
  6272. * test/MultiDiskAdaptorTest.cc
  6273. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Added a constuctor that receives struct timeval.
  6275. Added operator<.
  6276. * src/TimeA2.cc
  6277. * src/TimeA2.h
  6278. * test/TimeTest.cc
  6279. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6281. * src/CookieParser.cc
  6282. * test/CookieParserTest.cc
  6283. * test/HttpResponseTest.cc
  6284. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Implmented the functions to parse date.
  6286. * src/TimeA2.cc
  6287. * src/TimeA2.h
  6288. * test/TimeTest.cc
  6289. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Added "Firefox3 Cookie" feature to FeatureConfig
  6291. * src/FeatureConfig.cc
  6292. * src/FeatureConfig.h
  6293. * test/FeatureConfigTest.cc
  6294. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Bump up version number to 0.16.0b
  6296. * configure.ac
  6297. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Use pkg-config if is is available.
  6299. * m4/openssl.m4
  6300. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6302. * src/BtAnnounce.h
  6303. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. If an error occurred with a URI, remove identical URI from remaining
  6305. URI list because it is likely that same error occurred in the end and it
  6306. is waste of time.
  6307. * src/AbstractCommand.cc
  6308. * src/RequestGroup.cc
  6309. * src/RequestGroup.h
  6310. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Removed wrong comment.
  6312. * src/DefaultPeerStorage.cc
  6313. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6315. Added return value of getpid() to argument of srand() to achieve more
  6316. randomized value.
  6317. * src/SimpleRandomizer.cc
  6318. * src/SimpleRandomizer.h
  6319. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Contact tracker frequently when the number of connections are 0 and
  6321. download is not finished yet.
  6322. * src/ActivePeerConnectionCommand.cc
  6323. * src/BtAnnounce.h
  6324. * src/DefaultBtAnnounce.cc
  6325. * src/DefaultBtAnnounce.h
  6326. * test/MockBtAnnounce.h
  6327. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Moved threshold values to UTPexExtensionMessage.
  6329. * src/DefaultBtInteractive.cc
  6330. * src/Peer.cc
  6331. * src/Peer.h
  6332. * src/UTPexExtensionMessage.cc
  6333. * src/UTPexExtensionMessage.h
  6334. * test/UTPexExtensionMessageTest.cc
  6335. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Added _incoming member to Peer class and made it true if the peer
  6337. initiated connection. Don't add those peer to UTPex message.
  6338. If extended handshake is received, assign _incoming to false.
  6339. * src/DefaultBtInteractive.cc
  6340. * src/HandshakeExtensionMessage.cc
  6341. * src/Peer.cc
  6342. * src/Peer.h
  6343. * src/PeerListenCommand.cc
  6344. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6346. Encoding Decoder. Removed size threshold for turning off on the fly
  6347. inflation because resulting file may or may not be inflated depending
  6348. on the file size and I think it is not expected by users.
  6349. This change fixes segmentation fault when Metalink file contains gzipped
  6350. file and its filesize is provided.
  6351. * src/HttpResponseCommand.cc
  6352. * src/HttpResponseCommand.h
  6353. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Made Cookie immutable.
  6355. * src/Cookie.cc
  6356. * src/Cookie.h
  6357. * src/CookieParser.cc
  6358. * src/CookieParser.h
  6359. * src/CookieStorage.cc
  6360. * test/CookieParserTest.cc
  6361. * test/CookieStorageTest.cc
  6362. * test/NsCookieParserTest.cc
  6363. * test/Sqlite3MozCookieParserTest.cc
  6364. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Removed CookieBox, CookieBoxFactory.
  6366. * src/CookieBox.cc
  6367. * src/CookieBox.h
  6368. * src/CookieBoxFactory.cc
  6369. * src/CookieBoxFactory.h
  6370. * src/Makefile.am
  6371. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Use CookieStorage class instead of CookieBox class.
  6373. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6374. * src/AbstractProxyRequestCommand.cc
  6375. * src/CookieStorage.cc
  6376. * src/DownloadEngine.cc
  6377. * src/DownloadEngine.h
  6378. * src/HttpConnection.cc
  6379. * src/HttpConnection.h
  6380. * src/HttpRequest.cc
  6381. * src/HttpRequest.h
  6382. * src/HttpRequestCommand.cc
  6383. * src/HttpResponse.cc
  6384. * src/HttpResponseCommand.cc
  6385. * src/HttpSkipResponseCommand.cc
  6386. * src/Makefile.am
  6387. * src/MultiUrlRequestInfo.cc
  6388. * src/Request.cc
  6389. * src/Request.h
  6390. * src/main.cc
  6391. * test/AllTest.cc
  6392. * test/CookieStorageTest.cc
  6393. * test/CookieTest.cc
  6394. * test/HttpRequestTest.cc
  6395. * test/HttpResponseTest.cc
  6396. * test/Makefile.am
  6397. * test/NsCookieParserTest.cc
  6398. * test/Sqlite3MozCookieParserTest.cc
  6399. * test/nscookietest.txt
  6400. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Updated
  6402. * test/Cookies.sqlite
  6403. * test/nscookietest.txt
  6404. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Added tests for CookieStorage::load()
  6406. * test/CookieStorageTest.cc
  6407. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Added CookieStorage class which is based on RFC2109 and manages cookies
  6409. more strictly than CookieBox and CookieBoxFactory class.
  6410. * src/CookieStorage.cc
  6411. * src/CookieStorage.h
  6412. * src/Cookie.cc
  6413. * src/Cookie.h
  6414. * test/CookieStorageTest.cc
  6415. * test/CookieTest.cc
  6416. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Fixed the bug that commands are created more than the number of pieces.
  6418. * src/RequestGroup.cc
  6419. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Fixed infinite loop bug in FTP when SIZE command failed.
  6421. * src/FtpNegotiationCommand.cc
  6422. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Removed DirectDiskAdaptorTest.h
  6424. * test/Makefile.am
  6425. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Fixed chunk checksum validation cannot detect trailing garbage data.
  6427. BUG#2074141
  6428. * src/AbstractSingleDiskAdaptor.cc
  6429. * src/AbstractSingleDiskAdaptor.h
  6430. * src/CheckIntegrityEntry.cc
  6431. * src/CheckIntegrityEntry.h
  6432. * src/DiskAdaptor.h
  6433. * src/MultiDiskAdaptor.cc
  6434. * src/MultiDiskAdaptor.h
  6435. * src/RequestGroup.cc
  6436. * test/DirectDiskAdaptorTest.cc
  6437. * test/MultiDiskAdaptorTest.cc
  6438. * test/TestUtil.cc
  6439. * test/TestUtil.h
  6440. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Bump up version number of dht.dat file to 3. In version 3 format, time
  6442. is stored in 64bit, network byte order.
  6443. New build can load old format(version 2) but it saves the file in new
  6444. format. It means once you used new build, your dht.dat becomes
  6445. incompatible with older build.
  6446. * src/DHTRoutingTableDeserializer.cc
  6447. * src/DHTRoutingTableSerializer.cc
  6448. * test/DHTRoutingTableSerializerTest.cc
  6449. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6451. * test/Makefile.am
  6452. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Bump up version number of .aria2 control file to 0001.
  6454. New aria2 can still load version 0000 file but it saves the file in
  6455. version 0001 format. It means that new aria2 can resume download
  6456. started by old aria2 but the opposite is not true.
  6457. * src/DefaultBtProgressInfoFile.cc
  6458. * src/DefaultBtProgressInfoFile.h
  6459. * test/DefaultBtProgressInfoFileTest.cc
  6460. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Added ntoh64 and hton64 as inline functions.
  6462. * src/Util.cc
  6463. * test/UtilTest.cc
  6464. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added sqlite3 depenency and Firefox3 cookie support.
  6466. * README
  6467. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. State that firefox3 cookie is supported explicitly in the usage.
  6469. * src/usage_text.h
  6470. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Externalized message.
  6472. * src/RequestGroupMan.cc
  6473. * src/message.h
  6474. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Save temporary file first and rename to the destination on success.
  6476. Added test cases.
  6477. * src/RequestGroupMan.cc
  6478. * test/RequestGroupManTest.cc
  6479. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Fixed the bug that the number of connected peer is exceeding the limit
  6481. (55 by default) in seeding mode.
  6482. Multiplied 0.8 to _maxUploadSpeedLimit.
  6483. * src/ActivePeerConnectionCommand.cc
  6484. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Clear table item.
  6486. * src/Dictionary.cc
  6487. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Fixed error handling of lseek.
  6489. * src/AbstractDiskWriter.cc
  6490. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6492. style cookie file.
  6493. * src/usage_text.h
  6494. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6496. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6497. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6498. * src/Util.cc
  6499. * src/Util.h
  6500. * src/CookieParser.cc
  6501. * test/UtilTest.cc
  6502. * test/CookieParserTest.cc
  6503. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Separate the implementation to load old mozilla format of cookie to
  6505. NsCookieParser class.
  6506. * src/CookieBoxFactory.cc
  6507. * src/CookieBoxFactory.h
  6508. * src/NsCookieParser.cc
  6509. * src/NsCookieParser.h
  6510. * test/NsCookieParserTest.cc
  6511. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Made parse() const
  6513. * src/Sqlite3MozCookieParser.cc
  6514. * src/Sqlite3MozCookieParser.h
  6515. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Added firefox3 cookie support based on the patch submitted by
  6517. tizianomueller.
  6518. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6519. this functionality.
  6520. * configure.ac
  6521. * m4/sqlite3.m4
  6522. * src/CookieBoxFactory.cc
  6523. * src/CookieBoxFactory.h
  6524. * src/Makefile.am
  6525. * src/Makefile.in
  6526. * src/Sqlite3MozCookieParser.cc
  6527. * src/Sqlite3MozCookieParser.h
  6528. * src/main.cc
  6529. * test/CookieBoxFactoryTest.cc
  6530. * test/Makefile.am
  6531. * test/Makefile.in
  6532. * test/Sqlite3MozCookieParserTest.cc
  6533. * test/badcookies.sqlite
  6534. * test/cookies.sqlite
  6535. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Added Danish and Greek translations.
  6537. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6538. Great thanks to all translators.
  6539. * po/LINGUAS
  6540. * po/el.po
  6541. * po/da.po
  6542. * po/es.po
  6543. * po/ca.po
  6544. * po/nn.po
  6545. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Fixed man page: --follow-bittorrent should be --follow-torrent
  6547. * doc/aria2c.1.txt
  6548. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Fixed: numCommand is less than the value specified in -C option.
  6550. * src/RequestGroup.cc
  6551. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Fixed occasional assertion failure in PieceSegment.
  6553. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6554. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6555. creation of duplicate segments and one of the segment was finished then
  6556. assertion failure was caused.
  6557. * src/SegmentMan.cc
  6558. * test/SegmentManTest.cc
  6559. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Added options to load/save the server's performance/status to a file
  6561. and the timeout to drop their data.
  6562. --server-stat-of=FILE specifies the file to which performance data
  6563. is saved.
  6564. --server-stat-if=FILE specifies the file to read previously saved
  6565. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6566. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6567. TIMEOUT is specified in seconds and the default value is 24hours.
  6568. * src/MultiUrlRequestInfo.cc
  6569. * src/OptionHandlerFactory.cc
  6570. * src/RequestGroupMan.cc
  6571. * src/RequestGroupMan.h
  6572. * src/ServerStatMan.cc
  6573. * src/ServerStatMan.h
  6574. * src/option_processing.cc
  6575. * src/prefs.cc
  6576. * src/prefs.h
  6577. * test/ServerStatManTest.cc
  6578. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6580. * src/ServerStatMan.cc
  6581. * src/ServerStatMan.h
  6582. * test/ServerStatManTest.cc
  6583. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Implemented ServerStatMan::load(...) function and its test case.
  6585. * src/ServerStat.cc
  6586. * src/ServerStat.h
  6587. * src/ServerStatMan.cc
  6588. * test/ServerStatManTest.cc
  6589. * test/ServerStatTest.cc
  6590. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Use time_t instead of int32_t. Use int64_t where milli second is
  6592. expected.
  6593. * src/TimeA2.cc
  6594. * src/TimeA2.h
  6595. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Implemented ServerStatMan::save(...) function and its test case.
  6597. * src/ServerStat.cc
  6598. * src/ServerStat.h
  6599. * src/ServerStatMan.cc
  6600. * src/ServerStatMan.h
  6601. * test/ServerStatManTest.cc
  6602. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Now aria2 uses name attribute in Metalink as local filename in
  6604. BitTorrent downloads. BUG#2033999
  6605. * src/BtContext.h
  6606. * src/BtDependency.cc
  6607. * src/DefaultBtContext.cc
  6608. * src/DefaultBtContext.h
  6609. * src/SingleFileDownloadContext.cc
  6610. * src/SingleFileDownloadContext.h
  6611. * test/BtDependencyTest.cc
  6612. * test/DefaultBtContextTest.cc
  6613. * test/MockBtContext.h
  6614. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Added AC_C_BIGENDIAN
  6616. * src/configure.ac
  6617. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Limited numCommand less than or equal to the number of piece.
  6619. * src/RequestGroup.cc
  6620. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6622. directive.
  6623. * test/DefaultPieceStorageTest.cc
  6624. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Fixed memory leak in test code
  6626. * test/AnnounceListTest.cc
  6627. * test/DefaultPeerListProcessorTest.cc
  6628. * test/DefaultPeerStorageTest.cc
  6629. * test/MetaFileUtilTest.cc
  6630. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6632. * src/DefaultPieceStorage.cc
  6633. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Initialized _directIOAllowed
  6635. * src/MultiDiskAdaptor.cc
  6636. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Fixed memory leak
  6638. * src/GZipDecoder.cc
  6639. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Fixed memory leak
  6641. * src/MetalinkParserStateMachine.cc
  6642. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Fixed memory leak
  6644. * src/Dictionary.cc
  6645. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Fixed memory leak
  6647. * src/IteratableChunkChecksumValidator.h
  6648. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Fixed unmatched malloc/free.
  6650. * src/IteratableChunkChecksumValidator.cc
  6651. * src/IteratableChecksumValidator.cc
  6652. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Removed max chunk size check. This change fixes BUG#2040169
  6654. * src/ChunkedDecoder.cc
  6655. * src/ChunkedDecoder.h
  6656. * test/ChunkedDecoderTest.cc
  6657. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Implemented download speed based URI selection algorithm.
  6659. Introduced new option --uri-selector.
  6660. If --uri-selector=feedback is given, aria2 uses download speed observed
  6661. in the previous downloads and chooses fastest server in the URI list.
  6662. Currently at most 10 URIs are considered to introduce randomeness for
  6663. finding better servers. The speed is average download speed in the
  6664. downloads.
  6665. On the other hand, if --uri-selector=inorder is given, which is default,
  6666. URI is tried in order in URI list.
  6667. The usage text for the new option has not been written yet.
  6668. * src/AbstractCommand.cc
  6669. * src/DownloadCommand.cc
  6670. * src/DownloadEngine.cc
  6671. * src/DownloadEngineFactory.cc
  6672. * src/InOrderURISelector.cc
  6673. * src/InOrderURISelector.h
  6674. * src/OptionHandlerFactory.cc
  6675. * src/PeerStat.h
  6676. * src/RequestGroup.cc
  6677. * src/RequestGroup.h
  6678. * src/RequestGroupMan.cc
  6679. * src/RequestGroupMan.h
  6680. * src/SegmentMan.cc
  6681. * src/SegmentMan.h
  6682. * src/ServerStat.cc
  6683. * src/ServerStat.h
  6684. * src/ServerStatMan.cc
  6685. * src/ServerStatMan.h
  6686. * src/ServerStatURISelector.cc
  6687. * src/ServerStatURISelector.h
  6688. * src/URISelector.h
  6689. * src/option_processing.cc
  6690. * src/prefs.cc
  6691. * src/prefs.h
  6692. * test/InOrderURISelectorTest.cc
  6693. * test/RequestGroupManTest.cc
  6694. * test/ServerStatManTest.cc
  6695. * test/ServerStatURISelectorTest.cc
  6696. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. * Release 0.15.1+2
  6698. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Bump up version number to 0.15.1+2
  6700. * configure.ac
  6701. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6703. * m4/aria2_arg.m4
  6704. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. * Release 0.15.1+1
  6706. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Bump up version number to 0.15.1+1
  6708. * configure.ac
  6709. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Fixed the bug that causes segmentaion fault when resuming download
  6711. using metalink without size tag. Reproducible only using HTTP URI.
  6712. * src/HttpResponseCommand.cc
  6713. * src/FtpNegotiationCommand.cc
  6714. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. * Release 0.15.1
  6716. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Updated Bulgarian and French translations, thanks to all translators.
  6718. * po/bg.po
  6719. * po/fr.po
  6720. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Bump up version number to 0.15.1
  6722. * configure.ac
  6723. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Avoid repeated call of gettimeofday() when calculating speed.
  6725. * src/SpeedCalc.cc
  6726. * src/SpeedCalc.h
  6727. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Removed writable check when socket's send buffer is full in BitTorrent
  6729. downloads to lower CPU usage.
  6730. * src/PeerInteractionCommand.cc
  6731. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Fixed broken gzip inflation.
  6733. Turn off segmented downloading if gzip content is smaller than or equal
  6734. to 1MiB and inflate the data on the fly, because HTTP response header
  6735. doesn't contain the length of inflated file we can't determin where
  6736. the chunk of data should be written.
  6737. On the other hand, if gzip content is larger than 1MB, then turn off
  6738. on the fly inflation, because some servers returns "content-type: gzip"
  6739. for *.tgz, *.gz files.
  6740. * src/DownloadCommand.cc
  6741. * src/HttpResponseCommand.cc
  6742. * src/HttpResponseCommand.h
  6743. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Applied tizianomueller's patch to fix compile error.
  6745. * test/BitfieldManTest.cc
  6746. * test/BtRequestMessageTest.cc
  6747. * test/DefaultBtContextTest.cc
  6748. * test/DefaultDiskWriterTest.cc
  6749. * test/DefaultPieceStorageTest.cc
  6750. * test/HttpHeaderProcessorTest.cc
  6751. * test/HttpResponseTest.cc
  6752. * test/Metalink2RequestGroupTest.cc
  6753. * test/MetalinkParserControllerTest.cc
  6754. * test/MetalinkProcessorTest.cc
  6755. * test/PeerSessionResourceTest.cc
  6756. * test/UtilTest.cc
  6757. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. * Release 0.15.0
  6759. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Reordered src files in POTFILES.in so that usage text appears first.
  6761. * po/POTFILES.in
  6762. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Bump up version number to 0.15.0
  6764. * configure.ac
  6765. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Added Bulgarian translation.
  6767. Updated Catalan, Spanish, French and Japanese translations.
  6768. Thanks to all translators.
  6769. * po/LINGUAS
  6770. * po/bg.po
  6771. * po/ca.po
  6772. * po/es.po
  6773. * po/fr.po
  6774. * po/ja.po
  6775. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Updated feature list. Added libz for dependency section.
  6777. Added a description about unit testing using CppUnit.
  6778. * README
  6779. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Added a test for libz. Quoted where it is necessary.
  6781. * build_test.sh
  6782. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Added GZip to `Enabled Features' list.
  6784. * src/FeatureConfig.cc
  6785. * src/FeatureConfig.h
  6786. * test/FeatureConfigTest.cc
  6787. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6789. the transfer has not yet started.
  6790. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6791. * src/SegmentMan.cc
  6792. * src/SegmentMan.h
  6793. * test/SegmentManTest.cc
  6794. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Cache last calculated average download/upload speed.
  6796. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6797. cached value.
  6798. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6799. * src/PeerStat.h
  6800. * src/SpeedCalc.cc
  6801. * src/SpeedCalc.h
  6802. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Call parseUrl directly.
  6804. * src/Request.cc (resetUrl)
  6805. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Supported absolute/relative path in Location header field.
  6807. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6808. * src/HttpHeader.cc
  6809. * src/HttpHeader.h
  6810. * src/HttpResponse.cc
  6811. * src/HttpSkipResponseCommand.cc
  6812. * src/Request.cc
  6813. * test/HttpHeaderTest.cc
  6814. * test/HttpResponseTest.cc
  6815. * test/RequestTest.cc
  6816. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Changed help text for --load-cookie option.
  6818. * doc/aria2c.1.txt
  6819. * src/usage_text.h
  6820. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Regenerated test/Makefile.in to remove stale ChangeLog.
  6822. * test/Makefile.in
  6823. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Updated po files.
  6825. * po/aria2c.pot
  6826. * po/*.po
  6827. * po/*.gmo
  6828. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Bump up version number to 0.15.0b
  6830. * configure.ac
  6831. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Externalize messages.
  6833. * src/RequestGroupMan.cc
  6834. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6835. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Use File::exists() instead of File::isFile() to allow non-regular file
  6837. such as block special files.
  6838. * src/AbstractDiskWriter.cc
  6839. * src/MultiDiskWriter.cc
  6840. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6842. * src/gai_strerror.h
  6843. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Fixed compile error. Thanks gknauf for the patch.
  6845. * src/asctime_r.c
  6846. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Included asctime_r.h from a2time.h.
  6848. * src/a2time.h
  6849. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Added a message "aria2 doesn't verify signature" to log message when
  6851. signature file is saved.
  6852. * src/RequestGroupMan.cc
  6853. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Added the ability to save signature when download is completed if
  6855. signature is available. The filename of signature file is the path to
  6856. download file followed by ".sig". If it already exists, then signature
  6857. will not be saved.
  6858. * src/RequestGroupMan.cc
  6859. * src/Signature.cc
  6860. * test/SignatureTest.cc
  6861. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Updated the descriptions for --bt-seed-unverified.
  6863. * doc/aria2c.1
  6864. * doc/aria2c.1.html
  6865. * doc/aria2c.1.txt
  6866. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6868. that this is not going to verify files using piece hashes.
  6869. * src/HelpItemFactory.cc
  6870. * src/OptionHandlerFactory.cc
  6871. * src/RequestGroup.cc
  6872. * src/option_processing.cc
  6873. * src/prefs.cc
  6874. * src/prefs.h
  6875. * src/usage_text.h
  6876. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Added the ability to retrieve signature from Metalink file.
  6878. A retrieved signature is stored in Signature class and it is held by
  6879. DownloadContext class. Note that aria2 doesn't verify signature.
  6880. * src/DownloadContext.cc
  6881. * src/DownloadContext.h
  6882. * src/Makefile.am
  6883. * src/Makefile.in
  6884. * src/Metalink2RequestGroup.cc
  6885. * src/MetalinkEntry.cc
  6886. * src/MetalinkEntry.h
  6887. * src/MetalinkParserController.cc
  6888. * src/MetalinkParserController.h
  6889. * src/MetalinkParserStateMachine.cc
  6890. * src/MetalinkParserStateMachine.h
  6891. * src/Signature.cc
  6892. * src/Signature.h
  6893. * src/SignatureMetalinkParserState.cc
  6894. * src/SignatureMetalinkParserState.h
  6895. * src/VerificationMetalinkParserState.cc
  6896. * src/VerificationMetalinkParserState.h
  6897. * test/Metalink2RequestGroupTest.cc
  6898. * test/MetalinkParserControllerTest.cc
  6899. * test/MetalinkProcessorTest.cc
  6900. * test/test.xml
  6901. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Close DiskAdaptor after renaming file.
  6903. * src/RequestGroup.cc
  6904. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Corrected indentation
  6906. * src/DefaultBtProgressInfoFile.cc
  6907. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Moved the calls of std::ios::exceptions() inside of try-catch block
  6909. because if an error occurred in constructor of std::fstream, then
  6910. exception is thrown immediately when std::ios::exceptions() is called
  6911. which results unhandled exception and aria2c aborts.
  6912. * src/DefaultBtProgressInfoFile.cc
  6913. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Added the test for the previous change in DefaultBtContext.cc
  6915. * test/DefaultBtContextTest.cc
  6916. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Fixed the bug that causes infinite loop when the number of pieces are
  6918. fewer than allowed fast set size which is 10 by default.
  6919. * src/DefaultBtContext.cc
  6920. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Updated the descriptions for -j, -s. Added --bt-seed.
  6922. * doc/aria2c.1
  6923. * doc/aria2c.1.html
  6924. * doc/aria2c.1.txt
  6925. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6926. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6927. aria2 seeds previously downloaded files without validating piece hashs.
  6928. * src/HelpItemFactory.cc
  6929. * src/OptionHandlerFactory.cc
  6930. * src/RequestGroup.cc
  6931. * src/option_processing.cc
  6932. * src/prefs.cc
  6933. * src/prefs.h
  6934. * src/usage_text.h
  6935. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Updated DESCRIPTION of man page.
  6937. * doc/aria2c.1
  6938. * doc/aria2c.1.html
  6939. * doc/aria2c.1.txt
  6940. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6942. Don't define `struct addrinfo' when __sun is defined.
  6943. * src/getaddrinfo.h
  6944. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6946. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6947. second argument is of type `struct _stati64'. Otherwise it is defined as
  6948. `struct stat'.
  6949. * src/AbstractDiskWriter.cc
  6950. * src/File.cc
  6951. * src/File.h
  6952. * src/a2io.h
  6953. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Fixed the compile error in hurd-i386
  6955. See the original bug report:
  6956. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6957. * src/a2io.h
  6958. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Code cleanup.
  6960. * src/PeerAbstractCommand.cc
  6961. * src/PeerAbstractCommand.h
  6962. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Removed TransferEncoding.
  6964. * src/DownloadCommand.cc
  6965. * src/DownloadCommand.h
  6966. * src/HttpResponseCommand.cc
  6967. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Updated po files.
  6969. * po/aria2c.pot
  6970. * po/*.po
  6971. * po/*.gmo
  6972. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6974. * src/A2STR.cc
  6975. * src/A2STR.h
  6976. * src/ChunkedDecoder.cc
  6977. * src/ChunkedDecoder.h
  6978. * src/ChunkedEncoding.cc: Removed
  6979. * src/ChunkedEncoding.h: Removed
  6980. * src/DownloadCommand.cc
  6981. * src/DownloadCommand.h
  6982. * src/HttpDownloadCommand.cc
  6983. * src/HttpResponse.cc
  6984. * src/HttpResponse.h
  6985. * src/HttpResponseCommand.cc
  6986. * src/HttpSkipResponseCommand.cc
  6987. * src/HttpSkipResponseCommand.h
  6988. * src/Makefile.am
  6989. * src/TransferEncoding.h: Removed
  6990. * test/ChunkedDecoderTest.cc
  6991. * test/ChunkedEncodingTest.cc: Removed
  6992. * test/HttpResponseTest.cc
  6993. * test/Makefile.am
  6994. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Use append instead of insert.
  6996. * src/GZipDecoder.cc
  6997. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Updated doc
  6999. * src/Decoder.h
  7000. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Updated usage text for -s option.
  7002. * src/usage_text.h
  7003. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7005. * src/Request.cc
  7006. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Cleaned up configure.ac.
  7008. * configure.ac
  7009. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7011. AC_ARG_ENABLE.
  7012. * configure.ac
  7013. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7015. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7016. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7017. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7018. fly and writes decoded data to a local disk.
  7019. * README
  7020. * README.html
  7021. * configure.ac
  7022. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7023. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7024. * m4/libz.m4
  7025. * src/Decoder.h
  7026. * src/DownloadCommand.cc
  7027. * src/DownloadCommand.h
  7028. * src/Exception.h
  7029. * src/GZipDecoder.cc
  7030. * src/GZipDecoder.h
  7031. * src/HttpHeader.cc
  7032. * src/HttpHeader.h
  7033. * src/HttpRequest.cc
  7034. * src/HttpRequest.h
  7035. * src/HttpResponse.cc
  7036. * src/HttpResponse.h
  7037. * src/HttpResponseCommand.cc
  7038. * src/Makefile.am
  7039. * test/GZipDecoderTest.cc
  7040. * test/HttpRequestTest.cc
  7041. * test/HttpResponseTest.cc
  7042. * test/Makefile.am
  7043. * test/Makefile.in
  7044. * test/gzip_decode_test.gz
  7045. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Clarified usage of -j option.
  7047. * src/usage_text.h
  7048. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Disabled getting size from the response of RETR.
  7050. If SIZE command failed, then disable resuming and segmented downloading.
  7051. * src/FtpConnection.cc
  7052. * src/FtpConnection.h
  7053. * src/FtpNegotiationCommand.cc
  7054. * src/FtpNegotiationCommand.h
  7055. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Use digits to find first byte of file size, which makes the intention
  7057. of the code clearer.
  7058. * src/FtpConnection.cc
  7059. Don't call validateTotalLength() when size is 0.
  7060. * src/FtpNegotiationCommand.cc
  7061. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Updated po files.
  7063. * po/aria2c.pot
  7064. * po/*.gmo
  7065. * po/*.po
  7066. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Clarified usage text for --split option.
  7068. * src/usage_text.h
  7069. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Bump up version number to 0.15.0dev. "dev" means "development"
  7071. version, which means I started the development of the next release!
  7072. * src/configure.ac
  7073. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. If FTP server returns negative response with REST raw command and
  7075. requested range is not 0, throw exception. If requested range is 0,
  7076. continue download a file from 0 byte.
  7077. * src/FtpNegotiationCommand.cc
  7078. * src/FtpNegotiationCommand.h
  7079. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Supported FTP server which don't recognize SIZE raw command.
  7081. If SIZE raw command is failed, aria2 will try to get file size
  7082. from the response of RETR raw command. If both attempts are failed,
  7083. then resuming and segmented downloading are disabled.
  7084. * src/FtpConnection.cc
  7085. * src/FtpConnection.h
  7086. * src/FtpNegotiationCommand.cc
  7087. * src/FtpNegotiationCommand.h
  7088. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. * Release 0.14.0+1
  7090. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Bump up version number to 0.14.0+1
  7092. * src/configure.ac
  7093. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Fixed the code that refers static member variable from non-static
  7095. context.
  7096. * src/DefaultPeerStorage.cc
  7097. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. * Release 0.14.0
  7099. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Added build test script
  7101. * build_test.sh
  7102. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. Updated ja.po
  7104. * src/ja.po
  7105. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Bump up version number to 0.14.0
  7107. * src/configure.ac
  7108. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Updated ja.po and fr.po. Great thanks for french translators and
  7110. Sebastien WILLEMIJNS.
  7111. * po/fr.po
  7112. * po/ja.po
  7113. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added configure option to enable/disable epoll support.
  7115. * configure.ac
  7116. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Updated man page.
  7118. * doc/aria2c.1.txt
  7119. * doc/aria2c.1
  7120. * doc/aria2c.1.html
  7121. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Added missing default value '5' to the usage of --split option.
  7123. * src/HelpItemFactory.cc
  7124. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Filled up pieces based on the number of missing blocks, rather than
  7126. simplay the number of piece * block length.
  7127. * src/BtRequestFactory.h
  7128. * src/DefaultBtInteractive.cc
  7129. * src/DefaultBtInteractive.h
  7130. * src/DefaultBtRequestFactory.cc
  7131. * src/DefaultBtRequestFactory.h
  7132. * src/Piece.cc
  7133. * src/Piece.h
  7134. * test/BitfieldManTest.cc
  7135. * test/DefaultBtRequestFactoryTest.cc
  7136. * test/MockBtRequestFactory.h
  7137. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Made _epEvents a member variable.
  7139. * src/DownloadEngine.cc
  7140. * src/DownloadEngine.h
  7141. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Cancel download if http redirect is bounded more than 20 times.
  7143. * src/AbstractCommand.cc
  7144. * src/HttpSkipResponseCommand.cc
  7145. * src/Request.cc
  7146. * src/Request.h
  7147. * test/RequestTest.cc
  7148. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Fixed unhandled exception(removed keyword `new').
  7150. * src/SocketCore.cc (initEPOLL)
  7151. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Removed visit(const MetaEntry*)
  7153. * src/MetaEntryVisitor.h:
  7154. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7155. and made them virtual.
  7156. * src/BencodeVisitor.h
  7157. * src/BencodeVisitor.cc
  7158. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Updated po files.
  7160. * po/aria2c.pot
  7161. * po/*.po
  7162. * po/*.gmo
  7163. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7165. the number of socket to watch out.
  7166. * src/PeerInteractionCommand.cc
  7167. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. When there is not enough space in disk when writing a chunk of data,
  7169. aria2 now prints the message to the console to warn user and aborts
  7170. its download. Not all downloads are canceled because some downloads
  7171. may use another disk or partition. BUG#1640332
  7172. * src/AbstractDiskWriter.cc
  7173. * src/PeerAbstractCommand.cc
  7174. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7175. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7176. setHaltRequested(true) to cancel download.
  7177. * src/PeerInteractionCommand.h
  7178. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7180. socket from int to sock_t as sockets are unsigned in Windows.
  7181. For AsyncNameResolver, DownloadEngine, I did additional modification
  7182. for the portion of the code changed according to epoll support.
  7183. I defined sock_t in a2netcompat.h to use sock_t without including
  7184. SocketCore.h.
  7185. * src/AsyncNameResolver.cc
  7186. * src/AsyncNameResolver.h
  7187. * src/DownloadEngine.cc
  7188. * src/DownloadEngine.h
  7189. * src/SocketCore.cc
  7190. * src/SocketCore.h
  7191. * src/a2netcompat.h
  7192. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7194. changes in the patch were applied.
  7195. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7196. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7197. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7198. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7200. a2io.h and common.h were modified.
  7201. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7202. MinGW.
  7203. * src/common.h: Changed off_t to 64 bit in MinGW.
  7204. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7206. only a2netcompat.h is modified.
  7207. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7208. directives.
  7209. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7211. only gai_strerror.h is modified.
  7212. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7213. winsock errors in MinGW.
  7214. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7216. follow sources are applied.
  7217. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7218. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7219. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7220. I included locale.h from Platform.cc.
  7221. * src/main.cc: Moved common setup/teardown code to Platform class.
  7222. * test/AllTest.cc: Use Platform class.
  7223. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7224. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7226. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7227. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7228. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7230. aria2-0.13.2+1-mingw-2.patch.
  7231. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7232. systems which don't have termious.h. I moved the directive inside of
  7233. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7234. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7235. anyway.
  7236. * src/asctime_r.h
  7237. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7238. I added 2nd argument to the prototype declaration.
  7239. * src/StringFormat.cc: Get rid of vasprintf.
  7240. * src/getaddrinfo.h: Fixed constants.
  7241. * configure.ac: Added the check for asctime_r function.
  7242. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7243. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Added writable test for Socket when the sending message is in progress.
  7245. Usually the sending message is piece message. Without wriable check,
  7246. upload latency is dropped to more than 1sec.
  7247. * src/PeerInteractionCommand.cc
  7248. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Create only requested files and files which shares a piece with
  7250. requested file in multi-torrent downloads. Directory structures are
  7251. also created in the same rule.
  7252. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7253. DiskWriterEntry as in the previous implementation.
  7254. * src/MultiDiskWriter.cc
  7255. * src/MultiFileAllocationIterator.cc
  7256. * src/MultiFileAllocationIterator.h
  7257. * test/MultiFileAllocationIteratorTest.cc
  7258. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Commented out -lprofiler
  7260. * src/Makefile.am
  7261. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Bump up version number to 0.14.0b.
  7263. * src/configure.ac
  7264. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Actively establish connection to peers in seeding, when peer cache
  7266. is not full and max upload speed limit is not reached.
  7267. * src/ActivePeerConnectionCommand.cc
  7268. * src/ActivePeerConnectionCommand.h
  7269. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7271. to make room more fleshy, recently found peers.
  7272. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7273. it.
  7274. * src/DefaultPeerStorage.cc
  7275. * test/DefaultPeerStorageTest.cc
  7276. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Returns cached data only when the previous receiveHandshake() is called
  7278. with peek = true.
  7279. * src/PeerConnection.cc (receiveHandshake)
  7280. * src/PeerConnection.h (receiveHandshake)
  7281. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Changed default value of -s option from 1 to 5.
  7283. Also max value of -s option is changed from 5 to 16.
  7284. * src/HelpItemFactory.cc
  7285. * src/OptionHandlerFactory.cc
  7286. * src/option_processing.cc
  7287. * src/usage_text.h
  7288. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Changed -s options behavior. Now it means the number of connections
  7290. made simultaneously in each http/ftp download.
  7291. If 1 URL is specified, the behavior is the same with old implementation.
  7292. If -s N is given and more than N URLs are specified, first N URLs are
  7293. used and remaining URLs are used for backup. If less than N URLs are
  7294. specified, some of URLs are used more than once so that totally N
  7295. connections are made simultaneously.
  7296. * src/main.cc
  7297. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Included missing iosfwd or ostream header.
  7299. * src/RequestGroupMan.cc
  7300. * src/TaggedItem.cc
  7301. * src/TaggedItem.h
  7302. * src/Util.cc
  7303. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7304. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7305. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7306. * src/HttpConnection.cc: Included missing sstream.
  7307. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Added --bt-max-open-files option.
  7309. * src/DefaultPieceStorage.cc
  7310. * src/HelpItemFactory.cc
  7311. * src/MultiDiskAdaptor.cc
  7312. * src/MultiDiskAdaptor.h
  7313. * src/OptionHandlerFactory.cc
  7314. * src/option_processing.cc
  7315. * src/prefs.cc
  7316. * src/prefs.h
  7317. * src/usage_text.h
  7318. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Fixed the bug that aria2 aborts when a path to a directory is given
  7320. in command-line.
  7321. * src/ProtocolDetector.cc
  7322. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Limited the number files opened in each BitTorrent download. The default
  7324. value is 100. The option to change this value will be added.
  7325. * src/MultiDiskAdaptor.cc
  7326. * src/MultiDiskAdaptor.h
  7327. * src/MultiFileAllocationIterator.cc
  7328. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Fixed the bug that HTTP downloads don't start with old libraries.
  7330. * src/HttpHeaderProcessor.cc
  7331. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Use empty() instead of size() > 0.
  7333. * src/HttpConnection.cc
  7334. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Drop connection if the incoming peer ID is the same with localhost's
  7336. one. The previous implementation drops connection when incoming peer's
  7337. IP address is the same with localhost's one.
  7338. * src/PeerListenCommand.cc
  7339. * src/DefaultBtInteractive.cc
  7340. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Returns cached data without checking whether socket is readable
  7342. if the cache is available.
  7343. * src/PeerConnection.cc (receiveHandshake)
  7344. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Included stdint.h
  7346. * src/common.h
  7347. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Removed duplicate HAVE_GETTIMEOFDAY
  7349. * src/Makefile.am
  7350. * src/Makefile.in
  7351. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Use interval as a minInterval when minInterval is not supplied.
  7353. * src/DefaultBtAnnounce.cc
  7354. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7356. attempt is failed, then 2nd attempt get kicked out more quickly.
  7357. And it is now static const member of DefaultBtAnnounce.
  7358. * src/DefaultBtAnnounce.h
  7359. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7361. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7362. * src/ActivePeerConnectionCommand.cc
  7363. * src/BtConstants.h
  7364. * src/BtRuntime.h
  7365. * src/DHTGetPeersCommand.cc
  7366. * src/DefaultBtAnnounce.cc
  7367. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7368. BtRuntime::MAX_PEERS.
  7369. * src/DefaultPeerStorage.h
  7370. * src/InitiatorMSEHandshakeCommand.cc
  7371. * src/PeerInitiateConnectionCommand.cc
  7372. * src/PeerInteractionCommand.cc
  7373. * src/PeerReceiveHandshakeCommand.cc
  7374. * src/TrackerWatcherCommand.cc
  7375. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Always Connect to _numNewConnection
  7377. * src/ActivePeerConnectionCommand.cc
  7378. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Made `begin' unsigned int.
  7380. * src/GrowSegment.h
  7381. * src/Piece.cc
  7382. * src/Piece.h
  7383. * src/PiecedSegment.cc
  7384. * src/PiecedSegment.h
  7385. * src/Segment.h
  7386. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Calculate piece hash when data is arrived if the data is arrived in
  7388. order. This removes additional read operation for hash calculation.
  7389. If the data is arrived in out of order, the hash is calucated when the
  7390. piece is completed. This is the same behavior as the old implementation.
  7391. * src/BtPieceMessage.cc
  7392. * src/DefaultBtProgressInfoFile.cc
  7393. * src/DefaultPieceStorage.cc
  7394. * src/DownloadCommand.cc
  7395. * src/DownloadCommand.h
  7396. * src/DownloadEngine.cc
  7397. * src/GrowSegment.cc
  7398. * src/GrowSegment.h
  7399. * src/Piece.cc
  7400. * src/Piece.h
  7401. * src/PiecedSegment.cc
  7402. * src/PiecedSegment.h
  7403. * src/Segment.h
  7404. * test/PieceTest.cc
  7405. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Try to keep the ordering of outgoing piece message.
  7407. * src/DefaultBtMessageDispatcher.cc
  7408. (DefaultBtMessageDispatcher::sendMessages)
  7409. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Fixed busy loop when error/hup epoll events occur.
  7411. * src/AbstractCommand.cc
  7412. * src/PeerAbstractCommand.cc
  7413. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Added --bt-request-peer-speed-limit option, which was a constant
  7415. SLOW_SPEED_THRESHOLD.
  7416. * src/ActivePeerConnectionCommand.cc
  7417. * src/ActivePeerConnectionCommand.h
  7418. * src/BtConstants.h
  7419. * src/HelpItemFactory.cc
  7420. * src/OptionHandlerFactory.cc
  7421. * src/PeerReceiveHandshakeCommand.cc
  7422. * src/option_processing.cc
  7423. * src/prefs.cc
  7424. * src/prefs.h
  7425. * src/usage_text.h
  7426. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Removed repeated call of getTopDirPath(). Instead, call it once and
  7428. cache the result.
  7429. * src/MultiDiskAdaptor.cc
  7430. * src/MultiDiskAdaptor.h
  7431. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7432. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Fixed compile error on debian etch.
  7434. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7435. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7436. it is undefined.
  7437. * src/Util.cc (ULLONG_MAX)
  7438. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Added epoll support. Use epoll if it is available. If not, use select.
  7440. When async dns is enabled in compile time, epoll support is enabled
  7441. only when aria2 is built with c-ares. This condition statement is
  7442. defined in a2io.h.
  7443. Currently aria2 supports both c-ares and ares, but ares is maintained
  7444. for quite a while and debian already has c-ares package, ares support
  7445. will be dropped in the future version.
  7446. * configure.ac
  7447. * src/AbstractCommand.cc
  7448. * src/AsyncNameResolver.cc
  7449. * src/AsyncNameResolver.h
  7450. * src/Command.cc
  7451. * src/Command.h
  7452. * src/DownloadEngine.cc
  7453. * src/DownloadEngine.h
  7454. * src/PeerAbstractCommand.cc
  7455. * src/SocketCore.cc
  7456. * src/SocketCore.h
  7457. * src/a2io.h
  7458. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7460. directive.
  7461. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Do not do write operation to /dev/null file.
  7463. * src/LogFactory.cc
  7464. * src/SimpleLogger.cc
  7465. Replaced vasprintf with vsnprintf
  7466. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7467. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. * src/BtRequestMessage.cc
  7469. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7470. for segmentation fault caused by previous commit.
  7471. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Reduced the usage of gettimeofday().
  7473. * src/DefaultBtMessageDispatcher.cc
  7474. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7475. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7476. * src/RequestSlot.cc
  7477. * src/RequestSlot.h
  7478. (RequestSlot::isTimeout)
  7479. Made RequestSlot have a reference to Piece object to avoid find
  7480. Piece repeatedly.
  7481. * src/DefaultBtMessageDispatcher.cc
  7482. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7483. * src/RequestSlot.cc
  7484. * src/RequestSlot.h
  7485. (RequestSlot::getPiece)
  7486. * test/DefaultBtMessageDispatcherTest.cc
  7487. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. * src/TimeA2.cc
  7489. * src/TimeA2.h
  7490. (Time::difference): New function.
  7491. (Time::elapsed): Done optimization.
  7492. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7494. directive.
  7495. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. * src/option_processing.cc: Added missing `defined' keyword to #if
  7497. directive.
  7498. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Bump up version number to 0.13.2+1
  7500. * src/configure.ac
  7501. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Refactored broken outstanding piece handling.
  7503. * src/DefaultPieceStorage.cc
  7504. * src/DefaultPieceStorage.h
  7505. * src/Piece.cc
  7506. * src/Piece.h
  7507. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7509. name collision of static variable and predefined macro.
  7510. * src/BtContext.cc
  7511. * src/BtContext.h
  7512. * src/CookieBoxFactory.cc
  7513. * src/CookieBoxFactory.h
  7514. * src/CookieParser.cc
  7515. * src/CookieParser.h
  7516. * src/DefaultBtContext.cc
  7517. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. * src/RequestGroup.cc
  7519. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7520. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. * Release 0.13.2
  7522. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7524. * po/fr.po
  7525. * po/ja.po
  7526. * po/aria2c.pot
  7527. * po/*.po
  7528. * po/*.gmo
  7529. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Bump up version number to 0.13.2
  7531. * src/configure.ac
  7532. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Refactord.
  7534. * src/RequestGroupMan.cc
  7535. (removeStoppedGroup)
  7536. (fillRequestGroupFromReserver)
  7537. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Fixed compile error on Ubuntu.
  7539. * src/BtPieceMessage.cc
  7540. * src/MessageDigestHelper.cc
  7541. * src/Util.cc
  7542. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Fixed compile error when configured with --disable-bittorrent
  7544. * test/DownloadHandlerFactoryTest.cc
  7545. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Done make update-po
  7547. * po/aria2c.pot
  7548. * po/*.po
  7549. * po/*.gmo
  7550. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Bump up version number to 0.13.2rc.
  7552. * src/configure.ac
  7553. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Made option name bold. Updated SYNOPSIS to make it more readable.
  7555. * doc/aria2c.1.txt
  7556. * doc/aria2c.1
  7557. * doc/aria2c.1.html
  7558. * src/version_usage.cc
  7559. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Refactored. Use std::string instead of size and char*.
  7561. * Data.cc
  7562. * Data.h
  7563. * test/Data.cc
  7564. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Added trimSelf(). Rewritten trim() to use trimSelf().
  7566. * Util.cc
  7567. * Util.h
  7568. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7570. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Fixed compile error when configured with --disable-metalink.
  7572. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7573. * test/FeatureConfigTest.cc
  7574. * test/DownloadHandlerFactoryTest.cc
  7575. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Fixed compile error when configured with --without-gnutls
  7577. --without-openssl
  7578. * src/main.cc
  7579. * test/DefaultBtProgressInfoFileTest.cc
  7580. * test/SegmentManTest.cc
  7581. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Fixed compile error with OpenSSL.
  7583. * src/IteratableChunkChecksumValidator.cc
  7584. * src/LibsslDHKeyExchange.h
  7585. * src/MessageDigestHelper.cc
  7586. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Revert the default value of --max-concurrent-downloads to 5.
  7588. Revert the default value of --metalink-servers to 5.
  7589. Man pages was also updated.
  7590. * src/option_processing.cc
  7591. * doc/aria2c.1.txt
  7592. * doc/aria2c.1.html
  7593. * doc/aria2c.1
  7594. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Returns const reference:
  7596. DownloadContext::getPieceHash, DownloadContext::getName,
  7597. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7598. BtContext::getInfoHashAsString,
  7599. * src/BtContext.h
  7600. * src/DefaultBtContext.cc
  7601. * src/DefaultBtContext.h
  7602. * src/DownloadContext.h
  7603. * src/SingleFileDownloadContext.h
  7604. * test/MockBtContext.h
  7605. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. * src/RequestGroup.h (getDir): Removed.
  7607. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Returns const reference. The internal urlencode function was optimized
  7609. a little bit.
  7610. * src/Request.cc
  7611. * src/Request.h
  7612. * src/HttpRequest.cc
  7613. * src/HttpRequest.h
  7614. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Defined option name and possible values as std::string to reduce
  7616. temporary string object creation in runtime.
  7617. * src/HelpItemFactory.cc
  7618. * src/LogFactory.cc
  7619. * src/Option.cc
  7620. * src/OptionHandlerFactory.cc
  7621. * src/option_processing.cc
  7622. * src/prefs.cc
  7623. * src/prefs.h
  7624. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Return const reference.
  7626. * src/DownloadHandlerConstants.cc
  7627. * src/DownloadHandlerConstants.h
  7628. (getMetalinkExtensions)
  7629. (getMetalinkContentTypes)
  7630. (getBtExtensions)
  7631. (getBtContentTypes)
  7632. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. * src/HttpHeader.cc (get): Rewritten.
  7634. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Make HttpHeader::getFirst(...) return const reference.
  7636. * src/HttpHeader.cc
  7637. * src/HttpHeader.h
  7638. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7640. it with V_TRUE.
  7641. * src/DefaultPieceStorage.cc
  7642. * src/DownloadCommand.cc
  7643. * src/FtpNegotiationCommand.cc
  7644. * src/HttpRequest.cc
  7645. * src/InitiateConnectionCommand.cc
  7646. * src/RequestGroup.cc
  7647. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Made Option::get(...) return const reference of std::string.
  7649. * src/Option.cc
  7650. * src/Option.h
  7651. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Replaced std:copy with insert.
  7653. * src/DefaultBtMessageDispatcher.cc
  7654. * src/DefaultPieceStorage.cc
  7655. * src/DownloadEngineFactory.cc
  7656. * src/RequestGroup.cc
  7657. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Included SocketCore.h to fix compiler warning.
  7659. * src/InitiateConnectionCommand.cc
  7660. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Put piece selection strategy algorithm to RarestPieceSelector class,
  7662. Added a switch to choose whether randomized selection so that unit
  7663. tests emit same results in, possibly, win32.
  7664. * src/DefaultPieceStorage.cc
  7665. * src/DefaultPieceStorage.h
  7666. * src/RarestPieceSelector.cc
  7667. * src/RarestPieceSelector.h
  7668. * test/DefaultPieceStorageTest.cc
  7669. * test/RarestPieceSelectorTest.cc
  7670. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Don't pool connection if HTTP proxy is enabled.
  7672. * src/FtpFinishDownloadCommand.cc
  7673. * src/FtpNegotiationCommand.cc
  7674. * src/HttpSkipResponseCommand.cc
  7675. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7677. * src/AbstractCommand.cc
  7678. * src/AbstractCommand.h
  7679. * src/ActivePeerConnectionCommand.cc
  7680. * src/FtpInitiateConnectionCommand.cc
  7681. * src/HttpInitiateConnectionCommand.cc
  7682. * src/InitiateConnectionCommandFactory.cc
  7683. * src/PeerAbstractCommand.cc
  7684. * src/PeerAbstractCommand.h
  7685. * src/PeerInitiateConnectionCommand.cc
  7686. * src/TrackerWatcherCommand.cc
  7687. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Sort RequestSlot in ascending order and manipulate them using
  7689. lower_bound.
  7690. * src/DefaultBtMessageDispatcher.cc
  7691. * src/DefaultBtMessageDispatcher.h
  7692. (getMessageQueue): Added const qualifier.
  7693. (getRequestSlots): Added const qualifier.
  7694. (sendMessages): Use empty() instead of size().
  7695. (doCancelSendingPieceAction): Use HandleEvent object.
  7696. (doAbortOutstandingRequestAction): Rewritten.
  7697. (doChokedAction): Rewritten.
  7698. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7699. (isOutstandingRequest): Rewritten.
  7700. (getOutstandingRequest): Rewritten.
  7701. (removeOutstandingRequest): Rewritten.
  7702. (addOutstandingRequest): Rewritten.
  7703. * src/RequestSlot.cc
  7704. * src/RequestSlot.h
  7705. (operator=): Rewritten.
  7706. (operator!=): New function.
  7707. (operator<): New function.
  7708. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. * src/DefaultBtRequestFactory.cc
  7710. (doChokedAction): Rewritten.
  7711. (removeCompletedPiece): Rewritten.
  7712. (removeTargetPiece): Rewritten.
  7713. (createRequestMessages): Added the debug log.
  7714. (createRequestMessagesOnEndGame: Added the debug log.
  7715. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Added the debug log message.
  7717. * src/BtPieceMessage.cc (doReceivedAction)
  7718. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7720. used lower_bound to process them rather than linear search.
  7721. * src/DHTPeerAnnounceStorage.cc
  7722. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7724. peer has at least one completed piece.
  7725. * src/Peer.cc
  7726. * src/Peer.h
  7727. * src/PeerInteractionCommand.cc
  7728. * src/PeerSessionResource.cc
  7729. * src/PeerSessionResource.h
  7730. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. Removed unnecessary sorting
  7732. * src/DefaultPieceStorage (DefaultPieceStorage)
  7733. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Rewritten the portion of the code that mangaes allowed fast indexes.
  7735. * src/PeerSessionResource.cc
  7736. * src/PeerSessionResource.h
  7737. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Removed the invalid string including '\r' from ru.po and
  7739. did make update-po.
  7740. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Added --log-level and --summary-interval to man page.
  7742. * doc/aria2c.1.txt
  7743. * doc/aria2c.1.html
  7744. * doc/aria2c.1
  7745. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Added --log-level option to specify log level. Log messages under
  7747. the specified level are not output. Default value is `debug'.
  7748. * src/HelpItemFactory.cc
  7749. * src/LogFactory.cc
  7750. * src/LogFactory.h
  7751. * src/Logger.h
  7752. * src/OptionHandlerFactory.cc
  7753. * src/SimpleLogger.cc
  7754. * src/SimpleLogger.h
  7755. * src/main.cc
  7756. * src/option_processing.cc
  7757. * src/prefs.h
  7758. * src/usage_text.h
  7759. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Print download progress summary of all parallel downloads in specified
  7761. interval, default 60 secs. While aria2 could download several files
  7762. in parallel (see -j option), it displayed just first download progress,
  7763. and the other downloads are hidden from the users. This new feature
  7764. prints all downloads currently in-progress to the console so that you
  7765. can check the status of all downloads. The interval can be adjusted
  7766. by --summary-interval option.
  7767. The progress readout is now cut so that all fits in the one line of
  7768. console.
  7769. * src/ConsoleStatCalc.cc
  7770. * src/ConsoleStatCalc.h
  7771. * src/HelpItemFactory.cc
  7772. * src/OptionHandlerFactory.cc
  7773. * src/RequestGroupMan.cc
  7774. * src/RequestGroupMan.h
  7775. * src/main.cc
  7776. * src/option_processing.cc
  7777. * src/prefs.h
  7778. * src/usage_text.h
  7779. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7781. * src/DownloadEngine.cc (DownloadEngine)
  7782. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7784. defined.
  7785. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7786. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Use erase+lower_bound+insert instead of sort.
  7788. * src/DefaultPieceStorage.cc (addPieceStats)
  7789. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7791. * src/A2STR.cc
  7792. * src/A2STR.h
  7793. * src/OptionParser.cc (parse)
  7794. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Defined fake filename `[tracker.announce]' as static const std::string.
  7796. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7797. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Defined default filename `index.html' as static const std::string
  7799. * src/SingleFileDownloadContext.cc
  7800. * src/SingleFileDownloadContext.h
  7801. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Defined "[MEMORY]" as static const std::string.
  7803. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7804. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Defined control file's version number as static const std::string.
  7806. * src/DefaultBtProgressInfoFile.cc
  7807. * src/DefaultBtProgressInfoFile.h
  7808. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Use Request::METHOD_GET
  7810. * src/RequestGroup.cc (createNextCommandWithAdj)
  7811. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Defined "OK", "ERR", "INPR" as static const std::string
  7813. * src/RequestGroupMan.cc (showDownloadResults)
  7814. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Defined default client used in extended handshake as static const
  7816. std::string
  7817. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7820. * src/HttpConnection.cc (eraseConfidentialInfo)
  7821. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Defined default ftp user and password as static const std::string
  7823. * src/AuthConfigFactory.cc
  7824. * src/AuthConfigFactory.h
  7825. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Defined strings used in netrc as static const std::string
  7827. * src/Netrc.cc
  7828. * src/Netrc.h
  7829. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Defined HTTP status as static const std::string
  7831. * src/AbstractProxyResponseCommand.cc
  7832. * src/HttpHeader.cc
  7833. * src/HttpHeader.h
  7834. * src/HttpResponse.cc
  7835. * src/HttpResponseCommand.cc
  7836. * src/HttpSkipResponseCommand.cc
  7837. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Defined "\r\n", "A", "I" as static const std::string
  7839. * src/A2STR.cc
  7840. * src/A2STR.h
  7841. * src/FtpConnection.cc
  7842. * src/FtpConnection.h
  7843. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Added COLON_C(".") and used it in Request::parseUrl()
  7845. * src/A2STR.cc
  7846. * src/A2STR.h
  7847. * src/Request.cc (parseUrl)
  7848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7849. Changed the type of padName from `const std::string&' to `const char*'.
  7850. * src/MSEHandshake.cc (verifyPadLength)
  7851. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Defined "sha1" as static const std::string.
  7853. * src/MetalinkParserController.cc
  7854. * src/MetalinkParserController.h
  7855. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Defined message digest algorithm name as static const std::string
  7857. * src/DHTTokenTracker.cc
  7858. * src/DHTUtil.cc
  7859. * src/DefaultBtContext.cc
  7860. * src/MSEHandshake.cc
  7861. * src/MessageDigestHelper.cc
  7862. * src/Peer.cc
  7863. * src/messageDigest.cc
  7864. * src/messageDigest.h
  7865. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Made string literals used in SAX parser static const std::string.
  7867. * src/FileMetalinkParserState.cc
  7868. * src/FileMetalinkParserState.h
  7869. * src/FilesMetalinkParserState.cc
  7870. * src/FilesMetalinkParserState.h
  7871. * src/InitialMetalinkParserState.cc
  7872. * src/InitialMetalinkParserState.h
  7873. * src/MetalinkMetalinkParserState.cc
  7874. * src/MetalinkMetalinkParserState.h
  7875. * src/PiecesMetalinkParserState.cc
  7876. * src/PiecesMetalinkParserState.h
  7877. * src/ResourcesMetalinkParserState.cc
  7878. * src/ResourcesMetalinkParserState.h
  7879. * src/VerificationMetalinkParserState.cc
  7880. * src/VerificationMetalinkParserState.h
  7881. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7883. * src/A2STR.cc
  7884. * src/A2STR.h
  7885. * src/File.cc
  7886. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Defined static const std::string IP("ip"), PORT("port") and use them
  7888. instead of string literals.
  7889. * src/DefaultPeerListProcessor.cc
  7890. * src/DefaultPeerListProcessor.h
  7891. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Made string literals for torrent file processing static const
  7893. std::string.
  7894. * src/BtContext.cc
  7895. * src/BtContext.h
  7896. * src/DefaultBtContext.cc
  7897. * src/DefaultBtContext.h
  7898. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Made string literal for tracker response static const std::string
  7900. * src/BtAnnounce.cc
  7901. * src/BtAnnounce.h
  7902. * src/DefaultBtAnnounce.cc
  7903. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Use DHTMessage::T instead of "t".
  7905. * src/DHTMessageTracker.cc (messageArrived)
  7906. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Made keyName static const. Made trimmed charset static const
  7908. std::string.
  7909. * src/Util.cc (getContentDispositionFilename)
  7910. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Made USER_AGENT const. Made "/" static const std::string.
  7912. * src/A2STR.cc
  7913. * src/A2STR.h
  7914. * src/HttpRequest.cc
  7915. * src/HttpRequest.h
  7916. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Made string listeral to static const std::string:
  7918. "Content-Range", "Content-Length"
  7919. * src/HttpHeader.cc
  7920. * src/HttpHeader.h
  7921. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Made string listeral to static const std::string.
  7923. * src/HttpConnection.cc
  7924. * src/HttpHeader.cc
  7925. * src/HttpHeader.h
  7926. * src/HttpResponse.cc
  7927. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Made string listeral to static const std::string.
  7929. * src/A2STR.cc
  7930. * src/A2STR.h
  7931. * src/SimpleLogger.cc
  7932. * src/SimpleLogger.h
  7933. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Made string literal to static const std::string.
  7935. Rewritten CookieParser::setField.
  7936. * src/A2STR.cc
  7937. * src/A2STR.h
  7938. * src/CookieBoxFactory.cc
  7939. * src/CookieBoxFactory.h
  7940. * src/CookieParser.cc
  7941. * src/CookieParser.h
  7942. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Made string literal to static const std::string
  7944. * src/DHTAbstractMessage.cc
  7945. * src/DHTAnnouncePeerMessage.cc
  7946. * src/DHTAnnouncePeerMessage.h
  7947. * src/DHTAnnouncePeerReplyMessage.cc
  7948. * src/DHTAnnouncePeerReplyMessage.h
  7949. * src/DHTFindNodeMessage.cc
  7950. * src/DHTFindNodeMessage.h
  7951. * src/DHTFindNodeReplyMessage.cc
  7952. * src/DHTFindNodeReplyMessage.h
  7953. * src/DHTGetPeersMessage.cc
  7954. * src/DHTGetPeersMessage.h
  7955. * src/DHTGetPeersReplyMessage.cc
  7956. * src/DHTGetPeersReplyMessage.h
  7957. * src/DHTMessage.cc
  7958. * src/DHTMessage.h
  7959. * src/DHTMessageFactoryImpl.cc
  7960. * src/DHTMessageReceiver.cc
  7961. * src/DHTPingMessage.cc
  7962. * src/DHTPingMessage.h
  7963. * src/DHTPingReplyMessage.cc
  7964. * src/DHTPingReplyMessage.h
  7965. * src/DHTQueryMessage.cc
  7966. * src/DHTQueryMessage.h
  7967. * src/DHTResponseMessage.cc
  7968. * src/DHTResponseMessage.h
  7969. * src/DHTUnknownMessage.cc
  7970. * src/DHTUnknownMessage.h
  7971. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Made string literal to static const std::string
  7973. * src/BtChokeMessage.cc (toString)
  7974. * src/BtHaveAllMessage.cc (toString)
  7975. * src/BtHaveNoneMessage.cc (toString)
  7976. * src/BtInterestedMessage.cc (toString)
  7977. * src/BtNotInterestedMessage.cc (toString)
  7978. * src/BtUnchokeMessage.cc (toString)
  7979. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Replaced "" with static const variable A2STR::NIL.
  7981. Replaced string comparison against "" with std::string::empty().
  7982. Added PROTO_* to Request class and use them as a protocol string
  7983. constant.
  7984. Made "started", "stopped", "completed" static const variable in
  7985. AnnounceList class.
  7986. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Updated translations. Great thanks to translators.
  7988. * po/ca.po
  7989. * po/de.po
  7990. * po/fr.po
  7991. * po/it.po
  7992. * po/ja.po
  7993. * po/ru.po
  7994. * po/zh_CN.po
  7995. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Updated man page; categorized options and fixed typo.
  7997. * doc/aria2c.1.txt
  7998. * doc/aria2c.1.html
  7999. * doc/aria2c.1
  8000. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Removed const ref
  8002. * src/MetalinkEntry.cc (AddProtocolPreference)
  8003. * src/RequestGroup.cc (FindServerHostByHostname)
  8004. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Rewritten Accept-Features handling.
  8006. * src/HttpRequestCommand.cc (createHttpRequest)
  8007. * src/a2functional.h
  8008. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Changed method signature:
  8010. DHTAbstractNodeLookupTask::toEntries
  8011. * src/DHTAbstractNodeLookupTask.cc
  8012. * src/DHTAbstractNodeLookupTask.h
  8013. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Changed method signature:
  8015. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8016. * src/BtContext.h
  8017. * src/DefaultBtContext.cc
  8018. * src/DefaultBtContext.h
  8019. * src/DefaultBtInteractive.cc
  8020. * test/DefaultBtContextTest.cc
  8021. * test/MockBtContext.h
  8022. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Changed method signature:
  8024. MultiFileAllocationIterator::makeDiskWriterEntries
  8025. * src/MultiFileAllocationIterator.cc
  8026. * src/MultiFileAllocationIterator.h
  8027. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Changed method sinature:
  8029. MetalinkEntry::toFileEntry,
  8030. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8031. Metalinker::queryEntry
  8032. * src/Metalink2RequestGroup.cc
  8033. * src/MetalinkEntry.cc
  8034. * src/MetalinkEntry.h
  8035. * src/MetalinkHelper.cc
  8036. * src/MetalinkHelper.h
  8037. * src/Metalinker.cc
  8038. * src/Metalinker.h
  8039. * src/main.cc
  8040. * test/MetalinkHelperTest.cc
  8041. * test/MetalinkerTest.cc
  8042. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Changed method sinature:
  8044. RequestGroup::getURIs
  8045. * src/RequestGroup.cc
  8046. * src/RequestGroup.h
  8047. * test/Metalink2RequestGroupTest.cc
  8048. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Changed method signature:
  8050. PeerListProcessor::extractPeer
  8051. * src/CompactPeerListProcessor.cc
  8052. * src/CompactPeerListProcessor.h
  8053. * src/DefaultBtAnnounce.cc
  8054. * src/DefaultPeerListProcessor.cc
  8055. * src/DefaultPeerListProcessor.h
  8056. * src/DelegatingPeerListProcessor.cc
  8057. * src/DelegatingPeerListProcessor.h
  8058. * src/PeerListProcessor.h
  8059. * src/UTPexExtensionMessage.cc
  8060. * test/DefaultPeerListProcessorTest.cc
  8061. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8062. Changed method signature:
  8063. BtRequestFactory::createRequestMessages,
  8064. BtRequestFactory::createRequestMessagesOnEndGame
  8065. * src/BtRequestFactory.h
  8066. * src/DefaultBtInteractive.cc
  8067. * src/DefaultBtRequestFactory.cc
  8068. * src/DefaultBtRequestFactory.h
  8069. * test/DefaultBtRequestFactoryTest.cc
  8070. * test/MockBtRequestFactory.h
  8071. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Changed method signature:
  8073. PieceStorage::getInFlightPieces
  8074. * src/DefaultBtProgressInfoFile.cc
  8075. * src/DefaultPieceStorage.cc
  8076. * src/DefaultPieceStorage.h
  8077. * src/PieceStorage.h
  8078. * src/UnknownLengthPieceStorage.cc
  8079. * src/UnknownLengthPieceStorage.h
  8080. * test/DefaultBtProgressInfoFileTest.cc
  8081. * test/MockPieceStorage.h
  8082. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Changed method signature:
  8084. PostDownloadHandler::getNextRequestGroups
  8085. Metalink2RequestGroup::generate
  8086. RequestGroup::postDownloadProcessing
  8087. * src/BtPostDownloadHandler.cc
  8088. * src/BtPostDownloadHandler.h
  8089. * src/Metalink2RequestGroup.cc
  8090. * src/Metalink2RequestGroup.h
  8091. * src/MetalinkPostDownloadHandler.cc
  8092. * src/MetalinkPostDownloadHandler.h
  8093. * src/PostDownloadHandler.h
  8094. * src/RequestGroup.cc
  8095. * src/RequestGroup.h
  8096. * src/RequestGroupMan.cc
  8097. * src/main.cc
  8098. * test/BtPostDownloadHandlerTest.cc
  8099. * test/Metalink2RequestGroupTest.cc
  8100. * test/MetalinkPostDownloadHandlerTest.cc
  8101. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Rewritten AccRequestGroup
  8103. * src/main.cc
  8104. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Rewritten.
  8106. * src/TaggedItem.cc (toTagString)
  8107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Rewritten Accept-Features handling.
  8109. * src/HttpRequestCommand.cc (createHttpRequest)
  8110. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Rewritten accept types handling.
  8112. * HttpRequest.cc (createRequest)
  8113. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Rewritten
  8115. * src/FeatureConfig.cc (featureSummary)
  8116. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Changed method signature:
  8118. PeerStorage::getActivePeers
  8119. * src/DHTPeerAnnounceEntry.cc
  8120. * src/DefaultPeerStorage.cc
  8121. * src/DefaultPeerStorage.h
  8122. * src/PeerStorage.h
  8123. * test/DefaultPeerStorageTest.cc
  8124. * test/MockPeerStorage.h
  8125. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Changed method signature:
  8127. DHTPeerAnnounceStorage::getPeers,
  8128. DHTPeerAnnounceEntry::getPeers
  8129. * src/DHTGetPeersMessage.cc
  8130. * src/DHTPeerAnnounceEntry.cc
  8131. * src/DHTPeerAnnounceEntry.h
  8132. * src/DHTPeerAnnounceStorage.cc
  8133. * src/DHTPeerAnnounceStorage.h
  8134. * test/DHTAnnouncePeerMessageTest.cc
  8135. * test/DHTPeerAnnounceEntryTest.cc
  8136. * test/DHTPeerAnnounceStorageTest.cc
  8137. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Changed method signature:
  8139. NameResolver::resolve
  8140. * src/DHTEntryPointNameResolveCommand.cc
  8141. * src/InitiateConnectionCommand.cc
  8142. * src/NameResolver.cc
  8143. * src/NameResolver.h
  8144. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Changed method signature:
  8146. PieceStorage::getAdvertisedPieceIndexes
  8147. * src/DefaultBtInteractive.cc
  8148. * src/DefaultPieceStorage.cc
  8149. * src/DefaultPieceStorage.h
  8150. * src/PieceStorage.h
  8151. * src/UnknownLengthPieceStorage.h
  8152. * test/MockPieceStorage.h
  8153. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Changed method signature:
  8155. SegmentMan::getInFlightSegment
  8156. * src/AbstractCommand.cc
  8157. * src/SegmentMan.cc
  8158. * src/SegmentMan.h
  8159. * test/SegmentManTest.cc
  8160. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Changed method signature:
  8162. DHTAbstractNodeLookupTask::getNodesFromMessage
  8163. * src/DHTAbstractNodeLookupTask.cc
  8164. * src/DHTAbstractNodeLookupTask.h
  8165. * src/DHTNodeLookupTask.cc
  8166. * src/DHTNodeLookupTask.h
  8167. * src/DHTPeerLookupTask.cc
  8168. * src/DHTPeerLookupTask.h
  8169. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8171. * src/AbstractCommand.cc
  8172. * src/BtCheckIntegrityEntry.cc
  8173. * src/BtCheckIntegrityEntry.h
  8174. * src/BtFileAllocationEntry.cc
  8175. * src/BtFileAllocationEntry.h
  8176. * src/BtSetup.cc
  8177. * src/BtSetup.h
  8178. * src/CheckIntegrityCommand.cc
  8179. * src/CheckIntegrityEntry.h
  8180. * src/ChecksumCheckIntegrityEntry.cc
  8181. * src/ChecksumCheckIntegrityEntry.h
  8182. * src/DHTSetup.cc
  8183. * src/DHTSetup.h
  8184. * src/DownloadEngine.cc
  8185. * src/FileAllocationCommand.cc
  8186. * src/FileAllocationEntry.h
  8187. * src/RequestGroup.cc
  8188. * src/RequestGroup.h
  8189. * src/RequestGroupMan.cc
  8190. * src/RequestGroupMan.h
  8191. * src/StreamCheckIntegrityEntry.cc
  8192. * src/StreamCheckIntegrityEntry.h
  8193. * src/StreamFileAllocationEntry.cc
  8194. * src/StreamFileAllocationEntry.h
  8195. * src/TrackerWatcherCommand.cc
  8196. * src/a2functional.h
  8197. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Changed method signature:
  8199. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8200. DHTBucket::getGoodNodes,
  8201. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8202. * src/BNode.cc
  8203. * src/BNode.h
  8204. * src/DHTAbstractNodeLookupTask.cc
  8205. * src/DHTAutoSaveCommand.cc
  8206. * src/DHTBucket.cc
  8207. * src/DHTBucket.h
  8208. * src/DHTBucketRefreshTask.cc
  8209. * src/DHTFindNodeMessage.cc
  8210. * src/DHTGetPeersMessage.cc
  8211. * src/DHTRoutingTable.cc
  8212. * src/DHTRoutingTable.h
  8213. * test/BNodeTest.cc
  8214. * test/DHTBucketTest.cc
  8215. * test/DHTRoutingTableTest.cc
  8216. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. In piece selection functions, Pass std::deque<...> by reference rather
  8218. than returning it.
  8219. * src/BitfieldMan.cc
  8220. * src/BitfieldMan.h
  8221. * src/DefaultBtRequestFactory.cc
  8222. * src/DefaultPieceStorage.cc
  8223. * src/Piece.cc
  8224. * src/Piece.h
  8225. * test/BitfieldManTest.cc
  8226. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Implemented rarest piece first piece selection strategy.
  8228. * src/AbstractBtMessage.cc
  8229. * src/AbstractBtMessage.h
  8230. * src/BitfieldMan.cc
  8231. * src/BitfieldMan.h
  8232. * src/BtBitfieldMessage.cc
  8233. * src/BtHaveAllMessage.cc
  8234. * src/BtHaveMessage.cc
  8235. * src/DefaultPieceStorage.cc
  8236. * src/DefaultPieceStorage.h
  8237. * src/PeerInteractionCommand.cc
  8238. * src/PieceStorage.h
  8239. * src/UnknownLengthPieceStorage.h
  8240. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Rewritten readData and writeData.
  8242. * src/MultiDiskAdaptor.cc
  8243. * src/MultiDiskAdaptor.h
  8244. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8245. Move \n out of the message "Usage: ...".
  8246. * src/version_usage.cc
  8247. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Bump up version number to 0.13.2b.
  8249. * configure.ac
  8250. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Added const qualifier to argument Exception& e.
  8252. * src/Logger.h
  8253. * src/SimpleLogger.cc
  8254. * src/SimpleLogger.h
  8255. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Pool connection when CWD, SIZE command fails.
  8257. * src/FtpNegotiationCommand.cc
  8258. * src/FtpNegotiationCommand.h
  8259. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8261. * src/HttpResponseCommand.cc
  8262. * src/HttpSkipResponseCommand.cc
  8263. * src/HttpSkipResponseCommand.h
  8264. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Pool connection when a server returns 4xx, 5xx responses.
  8266. * src/HttpNullDownloadCommand.cc
  8267. * src/HttpNullDownloadCommand.h
  8268. * src/HttpResponse.cc
  8269. * src/HttpResponse.h
  8270. * src/HttpResponseCommand.cc
  8271. * src/HttpResponseCommand.h
  8272. * test/HttpResponseTest.cc
  8273. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Print usage when no URL is specifed or bad command-line option is
  8275. specified.
  8276. * src/HelpItemFactory.cc
  8277. * src/help_tags.h
  8278. * src/option_processing.cc
  8279. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Removed duplicate log message.
  8281. * src/AbstractCommand.cc (asyncResolveHostname)
  8282. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8284. Changed -j option's default value from 5 to 1.
  8285. Added new examples using protocol auto detection feature.
  8286. Removed -T, -M usage where it can be omitted.
  8287. * doc/aria2c.1.txt
  8288. * doc/aria2c.1.html
  8289. * doc/aria2c.1.txt
  8290. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Updated command-line usage text, so that it tells users that they
  8292. can specify any number of torrent files and metalink files in
  8293. command-line.
  8294. * src/version_usage.cc
  8295. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. Changed the default value of -j option to 1.
  8297. * src/HelpItemFactory.cc
  8298. * src/option_processing.cc
  8299. * src/usage_text.h
  8300. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Added the ability to reuse connection in FTP and it is enabled by
  8302. default. It can be disabled by --ftp-reuse-connection=false option.
  8303. * src/Command.cc
  8304. * src/DownloadCommand.cc
  8305. * src/FtpDownloadCommand.cc
  8306. * src/FtpDownloadCommand.h
  8307. * src/FtpFinishDownloadCommand.cc
  8308. * src/FtpFinishDownloadCommand.h
  8309. * src/FtpInitiateConnectionCommand.cc
  8310. * src/FtpNegotiationCommand.cc
  8311. * src/FtpNegotiationCommand.h
  8312. * src/HelpItemFactory.cc
  8313. * src/Makefile.am
  8314. * src/Makefile.in
  8315. * src/OptionHandlerFactory.cc
  8316. * src/option_processing.cc
  8317. * src/prefs.h
  8318. * src/usage_text.h
  8319. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Call Command::transitStatus() before calling Command::execute(),
  8321. so that the status change made in execute() is not cleared.
  8322. * src/DownloadEngine.cc
  8323. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Removed forward declaration of SocketCore class.
  8325. * src/HttpDownloadCommand.h
  8326. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8328. in InitiateConnectionCommandFactory. They should be set only when
  8329. the protocol is HTTP or HTTPS.
  8330. * src/InitiateConnectionCommandFactory.cc
  8331. * src/RequestGroup.cc
  8332. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Fixed infinite loop in checksum checking.
  8334. * src/IteratableChecksumValidator.cc
  8335. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Set _supportsPersistentConnection to true by default.
  8337. * src/Request.cc
  8338. * src/RequestGroup.cc
  8339. * test/HttpRequestTest.cc
  8340. * test/RequestTest.cc
  8341. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Added timeout to socket pool. The default timeout is 15 seconds,
  8343. which is the same value Apache uses.
  8344. * src/DownloadEngine.cc
  8345. * src/DownloadEngine.h
  8346. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Fixed misuse of multimap::find()
  8348. * src/HttpHeader.cc
  8349. * test/HttpHeaderTest.cc
  8350. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8351. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8352. option.
  8353. The asynchronous DNS is not capable of IPv6 yet.
  8354. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8355. least for HTTP download.
  8356. * src/AbstractCommand.cc
  8357. * src/AbstractCommand.h
  8358. * src/AsyncNameResolver.cc
  8359. * src/AsyncNameResolver.h
  8360. * src/DHTEntryPointNameResolveCommand.cc
  8361. * src/DHTEntryPointNameResolveCommand.h
  8362. * src/DownloadEngine.cc
  8363. * src/DownloadEngine.h
  8364. * src/FtpInitiateConnectionCommand.cc
  8365. * src/FtpInitiateConnectionCommand.h
  8366. * src/HelpItemFactory.cc
  8367. * src/HttpInitiateConnectionCommand.cc
  8368. * src/HttpInitiateConnectionCommand.h
  8369. * src/InitiateConnectionCommand.cc
  8370. * src/InitiateConnectionCommand.h
  8371. * src/Makefile.am
  8372. * src/Makefile.in
  8373. * src/NameResolver.cc
  8374. * src/NameResolver.h
  8375. * src/OptionHandlerFactory.cc
  8376. * src/SocketCore.cc
  8377. * src/SocketCore.h
  8378. * src/Util.cc
  8379. * src/Util.h
  8380. * src/option_processing.cc
  8381. * src/prefs.h
  8382. * src/usage_text.h
  8383. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Updated man page: --quiet, --header were added.
  8385. --metalink-servers and --enable-http-keep-alive option were updated.
  8386. * doc/aria2c.1
  8387. * doc/aria2c.1.html
  8388. * doc/aria2c.1.txt
  8389. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Enable HTTP keep-alive by default.
  8391. * src/HelpItemFactory.cc
  8392. * src/option_processing.cc
  8393. * src/usage_text.h
  8394. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Disable http keep-alive if the remote server is not HTTP/1.1.
  8396. * src/HttpConnection.cc
  8397. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Receive content body of 302 response so that the connection can be
  8399. reused later when http keep-alive is enabled.
  8400. * src/HttpNullDownloadCommand.cc
  8401. * src/HttpNullDownloadCommand.h
  8402. * src/HttpResponseCommand.cc
  8403. * src/HttpResponseCommand.h
  8404. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. const SharedHandle<Request> -> const SharedHandle<Request>&
  8406. * src/FtpDowndloadCommand.cc
  8407. * src/FtpDowndloadCommand.h
  8408. * src/HttpDownloadCommand.cc
  8409. * src/HttpDownloadCommand.h
  8410. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Fixed the bug that the control file(.aria2 file) is not renamed
  8412. according to tryAutoFileRenaming().
  8413. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8414. its control file exist, use them and continue download.
  8415. The old implementation didn't take into account of control file's
  8416. existence, so basically you couldn't continue download of renamed file.
  8417. * src/BtProgressInfoFile.h
  8418. * src/DefaultBtProgressInfoFile.cc
  8419. * src/DefaultBtProgressInfoFile.h
  8420. * src/NullProgressInfoFile.h
  8421. * src/RequestGroup.cc
  8422. * test/DefaultBtProgressInfoFileTest.cc
  8423. * test/MockBtProgressInfoFile.h
  8424. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Change the default value of --metalink-servers option from `5' to `1'.
  8426. * src/HelpItemFactory.cc
  8427. * src/option_processing.cc
  8428. * src/usage_text.h
  8429. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Reimplemented transparent metalink using Accept request header.
  8431. * src/HttpRequest.cc
  8432. * src/HttpRequest.h
  8433. * src/HttpRequestCommand.cc
  8434. * src/Metalink2RequestGroup.cc
  8435. * src/RequestGroup.cc
  8436. * src/RequestGroup.h
  8437. * test/HttpRequestTest.cc
  8438. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Bump up version number to 0.13.2a
  8440. * configure.ac
  8441. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Updated configure.ac using the result of autoscan.
  8443. * configure.ac
  8444. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Fixed compilation error without gcrypt/openssl.
  8446. * src/DownloadCommand.cc
  8447. * src/DownloadCommand.h
  8448. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Reorganized version information so that it can be displayed in a
  8450. standard terminal screen without scrolling.
  8451. Removed http, ftp from Configuration section, because they are always
  8452. enabled.
  8453. * src/FeatureConfig.cc
  8454. * src/FeatureConfig.h
  8455. * src/main.cc
  8456. * src/messageDigest.cc
  8457. * src/messageDigest.h
  8458. * src/version_usage.cc
  8459. * test/FeatureConfigTest.cc
  8460. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Masked user ID in log.
  8462. * src/FtpConnection.cc (sendUser)
  8463. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Removed query part from filename in HTTP download. The query part means
  8465. the substring after "?" in URL. Firefox seems do the same thing.
  8466. A query part is sometimes very long and not suitable to filename,
  8467. so I think it is better to remove it from filename.
  8468. * src/HttpRequest.cc
  8469. * src/HttpRequest.h
  8470. * src/Request.cc
  8471. * src/Request.h
  8472. * test/HttpRequestTest.cc
  8473. * test/RequestTest.cc
  8474. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Rewritten Exception class. Throw exception object, not its pointer and
  8476. catch by reference, so that remove problematic delete operator for
  8477. catched exception.
  8478. * src/Exception.cc
  8479. * src/Exception.h
  8480. * test/ExceptionTest.cc
  8481. * src/*: All files throwing/catching exception.
  8482. * test/*: All files throwing/catching exception.
  8483. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Now auto protocol detection is enabled without -Z option.
  8485. But there is a important difference between with/without -Z optoin.
  8486. For example, if you type:
  8487. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8488. then, aria2 interprets there are 3 request groups:
  8489. (1) http://host/file, http://mirror/file <-- multi-source download
  8490. (2) file1.torrent
  8491. (3) file2.metalink
  8492. On the other hand, if you invoke above command with -Z option, it is
  8493. interpreted as 4 request groups:
  8494. (1) http://host/file
  8495. (2) file1.torrent
  8496. (3) file2.metalink
  8497. (4) http://mirror/file
  8498. I think usually user don't mix multi-source URLs and torrent files, so
  8499. there is no big problem here.
  8500. * src/main.cc
  8501. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed the bug that causes segmentaion fault when reading XML containing
  8503. unescapsed character like '&'.
  8504. Also a modification was made which avoids adding unnecessary
  8505. characters stack and appending unused string.
  8506. * src/ExpatMetalinkProcessor.cc
  8507. * src/FileMetalinkParserState.h
  8508. * src/FilesMetalinkParserState.h
  8509. * src/FinMetalinkParserState.h
  8510. * src/HashMetalinkParserState.h
  8511. * src/InitialMetalinkParserState.h
  8512. * src/LanguageMetalinkParserState.h
  8513. * src/MetalinkMetalinkParserState.h
  8514. * src/MetalinkParserState.h
  8515. * src/MetalinkParserStateMachine.cc
  8516. * src/MetalinkParserStateMachine.h
  8517. * src/OSMetalinkParserState.h
  8518. * src/PieceHashMetalinkParserState.h
  8519. * src/PiecesMetalinkParserState.h
  8520. * src/ResourcesMetalinkParserState.h
  8521. * src/SizeMetalinkParserState.h
  8522. * src/SkipTagMetalinkParserState.h
  8523. * src/URLMetalinkParserState.h
  8524. * src/VerificationMetalinkParserState.h
  8525. * src/VersionMetalinkParserState.h
  8526. * src/XML2SAXMetalinkProcessor.cc
  8527. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Added StringFormat class, which internally calls vasprintf.
  8529. operator<< is defined for this class, so it can be used with iostream
  8530. classes nicely. SimpleLogger and following functions are rewritten
  8531. using StringFormat class.
  8532. Besides, now Logger class's methods are non-const, many classes
  8533. that has a const Logger* as a member variable are modified to remove
  8534. const qualifier from the variable declaration.
  8535. * src/HelpItemFactory.cc
  8536. * src/Request.cc
  8537. * src/SimpleLogger.cc
  8538. * src/StringFormat.cc
  8539. * src/StringFormat.h
  8540. * src/Util.cc
  8541. * src/option_processing.cc
  8542. * src/version_usage.cc
  8543. * test/StringFormatTest.cc
  8544. * src/*.h: The classes that has const Logger* as a member variable.
  8545. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8547. failed. Also fixed memory link when exception is thrown there.
  8548. * src/main.cc (AccRequestGroup)
  8549. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Added build-in "Accept-Features" support. For now only "metalink" is
  8551. used in this header field.
  8552. This "metalink" value is removed from the list when connecting URLs
  8553. fed by metalink file to avoid loop in "transparent" metlaink.
  8554. * src/HttpRequest.cc
  8555. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8556. header is also held in this variable. Also renamed setUserHeaders as
  8557. addHeader and it was rewritten to add header not just to clear the old
  8558. value.
  8559. * src/HttpRequestCommand.cc
  8560. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8561. from "Accept-Features" list.
  8562. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8563. default.
  8564. * src/RequestGroup.h
  8565. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8566. * src/a2functional.h: Included <string> because Concat class depends on
  8567. it.
  8568. * test/HttpRequestTest.cc
  8569. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Added comment
  8571. * src/RequestGroup.cc (createNextCommand)
  8572. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Capitalized METHOD_GET and METHOD_HEAD
  8574. * src/Request.cc
  8575. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Added getDownloadResults() method
  8577. * src/RequestGroupMan.cc
  8578. * src/RequestGroupMan.h
  8579. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Fixed the bug that aria2 exits when commands is empty() but
  8581. _routineCommands are not.
  8582. * src/DownloadEngine.cc
  8583. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Use the default value pulled from Option object in HelpItemFactory.
  8585. except options whose defualt value is embedded in a usage text.
  8586. * src/HelpItemFactory.cc
  8587. * src/HelpItemFactory.h
  8588. * src/option_processing.cc
  8589. * src/version_usage.cc
  8590. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Added --quiet option to make aria2 quiet (no console output).
  8592. --quiet option is tagged with ADVANCED.
  8593. * src/HelpItemFactory.cc
  8594. * src/LogFactory.cc
  8595. * src/LogFactory.h
  8596. * src/MultiUrlRequestInfo.cc
  8597. * src/MultiUrlRequestInfo.h
  8598. * src/NullStatCalc.h: New class. This class prints nothing.
  8599. * src/OptionHandlerFactory.cc
  8600. * src/main.cc
  8601. * src/option_processing.cc
  8602. * src/prefs.h
  8603. * src/usage_text.h
  8604. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8606. * src/HelpItemFactory.cc (createHelpItems):
  8607. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Fixed compilation error in ExpatMetalinkProcessor.cc
  8609. * src/ExpatMetalinkProcessor.cc
  8610. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Reuse socket if the origin server supports HTTP keep-alive and
  8612. --enable-http-keep-alive or --enable-http-pipelining is given.
  8613. The current implementation doesn't reuse the connections established
  8614. against proxy server.
  8615. * src/AbstractCommand.cc
  8616. * src/DownloadEngine.cc
  8617. * src/DownloadEngine.h
  8618. * src/HttpDownloadCommand.cc
  8619. * src/HttpInitiateConnectionCommand.cc
  8620. * src/HttpResponseCommand.cc
  8621. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Rewritten HTTP keep-alive and pipelining routine.
  8623. * src/AbstractCommand.cc
  8624. * src/HttpConnection.cc
  8625. * src/HttpDownloadCommand.cc
  8626. * src/HttpRequest.cc
  8627. * src/HttpRequestCommand.cc
  8628. * src/HttpResponseCommand.cc
  8629. * src/Request.cc
  8630. * src/Request.h
  8631. * src/RequestGroup.cc
  8632. * test/HttpRequestTest.cc
  8633. * test/HttpResponseTest.cc
  8634. * test/RequestTest.cc
  8635. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Added missing setUserHeaders call
  8637. * src/HttpRequestCommand.cc
  8638. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8640. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8641. waste of time because it is more likey false.
  8642. * src/FileAllocationDispatcherCommand.cc (execute)
  8643. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Now HTTP status and version are a member variable of HttpHeader.
  8645. HTTP status is processed as a string, not integer.
  8646. * src/AbstractProxyResponseCommand.cc
  8647. * src/HttpConnection.cc
  8648. * src/HttpHeader.cc
  8649. * src/HttpHeader.h
  8650. * src/HttpHeaderProcessor.cc
  8651. * src/HttpHeaderProcessor.h
  8652. * src/HttpResponse.cc
  8653. * src/HttpResponse.h
  8654. * test/HttpHeaderProcessorTest.cc
  8655. * test/HttpResponseTest.cc
  8656. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Added --header option. You can specify any number of additional HTTP headers
  8658. like:
  8659. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8660. Unlike other commad-line option, you can use --header option multiple times.
  8661. * src/HelpItemFactory.cc
  8662. * src/HttpRequest.{cc, h}
  8663. * src/HttpRequestCommand.cc
  8664. * src/OptionHandlerFactory.cc
  8665. * src/OptionHandlerImpl.h
  8666. * src/option_processing.cc
  8667. * src/prefs.h
  8668. * src/usage_text.h
  8669. * test/HttpRequestTest.cc (testUserHeaders)
  8670. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Eliminates the time lag between sequential downloads and commands in
  8672. the same RequestGroup.
  8673. In old implementation, aria2 occasionally waits 1 seconds before
  8674. executing next command or RequestGroup.
  8675. This is really a waste of time, and new implementation eliminates
  8676. this unnecessary time lag.
  8677. * src/AbstractCommand.cc
  8678. * src/AutoSaveCommand.cc
  8679. * src/CheckIntegrityCommand.cc
  8680. * src/Command.{cc, h}
  8681. * src/DownloadEngine.{cc, h}
  8682. * src/DownloadEngineFactory.cc
  8683. * src/FileAllocationCommand.cc
  8684. * src/FileAllocationDispatcherCommand.cc
  8685. * src/FillRequestGroupCommand.cc
  8686. * src/FtpInitiateConnectionCommand.cc
  8687. * src/HaveEraseCommand.cc
  8688. * src/HttpInitiateConnectionCommand.cc
  8689. * src/HttpResponseCommand.cc
  8690. * src/RealtimeCommand.cc
  8691. * src/RequestGroup.cc
  8692. * src/RequestGroupMan.cc
  8693. * src/StreamFileAllocationEntry.cc
  8694. * src/TimeBasedCommand.{cc, h}
  8695. * src/TimedHaltCommand.cc
  8696. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8698. keyword explicit and SharedHandle's default constructor initializes
  8699. its internal obj to null, old implementation initializes it using
  8700. obj's default constructor.
  8701. To assign null, write SharedHandle<T> x(...); x.reset();
  8702. TODO: test/SharedHandleTest.cc needs more tests.
  8703. * src/SharedHandle.h
  8704. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Fixed type in man page.
  8706. * doc/aria2c.1.txt
  8707. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8709. * src/SimpleLogger.{cc, h}
  8710. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Implemented auto protocol detection.
  8712. Now you can do:
  8713. aria2c -Z http://host/file file1.torrent file2.metalink
  8714. (Note: -Z option is required for auto protcol detection.)
  8715. Then aria2c downloads 3 files simultaneously:
  8716. 1. http://host/file
  8717. 2. file1.torrent <-- read local torrent file
  8718. 3. file2.metalink <-- read local Metalink file.
  8719. Same thing goes with -i option. Assume your uris.txt contans:
  8720. http://host/file
  8721. file1.torrent
  8722. file2.metalink
  8723. Then you can do: aria2c -i uris.txt
  8724. (Note: -Z option is not needed if -i option is given.)
  8725. * src/main.cc
  8726. * src/ProtocolDetector.{cc, h}
  8727. * test/ProtocolDetectorTest.cc
  8728. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8730. installed
  8731. * src/ARC4Encryptor.h
  8732. * src/ARC4Decryptor.h
  8733. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Renamed argument from 'errno' to 'err', since errno is confused with
  8735. errno defined in errno.h.
  8736. * src/LibgcryptARC4Decryptor.h
  8737. * src/LibgcryptARC4Context.h
  8738. * src/LibgcryptDHKeyExchange.h
  8739. * src/LibgcryptARC4Encryptor.h
  8740. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Rewritten choking algorithm.
  8742. * src/PeerChokeCommand.{cc, h}
  8743. * src/BtInterestedMessage.cc
  8744. * src/PeerSessionResource.{cc, h}
  8745. * src/DefaultPeerStorage.{cc, h}
  8746. * src/BtNotInterestedMessage.cc
  8747. * src/DefaultBtMessageDispatcher.{cc, h}
  8748. * src/BtMessageDispatcher.h
  8749. * src/Peer.{cc, h}
  8750. * src/BtLeecherStateChoke.{cc, h}
  8751. * src/BtSetup.cc
  8752. * src/BtSeederStateChoke.{cc, h}
  8753. * src/PeerStorage.h
  8754. * test/MockPeerStorage.h
  8755. * test/MockBtMessageDispatcher.h
  8756. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Fixed compilation error on x84-64 platform.
  8758. * src/AuthConfig.cc: Included ostream.
  8759. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Rewritten getBasename() and getDirname(), without standard library
  8761. basename(), dirname().
  8762. * src/File.cc
  8763. * test/FileTest.cc
  8764. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Added Simplified Chinese translation. Also updated the following
  8766. translations: Polish, Dutch, German. Great thanks to all translators.
  8767. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Suppress content-range error when 'Content-Range' response header
  8769. doesn't contains bytes-unit specifier 'bytes'
  8770. * src/HttpHeader.cc (getRange)
  8771. * test/HttpHeaderTest.cc
  8772. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Fixed compilation error with g++-4.3
  8774. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Added missing include files for MinGW
  8776. * test/HttpHeaderProcessorTest.cc
  8777. * test/DHTRoutingTableSerializerTest.cc
  8778. * test/DHTRoutingTableDeserializerTest.cc
  8779. * test/UriListParserTest.cc
  8780. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Now download line is printed nicely with no garbage at the end of
  8782. line. I use ioctl to get the columns of terminal.
  8783. If stdout is redirected to another device, instead of carriage return,
  8784. end of line '\n' character is used. This is feature request#1909659
  8785. * src/ConsoleStatCalc.cc (calculateStat)
  8786. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Included a2time.h
  8788. * src/DHTMessageDispatcher.h
  8789. * src/DHTMessageEntry.h
  8790. * src/DHTReplaceNodeTask.h
  8791. * src/DHTMessageTracker.h
  8792. * src/Util.h
  8793. * src/CookieBox.h
  8794. * src/SocketCore.h
  8795. * src/DefaultBtMessageDispatcher.h
  8796. * src/SocketCore.cc
  8797. * src/Util.cc
  8798. * src/DHTPingTask.h
  8799. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Fixed high memory footprint when DHT is enabled.
  8801. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8802. queued than it is processed and the queue is getting longer. As a
  8803. consequence, momory usage is increased.
  8804. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8805. replacement cache in DHTBucket which is described in Kademlia paper.
  8806. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8807. DHTReplaceNodeTask.
  8808. * src/DHTBucket.{h, cc}
  8809. (cacheNode): New function.
  8810. (getCachedNodes): New function.
  8811. (dropNode): Push back cached node to _nodes.
  8812. * test/DHTBucketTest.cc
  8813. (testCacheNode): New test
  8814. (testDropNode): New test
  8815. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8816. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8817. the unused 4KB memory when ssl is not used.
  8818. * src/SocketCore.cc
  8819. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Added summary log for peer announce storage.
  8821. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8822. Removed cast
  8823. * src/DefaultPeerStorage.cc (addPeer)
  8824. Log exception message
  8825. * src/DHTMessageTracker.cc (handleTimeout)
  8826. Fixed casting
  8827. * test/HttpRequestTest.cc
  8828. * test/MetalinkProcessorTest.cc
  8829. * test/PieceTest.cc
  8830. * test/MetalinkEntryTest.cc
  8831. * test/SequenceTest.cc
  8832. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. * src/ParameterizedStringParser.cc (createLoop):
  8834. Removed unused variable sstep.
  8835. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8836. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. * src/Util.{h, cc}
  8838. (parseUInt): New function.
  8839. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8840. The actual range is uint32_t.
  8841. * test/UtilTest.cc
  8842. * src/ParameterizedStringParser.cc:
  8843. Use Util::parseUInt() for loop variables.
  8844. * test/ParameterizedStringParserTest.cc
  8845. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8846. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Rewritten the functions for binding port.
  8848. * src/DHTConnectionImpl.{h, cc}
  8849. * src/PeerListenCommand.{h, cc}
  8850. * src/DHTSetup.cc
  8851. * src/BtSetup.cc
  8852. * test/DHTConnectionImplTest.cc
  8853. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. type cleanup for allmost all remaining files.
  8855. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Type clarification
  8857. * src/PeerSessionResource.{h, cc}
  8858. * src/DefaultPieceStorage.{h, cc}
  8859. * src/Peer.{h, cc}
  8860. * test/PeerSessionResourceTest.cc
  8861. Use div function
  8862. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8863. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Type clarification
  8865. * src/DefaultPeerStorage.{h, cc}
  8866. * test/DefaultPeerStorageTest.cc
  8867. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Type clarification: size_t for length or size, uint64_t for file
  8869. length, off_t for file offset.
  8870. * src/DefaultBtProgressInfoFile.cc
  8871. * src/DefaultBtContext.{h, cc}
  8872. * src/DefaultBtInteractive.cc
  8873. * src/DownloadCommand.{h, cc}
  8874. * src/IteratableChunkChecksumValidator.{h, cc}
  8875. * src/SegmentMan.{h, cc}
  8876. * src/SingleFileDownloadContext.{h, cc}
  8877. * src/IteratableChecksumValidator.{h, cc}
  8878. * src/BtContext.h
  8879. * src/IteratableValidator.h
  8880. * src/DownloadContext.h
  8881. * test/SingleFileDownloadContextTest.cc
  8882. * test/DefaultBtContextTest.cc
  8883. * test/MockBtContext.h
  8884. * test/Metalink2RequestGroupTest.cc
  8885. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Type clarification: size_t for length or size, uint64_t for file
  8887. length, off_t for file offset.
  8888. * src/PiecedSegment.cc
  8889. * src/GrowSegment.h
  8890. * src/DefaultBtRequestFactory.h
  8891. * src/DefaultBtProgressInfoFile.cc
  8892. * src/UnknownLengthPieceStorage.h
  8893. * src/DefaultPieceStorage.cc
  8894. * src/UnknownLengthPieceStorage.cc
  8895. * src/DefaultBtInteractive.cc
  8896. * src/GrowSegment.cc
  8897. * src/BitfieldMan.h
  8898. * src/DownloadCommand.cc
  8899. * src/BtRequestFactory.h
  8900. * src/PiecedSegment.h
  8901. * src/DefaultPieceStorage.h
  8902. * src/Piece.cc
  8903. * src/DefaultBtRequestFactory.cc
  8904. * src/PieceStorage.h
  8905. * src/Segment.h
  8906. * src/Piece.h
  8907. * src/BitfieldMan.cc
  8908. * src/Util.cc
  8909. * test/DefaultBtProgressInfoFileTest.cc
  8910. * test/DefaultPieceStorageTest.cc
  8911. * test/MockPieceStorage.h
  8912. * test/BtRequestMessageTest.cc
  8913. * test/DefaultBtMessageDispatcherTest.cc
  8914. * test/BitfieldManTest.cc
  8915. * test/GrowSegmentTest.cc
  8916. * test/PieceTest.cc
  8917. * test/SegmentTest.cc
  8918. * test/SegmentManTest.cc
  8919. * test/DefaultBtRequestFactoryTest.cc
  8920. * test/MockBtRequestFactory.h
  8921. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Fixed compilation error with --disable-nls
  8923. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8924. in gettext.h causes the problem.
  8925. * src/common.h
  8926. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Removed subPiece related functions.
  8928. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8929. * src/DefaultPieceStorage.{h, cc}
  8930. * test/PieceTest.cc
  8931. * test/DefaultPieceStorageTest.cc
  8932. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Use unsigned char for data store.
  8934. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Bump up version number to 0.13.0+1
  8936. * configure.ac
  8937. * Release 0.13.0+1
  8938. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Changed inactive connection timeout to 120.
  8940. To accept more mulually interested peers, disconnect peer when there
  8941. is no interest between us after certain time passed.
  8942. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8943. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8945. when compiled with async DNS support.
  8946. * src/DownloadEngine.cc
  8947. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8948. value '10' will be a little bit short when some DNS servers are
  8949. offline and several DNS servers are tried. It should be configured
  8950. by command-line option.
  8951. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Merged Ross's mingw patch.
  8953. * src/DHTRoutingTableDeserializer.cc
  8954. * src/DHTRoutingTableSerializer.cc
  8955. * src/Platform.{h, cc}
  8956. * src/timegm.h
  8957. * src/gettimeofday.h
  8958. * src/getaddrinfo.h
  8959. * src/SocketCore.h
  8960. * src/common.h
  8961. * src/inet_aton.h
  8962. * src/DownloadEngine.h
  8963. * src/gai_strerror.h
  8964. * src/a2netcompat.h
  8965. * configure.ac
  8966. * configure
  8967. * aclocal.m4
  8968. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Included missing iostream.
  8970. * test/AllTest.cc
  8971. * test/BtDependencyTest.cc
  8972. * test/BtExtendedMessageTest.cc
  8973. * test/DHTConnectionImplTest.cc
  8974. * test/DHTMessageFactoryImplTest.cc
  8975. * test/DHTMessageTrackerEntryTest.cc
  8976. * test/DHTNodeTest.cc
  8977. * test/DHTRoutingTableSerializerTest.cc
  8978. * test/DefaultBtAnnounceTest.cc
  8979. * test/DefaultBtContextTest.cc
  8980. * test/DefaultBtMessageFactoryTest.cc
  8981. * test/DefaultExtensionMessageFactoryTest.cc
  8982. * test/HandshakeExtensionMessageTest.cc
  8983. * test/HttpResponseTest.cc
  8984. * test/MetalinkProcessorTest.cc
  8985. * test/MultiFileAllocationIteratorTest.cc
  8986. * test/SocketCoreTest.cc
  8987. * test/UTPexExtensionMessageTest.cc
  8988. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Reorganized includes.
  8990. * src/NameResolver.cc
  8991. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Fixed compilation error without ares/c-ares
  8993. * src/NameResolver.h:
  8994. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Added a test for large file.
  8996. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8997. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8998. Fixed the bug that file size is ignored if size > INT32_MAX
  8999. * src/SizeMetalinkParserState.cc (endElement):
  9000. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Bump up version number to 0.13.0
  9002. * configure.ac
  9003. * Release 0.13.0
  9004. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. Updated Makfefile.am to make 'make dist' work.
  9006. Now packaged filename is aria2c-VERSION.tar.bz2.
  9007. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9008. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9009. Large file support is now configured by configure script.
  9010. * configure.ac
  9011. Removed unsused source files
  9012. * src/
  9013. * test/
  9014. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9015. Peer.h and BtContext.h respectively.
  9016. * src/Peer.h
  9017. * src/BtContext.h
  9018. Updated translations.
  9019. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9020. translations. Great thanks to all translators!;)
  9021. * po/*.{po, gmo}
  9022. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9024. statically declared sha1 MessageDigestContext.
  9025. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9026. initialization of short-lived MessageDigestContext.
  9027. * src/MessageDigestHelper.{h, cc}
  9028. * src/main.cc
  9029. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9030. the initialization of MessageDigestContext every time in validating
  9031. chunk checksum.
  9032. * src/DownloadCommand.{h, cc}
  9033. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Add a file descriptor which connected to fast peer(latency<1500) to
  9035. select(). This change reduced CPU load.
  9036. * src/PeerInteractionCommand.cc
  9037. * src/DefaultBtInteractive.{h, cc}
  9038. * src/BtInteractive.h
  9039. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Fixed the previous insufficient fix for possible busy loop.
  9041. * src/MSEHandshake.cc (identifyHandshakeType)
  9042. Removed unused functions.
  9043. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9044. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Fixed possible busy loop if first 20 bytes are not received for a few
  9046. minutes.
  9047. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9048. * src/ReceiverMSEHandshakeCommand.cc
  9049. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Fixed compilation error
  9051. * src/ExpatMetalinkProcessor.cc
  9052. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9053. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9054. * src/DHTBucket.cc
  9055. Removed unnecessary cast.
  9056. * src/HandshakeExtensionMessage.cc
  9057. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9059. is missing.
  9060. * src/OptionHandlerFactory.cc
  9061. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Fixed the bug that HAVE message is not sent for a piece they are
  9063. downloaded fom http/ftp server before any BitTorrent handshake is done
  9064. with peers.
  9065. * src/DefaultBtInteractive.cc
  9066. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9068. * src/Makefile.am
  9069. * src/Makefile.in
  9070. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Updated README. Added html version of README and man page.
  9072. * README
  9073. * README.html
  9074. * readme2html: Shell script to generate README.html from README using
  9075. asciidoc.
  9076. * doc/aria2c.1.html
  9077. * doc/makeman: Added the line to generate aria2c.1.html
  9078. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Fixed offset calculation.
  9080. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9081. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Rewritten itos and uitos using template. llitos and ullitos are
  9083. replaced with itos and uitos respectively.
  9084. * src/Util.{h, cc}
  9085. * test/UtilTest.cc
  9086. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9088. of the number of bytes required for storing public key and shared
  9089. secret.
  9090. * src/LibgcryptDHKeyExchange.h
  9091. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9092. * src/MSEHandshake.cc
  9093. * test/DHKeyExchangeTest.cc
  9094. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Removed since they are not used.
  9096. * src/Xml2MetalinkProcessor.{h, cc}
  9097. * src/Socket.cc
  9098. * src/SegmentSplitter.{h, cc}
  9099. * test/Xml2MetalinkProcessorTest.cc
  9100. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Fixed the bug that prevents aria2 from stopping other than by pressing
  9102. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9103. option. aria2 doesn't stop even after --seed-time is satisfied and
  9104. continues to output blank lines in the console.
  9105. * src/ReceiverMSEHandshakeCommand.cc
  9106. * src/PeerReceiveHandshakeCommand.cc
  9107. * src/PeerListenCommand.cc
  9108. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Bump up version number to 0.13.0rc
  9110. * configure.ac
  9111. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Updated man page and some usage text.
  9113. * doc/aria2c.1.txt
  9114. * src/usage_text.h
  9115. * po/*.{po, gmo}
  9116. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Updated translations. Added Finnish and Hebrew translations.
  9118. Great thanks to all translators!
  9119. * po/*.{po, gmo}
  9120. * po/LINGUAS
  9121. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Log more detailed information about each message.
  9123. * src/DHTQueryMessage.{h, cc}
  9124. * src/DHTGetPeersMessage.{h, cc}
  9125. * src/DHTFindNodeReplyMessage.{h, cc}
  9126. * src/DHTGetPeersReplyMessage.{h, cc}
  9127. * src/DHTAnnouncePeerMessage.{h, cc}
  9128. * src/DHTResponseMessage.{h, cc}
  9129. * src/DHTFindNodeMessage.{h, cc}
  9130. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Use constants defined in prefs.h
  9132. * src/option_processing.cc
  9133. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9135. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Make room for future enchancements for IPv6 addresses.
  9137. Bump up version number of dht.dat file format to 2.
  9138. Not compatible with previous version.
  9139. * src/DHTRoutingTableSerializer.cc
  9140. * src/DHTRoutingTableDeserializer.cc
  9141. * test/DHTRoutingTableSerializerTest.cc
  9142. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Added handling for the return values from
  9144. PeerMessageUtil::createcompact().
  9145. * src/DefaultBtContext.cc (computeFastSet):
  9146. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Fixed abort when peer's ip address is IPv4-mapped address.
  9148. * src/DefaultBtContext.cc (computeFastSet)
  9149. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9150. cannot handle IPv4-mapped addresses.
  9151. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9152. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Proper return value handling for OpenSSL functions.
  9154. * src/LibsslDHKeyExchange.h
  9155. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Random bytes generation using libgcrypt and OpenSSL.
  9157. * src/DHTUtil.{h, cc}
  9158. * test/DHTUtilTest.cc
  9159. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9161. received.
  9162. * src/DHTMessageReceiver.cc (receiveMessage)
  9163. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Fixed the bug that a return code is always 0. BUG#1897704
  9165. If error occurred during the download or there exist unfinished
  9166. downloads, aria2 returns with code 1.
  9167. * src/RequestGroupMan.{h, cc}
  9168. * src/MultiUrlRequestInfo.{h, cc}
  9169. * src/main.cc
  9170. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. IPv6 support for SocketCore class.
  9172. TODO: In SocketCore::establishConnection(), this is insufficient to
  9173. determin the failure of connect() here because the socket is
  9174. non-blocking state. The next addresses should be tried after select().
  9175. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9176. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9177. instead which address family independent.
  9178. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9179. information in a compact peer format which is for IPv4 only.
  9180. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9181. this is a spec of BitTorrent protocol.
  9182. * src/SocketCore.{h, cc}
  9183. * src/PeerMessageUtil.cc
  9184. * test/SocketCoreTest.cc
  9185. * test/PeerMessageUtilTest.cc
  9186. * test/DHTConnectionImplTest.cc
  9187. Handle IPv4-mapped addresses.
  9188. * src/DHTNode.cc: Now identity is determined by node id.
  9189. * src/DHTMessageTrackerEntry.cc
  9190. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9191. should handle it.
  9192. * src/DHTRoutingTableDeserializer.cc
  9193. * src/DHTMessageFactoryImpl.cc
  9194. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Change the unit of --stop option from a minute to a second.
  9196. * src/usage_text.h
  9197. * src/DownloadEngineFactory.cc
  9198. * src/OptionHandlerFactory.cc
  9199. * src/message.h
  9200. * src/TimedHaltCommand.cc
  9201. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Make listening socket non-block mode.
  9203. * src/FtpConnection.cc
  9204. * src/FtpNegotiationCommand.{h, cc}
  9205. * src/PeerListenCommand.cc
  9206. Fixed the bug that cause slow ftp negotiation.
  9207. * src/FtpNegotiationCommand.{h, cc}
  9208. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Added basic tag to --enable-dht, --dht-listen-port option.
  9210. * src/HelpItemFactory.cc (createHelpItems)
  9211. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Updated text.
  9213. * src/usage_text.h
  9214. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9216. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Determin _threadtholdSpeed in each constructor for
  9218. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9219. * src/ActivePeerConnectionCommand.{h, cc}
  9220. * src/PeerReceiveHandshakeCommand.{h, cc}
  9221. * src/BtSetup.cc
  9222. * src/BtConstants.h
  9223. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Added --bt-min-crypto-level and --bt-require-crypto options.
  9225. * src/OptionHandlerFactory.cc
  9226. * src/MSEHandshake.cc
  9227. * src/HelpItemFactory.cc
  9228. * src/option_processing.cc
  9229. * src/ReceiverMSEHandshakeCommand.cc
  9230. * src/prefs.h
  9231. * src/DefaultBtAnnounce.cc
  9232. * src/InitiatorMSEHandshakeCommand.cc
  9233. * src/usage_text.h
  9234. * test/MSEHandshakeTest.cc
  9235. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Bump version number to 0.13.0b
  9237. * configure.ac
  9238. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Updated doc.
  9240. * src/MessageDigestHelper.h:
  9241. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Use raw message digest as a token instead of its hexadecimal
  9243. representation.
  9244. * src/DHTTokenTracker.cc (generateToken)
  9245. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Added Message Stream Encryption(MSE) support.
  9247. Currently, aria2 accepts incoming connections with Obfuscation Header
  9248. and legacy BitTorrent Header and establishes connections with
  9249. Obfuscation Header first and if failed then retry with legacy
  9250. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9251. choose ARC4. The new option to change the default behavior is planned.
  9252. For tracker extension, "supportcrypto=1" is added statically.
  9253. * src/PeerInitiateConnectionCommand.{h, cc}
  9254. * src/PeerConnection.{h, cc}
  9255. * src/HandleRegistry.h
  9256. * src/SocketCore.h
  9257. * src/PeerReceiveHandshakeCommand.{h, cc}
  9258. * src/BtRegistry.{h, cc}
  9259. * src/PeerListenCommand.cc
  9260. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9261. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9262. * src/MSEHandshake.{h, cc}
  9263. * src/ARC4Encryptor.h
  9264. * src/ARC4Decryptor.h
  9265. * src/LibgcryptARC4Encryptor.h
  9266. * src/LibgcryptARC4Decryptor.h
  9267. * src/LibgcryptARC4Context.h
  9268. * src/LibsslARC4Encryptor.h
  9269. * src/LibsslARC4Decryptor.h
  9270. * src/LibsslARC4Context.h
  9271. * src/DHKeyExchange.h
  9272. * src/LibgcryptDHKeyExchange.h
  9273. * src/LibsslDHKeyExchange.h
  9274. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9275. * test/DefaultBtAnnounceTest.cc
  9276. * test/ARC4Test.cc
  9277. * test/DHKeyExchangeTest.cc
  9278. Removed prepareForRetry() because it is not used.
  9279. * src/PeerAbstractCommand.{h, cc}
  9280. * src/PeerInteractionCommand.{h, cc}
  9281. * src/PeerInitiateConnectionCommand.{h, cc}
  9282. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Added the ability to load nodes from torrent file. These nodes are
  9284. added to the routing table when downloading that torrent.
  9285. * src/BtContext.h
  9286. * src/DefaultBtContext.{h, cc}
  9287. * src/DHTSetup.cc
  9288. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9289. hostname and port pair, and resolves all of them.
  9290. * src/NameResolver.{h, cc}: Added reset().
  9291. * src/RequestGroup.cc
  9292. * test/DefaultBtContextTest.cc
  9293. * test/MockBtContext.h
  9294. Removed assert() from DefaultBtContext and throw exception instead.
  9295. * src/DefaultBtContext.cc
  9296. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Fixed segmentation fault bug when exiting if dht is disabled.
  9298. * src/RequestGroup.cc
  9299. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Fixed typo in log message and define the message in message.h
  9301. * src/TimedHaltCommand.cc
  9302. * src/message.h
  9303. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Included RecoverableException.h to fix compilation error.
  9305. * test/DHTMessageFactoryImplTest.cc
  9306. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9308. * test/DHTPingMessageTest.cc
  9309. * test/DHTGetPeersMessageTest.cc
  9310. * test/DHTFindNodeMessageTest.cc
  9311. * test/DHTAnnouncePeerMessageTest.cc
  9312. * test/MockDHTMessage.h
  9313. * test/MockDHTMessageFactory.h
  9314. * test/MockDHTMessageDispatcher.h: New class.
  9315. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9317. virtual.
  9318. * src/DHTMessageDispatcher.h
  9319. * src/DHTMessageDispatcherImpl.{h, cc}
  9320. * src/DHTSetup.cc
  9321. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Adding handling of DHT error message. Just log error message and
  9323. throw exception.
  9324. * src/DHTMessageFactoryImpl.cc
  9325. * test/DHTMessageFactoryImplTest.cc
  9326. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Added handling of dynamic cast failure.
  9328. * src/DHTNodeLookupTask.cc
  9329. * src/DHTPeerLookupTask.cc
  9330. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Added the ability to stop aria2 itself when given time has passed
  9332. from start. Use --stop option to specify time in minutes.
  9333. When 0 is given, this feature is disabled.
  9334. * src/OptionHandlerFactory.cc
  9335. * src/TimeBasedCommand.h: Make _interval protected scope.
  9336. * src/HelpItemFactory.cc
  9337. * src/option_processing.cc
  9338. * src/prefs.h
  9339. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9340. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9341. Without this modification, the result list shows "ERR" when aria2 is
  9342. stopped by --stop option. It should be "INPR".
  9343. * src/DownloadEngine.{h, cc}
  9344. * src/DownloadEngineFactory.cc
  9345. * src/usage_text.h
  9346. * src/TimedHaltCommand.{h, cc}: New class.
  9347. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Bootstrap through node added by port message.
  9349. Currently bootstrap is executed if the number of buckets in routing
  9350. table is 1.
  9351. * src/BtPortMessage.{h, cc}
  9352. * src/DefaultBtMessageFactory.{h, cc}
  9353. * src/PeerInteractionCommand.cc
  9354. * test/BtPortMessageTest.cc
  9355. * test/MockDHTTask.h
  9356. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Extract the Peer class's member variables, which are only needed after
  9358. PeerInteractionCommand, into PeerSessionResource class.
  9359. This class is instantiated in PeerInteractionCommand class's ctor and
  9360. released in its dtor.
  9361. This will make Peer class lightweight and uses less memory for peers
  9362. which are not connected and wait in the queue.
  9363. * src/PeerChokeCommand.cc
  9364. * src/PeerSessionResource.{h, cc}
  9365. * src/PeerInteractionCommand.cc
  9366. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9367. * src/DefaultBtInteractive.cc
  9368. * src/BtPieceMessage.cc
  9369. * src/BtInterestedMessage.cc
  9370. * src/BtUnchokeMessage.cc
  9371. * src/DefaultPeerStorage.{h, cc}
  9372. * src/PeerInitiateConnectionCommand.cc
  9373. * src/ActivePeerConnectionCommand.cc
  9374. * src/BtNotInterestedMessage.cc
  9375. * src/DefaultBtMessageDispatcher.cc
  9376. * src/BtChokeMessage.cc
  9377. * src/BtRequestMessage.cc
  9378. * src/Peer.{h, cc}
  9379. * src/BtRegistry.h
  9380. * src/TrackerWatcherCommand.cc
  9381. * src/PeerReceiveHandshakeCommand.cc
  9382. * test/BtExtendedMessageTest.cc
  9383. * test/BtAllowedFastMessageTest.cc
  9384. * test/BtCancelMessageTest.cc
  9385. * test/DefaultPieceStorageTest.cc
  9386. * test/BtBitfieldMessageTest.cc
  9387. * test/BtHaveMessageTest.cc
  9388. * test/BtNotInterestedMessageTest.cc
  9389. * test/BtRequestMessageTest.cc
  9390. * test/PeerSessionResourceTest.cc
  9391. * test/DefaultBtMessageDispatcherTest.cc
  9392. * test/PeerTest.cc
  9393. * test/BtInterestedMessageTest.cc
  9394. * test/BtRejectMessageTest.cc
  9395. * test/BtChokeMessageTest.cc
  9396. * test/DefaultPeerStorageTest.cc
  9397. * test/BtHaveNoneMessageTest.cc
  9398. * test/BtHaveAllMessageTest.cc
  9399. * test/DefaultExtensionMessageFactoryTest.cc
  9400. * test/BtUnchokeMessageTest.cc
  9401. * test/DefaultBtMessageFactoryTest.cc
  9402. * test/HandshakeExtensionMessageTest.cc
  9403. * test/UTPexExtensionMessageTest.cc
  9404. * test/DefaultBtRequestFactoryTest.cc
  9405. * test/BtPieceMessageTest.cc
  9406. Removed typedef PeerStats.
  9407. * src/PeerStat.h
  9408. * src/SegmentMan.cc
  9409. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Added std namespace to copy, remove_copy, back_inserter,
  9411. front_inserter.
  9412. * src/RequestGroupMan.cc
  9413. * src/DefaultPieceStorage.cc
  9414. * src/StreamFileAllocationEntry.cc
  9415. * src/BtFileAllocationEntry.cc
  9416. * src/RequestGroup.cc
  9417. * src/MetalinkEntry.cc
  9418. * src/DelegatingPeerListProcessor.cc
  9419. * src/DefaultBtRequestFactory.cc
  9420. * src/DefaultBtMessageDispatcher.cc
  9421. * src/version_usage.cc: Included <algorithm>
  9422. * src/main.cc
  9423. * src/MetalinkParserController.cc
  9424. * src/DefaultBtContext.cc
  9425. * src/DownloadEngineFactory.cc
  9426. * src/a2algo.h
  9427. Removed.
  9428. * test/StreamUriListParserTest.cc
  9429. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9431. ActivePeerConnectionCommand when it is given and
  9432. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9433. * src/ActivePeerConnectionCommand.{h, cc}
  9434. * src/BtSetup.cc
  9435. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Only add socket to DownloadEngine's select routine when peer or
  9437. localhost is unchoked and interested. This lowers CPU usage a
  9438. little bit.
  9439. * src/PeerInteractionCommand.cc
  9440. * src/PeerAbstractCommand.{h, cc}
  9441. * src/BtInteractive.h
  9442. * src/DefaultBtInteractive.{h, cc}
  9443. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Revert previous change because get_peers message is needed for
  9445. announce_peer anyway.
  9446. * src/DHTGetPeersCommand.cc
  9447. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Request peers thought DHT only when download hasn't finished.
  9449. * src/DHTGetPeersCommand.cc
  9450. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9452. * src/DHTBucketRefreshTask.{h, cc}
  9453. * src/DHTSetup.cc
  9454. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9456. standard classes.
  9457. Included string.h where mem* function are used.
  9458. Added namespace aria2.
  9459. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Create directory before saving DHT routing table.
  9461. Now ios::failure is now handled properly.
  9462. * src/DHTAutoSaveCommand.cc
  9463. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Removed unnecessary cerr.
  9465. * src/DownloadEngine.cc
  9466. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Catch exception inside DHTMessageReceiver::receiveMessage().
  9468. Log unknown message.
  9469. * src/DHTMessageReceiver.{h, cc}
  9470. * src/DHTMessageFactory.h
  9471. * src/DHTMessageFactoryImpl.{h, cc}
  9472. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9473. * src/DHTInteractionCommand.cc
  9474. * src/DHTUnknownMessage.{h, cc}
  9475. * test/DHTUnknownMessageTest.cc
  9476. * test/MockDHTMessageFactory.h
  9477. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Commented out ip address comparison because a host can have multiple
  9479. ip addresses and it is hard to predict the hostname is resolved into
  9480. which one.
  9481. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9482. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. * po/Makefile.in: Removed since this is generated by configure.
  9484. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Fixed compiler warning about redefinition of SIZE_MAX.
  9486. Use common.h instead of config.h directly here.
  9487. * src/Platform.{h, cc}
  9488. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9489. here.
  9490. * common.h
  9491. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9492. Updated gettext related files.
  9493. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9494. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9495. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Added DHT functionality, compatible with mainline.
  9497. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9498. You may need to specify entry point to DHT network using
  9499. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9500. Use --dht-listen-port to specify port number. Make sure that your
  9501. firewall configuration can pass through UDP traffic to the port.
  9502. The routing table is saved in $HOME/.aria2/dht.dat.
  9503. * src/DHT*
  9504. * src/BNode.{h, cc}
  9505. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9506. particular torrent.
  9507. * src/Data.cc: Rewritten ctor.
  9508. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9509. --dht-entry-point.
  9510. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9511. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9512. ends, remove BtContext from DHTPeerAnnounceStorage.
  9513. * src/BtPortMessage.{h, cc}: Rewritten.
  9514. * src/message.h
  9515. * src/OptionHandlerImpl.cc
  9516. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9517. --dht-entry-point.
  9518. * src/Dictionary.{h, cc} (remove): New function.
  9519. * src/prefs.h
  9520. * src/DefaultBtMessageFactory.h
  9521. * src/BtHandshakeMessage.cc
  9522. * src/ActivePeerConnectionCommand.cc
  9523. * src/SocketCore.{h, cc}: Added datagram socket support.
  9524. * src/DefaultBtMessageFactory.cc
  9525. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9526. Create DHT commands.
  9527. * src/BtMessageFactory.h
  9528. * src/PeerMessageUtil.{h, cc}
  9529. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Fixed the bug that log file is not written when configuration file doesn't exist.
  9531. This is caused by using Logger class before LogFactory is not configured.
  9532. BUG #1875079
  9533. * src/option_processing.cc
  9534. Warning message "configuration doesn't exist" is only printed when --conf is
  9535. given.
  9536. * src/option_processing.cc
  9537. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9539. ShaVisitor is now deprecated and slated to be removed.
  9540. * src/DefaultBtContext.cc
  9541. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Externalize message to message.h
  9543. * src/Platform.cc
  9544. * src/message.h
  9545. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Set default domain and default path to cookie.
  9547. * src/HttpResponse.cc
  9548. * src/CookieBox.{h, cc}
  9549. * src/CookieParser.{h, cc}
  9550. * test/CookieParserTest.cc
  9551. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Added --no-conf and --conf-path command-line option.
  9553. --no-conf option disables loading aria2.conf file.
  9554. --conf-path option changes the configuration file path. The default
  9555. file path is $HOME/.aria2/aria2.conf
  9556. Added a warning message when the configuration file is not found.
  9557. * src/HelpItemFactory.cc
  9558. * src/option_processing.cc
  9559. * src/prefs.h
  9560. * src/usage_text.h
  9561. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Added the message to inform users that other help categories are
  9563. available in -h option.
  9564. * src/version_usage.cc
  9565. * src/TagContainer.{h, cc}
  9566. * test/TagContainerTest.cc
  9567. * src/TaggedItem.{h, cc}
  9568. * test/TaggedItemTest.cc
  9569. * src/HelpItem.h
  9570. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9572. from PiecedSegment's ctor.
  9573. Previously Piece::getAllMissingBlockIndexes() is called from
  9574. PiecedSegment() but it is rather expensive since only first element is
  9575. used.
  9576. * src/PiecedSegment.cc
  9577. * src/Piece.{h, cc}
  9578. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9580. each time these functions are called.
  9581. * src/BitfieldMan.{h, cc}
  9582. * test/BitfieldManTest.cc
  9583. * src/array_fun.h
  9584. * test/array_funTest.cc
  9585. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9586. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9587. filtered. Removed unnecessary cast to int32_t.
  9588. * src/BitfieldMan.{h, cc}
  9589. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9591. payload length(4bytes) are received. This happens because lenbufLength
  9592. is not updated in this particular case and successive call of
  9593. receiveMessage() overwrites payload length with bytes recieved which
  9594. are payload body.
  9595. * src/PeerConnection.{h, cc}
  9596. * src/message.h
  9597. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9599. peer if there are peers that have same ipaddr and port.
  9600. I've experiened segmentation fault and "pure virtual function was
  9601. called" error.
  9602. * src/Peer.h
  9603. * test/PeerTest.cc
  9604. * src/DefaultPeerStorage.cc
  9605. * test/DefaultPeerStorageTest.cc
  9606. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Removed a call to isPowerOf() because it is no longer necessary here
  9608. and a request block is not always power of 2.
  9609. BUG#1866924
  9610. * src/PeerMessageUtil.cc (checkLength)
  9611. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Fixed the bug that always first found Segment is removed from
  9613. usedSegmentEntries. Removed unused functions.
  9614. * src/SegmentMan.{h, cc}
  9615. * test/SegmentManTest.cc
  9616. Fixed the bug that ServerHost is not removed.
  9617. * src/RequestGroup.cc
  9618. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Fixed the bug that SegmentMan::completeSegment() is not called
  9620. even if Segment is complete when --lowest-speed-limit is enabled.
  9621. BUG#1864525
  9622. * src/DownloadCommand.{h, cc}
  9623. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Fixed: hash algorithm 'sha1' is always used.
  9625. * src/DownloadCommand.cc (validatePieceHash)
  9626. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Added --enable-peer-exchange command-line option.
  9628. * src/OptionHandlerFactory.cc
  9629. * src/HelpItemFactory.cc
  9630. * src/option_processing.cc
  9631. * src/usage_text.h
  9632. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Move extension from BtRuntime to ExtensionMessageFactory, because
  9634. extension can be specified per peer, not per torrent.
  9635. * src/DefaultBtInteractive.cc
  9636. * src/BtRuntime.h
  9637. * src/ExtendedMessagingAware.h
  9638. * src/ExtensionMessageFactory.h
  9639. * src/DefaultExtensionMessageFactory.cc
  9640. * test/DefaultExtensionMessageFactoryTest.cc
  9641. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Added categorized option help. Specify category using --help option.
  9643. Also added the ability to search options in forward match.
  9644. * src/HelpItem.{h, cc}
  9645. * test/HelpItemTest.cc
  9646. * src/HelpItemFactory.{h, cc}
  9647. * src/TagContainer.{h, cc}
  9648. * test/TagContainerTest.cc
  9649. * src/option_processing.cc
  9650. * src/prefs.h
  9651. * src/TaggedItem.{h, cc}
  9652. * test/TaggedItemTest.cc
  9653. * src/version_usage.cc
  9654. * src/help_tags.h
  9655. * src/usage_text.h
  9656. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Fixed segmentation fault when bad torrent metainfo is parsed.
  9658. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9659. and then throw exception or skip it.
  9660. * src/DefaultBtContext.{h, cc}
  9661. * test/DefaultBtContextTest.cc
  9662. * src/AnnounceList.cc
  9663. * src/CompactPeerListProcessor.cc
  9664. * src/message.h
  9665. * src/DefaultBtAnnounce.{h, cc}
  9666. * test/DefaultBtAnnounceTest.cc
  9667. * src/BencodeVisitor.cc
  9668. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Added missing "B"(=Byte). So now the message looks like this:
  9670. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9671. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9672. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Show the seed ratio after torrent downloads.
  9674. For example, after torrent download completed and --seed-time and
  9675. --seed-ratio conditions are fulfilled, following message is printed
  9676. right after "Download complete: .....":
  9677. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9678. * src/RequestGroupMan.cc
  9679. * src/RequestGroup.{h, cc}
  9680. * src/message.h
  9681. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Remove a defunct control file. A defunct control file means that while
  9683. it exists, but the corresponding download file is missing.
  9684. After its removal, a download restarts from the beginning.
  9685. * src/RequestGroup.cc
  9686. * src/message.h
  9687. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Allocate bitfield in Peer when it is really used. More specifically,
  9689. bitfield in Peer is allocated after the connection is established and
  9690. deallocated when the connection is dropped.
  9691. Since 2 parameters(piece length and total length) was removed from the
  9692. constructor of Peer class, many test classes were modified accordingly.
  9693. See svn log for more detailed information.
  9694. * src/PeerInteractionCommand.cc
  9695. * src/CompactPeerListProcessor.cc
  9696. * src/Peer.cc
  9697. * src/DefaultPeerListProcessor.cc
  9698. * src/PeerListenCommand.cc
  9699. * src/PeerReceiveHandshakeCommand.cc
  9700. Fixed memory leak
  9701. * src/Piece.cc
  9702. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9704. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9705. command-line options.
  9706. * src/option_processing.cc
  9707. * src/ActivePeerConnectionCommand.cc
  9708. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Send have message to peer if it already has the piece.
  9710. * src/BtHaveMessage.{h, cc}
  9711. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9713. port.
  9714. * src/DefaultPeerStorage.{h, cc}
  9715. * test/DefaultPeerStorageTest.cc
  9716. * src/HandshakeExtensionMessage.cc
  9717. * test/HandshakeExtensionMessageTest.cc
  9718. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9719. * src/PeerStorage.h
  9720. * test/MockPeerStorage.h
  9721. * src/PeerListenCommand.cc
  9722. * src/PeerReceiveHandshakeCommand.cc
  9723. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Added --metalink-enable-unique-protocol option.
  9725. * src/Metalink2RequestGroup.cc
  9726. * src/option_processing.cc
  9727. * src/prefs.h
  9728. * src/version_usage.cc
  9729. * doc/aria2c.1.txt
  9730. * doc/aria2c.1
  9731. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Allow a peer in incomingPeer to be added peers.
  9733. * src/DefaultPeerStorage.cc
  9734. * test/DefaultPeerStorageTest.cc
  9735. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9737. I could reproduce this bug in following procedure:
  9738. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9739. 2. Restart aria2.
  9740. 3. You see the download stopped around 99%.
  9741. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9742. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9743. If timeout is reached, then _nextCommand is unused and it may contains
  9744. segments and they won't be canceled. Actually, timeout is not needed
  9745. here because if the server dropped connection, then retry is made.
  9746. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Added uTorrent compatible Peer Exchange.
  9748. * src/BencodeVisitor.{h, cc}
  9749. * test/BencodeVisitorTest.cc
  9750. * src/BtConstants.h
  9751. * src/BtContext.h: Added 'private' flag.
  9752. * src/BtExtendedMessage.{h, cc}
  9753. * test/BtExtendedMessageTest.cc
  9754. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9755. reserved field.
  9756. * test/BtHandshakeMessageTest.cc
  9757. * src/BtMessageFactory.h
  9758. * src/BtRegistry.h
  9759. * src/BtRuntime.h: This class holds default extension message IDs for
  9760. aria2. By default, aria2 uses ID 8 for ut_pex.
  9761. * src/DefaultBtContext.cc
  9762. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9763. When it is true, aria2 enables ut_pex. This value is set by
  9764. PeerInteractionCommand.
  9765. * src/DefaultBtMessageFactory.{h, cc}
  9766. * test/DefaultBtMessageFactoryTest.cc
  9767. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9768. handling to DefaultBtInteractive class.
  9769. * src/DefaultExtensionMessageFactory.{h, cc}
  9770. * test/DefaultExtensionMessageFactoryTest.cc
  9771. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9772. the container(peers and incomingPeers. The equality is determined by
  9773. Peer::id).
  9774. * test/DefaultPeerStorageTest.cc
  9775. * src/ExtensionMessage.h
  9776. * test/MockExtensionMessage.h
  9777. * src/ExtensionMessageFactory.h
  9778. * test/MockExtensionMessageFactory.h
  9779. * src/HandshakeExtensionMessage.{h, cc}
  9780. * test/HandshakeExtensionMessageTest.cc
  9781. * src/MetaEntry.h
  9782. * src/Peer.{h, cc}
  9783. * src/PeerInteractionCommand.cc
  9784. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9785. addIncomingPeer.
  9786. * src/PeerMessageUtil.{h, cc}
  9787. * src/PeerObject.h
  9788. * src/UTPexExtensionMessage.{h, cc}
  9789. * test/UTPexExtensionMessageTest.cc
  9790. * src/message.h
  9791. * src/prefs.h
  9792. Fixed the bug that returns incomplete data when it contains null
  9793. character. A convenient constructor was also added.
  9794. * src/Data.{h, cc}
  9795. Rewritten.
  9796. * src/CompactPeerListProcessor.cc
  9797. Fixed typos.
  9798. * src/message.h
  9799. * src/MetaFileUtil.cc
  9800. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Added "Status Legend" label to the explanation text of 'stat' in
  9802. download result and moved it to the last. BUG#1848214
  9803. * src/RequestGroupMan.cc
  9804. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9806. * src/Makefie.am
  9807. * test/Makefile.am
  9808. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Fixed the bug that prevents aria2 from loading cookie file when expire
  9810. value is greater than 2^31-1. BUG#1851066
  9811. * src/CookieBoxFactory.cc
  9812. * test/CookieBoxFactoryTest.cc
  9813. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Fixed possible memory leak when an exception is thrown.
  9815. * src/XML2SAXMetalinkProcessor.cc
  9816. Added Expat support. If both libxml2 and Expat are installed, then
  9817. libxml2 is used by default.
  9818. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9819. ExpatMetalinkProcessor according to the configuration.
  9820. * src/ExpatMetalinkProcessor.{h, cc}
  9821. * src/main.cc: Removed libxml2 specific header and init/free function.
  9822. * src/MetalinkProcessorFactory.{h, cc}
  9823. * src/MetalinkHelper.cc
  9824. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9825. * src/MetalinkProcessor.h
  9826. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9827. MetalinkProcessorTest is used instead.
  9828. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9829. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9830. MetalinkProcessorFactory::newInstance().
  9831. * m4/libexpat.m4
  9832. * configure.ac: Added configuration options for libexpat.
  9833. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Disabled -s option in metalink download.
  9835. * src/Metalink2RequestGroup.cc
  9836. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. If several protocols are available for a mirror in metalink file,
  9838. aria2 now use one of them. --metalink-preferred-protocol option was
  9839. added to specify the preference of protocol.
  9840. * src/AbstractCommand.cc
  9841. * src/OptionHandlerFactory.cc
  9842. * src/ServerHost.{h, cc}
  9843. * src/Metalink2RequestGroup.cc
  9844. * src/RequestGroup.{h, cc}
  9845. * test/RequestGroupTest.cc
  9846. * src/option_processing.cc
  9847. * src/prefs.h
  9848. * src/HttpResponseCommand.cc
  9849. * src/MetalinkResource.{h, cc}
  9850. * src/FtpNegotiationCommand.cc
  9851. * src/MetalinkEntry.{h, cc}
  9852. * src/MetalinkEntryTest.cc
  9853. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Code cleanup and added debug log.
  9855. * src/PeerConnection.cc
  9856. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. Compiler error fix: applied the patch by Tiziano Mueller
  9858. * src/RequestGroup.cc
  9859. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9861. in stopped and completed event.
  9862. * src/AnnounceList.{h, cc}
  9863. * test/AnnounceListTest.cc
  9864. * src/DefaultBtAnnounce.cc
  9865. * test/DefaultBtAnnounceTest.cc
  9866. Sorted URLs.
  9867. * test/Metalink2RequestGroupTest.cc
  9868. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Removed unnecessary string copy. Updated doc and corrected indentation.
  9870. * src/Base64.cc
  9871. Fixed compilation warnings
  9872. * test/DataTest.cc
  9873. * test/HttpRequestTest.cc
  9874. * test/MetaFileUtilTest.cc
  9875. * test/RequestTest.cc
  9876. * Release 0.12.0
  9877. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Updated translations
  9879. * po/{de,fr,ja,nl,ru}.po
  9880. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9881. translations. Many thanks to translators.
  9882. * po/{ca,es,it,pt_BR,sv}.po
  9883. * po/LINGUAS
  9884. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. Added a notice about URL
  9886. * src/version_usage.cc
  9887. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9888. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9889. aria2 repeatedly sends stopped request when tracker returns error code.
  9890. * src/AnnounceList.cc
  9891. * test/AnnounceListTest.cc
  9892. * src/AnnounceTier.h
  9893. Added a message when ctrl-c is hit.
  9894. Now second ctrl-c is also handled in signal handler.
  9895. * src/RequestGroupMan.{h, cc}
  9896. * src/RequestGroup.{h, cc}
  9897. * src/MultiUrlRequestInfo.cc
  9898. * src/DownloadEngine.cc
  9899. * src/TrackerWatcherCommand.cc
  9900. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Code cleanup
  9902. * src/Base64.cc (encode)
  9903. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Changed Direct/IO enable/disable procesure in file allocation routine.
  9905. * src/SingleFileAllocationIterator.cc
  9906. (SingleFileAllocationIterator):
  9907. Disable directIO if offset is not multiple of 512.
  9908. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9909. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9910. Enable created SingleFileAllocationIterator's directIO.
  9911. * src/FileAllocationEntry.cc
  9912. (FileAllocationEntry): Enable directIO here.
  9913. (~FileAllocationEntry): Disable directIO here.
  9914. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9915. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9916. * src/Peer.{h, cc}
  9917. * src/DefaultPieceStorage.cc
  9918. * test/DefaultPieceStorageTest.cc
  9919. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Rewritten direct I/O support routine
  9921. * src/SingleFileAllocationIterator.cc
  9922. * src/MultiDiskAdaptor.{h, cc}
  9923. * src/ByteArrayDiskWriter.h
  9924. * src/AbstractSingleDiskAdaptor.h
  9925. * src/AbstractDiskWriter.cc
  9926. * src/DefaultPieceStorage.cc
  9927. * src/DiskWriter.h
  9928. * src/BinaryStream.h
  9929. * src/IteratableChunkChecksumValidator.cc
  9930. * src/IteratableChecksumValidator.cc
  9931. * src/CheckIntegrityEntry.cc
  9932. * src/FileAllocationEntry.cc
  9933. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Fixed typo
  9935. * src/version_usage.cc
  9936. Updated doc
  9937. * doc/aria2c.1.txt
  9938. * doc/aria2c.1
  9939. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Fixed compile error without message digest support.
  9941. * src/FileMetalinkParserState.cc
  9942. * src/MetalinkParserController.{h, cc}
  9943. * test/XML2SAXMetalinkProcessorTest.cc
  9944. * test/MetalinkParserControllerTest.cc
  9945. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Enable direct I/O support in checksum checking.
  9947. * src/IteratableChunkChecksumValidator.{h, cc}
  9948. * test/IteratableChunkChecksumValidatorTest.cc
  9949. * src/CheckIntegrityEntry.cc
  9950. * src/PieceHashCheckIntegrityEntry.cc
  9951. * src/IteratableChecksumValidator.{h, cc}
  9952. * src/BtCheckIntegrityEntry.cc: Added doc.
  9953. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Added --allow-piece-length-change option.
  9955. * src/DefaultBtProgressInfoFile.cc
  9956. * test/DefaultBtProgressInfoFileTest.cc
  9957. * src/OptionHandlerFactory.cc
  9958. * src/option_processing.cc
  9959. * src/prefs.h
  9960. * src/version_usage.cc
  9961. * doc/aria2c.1.txt
  9962. * doc/aria2c.1
  9963. Fixed: duplicated result entry appears when exception is thrown in
  9964. RequestGroup::createInitiateConnectionCommand().
  9965. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9966. Add RequestGroup to _requestGroup after RequetGroup::
  9967. createInitiateConnectionCommand() succeeds.
  9968. Externalized message
  9969. * src/XML2SAXMetalinkProcessor.cc
  9970. * src/message.h
  9971. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. Forced download abort when received negative response from http/ftp
  9973. server.
  9974. * src/HttpResponseCommand.cc
  9975. * src/FtpNegotiationCommand.cc
  9976. * src/HttpResponse.cc
  9977. * src/FtpConnection.cc
  9978. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9980. the predecessor, Xml2MetalinkParser class.
  9981. I tested them against 94KB metalink file with 1234 chunk checksums.
  9982. The new one parsed it in 22msec, while it took 6000msec with old one.
  9983. * src/XML2SAXMetalinkProcessor.{h, cc}
  9984. * test/XML2SAXMetalinkProcessorTest.cc
  9985. * src/MetalinkParserController.{h, cc}
  9986. * test/MetalinkParserControllerTest.cc
  9987. * src/MetalinkParserState.h: Also added 16 subclasses.
  9988. * src/main.cc
  9989. * src/Metalink2RequestGroup.cc
  9990. * src/MetalinkHelper.cc
  9991. * src/MetalinkEntry.cc
  9992. * src/ChunkChecksum.h
  9993. Rewritten Base64 class for better performance.
  9994. * src/Base64.{h, cc}
  9995. * test/Base64Test.cc
  9996. * src/HttpRequest.cc
  9997. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Fixed the bug#1841757: aria2 will connect to server to only get
  9999. file size.
  10000. * src/StreamFileAllocationEntry.cc
  10001. * src/option_processing.cc
  10002. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10003. downloads.
  10004. * src/FtpNegotiationCommand.cc
  10005. Suppressed wrong message when finding PreDownloadHandler
  10006. * src/RequestGroup.cc
  10007. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Updated usage
  10009. * src/version_usage.cc
  10010. Updated man page
  10011. * doc/aria2c.1.txt
  10012. * doc/aria2c.1
  10013. Updated po files
  10014. * po/aria2c.pot
  10015. * po/*.po
  10016. * po/*.gmo
  10017. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Eliminated g++-4.2 warning
  10019. * src/DownloadHandlerConstants.{h, cc}
  10020. * src/Util.cc
  10021. * test/MetaFileUtilTest.cc
  10022. * test/PStringBuildVisitorTest.cc
  10023. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10024. * src/RequestGroup.cc
  10025. * src/BtCheckIntegrityEntry.cc
  10026. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Fixed a2io.h
  10028. * src/a2io.h
  10029. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Added direct I/O support. The current implementation uses O_DIRECT,
  10031. which is not posix standard and is tested on linux 2.6.21.
  10032. Currently only file allocation uses direct I/O.
  10033. * src/SingleFileAllocationIterator.{h, cc}
  10034. * test/SingleFileAllocationIteratorTest.cc
  10035. * src/MultiFileAllocationIterator.{h, cc}
  10036. * test/MultiFileAllocationIteratorTest.cc
  10037. * src/BinaryStream.h
  10038. * src/DiskWriter.h
  10039. * src/AbstractDiskWriter.{h, cc}
  10040. * src/ByteArrayDiskWriter.h
  10041. * src/DiskAdaptor.h
  10042. * src/AbstractSingleDiskAdaptor.{h, cc}
  10043. * src/MultiDiskAdaptor.{h, cc}
  10044. * src/FileAllocationEntry.cc
  10045. * src/Util.{h, cc}
  10046. * src/OptionHandlerFactory.cc
  10047. * src/prefs.h
  10048. * src/version_usage.cc
  10049. * src/option_processing.cc
  10050. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10051. handleException.
  10052. * src/MultiFileAllocationIterator.cc
  10053. Added EINTR handling
  10054. * src/SocketCore.cc
  10055. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Updated usage
  10057. * src/version_usage.cc
  10058. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Applied Ross's patch for MinGW port.
  10060. * src/DownloadEngine.h
  10061. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10062. Set Content-Type to SingleFileDownloadContext when http response is
  10063. received.
  10064. * src/HttpResponseCommand.cc
  10065. * src/HttpResponse.{h, cc}
  10066. * test/HttpResponseTest.cc
  10067. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Rewritten to add content-type support.
  10069. * src/DownloadHandler.{h, cc}
  10070. * src/BtPostDownloadHandler.{h, cc}
  10071. * test/BtPostDownloadHandlerTest.cc
  10072. * src/MetalinkPostDownloadHandler.{h, cc}
  10073. * test/MetalinkPostDownloadHandlerTest.cc
  10074. * src/PostDownloadHandler.{h, cc}
  10075. * src/DownloadHandlerConstants.{h, cc}
  10076. * src/RequestGroup.cc
  10077. * src/HttpResponseCommand.cc
  10078. * src/FtpNegotiationCommand.cc
  10079. * src/SingleFileDownloadContext.{h, cc}
  10080. * src/RequestGroup.h
  10081. * src/RequestGroupCriteria.h
  10082. * src/ContentTypeRequestGroupCriteria.h
  10083. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10084. If it is give, metalink/torrent file is not written to the disk, but
  10085. just is kept in memory. Parsing is occurred on memory.
  10086. * src/MetalinkHelper.{h, cc}
  10087. * src/MetalinkProcessor.h
  10088. * src/Xml2MetalinkProcessor.{h, cc}
  10089. * test/Xml2MetalinkProcessorTest.cc
  10090. * src/DownloadHandlerFactory.{h, cc}
  10091. * test/DownloadHandlerFactoryTest.cc
  10092. * src/PreDownloadHandler.{h, cc}
  10093. * src/OptionHandlerFactory.cc
  10094. * src/DefaultBtContext.{h, cc}
  10095. * test/DefaultBtContextTest.cc
  10096. * src/version_usage.cc
  10097. * src/Metalink2RequestGroup.{h, cc}
  10098. * src/RequestGroup.{h, cc}
  10099. * src/a2functional.h
  10100. * test/a2functionalTest.cc
  10101. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10102. * src/OptionHandlerImpl.h
  10103. * src/prefs.h
  10104. * src/Util.{h, cc}
  10105. * test/UtilTest.cc
  10106. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10107. memory usage.
  10108. * src/RequestGroupMan.{h, cc}
  10109. * src/DownloadEngine.cc
  10110. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10111. WeakHandle to SharedHandle because WeakHandle could be null.
  10112. * src/RequestGroup.{h, cc}
  10113. * src/DownloadEngineFactory.cc
  10114. * src/DownloadResult.h
  10115. Set totalLength after download finished
  10116. * src/UnknownLengthPieceStorage.{h, cc}
  10117. Keep torrent file specified in metalink in memory.
  10118. * src/Metalink2RequestGroup.cc
  10119. * src/BtDependency.cc
  10120. * src/TrueRequestGroupCriteria.h
  10121. Fixed the bug: seekg is used where seekp should be used.
  10122. * src/ByteArrayDiskWriter.cc
  10123. * test/ByteArraydiskWriterTest.cc
  10124. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Fixed syntax error
  10126. * test/SequenceTest.cc
  10127. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10129. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10130. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10131. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10132. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Added the check to see whether ares_host_callback accepts timeouts
  10134. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10135. * src/NameResolver.{h, cc}
  10136. * m4/libcares.m4
  10137. * configure.ac: Set C++ for language choice.
  10138. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Fixed: compilation fails without c-ares/ares
  10140. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10141. Generate http/ftp commands only when download is incomplete.
  10142. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10143. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Corrected typo. Examples are removed since they are available in man
  10145. page.
  10146. * src/version_usage.cc
  10147. Updated man page.
  10148. * doc/aria2c.1
  10149. * doc/aria2c.1.txt
  10150. * doc/makeman: Commented out sed command.
  10151. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Throw DlAbortEx when a remote file is not found.
  10153. * src/HttpResponse.cc
  10154. * src/FtpNegotiationCommand.cc
  10155. * src/message.h
  10156. Overwrite an existing file if --allow-overwrite=true is given.
  10157. * src/RequestGroup.cc
  10158. Removed unused functions
  10159. * src/AbstractCommand.h
  10160. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Removed 'extern' from 'extern typedef ...' in src/*.h
  10162. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Updated usage
  10164. * src/version_usage.cc
  10165. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Trim announce URL
  10167. * src/DefaultBtContext.cc
  10168. * test/ShaVisitorTest.cc
  10169. Trim argument s. Give trimed s to exception constructor.
  10170. * src/Util.cc (parseInt)(parseLLInt)
  10171. * test/UtilTest.cc
  10172. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Set precision back to 1.
  10174. * src/ConsoleStatCalc.cc (calculateStat)
  10175. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Replaced strtol with Util::parseInt
  10177. * src/ChunkedEncoding.cc
  10178. * src/HttpConnection.cc
  10179. * src/CookieBoxFactory.cc
  10180. * src/ParameterizedStringParser.cc
  10181. * src/Util.cc
  10182. * test/UtilTest.cc
  10183. * test/OptionHandlerTest.cc
  10184. * src/Request.cc
  10185. Throw exception when empty string is given. The message for exception
  10186. changed.
  10187. * src/Util.cc (parseInt)(parseLLInt)
  10188. * src/message.h
  10189. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10191. set to 1.
  10192. * src/ConsoleStatCalc.cc (calculateStat)
  10193. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Preallocate non-requested file which is adjacent forward to requested
  10195. file('requested' files means the files given in --select-file option)
  10196. if they share a same piece.
  10197. This fixes long pause in the file system which doesn't support sparse
  10198. files like FAT32 while downloading.
  10199. * src/MultiFileAllocationIterator.{h, cc}
  10200. * test/MultiFileAllocationIteratorTest.cc
  10201. * src/FileEntry.{h, cc}
  10202. Removed unused _option.
  10203. * src/MultiDiskAdaptor.h
  10204. * test/MultiDiskAdaptorTest.cc
  10205. * src/DefaultPieceStorage.cc
  10206. Set the default value of --seed-ratio to 1.0.
  10207. If 0.0 is given, then seeding continues regardless of share ratio.
  10208. * src/version_usage.cc
  10209. * src/option_processing.cc
  10210. * src/BtSetup.cc
  10211. * doc/aria2c.1.txt
  10212. * doc/aria2c.1
  10213. Fixed: Selective download is not working in BitTorrent
  10214. * src/RequestGroup.cc
  10215. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10216. * src/PieceStorage.h
  10217. * test/MockPieceStorage.h
  10218. * src/UnknownLengthPieceStorage.h
  10219. * src/DefaultPieceStorage.{h, cc}
  10220. * src/Metalink2RequestGroup.cc
  10221. * src/RequestGroup.cc
  10222. * src/Sequence.h
  10223. * test/SequenceTest.cc
  10224. * src/IntSequence.h
  10225. * src/message.h
  10226. * src/Util.{h, cc}
  10227. * test/UtilTest.cc
  10228. Added new function 'parse' to catch exception thrown by subclass's
  10229. parseArg
  10230. * src/OptionHandler.h
  10231. * src/OptionParser.cc
  10232. * src/NameMatchOptionHandler.h
  10233. * src/OptionHandlerImpl.h
  10234. * test/OptionHandlerTest.cc
  10235. Added IntegerRangeOptionHandler. Used for --listen-port and
  10236. --select-file. Now --listen-port accepts range of port.
  10237. * src/OptionHandlerFactory.cc
  10238. * src/version_usage.cc
  10239. * src/OptionHandlerImpl.h
  10240. * src/option_processing.cc
  10241. * src/BtSetup.cc
  10242. * src/PeerListenCommand.{h, cc}
  10243. * doc/aria2c.1.txt
  10244. * doc/aria2c.1
  10245. Implemented operator< for Exception class to provide easy way to print
  10246. exception stack trace.
  10247. * src/Exception.{h, cc}
  10248. * src/main.cc
  10249. * src/option_processing.cc
  10250. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. * src/version_usage.cc
  10252. (showVersion): Reworked.
  10253. (showUsage): Added examples.
  10254. Removed Hint for total length and file name.
  10255. * src/Metalink2RequestGroup.cc
  10256. * src/RequestGroup.{h, cc}
  10257. * src/HttpResponseCommand.cc
  10258. * src/FtpNegotiationCommand.cc
  10259. Now --follow-torrent and --follow-metalink option work properly.
  10260. * src/RequestGroup.cc
  10261. Updated man page
  10262. * doc/aria2c.1.txt
  10263. * doc/aria2c.1
  10264. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Removed.
  10266. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10267. Use Segment::operator==()
  10268. * src/HttpConnection.cc
  10269. * src/Segment.h
  10270. Updated usage
  10271. * src/version_usage.cc
  10272. Added EINTR treatment.
  10273. * src/SocketCore.cc
  10274. * src/AbstractDiskWriter.cc
  10275. Rewritten.
  10276. * src/Util.cc (rangedFileCopy)
  10277. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Fixed typo.
  10279. * src/version_usage.cc
  10280. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Implemented. Now -c option works fine.
  10282. * src/DefaultPieceStorage.cc (markPiecesDone)
  10283. * test/DefaultPieceStorageTest.cc
  10284. Removed.
  10285. * src/SegmentMan.{h, cc}
  10286. (markAllPiecesDone)
  10287. (markPieceDone)
  10288. Synchronized po files with
  10289. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10290. * src/fr.po
  10291. * src/ru.po
  10292. * src/de.po
  10293. * src/ja.po
  10294. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Added ifdef and some modifications to compile without BitTorrent,
  10296. Metalink, MessageDigest
  10297. support.
  10298. * src/PieceHashCheckIntegrityEntry.cc
  10299. * src/MetalinkEntry.h
  10300. * src/version_usage.cc
  10301. * src/main.cc
  10302. * src/DownloadEngine.{h, cc}
  10303. * src/Metalink2RequestGroup.cc
  10304. * src/Peer.cc
  10305. * src/RequestGroup.cc
  10306. * src/MetalinkHelper.cc
  10307. * test/DefaultPieceStorageTest.cc
  10308. * test/MetalinkPostDownloadHandlerTest.cc
  10309. * test/Metalink2RequestGroupTest.cc
  10310. Hide TOTAL SPD when all downloads complete.
  10311. * src/ConsoleStatCalc.cc
  10312. Log target system information.
  10313. * src/main.cc
  10314. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Now --metalink-location accepts a comma-deliminated list of locations.
  10316. * src/MetalinkEntry.{h, cc}
  10317. * test/MetalinkEntryTest.cc
  10318. * src/version_usage.cc
  10319. * src/Metalink2RequestGroup.cc
  10320. * src/Xml2MetalinkProcessor.cc
  10321. * test/Xml2MetalinkProcessorTest.cc
  10322. * doc/aria2c.1.txt
  10323. * doc/aria2c.1
  10324. * src/Util.cc (toUpper)(toLower): Rewritten.
  10325. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Added the ability to detect duplicate download entry which is about to
  10327. download the same file other RequestGroup is downloading.
  10328. * src/RequestGroup.cc
  10329. * src/HttpResponseCommand.cc
  10330. * src/FtpNegotiationCommand.cc
  10331. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Recalculates download progress when loading a control file,
  10333. if the piece length of DownloadContext is different from the one saved
  10334. in the control file. Currently in-flight pieces are ignored.
  10335. * src/DefaultBtProgressInfoFile.cc
  10336. * test/DefaultBtProgressInfoFileTest.cc
  10337. * src/Util.{h, cc}
  10338. * test/UtilTest.cc
  10339. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Do not rotate tiers in announce-list.
  10341. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10342. AnnounceList::allTiersFailed() used instead to detect whether all
  10343. tiers are tried and failed.
  10344. * test/DefaultBtAnnounceTest.cc
  10345. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10346. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10347. * test/AnnounceListTest.cc
  10348. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10349. clause. Catch RecoverableException instead of DlRetryEx instead.
  10350. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Implemented checksum validation feature(1 checksum for each file)
  10352. The validation takes place after the download.
  10353. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10354. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10355. * src/CheckIntegrityCommand.cc: Changed log message.
  10356. * src/Metalink2RequestGroup.cc: Set checksum to
  10357. SingleFileDownloadContext.
  10358. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10359. PieceHashCheckIntegrity class.
  10360. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10361. PieceHashCheckIntegrity class.
  10362. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10363. * src/IteratableValidator.h: New class.
  10364. * src/message.h
  10365. * src/CheckIntegrityEntry.{h, cc}
  10366. * src/IteratableChunkChecksumValidator.{h, cc}
  10367. * src/SingleFileDownloadContext.h
  10368. * src/DownloadCommand.cc
  10369. --allow-overwrite=true is no longer needed to check file integrity
  10370. before download in BitTorrent download.
  10371. * src/RequestGroup.cc (getInitialCommand)
  10372. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10373. throws exception.
  10374. * src/RequestGroupMan.cc (getInitialCommands)
  10375. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. urlencode the given url inside Request::parseUrl(...)
  10377. * src/Request.{h, cc}
  10378. * src/Util.{h, cc}
  10379. * test/RequestTest.cc
  10380. Removed #!metalink3! notation support because it is deleted from
  10381. the metalink specification.
  10382. * src/Request.{h, cc}
  10383. * test/RequestTest.cc
  10384. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10385. Don't connect server before checking file integrity at startup, if
  10386. filesize and output file path are known.
  10387. * src/AbstractCommand.cc
  10388. * src/StreamFileAllocationEntry.cc
  10389. * src/Metalink2RequestGroup.cc
  10390. * src/RequestGroup.{h, cc}
  10391. * src/HttpResponseCommand.cc
  10392. * src/FtpNegotiationCommand.cc
  10393. Added DownloadFailureException. If it is thrown, RequestGroup should
  10394. halt.
  10395. * src/AbstractCommand.cc
  10396. * src/DownloadFailureException.h
  10397. * src/RequestGroup.cc
  10398. Catch RecoverableException, instead of DlAbortEx.
  10399. * src/RequestGroupMan.cc
  10400. * src/FillRequestGroupCommand.cc
  10401. * src/MetaFileUtil.cc
  10402. * src/IteratableChunkChecksumValidator.cc
  10403. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10404. getGID())
  10405. * src/CheckIntegrityCommand.cc
  10406. * src/message.h
  10407. Print gid instead of idx.
  10408. * src/RequestGroupMan.cc
  10409. Removed exception throwers declaration.
  10410. * src/DirectDiskAdaptor.{h, cc}
  10411. * src/SocketCore.{h, cc}
  10412. * src/MultiDiskAdaptor.{h, cc}
  10413. * src/HttpConnection.{h, cc}
  10414. * src/HttpResponse.{h, cc}
  10415. * src/DiskAdaptor.{h, cc}
  10416. * src/CopyDiskAdaptor.{h, cc}
  10417. * src/MultiDiskAdaptor.{h, cc}
  10418. * src/HttpHeaderProcessor.{h, cc}
  10419. * src/AbstractSingleDiskAdaptor.{h, cc}
  10420. * src/Util.{h, cc}
  10421. * test/UtilTest.cc
  10422. * src/DefaultDiskWriter.{h, cc}
  10423. * src/FtpConnection.{h, cc}
  10424. * src/AbstractDiskWriter.{h, cc}
  10425. Removed duplicate code.
  10426. * src/StreamCheckIntegrityEntry.cc
  10427. Removed unnecessary include.
  10428. * src/DiskWriter.h
  10429. Included Exception.h
  10430. * src/option_processing.cc
  10431. Included 2 files and added doc
  10432. * src/TrackerWatcherCommand.cc
  10433. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10434. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Changed CheckIntegrityEntry interface so that it can define
  10436. the action when all the chunk checksums are valid.
  10437. * src/CheckIntegrityEntry.h
  10438. * src/StreamCheckIntegrityEntry.{h, cc}
  10439. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10440. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10441. to exit rather than doing seeding. So, it would be good to toggle this
  10442. behavior.
  10443. * src/CheckIntegrityCommand.cc
  10444. * src/AbstractCommand.cc
  10445. * src/RequestGroup.cc
  10446. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Reflect the download length of in-flight pieces.
  10448. It makes the download length readout more precise.
  10449. * src/DefaultPieceStorage.{h, cc}
  10450. * test/DefaultPieceStorageTest.cc
  10451. * src/a2functional.h
  10452. * test/a2functionalTest.cc
  10453. Lower CPU load when --max-download-limit is used.
  10454. There is up and down in speed indicator when enabling
  10455. http-pipelining but a download goes well. I think the problem is that
  10456. because http-pipelining is enabled, DownloadCommand is created for
  10457. each segment and in its constructor, PeerStat::downloadStart() is
  10458. called. In PeerStat::downloadStart(), speed calculation object is
  10459. reseted, which makes download speed zero.
  10460. * src/DownloadCommand.cc
  10461. Rewritten using accumulate.
  10462. * src/RequestGroupMan.cc (calculateStat)
  10463. Code clearnup.
  10464. * src/FtpNegotiationCommand.cc
  10465. * src/HttpResponseCommand.cc
  10466. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Fixed: Can not resume: aria2 reports download already finished.
  10468. * src/AbstractCommand.{h, cc}
  10469. * src/HttpResponseCommand.cc
  10470. * src/FtpNegotiateCommand.cc
  10471. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10472. Now a file is stored in the directory specified in .metalnk file
  10473. (file[@name]).
  10474. * src/Metalink2RequestGroup.cc
  10475. Create the directory structure when opening the file if it doesn't
  10476. exist.
  10477. * src/AbstractDiskWriter.cc
  10478. * src/Util.{h, cc}
  10479. * src/File.h
  10480. * test/UtilTest.cc
  10481. Removed file name comparison
  10482. * src/Metalink2RequestGroup.cc
  10483. * src/HttpResponseCommand.cc
  10484. Rewritten using Util::mkdirs()
  10485. * src/FileEntry.cc (setupDir)
  10486. * test/FileEntryTest.cc
  10487. Updated doc
  10488. * src/SingleFileDownloadContext.h
  10489. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Now SleepCommand dispatches nextCommand when halt is requested.
  10491. It avoids a possible long wait after hitting CTRL-C.
  10492. * src/SleepCommand.{h, cc}
  10493. * src/RequestGroupAware.{h, cc}
  10494. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10496. to open listen port, then remove the port number from the tracker
  10497. request.
  10498. * src/DefaultBtAnnounce.cc
  10499. * test/DefaultBtAnnounceTest.cc
  10500. * test/MockPieceStorage.h
  10501. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10502. them more testable.
  10503. * src/DefaultBtAnnounce.{h, cc}
  10504. * src/DefaultBtContext.{h, cc}
  10505. * src/Util.{h, cc}
  10506. * test/DefaultBtAnnounceTest.cc
  10507. * test/DefaultBtContextTest.cc
  10508. * test/UtilTest.cc
  10509. Added 'B' to upload bytes readout.
  10510. * src/ConsoleStatCalc.cc
  10511. Now the listen port for BitTorrent download is opened when it is
  10512. needed.
  10513. * src/DownloadEngineFactory.cc
  10514. * src/BtSetup.{h, cc}
  10515. * src/PeerListenCommand.{h, cc}
  10516. Now an exception thrown while parsing tracker response is now logged.
  10517. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10518. called, which means no retry is made in this case, assuming a tracker
  10519. has a problem.
  10520. * src/TrackerWatcherCommand.cc
  10521. Fixed: downloading a file whose length is unkown fails.
  10522. * src/DownloadCommand.cc
  10523. Simplified prepareForNextSegment()
  10524. * src/DownloadCommand.cc
  10525. Updated
  10526. * po/POTFILES.in
  10527. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. Re-implemented a file listing for Metalink, which was dropped while
  10529. http/ftp/torrent integration was being implemented.
  10530. * src/MetalinkHelper.{h, cc}: New class.
  10531. * test/MetalinkHelperTest.cc
  10532. * src/main.cc
  10533. * src/Metalink2RequestGroup.cc
  10534. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Added the ability to display the detailed torrent file information.
  10536. Now -S option gives not only a file listing, but also total download
  10537. length, info hash, announce URI, piece length, the number of pieces,
  10538. and mode(single or multi-torrent).
  10539. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10540. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10541. KiB)
  10542. * test/UtilTest.cc
  10543. * src/main.cc
  10544. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Added ftp://USER:PASSWD@Servername automatic parsing.
  10546. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10547. _password. Recognize username and password in URI.
  10548. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10549. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10550. * src/RequestFactory.{h, cc}: Removed.
  10551. * src/AuthConfigFactory.{h, cc}: New class.
  10552. * src/FtpConnection.cc: Use AuthConfigFactory.
  10553. * src/HttpRequest.cc: Use AuthConfigFactory.
  10554. * test/HttpRequestTest.cc: Updated.
  10555. * test/RequestTest.cc: Updated.
  10556. * test/AuthConfigFactoryTest.cc: New class.
  10557. * test/RequestFactoryTest.cc: Removed.
  10558. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Use RequestGroup::allDownloadFinished() to decide whether the control
  10560. file should be removed or saved.
  10561. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10562. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10563. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. Use File::renameTo()
  10565. * src/DefaultBtProgressInfoFile.cc
  10566. Added --no-file-allocation-limit command-line option.
  10567. * src/version_usage.cc
  10568. * src/option_processing.cc
  10569. * src/OptionHandlerFactory.cc
  10570. * src/RequestGroup.{h, cc}
  10571. * src/BtCheckIntegrityEntry.cc
  10572. * src/StreamCheckIntegrityEntry.cc
  10573. * src/prefs.h
  10574. * doc/aria2c.1.txt
  10575. * doc/aria2c.1
  10576. Now prealloc is the default value for --file-allocation option.
  10577. * src/version_usage.cc
  10578. * src/option_processing.cc
  10579. * doc/aria2c.1.txt
  10580. * doc/aria2c.1
  10581. Don't URL-encode user-agent.
  10582. * src/HttpRequest.cc
  10583. Updated translations
  10584. * po/LINGUAS: Added nl for Dutch translation.
  10585. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10586. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10587. * po/POTFILES.in: Updated.
  10588. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Added the ability to recognize url-list in a torrent file.
  10590. The retrieved URLs are attached to the corresponding FileEntry.
  10591. * src/DefaultBtContext.{h, cc}
  10592. * src/FileEntry.{h, cc}
  10593. * test/DefaultBtContextTest.cc
  10594. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10596. after the download finishes.
  10597. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10599. the data smaller than block length.
  10600. A block length can be specified by constructor's argument.
  10601. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10602. Get a missing piece in the range of given FileEntry. This function is
  10603. not used in the program yet.
  10604. * src/Util.h: Added some macros.
  10605. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Added HTTP/1.1 keep alive and pipelining support.
  10607. See --enable-http-keep-alive and --enable-http-pipelining option.
  10608. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10609. Segment.
  10610. * src/HttpDownloadCommand.{h, cc}
  10611. * src/OptionHandlerFactory.cc
  10612. * src/HttpConnection.{h, cc}
  10613. * src/version_usage.cc
  10614. * src/HttpInitiateConnectionCommand.cc
  10615. * src/FtpInitiateConnectionCommand.cc
  10616. * src/Segment.h
  10617. * src/HttpRequestCommand.{h, cc}
  10618. * src/option_processing.cc
  10619. * src/prefs.h
  10620. * src/HttpResponseCommand.cc
  10621. * src/SegmentMan.{h, cc}
  10622. * src/FtpNegotiateCommand.cc
  10623. * src/HttpProxyResponseCommand.cc
  10624. * src/Request.cc
  10625. * src/HttpRequest.cc
  10626. * src/DownloadCommand.cc
  10627. * test/HttpRequestTest.cc
  10628. * test/RequestTest.cc
  10629. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10631. finished.
  10632. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10634. catching it inside the method.
  10635. When no file entry is found in a metalink without querying user
  10636. preferences, throw the exception with the error message that suggests
  10637. metalink file is probably broken.
  10638. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10639. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10641. processed.
  10642. * src/RequestGroupMan.cc (removeStoppedGroup)
  10643. Added debug message.
  10644. * src/BtPostDownloadHandler.cc
  10645. * src/MetalinkPostDownloadHandler.cc
  10646. * src/PostDownloadHandler.{h, cc}
  10647. * src/RequestGroup.cc
  10648. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10650. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10652. stops and there are any unfinished or in-progress downloads.
  10653. Added the legend of "stat".
  10654. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. Throw exception when chunck checksum verification fails.
  10656. * src/DownloadCommand.cc (validatePieceHash): New function.
  10657. * src/PiecedSegment.{h, cc} (clear): New function.
  10658. * src/GrowSegment.{h, cc} (clear): New function.
  10659. * src/Segment.h (clear): New function.
  10660. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10661. * test/SegmentTest.cc
  10662. * test/GrowSegmentTest.cc
  10663. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Do not send referer when redirected.
  10665. * src/Request.cc (redirectUrl)
  10666. * test/RequestTest.cc
  10667. * test/HttpRequestTest.cc
  10668. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Implemented BitTorrent/http/ftp integrated download.
  10670. I've rewritten lots of files and now some headers have forward
  10671. class declarations to reduce compile time.
  10672. The implementation is extremely alpha stage, I recommend to use this
  10673. for testing purpose only.
  10674. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. Fixed the compilation error on 64bit platform.
  10676. * test/HttpHeaderProcessorTest.cc
  10677. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Merged Ross's patch that fixes compilation problem in MinGW
  10679. * test/DefaultBtProgressInfoFileTest.cc
  10680. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Updated fr.po by sebone
  10682. * po/fr.po
  10683. Updated man page.
  10684. * doc/aria2c.1.txt
  10685. * Release 0.11.3
  10686. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10688. failure in Metalink.
  10689. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Automatically save *.aria2 control file of http/ftp download in every
  10691. 60 seconds.
  10692. * src/AutoSaveCommand.{h, cc}: New class.
  10693. * src/TimeBasedCommand.{h, cc}: New class.
  10694. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10695. Disable parameterized URI support by default. Added -P option to
  10696. enable the feature.
  10697. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10698. * src/OptionHandlerFactory.cc
  10699. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10700. Updated Japanese translation.
  10701. * po/ja.po
  10702. Updated man page.
  10703. * doc/aria2c.1.txt
  10704. * Release 0.11.3-rc
  10705. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10707. it is successful, then renamed to *.aria2.
  10708. This prevents *.aria2 file from being truncated or corrupted when
  10709. file system becomes out of space.
  10710. * src/DefaultBtProgressInfoFile.cc (save)
  10711. * src/SegmentMan.cc (save)
  10712. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10713. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Reduced the fragmentation of bitfield in http/ftp download.
  10715. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10716. * test/BitfieldManTest.cc
  10717. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Added the ability to disable segmented download in .metalink.
  10719. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10720. 'url' tag.
  10721. * src/MetalinkEntry.{h, cc}
  10722. * src/RequestResource.{h, cc}
  10723. * src/MetalinkRequestInfo.cc
  10724. * src/Xml2MetalinkProcessor.cc
  10725. * test/Xml2MetalinkProcessorTest.cc
  10726. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. Added parameterized URI support.
  10728. * src/main.cc: -Z option added.
  10729. * src/OptionHandlerFactory.cc
  10730. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10731. * src/PStringDatum.h: New class.
  10732. * src/PStringSegment.{h,cc}: New class.
  10733. * src/PStringNumLoop.h: New class.
  10734. * src/PStringSelect.h: New class.
  10735. * src/NumberDecorator.h: New class.
  10736. * src/FixedWidthNumberDecorator.h: New class.
  10737. * src/AlphaNumberDecorator.h: New class.
  10738. * src/PStringVisitor.h: New class.
  10739. * src/PStringBuildVisitor.{h,cc}: New class.
  10740. * src/ParameterizedStringParser.{h,cc}: New class.
  10741. * src/Util.{h,cc}
  10742. (isNumber): New function.
  10743. (isLowercase): New function.
  10744. (isUppercase): New function.
  10745. (alphaToNum): New function.
  10746. * test/ParameterizedStringParserTest.cc: New class.
  10747. * test/AlphaNumberDecoratorTest.cc: New class.
  10748. * test/PStringBuildVisitorTest.cc: New class.
  10749. * test/UtilTest.cc
  10750. (testIsNumber): New function.
  10751. (testIsLowercase): New function.
  10752. (testIsUppercase): New function.
  10753. (testAlphaToNum): New function.
  10754. Added '\n' after the error message
  10755. * src/RequestInfo.h (printDownloadAbortMessage)
  10756. Added auto file renaming feature in http(s)/ftp download.
  10757. * src/main.cc: Added --auto-file-renaming command-line option.
  10758. * src/OptionHandlerFactory.cc
  10759. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10760. * src/RequestGroup.{h, cc}
  10761. (shouldCancelDownloadForSafety): Rewritten
  10762. (tryAutoFileRenaming): New function.
  10763. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10764. * src/HttpResponseCommand.cc
  10765. (executeInternal): Removed the call to RequestGroupMan::
  10766. isSameFileBeingDownloaded()
  10767. * src/FtpNegotiateCommand.cc
  10768. (recvSize): Removed the call to RequestGroupMan::
  10769. isSameFileBeingDownloaded()
  10770. * test/RequestGroupTest.cc: New class.
  10771. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10773. IO.
  10774. * src/DefaultBtProgressInfoFile.cc
  10775. * src/MetaFileUtil.cc
  10776. * src/SimpleLogger.cc
  10777. * src/SegmentMan.cc
  10778. * src/Util.cc
  10779. * src/Platform.cc
  10780. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10782. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10784. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10785. Fixed the bug that prevents file allocation is not done when
  10786. dowloading multi-torrent file.
  10787. * src/AbstractDiskWriter.cc (openFile)
  10788. Increase the maximum number of -j option from 15 to 45.
  10789. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10790. Added fr.po, thanks to Charles Landemaine.
  10791. * po/fr.po
  10792. * po/LINGUAS
  10793. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10794. gcc 3.4.4 support:
  10795. * src/DefaultBtContext.cc: int32_t -> int
  10796. * src/main.cc: int -> int32_t, int32_t -> int
  10797. * src/messageDigest.h: uint32_t -> unsigned int
  10798. * src/NameResolver.h: int32_t -> int
  10799. * src/PeerConnection.cc: int -> int32_t
  10800. * src/SpeedCalc.cc: int32_t -> int
  10801. * src/TrackerUpdateCommand.h: int -> int32_t
  10802. * src/Util.cc: int32_t -> int
  10803. * src/Util.h: int32_t -> int
  10804. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10805. * test/AnnounceListTest.cc: int -> int32_t
  10806. * test/ChunkedEncodingTest.cc: int -> int32_t
  10807. * test/DataTest.cc: int -> int32_t
  10808. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10809. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10810. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10811. * test/FeatureConfigTest.cc: int -> int32_t
  10812. * test/MetalinkEntryTest.cc: int -> int32_t
  10813. * test/MockBtRequestFactory.h: int -> int32_t
  10814. * test/MockPieceStorage.h: int -> int32_t
  10815. * test/OptionTest.cc: int -> int32_t
  10816. * test/RequestTest.cc: int -> int32_t
  10817. * test/SegmentManTest.cc: int -> int32_t
  10818. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10819. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10820. Move sleep functions to Util class:
  10821. * src/Util.cc
  10822. (sleep): New function.
  10823. (usleep): New function.
  10824. * src/DownloadCommand.cc: sleep -> Util::sleep
  10825. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10826. MinGW build enhancements. The following files are added:
  10827. * src/timegm.{c,h}
  10828. Changes to support the above new files:
  10829. * configure.ac
  10830. * src/Makefile.am
  10831. * src/a2time.h
  10832. * src/Util.cc:
  10833. * src/strptime.c: Added support for %Z option.
  10834. Fixed MinGW non-blocking bug.
  10835. * src/SocketCore.cc
  10836. * src/HttpRequestCommand.cc
  10837. Miscellenous build fixes/enhancements.
  10838. * configure.ac: Added summary report.
  10839. * src/Platform.h: Tweaked #include's.
  10840. * src/a2netcompat.h: Tweaked #include's.
  10841. * src/strptime.h: Tweaked #include's.
  10842. * src/gai_strerror.c: Tweaked #include's.
  10843. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10844. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10845. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10846. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Increased the initial connection size in BitTorrent download to 40.
  10848. * src/BtRuntime.h
  10849. Added the usage message of --peer-id-prefix option.
  10850. * src/main.cc
  10851. * Release 0.11.2
  10852. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. MessageDigestHelper is introduced in order to simplify the use
  10854. of message digest. Removed repeated code.
  10855. The message digest algorithm is now specified by string, like "sha1",
  10856. "md5".
  10857. * src/messageDigest.{h, cc}
  10858. * src/MessageDigestHelper.{h, cc}: New class.
  10859. * src/DefaultPieceStorage.cc
  10860. * src/DefaultBtContext.{h, cc}
  10861. (computeFastSet): New function.
  10862. (setInfoHash): Added for unit testing.
  10863. (setNumPieces): Added for unit testing.
  10864. * src/DefaultBtInteractive.cc
  10865. * src/BtPieceMessage.cc
  10866. * src/Peer.cc
  10867. * src/Checksum.h
  10868. * src/message.h
  10869. * src/IteratableChecksumValidator.h
  10870. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10871. inside it.
  10872. * src/SegmentMan.{h, cc}
  10873. (checkIntegrity): Removed.
  10874. * src/IteratableChunkChecksumValidator.{h, cc}
  10875. * src/Util.h
  10876. (sha1Sum): Removed.
  10877. (simpleMessageDigest): Removed.
  10878. (fileChecksum): Removed.
  10879. (computeFastSet): Removed.
  10880. * src/ShaVisitor.cc
  10881. * src/ChunkChecksum.h
  10882. * src/DownloadCommand.cc
  10883. Removed messageDigest virtual functions.
  10884. * src/MultiDiskAdaptor.{h, cc}
  10885. * src/DiskAdaptor.h
  10886. * src/ByteArrayDiskWriter.h
  10887. * src/DiskWriter.h
  10888. * src/DiskAdaptorWriter.h
  10889. * src/AbstractSingleDiskAdaptor.{h, cc}
  10890. * src/AbstractDiskWriter.{h, cc}
  10891. Fixed comilation error when message digest is disabled.
  10892. * src/MetalinkEntry.{h, cc}
  10893. * src/MetalinkRequestInfo.cc
  10894. Removed srandom and random.
  10895. * src/SimpleRandomizer.h
  10896. Added size() virtual function to DiskAdaptor
  10897. * src/MultiDiskAdaptor.h
  10898. Fixed the bug that causes that files are not opened correctly in
  10899. multi-file torrent.
  10900. * src/TorrentRequestInfo.cc
  10901. * src/MultiDiskAdaptor.cc
  10902. Added SHA256 support
  10903. * src/messageDigest.cc
  10904. * src/Xml2MetalinkProcessor.cc
  10905. Show supported message digest algorithms
  10906. * src/main.cc
  10907. Updated contact info.
  10908. * src/main.cc
  10909. Applied Ross's patch
  10910. * src/a2netcompat.h
  10911. * src/main.cc
  10912. Fixed the bug that prevents a remote metalink from not being processed
  10913. even if '-o foo.metalink' is specified.
  10914. * src/MetalinkRequestInfo.cc
  10915. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10916. Merged Dan's patch:
  10917. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10918. Use va_copy to avoid core dump on amd64:
  10919. * src/SimpleLogger.cc
  10920. Updated contact info.
  10921. * src/main.cc
  10922. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10923. digest is not available.
  10924. * src/MetalinkEntry.h
  10925. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Make a2netcompat.h include a2io.h to fix compilation error:
  10927. * src/a2netcompat.h
  10928. * src/SocketCore.cc: Removed include of a2io.h
  10929. * src/Util.cc: Removed include of a2io.h
  10930. Gather time related functions to a2time.h:
  10931. * src/a2time.h: New file.
  10932. * src/DefaultPeerStorage.cc
  10933. * src/SimpleLogger.cc
  10934. * src/Util.{h, cc}
  10935. * src/SimpleRandomizer.h
  10936. * src/TimeA2.{h,cc}
  10937. * src/DownloadCommand.cc
  10938. * src/main.cc
  10939. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10940. a2netcompat.h:
  10941. * src/NameResolver.cc
  10942. Fixed compilation error without openssl:
  10943. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10944. Added default block to suppress compiler warnings:
  10945. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10946. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10947. MinGW build enhancements. The following files are added:
  10948. * src/gai_strerror.{c,h}
  10949. * src/gettimeofday.{c,h}
  10950. Changes to support the above new files:
  10951. * configure.ac
  10952. * src/Makefile.am
  10953. * src/a2netcompat.h
  10954. * src/TimeA2.cc
  10955. * src/DefaultPeerStorage.cc
  10956. * src/NameResolver.cc: removed mingw_strerror() function.
  10957. * src/SocketCore.cc: removed mingw_strerror() function.
  10958. Miscellaneous MinGW build fixes.
  10959. * src/a2io.h: Use _lseeki64() instead of lseek()
  10960. * src/common.h
  10961. * src/DefaultFileAllocator.cc
  10962. * src/GlowFileAllocator.cc
  10963. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10964. * src/NameResolver.cc
  10965. (callback): Changed int32_t to int.
  10966. (resolve): Changed int32_t to int.
  10967. * src/Platform.cc
  10968. * src/Platform.h
  10969. * test/MultiDiskWriterTest.cc
  10970. * test/PeerMessageUtilTest.cc
  10971. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10972. Other enhancements and fixes.
  10973. * src/HttpRequestCommand.cc
  10974. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10975. * src/SocketCore.cc:
  10976. (error): New function to abstract errno/WSAGetLastError().
  10977. (errorMsg): New function to abstract errno/WSAGetLastError().
  10978. (initiateSecureConnection): Added more detailed error reporting.
  10979. * src/SocketCore.h: Added private variable blocking, to allow
  10980. proper handling of OpenSSL psuedo-errors.
  10981. * src/message.h
  10982. (EX_SSL_INIT_FAILURE)
  10983. (EX_SSL_IO_ERROR)
  10984. (EX_SSL_PROTOCOL_ERROR)
  10985. (EX_SSL_UNKNOWN_ERROR)
  10986. (EX_SSL_CONNECT_ERROR)
  10987. (EX_SOCKET_BLOCKING)
  10988. (EX_SOCKET_NONBLOCKING)
  10989. (EX_SOCKET_UNKNOWN_ERROR)
  10990. * src/Util.cc
  10991. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10992. reserved name.
  10993. (httpGMT): Fixed typo.
  10994. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Merged Ross's win32 patch(manually)
  10996. In the course of merging, following files are added.
  10997. * src/strptime.{h,c}
  10998. * src/libgen.{h,c}
  10999. * src/inet_aton.{h,c}
  11000. * src/Platform.{h,cc}
  11001. * src/localtime_r.{h,c}
  11002. * src/getaddrinfo.{h,c}
  11003. I've gethered network related things, and put them to following file:
  11004. * src/a2netcompat.h
  11005. Also io related things are put to following file:
  11006. * src/a2io.h
  11007. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11008. * src/message.h
  11009. (MSG_ALLOCATION_COMPLETED)
  11010. (EX_TOO_LARGE_FILE)
  11011. (EX_SIZE_MISMATCH)
  11012. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11013. (EX_INVALID_CHUNK_CHECKSUM)
  11014. (EX_INVALID_RANGE_HEADER)
  11015. * src/FileAllocationCommand.cc
  11016. * src/HttpResponse.cc
  11017. * src/RequestGroup.cc
  11018. * src/MultiDiskAdaptor.cc
  11019. * src/OptionHandlerImpl.h
  11020. * src/HttpResponseCommand.cc
  11021. * src/FtpNegotiateCommand.cc
  11022. * src/IteratableChecksumValidator.cc
  11023. * src/SegmentMan.cc
  11024. * src/ChunkChecksumValidator.cc
  11025. Added Randomizer::getRandomNumber(long int)
  11026. * src/Randomizer.h (getRandomNumber)
  11027. * src/SimpleRandomizer.h (getRandomNumber)
  11028. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11029. * src/Util.cc (randomAlpha): Use this new function.
  11030. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11031. Converted int's to in32_t. long long int's are also converted to
  11032. int64_t
  11033. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Fixed the bug that prevents cookies from being sent to the server
  11035. if the domain of cookie is FQDN and starts with ".".
  11036. * src/Cookie.cc (match)
  11037. To add the ability to change peer id.
  11038. * src/DefaultBtContext.h
  11039. (_peerIdPrefix): New variable
  11040. (setPeerIdPrefix): New function.
  11041. * src/torrentRequestInfo.cc
  11042. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11043. DefaultBtContext.
  11044. * src/main.cc (main): Added peer-id-prefix command-line option.
  11045. The usage message is not added yet.
  11046. * src/DefaultBtContext.cc
  11047. (generatePeerId): Use _peerIdPrefix.
  11048. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11049. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Fixed the bug that prevents filename in content-disposition from
  11051. being retrieved when filename is not quoted.
  11052. * src/Util.cc (getContentDispositionFilename)
  11053. Fixed the bug that causes infinate loop and memory leak when file open
  11054. operation failed.
  11055. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11056. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. Fixed the bug that causes segfault when all URIs specified are
  11058. unsupported.
  11059. * src/RequestGroupMan.cc (getInitialCommands)
  11060. Check if RequestGroup::createNextCommand() returns empty list of
  11061. commands.
  11062. * src/RequestGroup.cc (createNextCommand)
  11063. Change log level from info to error so that users can notice that
  11064. an error occurred.
  11065. Fixed the bug that causes segfault when a zero-sized file is
  11066. downloaded.
  11067. * src/BitfieldMan.cc (isAllBitSet)
  11068. Return true if bitfieldLength is 0.
  11069. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. * src/main.cc
  11071. (showUsage): Added 3 usage examples for metalink download.
  11072. Replace MetalinkChunkChecksum with ChunkChecksum.
  11073. * src/MetalinkChunkChecksum.h: Removed.
  11074. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11075. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11076. * src/Xml2MetalinkProcessor.cc
  11077. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11078. * src/MetalinkRequestInfo.cc (execute)
  11079. * Release 0.11.1
  11080. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Reads URIs from stdin when "-i -" is specified.
  11082. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11083. * src/UriListParser.h, src/UriListParser.cc: New class.
  11084. * src/StreamUriListParser.h: New class.
  11085. * src/FileUriListParser.h: New class.
  11086. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11087. instead of UriFileListParser.
  11088. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. Made console readout more readable.
  11090. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11091. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Fix the bug that causes -s option not to work.
  11093. * src/main.cc (main)
  11094. * src/a2algo.h: New file.
  11095. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11096. Create directory structure specified in metalink file.
  11097. * src/RequestGroup.h, src/RequestGroup.cc
  11098. (initAndOpenFile): Create a directory to store files if it does not
  11099. exist.
  11100. (getDir): New function.
  11101. Added ETA and download speed for an individual file to readout.
  11102. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11103. * src/RequestGroup.h
  11104. (calculateDownloadSpeed): New function.
  11105. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. Made -S option work with metalink file and provided selective download
  11107. to metalink.
  11108. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11109. (filename): Removed.
  11110. (file): New variable.
  11111. (size): Removed.
  11112. (operator=): Updated.
  11113. (getPath): New function.
  11114. (getLength): New function.
  11115. (toFileEntry): New function.
  11116. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11117. (execute): Use toStream.
  11118. (showFileEntry): Removed.
  11119. * src/MetalinkRequestInfo.h
  11120. (targetFiles): New variable.
  11121. (setTargetFiles): New variable.
  11122. * src/MetalinkRequestInfo.cc
  11123. (execute): Added the ability to print file information included in
  11124. a metalink file.
  11125. Added selective download mode to metalink.
  11126. * src/main.cc
  11127. (showUsage): Updated to denote that -S and --select-file options are
  11128. applicable to metalink.
  11129. * src/FileEntry.h
  11130. (operator=): New function.
  11131. (getBasename): New function.
  11132. (getDirname): New function.
  11133. * src/Util.h, src/Util.cc
  11134. (toStream): New function.
  11135. * src/Xml2MetalinkProcessor.cc: Updated.
  11136. Made aria2 work with metalink with directory structure.
  11137. * src/File.h, src/File.cc
  11138. (getBasename): New function.
  11139. (getDirname): New function.
  11140. * src/RequestGroup.h, src/RequestGroup.cc
  11141. (_topDir): New variable.
  11142. (setTopDir): New function.
  11143. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11144. Rewrote HTTP header parsing with stringstream.
  11145. * src/HttpConnection.h, src/HttpConnection.cc
  11146. (HttpRequestEntry): New class.
  11147. (headerBuf): Removed.
  11148. (headerBufLength): Removed.
  11149. (outstandingHttpRequests): Now its element type is
  11150. HttpRequestEntryHandle.
  11151. (findEndOfHeader): Removed.
  11152. (receiveResponse): Rewritten.
  11153. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11154. Updated doc for -j option to notice that it should be used with -i
  11155. option.
  11156. * src/main.cc (showUsage)
  11157. Removed unused classes.
  11158. * src/RequestInfo.h
  11159. (FileInfo): Removed.
  11160. (checksum): Removed.
  11161. (fileInfo): Removed.
  11162. (setChecksum): Removed.
  11163. (getChecksum): Removed.
  11164. (getFileInfo): Removed.
  11165. Use ISO units.
  11166. * src/ConsoleDownloadEngine.cc
  11167. * src/TorrentConsoleDownloadEngine.cc
  11168. * src/Util.cc (abbrevSize)
  11169. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Added the default listening ports to the help message.
  11171. * src/main.cc (showUsage)
  11172. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Reduce the number of calls to gettimeofday to lower CPU load.
  11174. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11175. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11176. * src/Peer.h (calculateUploadSpeed): New function.
  11177. (calculateDownloadSpeed): New function.
  11178. * src/DefaultPeerStorage.cc
  11179. (CalculateStat): Added _now variable.
  11180. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11181. and Peer::calculateUploadSpeed(const struct timeval&)
  11182. Drop connection if no request or piece message is exchanged in
  11183. a certain interval.
  11184. * src/DefaultBtInteractive.h
  11185. (btRuntime): New variable.
  11186. (inactiveCheckPoint): New variable.
  11187. (checkActiveInteraction): New function.
  11188. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11189. request or piece message is received.
  11190. (checkActiveInteraction): New function.
  11191. (doInteractionProcessing): Call checkActiveInteraction.
  11192. Fixed the bug that causes remote Metalink and Torrent files are not
  11193. processed.
  11194. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11195. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11196. Changed format of log file.
  11197. * src/SimpleLogger.cc
  11198. * Release 0.11.0
  11199. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. * src/AbstractCommand.cc
  11201. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11202. MSG_MAX_TRY from error to info.
  11203. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11204. * src/message.h
  11205. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11206. (MSG_DOWNLOAD_ABORTED): Added %s.
  11207. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11208. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11209. * src/PeerAbstractCommand.cc
  11210. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11211. * src/Request.h
  11212. (cookieBox): Made ShardHandle.
  11213. * src/RequestGroup.h, src/RequestGroup.cc
  11214. (createNextCommandWithAdj): New function.
  11215. * src/FileAllocationCommand.cc
  11216. (executeInternal): Use createNextCommandWithAdj().
  11217. * src/CheckIntegrityCommand.cc
  11218. (executeInternal): Use createNextCommandWithAdj().
  11219. Added --load-cookies command-option.
  11220. * src/OptionHandlerFactory.cc
  11221. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11222. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11223. Now aria2 can handle cookie's expiration date.
  11224. * src/Cookie.h (expires): Changed its type to time_t.
  11225. * src/main.cc: Added --load-cookies command-line option.
  11226. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11227. * src/Util.h, src/Util.cc (httpGMT): New function.
  11228. * src/Request.cc (Request): Initialize cookieBox using
  11229. CookieBoxFactory.
  11230. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11231. * src/CookieParser.h, src/CookieParser.cc: New class.
  11232. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11233. * src/HttpResponseCommand.cc
  11234. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11235. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11236. download.
  11237. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Added -j command-line option.
  11239. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11240. * src/main.cc
  11241. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11242. Rewritten using stringstream.
  11243. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11244. Rewritten using stringstream.
  11245. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Make download size shown in MB, KB.
  11247. * src/ConsoleDownloadEngine.h (sendStatistics)
  11248. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11249. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. Accept incoming connections if download rate is low.
  11251. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11252. (_lowestSpeedLimit): New variable.
  11253. (setLowestSpeedLimit): New function.
  11254. (execute): Accept incoming connections if download rate is low.
  11255. MAX_PEERS is ignored in this case.
  11256. Disable PREF_OUT in multiple concurrent download:
  11257. * src/RequestGroup.h, src/RequestGroup.cc
  11258. (setUserDefinedFilename): New function.
  11259. * src/DownloadEngineFactory.cc
  11260. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11261. concurrent download.
  11262. * src/DefaultSegmentManFactory.cc
  11263. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11264. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11266. Added its overloaded method.
  11267. * src/RequestGroup.h
  11268. (_numConcurrentCommand): New variable.
  11269. (setNumConcurrentCommand): New function.
  11270. * src/RequestGroup.cc
  11271. Abort download if same file is being downloaded concurrently.
  11272. * src/RequestGroup.h, src/RequestGroupMan.cc
  11273. (isSameFileBeingDownloaded): New function.
  11274. * src/HttpResponseCommand.cc (executeInternal)
  11275. * src/FtpNegotiateCommand.cc (recvSize)
  11276. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11277. * main.cc: Added help message for -i option.
  11278. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11280. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11281. * src/MetalinkEntry.h
  11282. (checksum): Changed to ChecksumHandle
  11283. * src/MetalinkRequestInfo.cc
  11284. (checksum): Changed to ChecksumHandle
  11285. * src/File.cc
  11286. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11287. * src/common.h
  11288. (DIR_OPEN_MODE): New definition
  11289. * src/RequestGroup.cc
  11290. (prepareForNextAction): Added an argument.
  11291. * src/message.h
  11292. (MSG_GOOD_CHECKSUM): New definition
  11293. (MSG_BAD_CHECKSUM): New definition
  11294. * src/HttpResponseCommand.cc
  11295. (handleDefaultEncoding): Continue download sequence in new
  11296. non-segmented download.
  11297. * src/FileAllocationEntry.h
  11298. (_nextDownloadCommand): New variable.
  11299. * src/DownloadCommand.cc
  11300. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11301. available.
  11302. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11303. * src/IteratableChecksumValidator.h,
  11304. src/IteratableChecksumValidator.cc: New class.
  11305. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11306. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11307. Change file mode to 666:
  11308. * src/common.h (OPEN_MODE): New definition.
  11309. * src/File.cc
  11310. * src/Util.cc
  11311. * src/Directry.cc
  11312. * src/AbstractDiskWriter.cc
  11313. Change the level of log message "download aborted" to debug:
  11314. * src/PeerAbstractCommand.cc (execute)
  11315. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11316. * src/TrackerWatcherCommand.cc
  11317. (createCommand): Sleep some seconds after request failed.
  11318. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11319. then abort tracker request.
  11320. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11321. * Added the simultaneous download feature.
  11322. * src/main.cc: Print "Exception caught: " when exception is caught.
  11323. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11324. * src/ActivePeerConnectionCommand.cc
  11325. * src/PeerInteractionCommand.cc
  11326. * src/BtRuntime.h
  11327. (cuidCounter): Removed.
  11328. (getNewCuid): Removed.
  11329. * src/DownloadEngineFactory.cc
  11330. * src/PeerListenCommand.cc
  11331. * src/TrackerUpdateCommand.cc
  11332. * src/PeerInitiateConnectionCommand.cc
  11333. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. * src/PeerAbstractCommand.cc
  11335. (onAbort): Call PeerStorage::returnPeer()
  11336. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11337. (incomingPeers): New variable.
  11338. (addIncomingPeer): New function.
  11339. (returnPeer): New function.
  11340. (onErasingPeer): New function.
  11341. (addPeer): push_back -> push_front
  11342. (getActivePeers): Rewritten.
  11343. (calculateStat): Rewritten.
  11344. * src/PeerStorage.h
  11345. (TransferStat::copy): New function.
  11346. (TransferStat::TransferStat): New function.
  11347. (TransferStat::operator=): New function.
  11348. (addIncomingPeer): New function.
  11349. (returnPeer): New function.
  11350. * src/PeerListenCommand.cc
  11351. (execute): Use PeerStorage::addIncomingPeer() instead of
  11352. Peer::addPeer().
  11353. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11354. Connect to a peer actively when download speed is lower than specified
  11355. speed in torrent download:
  11356. * src/ActivePeerConnectionCommand.h: New class.
  11357. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11359. * src/main.cc: Fixed the bug that prevents download if .netrc
  11360. doesn't exist.
  11361. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. To cache resolved hostname:
  11363. * src/AbstractCommand.h, src/AbstractCommand.cc
  11364. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11365. Added dns cache.
  11366. * src/FtpInitiateConnectionCommand.cc
  11367. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11368. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11369. NameResolver working without ares.
  11370. * src/TorrentRequestInfo.cc
  11371. (execute): Don't cache dns in torrent download.
  11372. * src/HttpInitiateConnectionCommand.cc
  11373. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11374. * src/DNSCache.h: New class.
  11375. * src/UrlRequestInfo.cc
  11376. (execute): Use dns cache.
  11377. In http request, suppress port number in http request header if port
  11378. is 80 or 443:
  11379. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11380. request header if port is 80 or 443.
  11381. (createProxyRequest): Allways send port number.
  11382. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. To add the command-line option which disables netrc support:
  11384. * src/OptionHandlerFactory.cc
  11385. (createOptionHandlers): Added PREF_NO_NETRC.
  11386. * src/main.cc: Added -n option.
  11387. * src/prefs.h (PREF_NO_NETRC): New definition.
  11388. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11389. V_TRUE.
  11390. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11391. is V_FALSE. This may get configurable in the future release.
  11392. To clear peer's error status by time basis:
  11393. * src/PeerAbstractCommand.cc
  11394. (onAbort): Call Peer::startBadCondition().
  11395. * src/Peer.h, src/Peer.cc
  11396. (error): Removed.
  11397. (_badConditionStartTime): New variable.
  11398. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11399. (startBadCondition): New function.
  11400. (isGood): New function.
  11401. * src/DefaultPeerStorage.cc
  11402. (addPeer): Use Peer::isGood().
  11403. (FindFinePeer): Use Peer::isGood().
  11404. Always include port number in http request header:
  11405. * src/HttpRequest.cc (getHostText): Always include port number in
  11406. http request header.
  11407. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. To the ability to read options from a config file:
  11409. * src/main.cc: Command-line parameter validation is delegated to
  11410. OptionHandler class.
  11411. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11412. * src/Option.h, src/Option.cc (clear): New function.
  11413. * src/OptionParser.h, src/OptionParser.cc: New class.
  11414. * src/OptionHandler.h: New class.
  11415. * src/NameMatchOptionHandler.h: New class.
  11416. * src/OptionHandlerImpl.h: New classes.
  11417. * src/prefs.h: '_' -> '-'
  11418. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11419. (FTP_PASV): New definition.
  11420. * src/Util.h, src/Util.cc (getRealSize): New function.
  11421. To disable netrc support if .netrc file does not have correct
  11422. permissions:
  11423. * src/File.h, src/File.cc (mode): New function.
  11424. To prevent confidential information to be logged:
  11425. * src/HttpConnection.h, src/HttpConnection.cc
  11426. (eraseConfidentialInfo): New function.
  11427. (sendRequest): Call eraseConfidentialInfo().
  11428. (sendProxyRequest): Call eraseConfidentialInfo().
  11429. * src/main.cc: Validate permissions of .netrc file.
  11430. To add --user-agent command-line option:
  11431. * src/main.cc: Added new command line option: --user-agent
  11432. * src/prefs.h (PREF_USER_AGENT): New definition.
  11433. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11434. parameter to HttpRequest object.
  11435. * src/AbstractProxyRequestCommand.cc
  11436. (executeInternal): Set user-agent option parameter to HttpRequest
  11437. object.
  11438. Marged the patches from Dan Fandrich.
  11439. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11440. Use filename and size from Metalink file instead of sending HEAD
  11441. request:
  11442. * src/UrlRequestInfo.h
  11443. (_filename): New variable.
  11444. (_totalLength): New variable.
  11445. (setTotalLength): New variable.
  11446. (setFilename): New variable.
  11447. * src/MetalinkRequestInfo.cc
  11448. (execute): Set filename and size to UrlRequestInfo
  11449. * src/UrlRequestInfo.cc
  11450. (execute): Use filename and size from Metalink instead of seding
  11451. HEAD request to servers.
  11452. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. To add the ability to resume downloading a partially downloaded file
  11454. which is downloaded from the beginning:
  11455. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11456. takes this role.
  11457. * src/main.cc: Added -c option.
  11458. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11459. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11460. * src/prefs.h (PREF_CONTINUE): New definition.
  11461. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11462. * src/DefaultDiskWriter.cc
  11463. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11464. * src/AbstractDiskWriter.h
  11465. (glowFileAllocator): New variable.
  11466. * src/AbstractDiskWriter.cc
  11467. (openExistingFile): Now preallocate file space from the end of the
  11468. existing file if totalLength argument is specified and grater than 0.
  11469. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11470. to download exists in local, continue the download of the file.
  11471. --allow-overwrite=true is assumed in this context.
  11472. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11473. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11474. Throw exception if --check-integrity=true is specified but chunk
  11475. checksums are not provided:
  11476. * src/UrlRequestInfo.cc
  11477. Do not print URLs to stdout:
  11478. * src/UrlRequestInfo.cc
  11479. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. * src/Request.h: Use AuthResolver to get authentication information.
  11481. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11482. set to RequestFactory object.
  11483. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11484. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11485. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11486. create Request object.
  11487. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11488. To integrate Netrc into exsiting classes:
  11489. * src/Request.h
  11490. (_userDefinedAuthConfig): New variable.
  11491. (findNetrcAuthenticator): New function.
  11492. (segment): Removed.
  11493. (setUserDefinedAuthConfig): New function.
  11494. (resolveHttpAuthConfigItem): New function.
  11495. (resolveFtpAuthConfigItem): New function.
  11496. (resolveHttpProxyAuthConfigItem): New function.
  11497. * src/HttpRequest.h
  11498. (authConfig): Removed.
  11499. (proxyAuthConfig): Removed.
  11500. (setAuthConfig): Removed.
  11501. (setProxyAuthConfig): Removed.
  11502. * src/UrlRequest.h
  11503. (getHeadResult): Added a parameter: authConfigHandle
  11504. * src/common.h
  11505. (SingletonHolder.h): New include.
  11506. * src/main.cc
  11507. (Netrc.h): New include.
  11508. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11509. Added initial value of PREF_NETRC_PATH.
  11510. Added the initialization of netrc.
  11511. * src/AuthConfig.h: New class.
  11512. * src/prefs.h
  11513. (PREF_NETRC_PATH): New definition.
  11514. * src/HttpAuthConfig.h: Removed.
  11515. * src/Netrc.cc
  11516. (getRequiredNextToken): New function.
  11517. (skipMacdef): New function.
  11518. (parse): Rewritten.
  11519. * src/Netrc.h
  11520. (getRequiredNextToken): New function.
  11521. (skipMacdef): New function.
  11522. * src/Util.h, src/Util.cc
  11523. (getHomeDir): New function.
  11524. * src/TrackerWatcherComand.cc
  11525. (createRequestCommand): Use AuthConfig.
  11526. * src/FtpConnection.cc
  11527. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11528. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11529. * src/Request.cc
  11530. (findNetrcAuthenticator): New function.
  11531. (resolveHttpAuthConfigItem): New function.
  11532. (resolveFtpAuthConfigItem): New function.
  11533. (resolveHttpProxyAuthConfigItem): New function.
  11534. * src/UrlRequestInfo.cc: Use AuthConfig.
  11535. * src/HttpRequest.cc
  11536. (createRequest): Use authConfig.
  11537. (getProxyAuthString): Use authConfig.
  11538. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11539. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11540. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. To reduce overhead to find commands whose socket is either
  11542. readable or writable in the download engine loop:
  11543. * src/Command.h, src/Command.cc
  11544. (STATUS): New enum.
  11545. (status): New variable.
  11546. (statusMatch): New function.
  11547. (setStatusActive): New function.
  11548. (setStatusInactive): New function.
  11549. * src/DownloadEngine.h, src/DownloadEngine.cc
  11550. (executeCommand): New function.
  11551. (run): Simplified.
  11552. (waitData): Call Command::setStatusActive() when command's socket is
  11553. readable or writable.
  11554. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11555. To handle Segment as SegmentHandle:
  11556. * src/AbstractCommand.cc (execute): Rewritten.
  11557. * src/SegmentMan.h: Segment -> SegmentHandle
  11558. Introducded HttpResponse class, HttpRequest class to improve code
  11559. extensiveness and make it clear:
  11560. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11561. HttpResponse class.
  11562. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11563. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11564. * src/HttpConnection.cc: Contruction of http request were moved to
  11565. HttpRequest class.
  11566. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11567. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11568. * src/HttpAuthConfig.h: New class.
  11569. * src/Range.h: New class.
  11570. To make FtpTunnel{Request, Response}Command and
  11571. HttpProxy{Request, Response}Command derived from
  11572. AbstractProxy{Request, Response}Command:
  11573. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11574. Derived from AbstractProxyRequestCommand class.
  11575. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11576. Derived from AbstractProxyResponseCommand class.
  11577. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11578. Derived from AbstractProxyRequestCommand class.
  11579. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11580. Derived from AbstractProxyResponseCommand class.
  11581. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11582. : New class.
  11583. * src/AbstractProxyResponseCommand.h,
  11584. src/AbstractProxyResponseCommand.cc: New class.
  11585. To add netrc support:
  11586. * src/Netrc.h, src/Netrc.cc: New class.
  11587. * src/Util.h, src/Util.cc (split): New function.
  11588. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11589. "Content-Range" header instead of "Range" header.
  11590. * src/HttpHeader.h
  11591. (getStatus): Removed.
  11592. (setStatus): Removed.
  11593. * src/Segment.h
  11594. (getPositionToWrite): New function.
  11595. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. * src/HttpHeader.h
  11597. (Range.h): New include.
  11598. (status): New variable.
  11599. (HttpHeader): Initialized status with 0.
  11600. (getStatus): New function.
  11601. (setStatus): New function.
  11602. (getRange): New function.
  11603. (HttpHeaderHandle): New function.
  11604. * src/HttpHeader.cc
  11605. (getRange): New function.
  11606. * src/Request.h
  11607. (RequestWeakHandle): New definition.
  11608. * src/HttpConnection.h
  11609. (HttpConnectionHandle): New type definition.
  11610. * src/HttpConnection.cc
  11611. (receiveResponse): Set HTTP status to headers.
  11612. * src/main.cc
  11613. (showUsage): Fixed typo.
  11614. * src/Segment.h
  11615. (SegmentHandle): New type definition.
  11616. * src/BitfieldMan.h
  11617. (getMissingUnusedLength): New function.
  11618. * src/BitfieldMan.cc
  11619. (getMissingUnusedLength): New function.
  11620. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11621. To fix static initialization order problem:
  11622. * src/BitfieldManFactory.h
  11623. (defaultRandomizer): Removed.
  11624. (factory): New variable.
  11625. (getNewFactory): Removed.
  11626. (getFactoryInstance): New function.
  11627. (setDefaultRandomizer): Rewritten.
  11628. (getDefaultRandomizer): Rewritten.
  11629. * src/BitfieldManFactory.cc
  11630. (defaultRandomizer): Removed.
  11631. (factory): Initialized to 0.
  11632. (BitfieldManFactory): Initialized randomizer to 0.
  11633. * src/DefaultPieceStorage.cc
  11634. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11635. * src/Peer.cc
  11636. (Peer): getNewFactory() -> getFactoryInstance()
  11637. * src/SegmentMan.cc
  11638. (initBitfield): getNewFactory() -> getFactoryInstance()
  11639. * src/Piece.cc
  11640. (Piece): getNewFactory() -> getFactoryInstance()
  11641. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11642. To fix the bug that causes crash on Max OS X:
  11643. * src/SimpleRandomizer.h
  11644. (getInstance): Create new instance if the static variable is null.
  11645. * src/SimpleRandomizer.cc
  11646. (randomizer): Initialized to 0.
  11647. * src/BitfieldManFactory.h
  11648. (getNewFactory): Removed the call to setRandomizer().
  11649. To fix the miscalculation of the range of checksum:
  11650. * src/BitfieldMan.h
  11651. (isBitSetOffsetRange): New function.
  11652. * src/BitfieldMan.cc
  11653. (isBitSetOffsetRange): New function.
  11654. * src/SegmentMan.cc
  11655. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11656. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11657. * Release 0.10.1
  11658. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11659. To lower CPU usage in BitTorrent download when --max-upload-limit
  11660. command-line option specified:
  11661. * src/DefaultBtMessageDispatcher.cc
  11662. (sendMessages): Calculate uploading speed only when current message
  11663. is uploading data and is not sent yet.
  11664. * src/DefaultPeerStorage.h
  11665. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11666. * src/HttpResponseCommand.cc
  11667. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11668. This fixes compile error in Soralis 10.
  11669. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. To fix segfault in Metalink download:
  11671. * src/UrlRequestInfo.h
  11672. (filename): Removed.
  11673. (totalLength): Removed.
  11674. (setTotalLength): Removed.
  11675. (setFilename): Removed.
  11676. * src/MetalinkRequestInfo.cc
  11677. (execute): Do not set filename and totalLength to reqInfo.
  11678. Set chunk checksum to reqInfo if it is not null.
  11679. * src/HttpResponseCommand.cc
  11680. (executeInternal): Fixed filename in log.
  11681. (handleDefaultEncoding): Removed the call to initBitfield() and
  11682. markAllPiecesDone().
  11683. (handleOtherEncoding): Added HEAD method handling.
  11684. * src/FtpNegotiateCommand.cc
  11685. (executeInternal): Added SEQ_HEAD_OK handling.
  11686. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11687. return false.
  11688. * src/FtpNegotiateCommand.h
  11689. (SEQ_HEAD_OK): New definition.
  11690. * src/SegmentMan.cc
  11691. (initBitfield): Delete bitfield.
  11692. (isChunkChecksumValidationReady): Fixed the condition.
  11693. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11694. works fine.
  11695. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. * src/Xml2MetalinkProcessor.h
  11697. (xpathExists): New function.
  11698. * src/Xml2MetalinkProcessor.cc
  11699. (xpathExists): New function.
  11700. Not to send HEAD request if filename and size are available in Metalink
  11701. file:
  11702. * src/UrlRequestInfo.h
  11703. (filename): New variable.
  11704. (totalLength): New variable.
  11705. (setTotalLength): New function.
  11706. (setFilename): New function.
  11707. * src/MetalinkRequestInfo.cc
  11708. (execute): Set filename and size to UrlRequestInfo.
  11709. * src/MetalinkEntry.cc
  11710. (MetalinkEntry): Initialize size with 0.
  11711. * src/UrlRequestInfo.cc
  11712. (execute): Set filename and size to SegmentMan.
  11713. Not to download rest of the files after selected files are downloaded
  11714. in BitTorrent:
  11715. * src/PieceStorage.h
  11716. (allDownloadFinished): New function.
  11717. * src/DefaultBtAnnounce.cc
  11718. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11719. downloadFinished.
  11720. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11721. * src/DefaultPieceStorage.cc
  11722. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11723. Commented out the call to finishSelectiveDownloadingMode().
  11724. (downloadFinished): Call isFilteredAllBitSet() instead of
  11725. isAllBitSet().
  11726. (allDownloadFinished): New function.
  11727. * src/DefaultBtInteractive.cc
  11728. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11729. downloadFinished().
  11730. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11731. * src/TorrentDownloadEngine.cc
  11732. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11733. * src/BitfieldMan.h
  11734. (isFilteredAllBitSet): New function.
  11735. * src/ShareRatioSeedCriteria.h
  11736. (PieceStorage.h): New include.
  11737. (pieceStorage): New variable.
  11738. (evaluate):
  11739. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11740. * src/BitfieldMan.cc
  11741. (isFilteredAllBitSet): New function.
  11742. (isAllBitSet): Filter is not took into account.
  11743. Rename --force-truncate as --allow-overwrite:
  11744. * src/TorrentRequestInfo.cc
  11745. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11746. * src/main.cc
  11747. (showUsage): --force-truncate -> --allow-overwrite
  11748. * src/message.h
  11749. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11750. * src/prefs.h
  11751. (PREF_FORCE_TRUNCATE): Removed.
  11752. (PREF_ALLOW_OVERWRITE): New definition.
  11753. * src/SegmentMan.cc
  11754. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11755. * src/MetalinkRequestInfo.cc
  11756. (execute): Queueing message are now logged in info level.
  11757. * src/common.h
  11758. (LONG_LONG_MAX): Removed.
  11759. (LONG_LONG_MIN): Removed.
  11760. * src/HttpResponseCommand.cc
  11761. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11762. * src/FtpNegotiateCommand.cc
  11763. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11764. * src/main.cc
  11765. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11766. command-line option.
  11767. (main): Added --check-integriy and --realtime-chunk-checksum
  11768. command-line option.
  11769. --force-truncate -> --allow-overwrite
  11770. Set initial value of --check-integrity option to false.
  11771. Don't show usage when error occurs while persing command-line options.
  11772. Removed deprecated --upload-limit option.
  11773. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11775. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11776. * src/BtAllowedFastMessage.cc:
  11777. * src/BtBitfieldMessage.cc
  11778. * src/BtCancelMessage.cc
  11779. * src/BtChokeMessage.cc
  11780. * src/BtHaveAllMessage.cc
  11781. * src/BtHaveMessage.cc
  11782. * src/BtHaveNoneMessage.cc
  11783. * src/BtInterestedMessage.cc
  11784. * src/BtNotInterestedMessage.cc
  11785. * src/BtPieceMessage.cc
  11786. * src/BtPortMessage.cc
  11787. * src/BtRejectMessage.cc
  11788. * src/BtRequestMessage.cc
  11789. * src/BtSuggestPieceMessage.cc
  11790. * src/BtUnchokeMessage.cc
  11791. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11792. files are affected.
  11793. * src/ChunkChecksumValidator.cc
  11794. * src/SegmentMan.cc
  11795. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11796. To add chunk checksum validation:
  11797. * src/MetalinkEntry.h
  11798. (MetalinkChunkChecksum.h): New include.
  11799. (chunkChecksum): New variable.
  11800. * src/Request.h
  11801. (method): New variable.
  11802. (setMethod): New function.
  11803. (getMethod): New function.
  11804. (METHOD_GET): New static constant.
  11805. (METHOD_HEAD): New static constant.
  11806. * src/Xml2MetalinkProcessor.h
  11807. (getPieceHash): New function.
  11808. * src/PieceStorage.h
  11809. (markAllPiecesDone): New function.
  11810. (checkIntegrity): New function.
  11811. * src/FileAllocator.h
  11812. (NullFileAllocationMonitor.h): New include.
  11813. (FileAllocator): Initialize fileAllocationMonitor with new
  11814. NullFileAllocationMonitor().
  11815. * src/MultiDiskAdaptor.h
  11816. (messageDigest.h): Remove include.
  11817. (ctx): Removed.
  11818. (hashUpdate): Added ctx.
  11819. (MultiDiskAdaptor): Removed ctx.
  11820. (sha1Sum): Renamed as messageDigest.
  11821. (messageDigest): New function.
  11822. * src/UrlRequestInfo.h
  11823. (HeadResult): New class.
  11824. (digestAlgo): New variable.
  11825. (chunkChecksumLength): New variable.
  11826. (chunkChecksums): New variable.
  11827. (getHeadResult): New function.
  11828. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11829. (setDigestAlgo): New function.
  11830. (setChunkChecksumLength): New function.
  11831. (setChunkChecksums): New function.
  11832. * src/DefaultPieceStorage.cc
  11833. (DiskAdaptorWriter.h): New include.
  11834. (ChunkChecksumValidator.h): New include.
  11835. (markAllPiecesDone): New function.
  11836. (checkIntegrity): New function.
  11837. * src/DefaultBtContext.h
  11838. (getPieceHashes): New function.
  11839. * src/TorrentRequestInfo.cc
  11840. (execute): Try to validate chunk checksum if file already exists and
  11841. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11842. * src/messageDigest.h
  11843. (~MessageDigestContext): Added digestFree().
  11844. * src/MetalinkRequestInfo.cc
  11845. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11846. * src/DiskAdaptor.h
  11847. (messageDigest.h): New include.
  11848. (sha1Sum): Renamed as messageDigest.
  11849. (messageDigest): New function.
  11850. * src/DownloadCommand.h
  11851. (PeerStat.h): New include.
  11852. (maxDownloadSpeedLimit): New variable.
  11853. (startupIdleTime): New variable.
  11854. (lowestDownloadSpeedLimit): New variable.
  11855. (peerStat): New variable.
  11856. (setMaxDownloadSpeedLimit): New function.
  11857. (setStartupIdleTime): New function.
  11858. (setLowestDownloadSPeedLimit): New function.
  11859. * src/BtContext.h
  11860. (getPieceHashes): New function.
  11861. * src/main.cc
  11862. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11863. option to true for testing purpose.
  11864. * src/BtPieceMessage.cc
  11865. (checkPieceHash): Use messageDigest
  11866. * src/DownloadEngine.cc
  11867. (SetDescriptor): Removed.
  11868. (AccumulateActiveCommand): Removed.
  11869. (waitData): Rewritten.
  11870. (updateFdSet): Rewritten.
  11871. * src/MultiDiskAdaptor.cc
  11872. (hashUpdate): Added ctx.
  11873. (sha1Sum): Renamed as messageDigest.
  11874. (messageDigest): New function.
  11875. * src/BitfieldMan.h
  11876. (isBitRangeSet): New function.
  11877. (unsetBitRange): New function.
  11878. * src/ByteArrayDiskWriter.h
  11879. (sha1Sum): Renamed as messageDigest.
  11880. (messageDigest): New function.
  11881. * src/ConsoleDownloadEngine.cc
  11882. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11883. * src/DiskWriter.h
  11884. (messageDigest.h): New include.
  11885. (sha1Sum): Renamed as messageDigest.
  11886. (messageDigest): New function.
  11887. * src/ChunkChecksumValidator.h: New class.
  11888. * src/DiskAdaptorWriter.h: New class.
  11889. * src/prefs.h
  11890. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11891. (PREF_CHECK_INTEGRITY): New definition.
  11892. * src/HttpResponseCommand.cc
  11893. (handleDefaultEncoding): Added method "HEAD" handling.
  11894. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11895. (handleOtherEncoding):
  11896. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11897. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11898. startupIdleTime, lowestDownloadSpeedLimit to command.
  11899. * src/SegmentMan.h
  11900. (getSegmentEntryByIndex): New function.
  11901. (getSegmentEntryByCuid): New function.
  11902. (getSegmentEntryIteratorByCuid): New function.
  11903. (diskWriter): DiskWriter -> DiskWriterHandle
  11904. (pieceHashes): New variable.
  11905. (chunkHashLength): New variable.
  11906. (digestAlgo): New variable.
  11907. (FindPeerStat): Removed.
  11908. (getPeerStat): Rewritten.
  11909. (markAllPiecesDone): New function.
  11910. (checkIntegrity): New function.
  11911. (tryChunkChecksumValidation): New function.
  11912. (isChunkChecksumValidationReady): New function.
  11913. * src/BitfieldMan.cc
  11914. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11915. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11916. blocks to 0.
  11917. (isBitRangeSet): New function.
  11918. (unsetBitRange): New function.
  11919. * src/FtpNegotiateCommand.cc
  11920. (executeInternal): Set maxDownloadSpeedLimit,
  11921. startupIdleTime, lowestDownloadSpeedLimit to command.
  11922. (recvSize): Added method "HEAD" handling.
  11923. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11924. * src/AbstractSingleDiskAdaptor.cc
  11925. (sha1Sum): Renamed as messageDigest.
  11926. (messageDigest): New function.
  11927. * src/AbstractSingleDiskAdaptor.h
  11928. (sha1Sum): Renamed as messageDigest.
  11929. (messageDigest): New function.
  11930. * src/Util.h
  11931. (indexRange): New function.
  11932. * src/MetalinkEntry.cc
  11933. (MetalinkEntry): Initialized chunkChecksum to 0.
  11934. * src/ShaVisitor.cc
  11935. (~ShaVisitor): Removed the call to ctx.digestFree().
  11936. * src/SegmentMan.cc
  11937. (ChunkChecksumValidator.h): New include.
  11938. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11939. to DIGEST_ALGO_SHA1.
  11940. (~SegmentMan): Removed diskWriter.
  11941. (FindSegmentEntryByIndex): Removed.
  11942. (FindSegmentEntryByCuid): Removed.
  11943. (checkoutSegment): Rewritten.
  11944. (findSlowerSegmentEntry): Rewritten.
  11945. (getSegment): Rewritten.
  11946. (updateSegment): Rewritten.
  11947. (completeSegment): Rewritten.
  11948. (markAllPiecesDone): New function.
  11949. (checkIntegrity): New function.
  11950. (isChunkChecksumValidationReady): New function.
  11951. (tryChunkChecksumValidation): New function.
  11952. * src/Xml2MetalinkProcessor.cc
  11953. (getEntry): Get size and set it to entry.
  11954. Get chunk checksum and set it to entry.
  11955. (getPieceHash): New function.
  11956. * src/Util.cc
  11957. (sha1Sum): Removed ctx.digestFree()
  11958. (fileChecksum): Removed ctx.digestFree()
  11959. (indexRange): New function.
  11960. * src/Request.cc
  11961. (METHOD_GET): New variable.
  11962. (METHOD_HEAD): New variable.
  11963. (Request): Added method.
  11964. * src/UrlRequestInfo.cc
  11965. (FatalException.h): New include.
  11966. (message.h): New include.
  11967. (operator<<): Added operator<< for class HeadResult.
  11968. (getHeadResult): New function.
  11969. (execute): Get filename and size in separate download engine.
  11970. * src/ChunkChecksumValidator.cc: New class.
  11971. * src/DownloadCommand.cc:
  11972. (DownloadCommand): Added peerStat.
  11973. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11974. the value from Option.
  11975. The buffer size is now 16KB.
  11976. Use peerStat member instead of getting it from SegmentMan.
  11977. Use startupIdleTime member instead of gettingit from Option.
  11978. Added chunk checksum validation.
  11979. * src/AbstractDiskWriter.cc
  11980. (AbstractDiskWriter): Removed ctx.
  11981. (~AbstractDiskWriter): Removed ctx.digestFree()
  11982. (writeDataInternal): Returns the return value of write.
  11983. (readDataInternal): Returns the return value of read.
  11984. (sha1Sum): Renamed as messageDigest
  11985. (messageDigest): New function.
  11986. * src/AbstractDiwkWriter.h
  11987. (messageDigest.h): Removed include.
  11988. (ctx): Removed.
  11989. (sha1Sum): Renamed as messageDigest
  11990. (messageDigest): New function.
  11991. * src/DefaultPieceStorage.h
  11992. (markAllPiecesDone): New function.
  11993. (checkIntegrity): New function.
  11994. * src/NullFileAllocationMonitor.h: New class.
  11995. * src/MetalinkChunkChecksum.h: New class.
  11996. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. To decrease CPU usage in bittorrent download, calculation results in
  11998. BitfieldMan were cached and realtime fetching PeerObject was removed
  11999. with WeakHandle introduced. Option values are set to the objects
  12000. by setter before download begins.
  12001. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12002. * src/DefaultBtRequestFactory.h
  12003. (dispatcher): BtMessageDispatcherHandle ->
  12004. BtMessageDispatcherWeakHandle.
  12005. (messageFactory): New variable.
  12006. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12007. BtMessageDispatcherWeakHandle.
  12008. (setBtMessageFactory): New function.
  12009. * src/DefaultBtMessageDispatcher.cc:
  12010. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12011. from Option.
  12012. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12013. feating the value from Option.
  12014. Use messageFactory member.
  12015. * src/PeerInteractionCommand.cc
  12016. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12017. Add reverse dependencies to factory object.
  12018. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12019. dispatcher.
  12020. Set messageFactory to receiver.
  12021. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12022. btInteractive.
  12023. Set receiver to peerObject.
  12024. Set maxDownloadSpeedLimit to this.
  12025. (executeInternal): Use maxDownloadSpeedLimit member.
  12026. * src/BtChokeMessage.cc
  12027. (doReceivedAction): Use dispatcher, requestFactory member.
  12028. (onSendComplete): Use dispatcher member.
  12029. * src/PeerInteractionCommand.h
  12030. (maxDownloadSpeedLimit): New variable.
  12031. * src/DefaultBtMessageReceiver.h
  12032. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12033. (dispatcher):
  12034. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12035. (messageFactory): New variable.
  12036. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12037. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12038. (setDispatcher):
  12039. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12040. (setBtMessageFactory): New function.
  12041. * src/DefaultBtInteractive.cc
  12042. (initiateHandshake): Use messageFactory member.
  12043. (addBitfieldMessageToQueue): Use messageFactory member.
  12044. (addAllowedFastMessageToQueue): Use messageFactory member.
  12045. (decideChoking): Use messageFactory member.
  12046. (checkHave): Use messageFactory member.
  12047. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12048. (receiveMessages): Use maxDownloadSpeedLimit member.
  12049. (decideInterest): Use messageFactory member.
  12050. * src/BtRequestMessage.cc
  12051. (doReceivedAction): Use messageFactory, dispatcher member.
  12052. (onQueued): Use dispatcher member.
  12053. * src/BtPieceMessage.cc
  12054. (doReceivedAction): Use dispatcher member.
  12055. (send): Use peerConnection member.
  12056. (onWrongPiece): Use requestFactory member.
  12057. (handleChokingEvent): Use messageFactory, dispatcher member.
  12058. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12059. * src/BtMessageDispatcher.h
  12060. (BtMessageDispatcherWeakHandle): New type definition.
  12061. * src/SimpleBtMessage.cc
  12062. (send): Use peerConnection member.
  12063. * src/BtRejectMessage.cc
  12064. (doReceivedAction): Use dispatcher member.
  12065. * src/DefaultBtMessageDispatcher.h
  12066. (Option.h): Removed include.
  12067. (messageFactory): New variable.
  12068. (option): Removed.
  12069. (maxUploadSpeedLimit): New variable.
  12070. (requestTimeout): New variable.
  12071. (DefaultBtMessageDispatcher): Removed option.
  12072. Added maxUploadSpeedLimit, requestTimeout.
  12073. (setOption): Removed.
  12074. (getOption): Removed.
  12075. (setMaxUploadSpeedLimit): New function.
  12076. (setRequestTimeout): New function.
  12077. (setBtMessageFactory): New function.
  12078. * src/DefaultBtInteractive.h
  12079. (btMessageReceiver):
  12080. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12081. (dispatcher):
  12082. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12083. (btRequestFactory):
  12084. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12085. (peerConnection):
  12086. PeerConnectionHandle -> PeerConnectionWeakHandle
  12087. (messageFactory): New variable.
  12088. (option): Removed.
  12089. (keepAliveInterval): New variable.
  12090. (maxDownloadSpeedLimit): New variable.
  12091. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12092. (setBtMessageReceiver):
  12093. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12094. (setDispatcher):
  12095. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12096. (setBtRequestFactory):
  12097. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12098. (setPeerConnection):
  12099. PeerConnectionHandle -> PeerConnectionWeakHandle
  12100. (setOption): Removed.
  12101. (setKeepAliveInterval): New function.
  12102. (setMaxDownloadSpeedLimit): New function.
  12103. (setBtMessageFactory): New function.
  12104. * src/BitfieldMan.h
  12105. (cachedNumMissingBlock): New variable.
  12106. (cachedNumFilteredBlock): New variable.
  12107. (cachedCompletedLength): New variable.
  12108. (cachedFilteredComletedLength): New variable.
  12109. (cachedFilteredTotalLength): New variable.
  12110. (countMissingBlockNow): New function.
  12111. (countFilteredBlockNow): New function.
  12112. (getFilteredTotalLengthNow): New function.
  12113. (getCompletedLengthNow): New function.
  12114. (getFilteredCompletedLengthNow): New function.
  12115. (updateCache): New function.
  12116. * src/AbstractBtMessage.h
  12117. (BtMessageDispatcher.h): New include.
  12118. (PeerConnection.h): New include.
  12119. (BtRequestFactory.h): New include
  12120. (BtMessageFactory.h): New include.
  12121. (dispatcher): New variable.
  12122. (messageFactory): New variable.
  12123. (peerConnection: New variable.
  12124. (setBtMessageDispatcher): New function.
  12125. (setPeerConnection): New function.
  12126. (setBtMessageFactory): New function.
  12127. (setBtRequestFactory): New function.
  12128. * src/DefaultBtMessageFactory.cc
  12129. (setCommonProperty): Set dispatcher, requestFactory, this,
  12130. peerConnection to msg.
  12131. * src/BtRegistry.h
  12132. (BT_MESSAGE_RECEIVER): New macro.
  12133. * src/PeerConnection.h
  12134. (PeerConnectionWeakHandle): New type definition.
  12135. * src/BtMessageFactory.h
  12136. (BtMessageFactoryWeakHandle): New type definition.
  12137. * src/BitfieldMan.cc
  12138. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12139. cachedCompletedLength, cachedFilteredComletedLength,
  12140. cachedFilteredTotalLength.
  12141. Call updateCache().
  12142. (countMissingBlock): Return cachedNumMissingBlock.
  12143. (countMissingBlockNow): New function.
  12144. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12145. (countFilteredBlockNow): New function.
  12146. (setBit): Call updateCache().
  12147. (unsetBit): Call updateCache().
  12148. (setBitfield): Call updateCache().
  12149. (clearAllBit): Call updateCache().
  12150. (setAllBit): Use setBitInternal instead of setBit.
  12151. Call updateCache().
  12152. (addFilter): Call updateCache().
  12153. (enableFilter): Call updateCache().
  12154. (disableFilter): Call updateCache().
  12155. (clearFilter): Call updateCache().
  12156. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12157. (getFilteredTotalLengthNow): New function.
  12158. (getCompletedLength): Return cachedCompletedLength.
  12159. (getCompletedLengthNow): New function.
  12160. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12161. (getFilteredCompletedLengthNow): New function.
  12162. (updateCache): New function.
  12163. * src/BtMessageReceiver.h
  12164. (BtMessageReceiverWeakHandle): New type definition.
  12165. * src/DefaultBtMessageReceiver.cc
  12166. (receiveHandshake): Use messageFactory member.
  12167. (sendHandshake): Use messageFactory member.
  12168. (receiveMessage): Use messageFactory member.
  12169. * src/DefaultBtMessageFactory.h
  12170. (dispatcher): New variable.
  12171. (requestFactory): New variable.
  12172. (peerConnection): New variablle.
  12173. (setBtMessageDispatcher): New function.
  12174. (setBtRequestFactory): New function.
  12175. (setPeerConnection): New function.
  12176. * src/SharedHandle.h
  12177. (RefCount): New class.
  12178. (WeakHandle): New class.
  12179. * src/PeerObject.h
  12180. (BtMessageReceiver.h): New include.
  12181. (PeerObject): Added btMessageReceiver.
  12182. (btMessageReceiver): New variable.
  12183. * src/Util.cc
  12184. (countBit): Simplified.
  12185. * src/BtCancelMessage.cc
  12186. (doReceivedAction): Use dispatcher member.
  12187. * src/BtRequestFactory.h
  12188. (BtRequestFactoryWeakHandle): New type definition.
  12189. * src/PeerStorage.h
  12190. (downloadSpeed): int -> uint32_t
  12191. (uploadSpeed): int -> uint32_t
  12192. (sessionDownloadLength): long long int -> uint64_t
  12193. (sessionUploadLength): long long int -> uint64_t
  12194. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. To add RecoverableException, FatalException:
  12196. * src/AbstractCommand.cc
  12197. (onAbort): Exception -> RecoverableException
  12198. * src/PeerAbstractCommand.h
  12199. (RecoverableException.h): New include.
  12200. (onAbort): Exception -> RecoverableException.
  12201. * src/PeerInteractionCommand.cc
  12202. (onAbort): Exception -> RecoverableException.
  12203. * src/PeerAbstractCommand.cc
  12204. (execute): Exception -> RecoverableException.
  12205. (onAbort): Exception -> RecoverableException.
  12206. * src/TorrentRequestInfo.cc
  12207. (execute): Exception -> RecoverableException.
  12208. * src/MetalinkRequestInfo.cc
  12209. (execute): Exception -> RecoverableException.
  12210. * src/MetaFileUtil.cc: RecoverableException.
  12211. * src/AbstractCommand.h
  12212. (onAbort): Exception -> RecoverableException.
  12213. * src/DlRetryEx.h: Exception -> RecoverableException.
  12214. * src/DlAbortEx.h: Exception -> RecoverableException.
  12215. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12216. * src/Util.cc: Exception -> RecoverableException.
  12217. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12218. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12219. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12220. To make ID static const int
  12221. * src/BtInterestedMessage.h
  12222. (ID_t): Removed.
  12223. (ID): New variable.
  12224. (getId): Made non-const.
  12225. * src/BtPieceMessage.h
  12226. (ID_t): Removed.
  12227. (ID): New variable.
  12228. (getId): Made non-const.
  12229. * src/BtChokeMessage.h
  12230. (ID_t): Removed.
  12231. (ID): New variable.
  12232. (getId): Made non-const.
  12233. * src/BtHaveAllMessage.h
  12234. (ID_t): Removed.
  12235. (ID): New variable.
  12236. (getId): Made non-const.
  12237. * src/BtKeepAliveMessage.h
  12238. (ID_t): Removed.
  12239. (ID): New variable.
  12240. (getId): Made non-const.
  12241. * src/BtHandshakeMessage.h
  12242. (ID): New variable.
  12243. (getId): Made non-const.
  12244. * src/BtSuggestPieceMessage.h
  12245. (ID_t): Removed.
  12246. (ID): New variable.
  12247. (getId): Made non-const.
  12248. * src/BtPortMessage.h
  12249. (ID_t): Removed.
  12250. (ID): New variable.
  12251. (getId): Made non-const.
  12252. * src/AbstractBtMessage.h
  12253. (id): Removed.
  12254. (AbstractBtMessage): Removed id.
  12255. (getId): Removed.
  12256. * src/BtHaveMessage.h
  12257. (ID_t): Removed.
  12258. (ID): New variable.
  12259. (getId): Made non-const.
  12260. * src/BtAllowedFastMessage.h
  12261. (ID_t): Removed.
  12262. (ID): New variable.
  12263. (getId): Made non-const.
  12264. * src/BtCancelMessage.h
  12265. (ID_t): Removed.
  12266. (ID): New variable.
  12267. (getId): Made non-const.
  12268. * src/BtNotInterestedMessage.h
  12269. (ID_t): Removed.
  12270. (ID): New variable.
  12271. (getId): Made non-const.
  12272. * src/BtChokeMessage.h
  12273. (ID_t): Removed.
  12274. (ID): New variable.
  12275. (getId): Made non-const.
  12276. * src/BtRejectMessage.h
  12277. (ID_t): Removed.
  12278. (ID): New variable.
  12279. (getId): Made non-const.
  12280. * src/BtBitfieldMessage.h
  12281. (ID_t): Removed.
  12282. (ID): New variable.
  12283. (getId): Made non-const.
  12284. * src/BtUnchokeMessage.h
  12285. (ID_t): Removed.
  12286. (ID): New variable.
  12287. (getId): Made non-const.
  12288. * src/BtRequestMessage.h
  12289. (ID_t): Removed.
  12290. (ID): New variable.
  12291. (getId): Made non-const.
  12292. * src/BtHaveMessage.h
  12293. (ID_t): Removed.
  12294. (ID): New variable.
  12295. (getId): Made non-const.
  12296. To add --force-truncate command-line option and a check whether
  12297. the file already exists:
  12298. * src/DirectDiskAdaptor.h
  12299. (getFilePath): Made virtual public.
  12300. * src/MultiDiskAdaptor.h
  12301. (File.h): New include.
  12302. (DiskWriterEntry::fileEntry): Made private.
  12303. (DiskWriterEntry::fileExists): New function.
  12304. (DiskWriterEntry::getFileEntry): New function.
  12305. (fileExists): New function.
  12306. (getFilePath): New function.
  12307. * src/TorrentRequestInfo.cc
  12308. (FatalException.h): New include.
  12309. (message.h): New include.
  12310. (RecoverableException.h): New include.
  12311. (execute): Added a check whether file is already exists or not.
  12312. * src/DiskAdaptor.h
  12313. (fileExists): New function.
  12314. (getFilePath): New function.
  12315. * src/main.cc
  12316. (showUsage): Added an explanation of --force-truncate command-line
  12317. option.
  12318. (main): Added --force-truncate command-line option.
  12319. * src/Exception.h
  12320. (setMsg): buf[256] -> buf[1024]
  12321. * src/CopyDiskWriter.h
  12322. (getFilePath): Made public virtual.
  12323. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12324. (fileExists): New function.
  12325. * src/DownloadEngineFactory.cc
  12326. (newTorrentConsoleEngine): Don't open file here.
  12327. * src/message.h
  12328. (EX_FILE_ALREADY_EXISTS): New definition.
  12329. * src/prefs.h
  12330. (PREF_FOECE_TRUNCATE): New definition.
  12331. * src/HttpResponseCommand.cc
  12332. (handleDefaultEncoding): Added a check whether the file already exists.
  12333. * src/SegmentMan.h
  12334. (fileExists): New function.
  12335. (shouldCancelDownloadForSafety): New function.
  12336. * src/FtpNegotiateCommand.cc
  12337. (recvSize): Added a check whether the file already exists.
  12338. * src/AbstractSingleDiskAdaptor.cc
  12339. (File.h): New include.
  12340. (fileExists): New function.
  12341. * src/AbstractSingleDiskAdaptor.h
  12342. (getFilePath): Removed.
  12343. (fileExists): New function.
  12344. * src/SegmentMan.cc
  12345. (fileExists): New function.
  12346. (shouldCancelDownloadForSafety): New function.
  12347. To fix regression bug in torrent downloading:
  12348. * src/DefaultBtRequestFactory.cc
  12349. (doChokedAction): New function.
  12350. * src/DefaultBtRequestFactory.h
  12351. (doChokedAction): New function.
  12352. * src/DefaultBtMessageDispatcher.cc
  12353. (doChokedAction): Do not delete request if its target is in allowed
  12354. fast set.
  12355. * src/DefaultBtInteractive.cc
  12356. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12357. (sendKeepAlive): Send keep alive message even if the outgoing message
  12358. queue is not empty.
  12359. (decideInterest): Simplified the code.
  12360. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12361. it is already called when BtChokeMessage is received from a peer.
  12362. * src/BtRequestFactory.h
  12363. (doChokedAction): New function.
  12364. To clean up code:
  12365. * src/PeerInteractionCommand.h
  12366. (executeInternal): Added virtual keyword explicitly.
  12367. (prepareForRetry): Added virtual keyword explicitly.
  12368. (prepareForNextPeer): Added virtual keyword explicitly.
  12369. (onAbort): Added virtual keyword explicitly.
  12370. * src/RequestSlot.cc
  12371. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12372. * src/BtPieceMessage.cc
  12373. (doReceivedAction): Added a debug log of piece's bitfield.
  12374. * src/Piece.h
  12375. (getBitfieldLength): New function.
  12376. * src/ByteArrayDiskWriter.cc
  12377. (clear): Added buf = 0 to avoid double free corruption.
  12378. * src/FileAllocator.cc
  12379. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12380. Added cp.reset().
  12381. * src/BitfieldMan.h
  12382. (operator=): Rewritten.
  12383. * src/BitfieldMan.cc
  12384. (BitfieldMan): Initialized bitfield, useBitfield.
  12385. * src/PeerConnection.cc
  12386. (receiveMessage): Added a call to socket->readable() after getting
  12387. message length to avoid possible EOF.
  12388. * src/Util.cc
  12389. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12390. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. To add an ability to pre-allocate file space:
  12392. * src/DirectDiskAdaptor.h: Rewritten.
  12393. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12394. * src/MultiDiskAdaptor.h: Rewritten.
  12395. * src/DefaultPieceStorage.cc
  12396. (MultiDiskWriter.h): Removed include.
  12397. (PreAllocationDiskWriter.h): Removed include.
  12398. (FileAllocationMonitor.h): New include.
  12399. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12400. (initStorage): Rewritten.
  12401. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12402. * src/FileAllocator.h: New class.
  12403. * src/FileAllocator.cc: New class.
  12404. * src/FileAllocationMonitor.h: New class.
  12405. * src/FileAllocationMonitor.cc: New class.
  12406. * src/ConsoleFileAllocationMonitor.h: New class.
  12407. * src/ConsoleFileAllocationMonitor.cc: New class.
  12408. * src/AbstractSingleDiskAdaptor.h: New class.
  12409. * src/AbstractSingleDiskAdaptor.cc: New class.
  12410. * src/DiskAdaptor.h
  12411. (Directory.h): Removed include.
  12412. (DiskWriter.h): Removed include.
  12413. (FileEntry.h): Removed include.
  12414. (diskWriter): Removed.
  12415. (DiskAdaptor): Removed diskWriter.
  12416. (openFile): Made pure virtual.
  12417. (closeFile): Made pure virtual.
  12418. (openExistingFile): Made pure virtual.
  12419. (initAndOpenFile): Made pure virtual.
  12420. (writeData): Made pure virtual.
  12421. (readData): Made pure virtual.
  12422. (sha1Sum): Made pure virtual.
  12423. (getStoreDir): Returns const reference of storeDir.
  12424. (DiskAdaptorHandle): New type definition.
  12425. * src/main.cc
  12426. (ConsoleFileAllocationMonitor.h): New include.
  12427. (showUsage): Added default value description of -s option.
  12428. Added the description of --file-allocation option.
  12429. (main): Set default value of --file-allocation option to 'none'.
  12430. Added --file-allocation command-line option.
  12431. Setup FileAllocationMonitorFactory.
  12432. * src/FtpInitiateConnectionCommand.cc
  12433. (executeInternal): Removed diskWriter related processing, which was
  12434. moved to FtpNegotiationCommand.cc.
  12435. * src/DirectDiskAdaptor.cc
  12436. (getFilePath): Made non-const.
  12437. * src/CopyDiskAdaptor.h
  12438. (DiskAdaptor.h): Removed include.
  12439. (DiskWriter.h): Removed include.
  12440. (AbstractSingleDiskAdaptor.h): New include.
  12441. (getFilePath): Made non-const. Added virtual keyword.
  12442. (CopyDiskAdaptor): Removed diskWriter.
  12443. (getTempFile): Returns const reference.
  12444. (CopyDiskAdaptorHandle): New type definition.
  12445. * src/ByteArrayDiskWriter.cc
  12446. (clear): Simplified.
  12447. (initAndOpenFile): Rewritten.
  12448. (openFile): Call initAndOpenFile()
  12449. * src/MultiDiskAdaptor.cc: Rewritten.
  12450. * src/DownloadEngineFactory.cc
  12451. (FileAllocator.h): New include.
  12452. (FileAllocationMonitor.h): New include.
  12453. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12454. create DefaultDiskWriter with file allocator.
  12455. * src/DiskWriter.h
  12456. (initAndOpenFile): Added totalLength argument.
  12457. (openFile): Added totalLength argument.
  12458. * src/prefs.h
  12459. (PREF_FILE_ALLOCATION): New definition.
  12460. (V_PREALLOC): New definition.
  12461. (V_NONE): New definition.
  12462. * src/HttpResponseCommand.cc
  12463. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12464. size.
  12465. * src/FtpNegotiateCommand.cc
  12466. (Util.h): New include.
  12467. (recvSize): Open file here.
  12468. * src/Util.h
  12469. (ullitos): New function.
  12470. * src/CopyDiskWriter.h
  12471. (getFilePath): Made non-const.
  12472. * src/DefaultDiskWriter.h
  12473. (Option.h): New include.
  12474. (totalLength): Removed.
  12475. (DefaultDiskWriter): Removed totalLength.
  12476. (initAndOpenFile): Added totalLength argument.
  12477. (DefaultDiskWriterHandle): New type definition.
  12478. (createNewDiskWriter): New function.
  12479. * src/Util.cc
  12480. (ullitos): New function.
  12481. * src/DefaultDiskWriter.cc
  12482. (message.h): New include.
  12483. (FileAllocator.h): New include.
  12484. (prefs.h): New include.
  12485. (Util.h): New include.
  12486. (DefaultDiskWriter): Removed totalLength.
  12487. (initAndOpenFile): Added file allocation.
  12488. (createNewDiskWriter): New function. Just for temporary solution.
  12489. It will be rewritten later.
  12490. * src/DiskAdaptor.cc
  12491. (DiskAdaptor): Removed diskWriter.
  12492. * src/AbstractDiskWriter.cc
  12493. (LogFactory.h): New include.
  12494. (AbstractDiskWriter): Added fileAllocator, logger.
  12495. (openFile): Added totalLength argument.
  12496. * src/AbstractDiskWriter.h
  12497. (FileAllocator.h): New include.
  12498. (Logger.h): New include.
  12499. (fileAllocator): New variable.
  12500. (logger): New variable.
  12501. (openFile): Added totalLength argument. Added virtual keyword
  12502. explicitly.
  12503. (openExistingFile): Added totalLength argument. Added virtual keyword
  12504. explicitly.
  12505. (closeFile): Added virtual keyword explicitly.
  12506. (sha1Sum): Added virtual keyword explicitly.
  12507. (writeData): Added virtual keyword explicitly.
  12508. (readData): Added virtual keyword explicitly.
  12509. (setFileAllocator): New function.
  12510. * src/DefaultPieceStorage.h
  12511. (FileAllocator.h): New include.
  12512. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12513. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12514. * src/FileProgressMonitor.h: New class.
  12515. To compile aria2 on PC-BSD:
  12516. * src/DefaultBtContext.cc
  12517. (libgen.h): New include.
  12518. To fix memory leak:
  12519. * src/Exception.h
  12520. (~Exception): Delete cause. Fixed memory leak.
  12521. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12522. Rewritten a portion of bittorrent implementation:
  12523. * src/BtMessageValidator.h: New class.
  12524. * src/BtBitfieldMessageValidator.h: New class.
  12525. * src/BtHandshakeMessageValidator.h: New class.
  12526. * src/BtRequestMessageValidator.h: New class.
  12527. * src/BtSuggestPieceMessageValidator.h: New class.
  12528. * src/BtAllowedFastMessageValidator.h: New class.
  12529. * src/BtRejectMessageValidator.h: New class.
  12530. * src/BtCancelMessageValidator.h: New class.
  12531. * src/BtPieceMessageValidator.h: New class.
  12532. * src/BtHaveMessageValidator.h: New class.
  12533. * src/BtEventListener.h: New class.
  12534. * src/AbstractBtEventListener.h: New class.
  12535. * src/BtEvent.h: New class.
  12536. * src/BtChokingEvent.h: New class.
  12537. * src/BtChokedEvent.h: New class.
  12538. * src/BtCancelSendingPieceEvent.h: New class.
  12539. * src/BtAbortOutstandingRequestEvent.h: New class.
  12540. * src/Randomizer.h: New class.
  12541. * src/SimpleRandomizer.h: New class.
  12542. * src/BtMessage.h: New class.
  12543. * src/AbstractBtMessage.h: New class.
  12544. * src/SimpleBtMessage.h: New class.
  12545. * src/BtHaveMessage.h: New class.
  12546. * src/BtInterestedMessage.h: New class.
  12547. * src/BtAllowedFastMessage.h: New class.
  12548. * src/BtUnchokeMessage.h: New class.
  12549. * src/BtCancelMessage.h: New class.
  12550. * src/BtNotInterestedMessage.h: New class.
  12551. * src/BtChokeMessage.h: New class.
  12552. * src/BtHaveNoneMessage.h: New class.
  12553. * src/BtHandshakeMessage.h: New class.
  12554. * src/BtSuggestPieceMessage.h: New class.
  12555. * src/BtHaveMessage.h: New class.
  12556. * src/BtPieceMessage.h: New class.
  12557. * src/BtHaveAllMessage.h: New class.
  12558. * src/BtKeepAliveMessage.h: New class.
  12559. * src/BtPortMessage.h: New class.
  12560. * src/BtRejectMessage.h: New class.
  12561. * src/BtBitfieldMessage.h: New class.
  12562. * src/BtRequestMessage.h: New class.
  12563. * src/DefaultBtRequestFactory.h: New class.
  12564. * src/DefaultBtMessageReceiver.h: New class.
  12565. * src/BtInteractive.h: New class.
  12566. * src/BtMessageDispatcher.h: New class.
  12567. * src/DefaultBtMessageDispatcher.h: New class.
  12568. * src/DefaultBtInteractive.h: New class.
  12569. * src/BitfieldManFactory.h: New class.
  12570. * src/HandleRegistry.h: New class.
  12571. * src/BtMessageFactory.h: New class.
  12572. * src/BtMessageReceiver.h: New class.
  12573. * src/DefaultBtMessageFactory.h: New class.
  12574. * src/PeerObject.h: New class.
  12575. * src/BtRequestFactory.h: New class.
  12576. * src/SuggestPieceMessage.h: Removed.
  12577. * src/PortMessage.h: Removed.
  12578. * src/SuggestPieceMessage.h: Removed.
  12579. * src/KeepAliveMessage.h: Removed.
  12580. * src/HandshakeMessage.h: Removed.
  12581. * src/PeerInteraction.h: Removed.
  12582. * src/UnchokeMessage.h: Removed.
  12583. * src/PieceMessage.h: Removed.
  12584. * src/RequestMessage.h: Removed.
  12585. * src/InterestedMessage.h: Removed.
  12586. * src/HaveMessage.h: Removed.
  12587. * src/CancelMessage.h: Removed.
  12588. * src/RejectMessage.h: Removed.
  12589. * src/AllowedFastMessage.h: Removed.
  12590. * src/HaveNoneMessage.h: Removed.
  12591. * src/SimplePeerMessage.h: Removed.
  12592. * src/HaveAllMessage.h: Removed.
  12593. * src/BitfieldMessage.h: Removed.
  12594. * src/PeerMessageFactory.h: Removed.
  12595. * src/NotInterestedMessage.h: Removed.
  12596. * src/ChokeMessage.h: Removed.
  12597. * src/PeerMessage.h: Removed.
  12598. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12599. To know root cause of exception:
  12600. * src/Exception.h
  12601. (cause): New variable.
  12602. (Exception): Added a parameter.
  12603. (getMsg): Return const reference to msg.
  12604. (getCause): New function.
  12605. * src/DlRetryEx.h
  12606. (DlRetryEx): Added a parameter 'cause'.
  12607. Added an overloaded constructor.
  12608. (DlAbortEx): Added a parameter 'cause'.
  12609. Added an overloaded constructor.
  12610. * src/SimpleLogger.cc
  12611. (writeLog): Log nested exception messages recursively.
  12612. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. * src/DefaultBtProgressInfoFile.cc
  12614. (load): Fixed memory leak when the infohash doesn't match.
  12615. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. * src/DefaultPeerStorage.cc
  12617. (calculateStat): Simplified the code by combining 2 loops into 1.
  12618. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12620. for BitTorrent download:
  12621. * src/PeerAbstractCommand.cc
  12622. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12623. * src/main.cc:
  12624. (timeoutSpecified): Removed.
  12625. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12626. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12627. * src/TorrentRequestInfo.cc
  12628. (timeoutSpecified): Removed.
  12629. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12630. timeout value.
  12631. * src/prefs.h
  12632. (PREF_BT_TIMEOUT): New definition.
  12633. Delete unused variables:
  12634. * src/TorrentRequestInfo.cc
  12635. (requestInfo): Removed.
  12636. Move setSignalHander to Util::setGlobalSignalHandler:
  12637. * src/TorrentRequestInfo.cc:
  12638. setSignalHander -> Util::setGlobalSignalHandler
  12639. * src/main.cc
  12640. (setSignalHander): Removed.
  12641. (main): setSignalHander -> Util::setGlobalSignalHandler
  12642. * src/Util.h
  12643. (setGlobalSignalHandler): New function.
  12644. * src/Util.cc
  12645. (setGlobalSignalHandler): New function.
  12646. * src/UrlRequestInfo.cc:
  12647. setSignalHander -> Util::setGlobalSignalHandler
  12648. Reset peer status in order to exit gracefully:
  12649. * src/PeerAbstractCommand.cc
  12650. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12651. To fix the bug that causes the number of bytes uploaded is not saved
  12652. to .aria2 file:
  12653. * src/DefaultPeerStorage.h
  12654. (removedPeerSessionDownloadLength): New variable.
  12655. (removedPeerSessionUploadLength): New variable.
  12656. * src/DefaultPeerStorage.cc
  12657. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12658. removedPeerSessionUploadLength(0).
  12659. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12660. through all peers, and then add removedPeerSessionDownloadLength(
  12661. removedPeerSessionUploadLength) to it.
  12662. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12663. (to) the peer to removedPeerSessionDownloadLength
  12664. (removedPeerSessionUploadLength).
  12665. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. To add Metalink location option:
  12667. * src/MetalinkRequestInfo.cc
  12668. (execute): Call MetalinkEntry::setLocationPreference()
  12669. * src/main.cc
  12670. (showUsage): Added the help message for --metalink-location option.
  12671. (main): Added --metalink-location option.
  12672. * src/prefs.h
  12673. (PREF_METALINK_LOCATION): New definition.
  12674. * src/MetalinkEntry.cc
  12675. (AddLocationPreference): New function object.
  12676. (setLocationPreference): New function.
  12677. * src/Xml2MetalinkProcessor.cc
  12678. (getResource): Set location attribute to MetalinkResource
  12679. To show URLs to download
  12680. * src/UrlRequestInfo.h
  12681. (printUrls): New function.
  12682. To add multiple <file> Metalink support:
  12683. * src/MetalinkEntry.h
  12684. (MetalinkResources): Removed.
  12685. (setLocationPreference): New function.
  12686. (MetalinkEntryHandle): New type definition.
  12687. (MetalinkEntries): New type definition.
  12688. * src/Xml2MetalinkProcessor.h
  12689. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12690. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12691. (parseFile): Metalinker* -> MetalinkerHandle
  12692. * src/UrlRequestInfo.h
  12693. (execute): RequestInfo* -> RequestInfos
  12694. * src/MetalinkRequestInfo.cc
  12695. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12696. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12697. (execute): RequestInfo* -> RequestInfos
  12698. Added multiple <file> support. Print filename when it is queued.
  12699. * src/MetalinkRequestInfo.h
  12700. (execute): RequestInfo* -> RequestInfos
  12701. (getDownloadEngine): Removed.
  12702. * src/RequestInfo.h
  12703. (RequestInfoHandle): New type definition.
  12704. (RequestInfos): New type definition.
  12705. (execute): RequestInfo* -> RequestInfos
  12706. (getDownloadEngine): Removed.
  12707. * src/MetalinkResource.h
  12708. (MetalinkResourceHandle): New type definition.
  12709. (MetalinkResources): New type definition.
  12710. * src/MetalinkEntry.cc
  12711. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12712. because the element is now of type MetalinkResourceHandle.
  12713. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12714. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12715. (dropUnsupportedResource): Removed the deletion of the elements of
  12716. resources because the element is now of type MetalinkResourceHandle.
  12717. * src/Xml2MetalinkProcessor.cc
  12718. (parseFile): Metalinker* -> MetalinkerHandle
  12719. MetalinkEntry* -> MetalinkEntryHandle
  12720. Removed try-catch block.
  12721. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12722. MetalinkResource* -> MetalinkResourceHandle
  12723. Removed try-catch block.
  12724. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12725. Free result by using xmlXPathFreeObject()
  12726. * src/Metalinker.cc
  12727. (~Metalinker): Removed the deletion of entries.
  12728. MetalinkEntry* -> MetalinkEntryHandle
  12729. (queryEntry): Add multiple <file> Metalink support.
  12730. * src/Metalinker.h
  12731. (MetalinkEntries): Removed.
  12732. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12733. * src/MetalinkProcessor.h
  12734. (parseFile): Metalinker* -> MetalinkerHandle
  12735. Bug fixes:
  12736. * src/PeerChokeCommand.cc
  12737. (execute): cat01->cat02
  12738. * src/DefaultPieceStorage.cc
  12739. (DefaultPieceStorage): Added diskAdaptor(0)
  12740. * src/TrackerWatcherComand.cc:
  12741. (execute): Use btAnnounce->noMoreAnnounce()
  12742. to determin whether the function returns true or not.
  12743. * src/TrackerUpdateCommand.cc:
  12744. (execute): Use btAnnounce->noMoreAnnounce()
  12745. to determin whether the function returns true or not.
  12746. * src/FtpConnection.cc
  12747. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12748. This is the fix of the busy loop bug.
  12749. * src/DownloadCommand.cc
  12750. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12751. cached PeerStat.
  12752. The value of "name" entry in torrent file is now set by
  12753. *DiskAdaptor::setTopDir(...) methods.
  12754. * src/MultiDiskAdaptor.h
  12755. (topDir): New variable.
  12756. (setTopDir): New function.
  12757. (getTopDir): New function.
  12758. * src/MultiDiskAdaptor.cc
  12759. (getFilePath): Concat storDir, "/" and topDir.
  12760. (mkdir): Use getFilePath() to get the directory path for output.
  12761. * src/DefaultPieceStorage.cc
  12762. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12763. CopyDiskAdaptor.
  12764. * src/CopyDiskAdaptor.h
  12765. (topDir): New variable.
  12766. (setTopDir): New function.
  12767. (getTopDir): New function.
  12768. * src/CopyDiskAdaptor.cc
  12769. (fixFilename): Updated.
  12770. Misc
  12771. * src/UrlRequestInfo.h
  12772. (e): Removed.
  12773. (UrlRequestInfo): Removed e.
  12774. (getDownloadEngine): Removed.
  12775. * src/UrlRequestInfo.cc
  12776. (handler): Rewritten.
  12777. (printUrls): New function.
  12778. (execute): Call printUrls().
  12779. * src/HandshakeMessage.cc
  12780. (check): peerinteraction->getBtContext() -> btContext
  12781. * src/PeerInteraction.h
  12782. (getBtContext): Removed.
  12783. * src/TorrentRequestInfo.h
  12784. (execute): RequestInfo* -> RequestInfos
  12785. (getDownloadEngine): Removed.
  12786. * src/TorrentRequestInfo.cc
  12787. (haltRequested): Removed.
  12788. (btHaltRequested): New variable.
  12789. (torrentHandler): haltRequested -> btHaltRequested
  12790. (execute): RequestInfo* -> RequestInfos
  12791. * src/TorrentConsoleDownloadEngine.cc
  12792. (afterEachIteration): haltRequested -> btHaltRequested.
  12793. * src/ConsoleDownloadEngine.h
  12794. (initStatistics): Added virtual.
  12795. (calculateStatistics): Added virtual.
  12796. (onEndOfRun): Added virtual.
  12797. (afterEachIteration): Added virtual.
  12798. * src/ConsoleDownloadEngine.cc
  12799. (haltRequested): New variable.
  12800. (afterEachIteration): New function.
  12801. * src/main.cc
  12802. (requestInfo): Removed.
  12803. * src/SegmentMan.cc
  12804. (findSlowerSegmentEntry): Refactored.
  12805. * Release 0.9.0
  12806. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12807. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12808. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12809. * src/TorrentMan.h: Removed.
  12810. * src/TorrentMan.cc: Removed.
  12811. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12812. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12813. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12814. * src/PeerAbstractCommand.cc: Use btRuntime.
  12815. * src/BtContextAwareCommand.h: New class.
  12816. * src/FileEntry.h: Added accessor methods for following variables.
  12817. (path): Made private.
  12818. (length): Made private.
  12819. (offset): Made private.
  12820. (extracted): Made private.
  12821. (requested): Made private.
  12822. (FileEntries): New definition.
  12823. (FileEntryHandle): New definition.
  12824. * src/FileEntry.cc: New file.
  12825. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12826. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12827. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12828. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12829. * src/PieceStorage.h: New file.
  12830. * src/PeerInteractionCommand.h: Use btContext.
  12831. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12832. btRuntime.
  12833. * src/DefaultBtProgressInfoFile.h: New file.
  12834. * src/DefaultBtProgressInfoFile.cc: New file.
  12835. * src/File.cc
  12836. (Util.h): New include.
  12837. (mkdirs): New function.
  12838. * src/MultiDiskAdaptor.h
  12839. (mkdir): New function.
  12840. * src/PeerListProcessor.h
  12841. (Peers): Removed.
  12842. * src/PeerInteraction.h
  12843. (torrentMan): Removed.
  12844. (btContext): New variable.
  12845. (peerStorage): New variable.
  12846. (pieceStorage): New variable.
  12847. (btAnnounce): New variable.
  12848. (getTorrentMan): Removed.
  12849. (getBtContext): New function.
  12850. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12851. btAnnounce.
  12852. * src/HandshakeMessage.h
  12853. (TorrentMan.h): Removed.
  12854. * src/HandshakeMessage.cc: Use btContext.
  12855. * src/DefaultBtAnnounce.cc: New file.
  12856. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12857. * src/DefaultPieceStorage.cc: New file.
  12858. * src/DefaultBtContext.h: New file.
  12859. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12860. Use the accessor methods of FileEntry.
  12861. * src/CookieBox.cc: Updated to use Util::slice().
  12862. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12863. * src/common.h (SharedHandle.h): New include.
  12864. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12865. pieceStorage.
  12866. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12867. * src/DiskAdaptor.h
  12868. (topDir): Removed.
  12869. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12870. (setTopDir): Removed.
  12871. (getTopDir): Removed.
  12872. * src/BtContext.h: New file.
  12873. * src/DefaultPeerStorage.h: New file.
  12874. * src/PieceMessage.h (TorrentMan.h): Removed.
  12875. * src/RequestMessage.h (TorrentMan.h): Removed.
  12876. * src/TorrentDownloadEngine.h
  12877. (uploadLength): New variable.
  12878. (btContext): New variable.
  12879. (btRuntime): New variable.
  12880. (pieceStorage): New variable.
  12881. (peerStorage): New variable.
  12882. (btAnnounce): New variable.
  12883. (btProgressInfoFile): New variable.
  12884. (torrentMan): Removed.
  12885. (setBtContext): New function.
  12886. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12887. peerStorage, btAnnounce, btProgressInfoFile.
  12888. * src/Piece.h
  12889. (toString): New function.
  12890. (Pieces): New type definition.
  12891. * src/Peer.h
  12892. (active): New variable.
  12893. (Peer): Added active.
  12894. (activate): Set active to true.
  12895. (deactivate): Set active to false.
  12896. (isActive): New function.
  12897. (Peers): New type definition.
  12898. * src/DirectDiskAdaptor.cc
  12899. (getFilePath): Use the accessor methods of FileEntry.
  12900. * src/TorrentConsoleDownloadEngine.h
  12901. (afterEachIteration): New function.
  12902. * src/TorrentConsoleDownloadEngine.cc
  12903. (haltRequested): New variable.
  12904. (sendStatistics): Use pieceStorage, btRuntime.
  12905. (afterEachIteration): New function.
  12906. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12907. * src/Directry.h
  12908. (Directory): New function.
  12909. (DirectoryHandle): New type definition.
  12910. * src/BtProgressInfoFile.h: New file.
  12911. * src/RequestMessage.cc: Use pieceStorage.
  12912. * src/BtRuntime.h: New file.
  12913. * src/DefaultBtContext.cc: New file.
  12914. * src/BitfieldMan.h
  12915. (getCompletedLength): New function(private).
  12916. (getCompletedLength): New function.
  12917. (getFilteredCompletedLength): New function.
  12918. * src/BitfieldMan.h
  12919. (getCompletedLength): New function(private).
  12920. (getCompletedLength): New function.
  12921. (getFilteredCompletedLength): New function.
  12922. * src/MultiDiskAdaptor.cc
  12923. (mkdir): New function.
  12924. (openFile): Call mkdir().
  12925. (initAndOpenFile): Call mkdir().
  12926. * src/CancelMessage.h
  12927. (TorrentMan.h): Removed.
  12928. * src/RejectMessage.h
  12929. (TorrentMan.h): Removed.
  12930. * src/DownloadEngineFactory.cc
  12931. (DefaultPieceStorage.h): New include.
  12932. (DefaultPeerStorage.h): New include.
  12933. (DefaultBtAnnounce.h): New include.
  12934. (DefaultBtProgressInfoFile.h): New include.
  12935. (newTorrentConsoleEngine): Rewritten.
  12936. * src/ShareRatioSeedCriteria.h
  12937. (torrentMan): Removed.
  12938. (btContext): New variable.
  12939. (peerStorage): New variable.
  12940. (btRuntime): New variable.
  12941. (evaluate): Use btContext, btRuntime, peerStorage.
  12942. * src/AnnounceTier.h: New file.
  12943. * src/BtAnnounce.h: New file.
  12944. * src/BtRegistry.h: New file.
  12945. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12946. * src/PeerConnection.h (TorrentMan.h): Removed.
  12947. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12948. * src/Util.h
  12949. (slice): Added an argument.
  12950. * src/Util.cc
  12951. (slice): Added an argument to control whether trim is made or not.
  12952. * src/PeerStorage.h: New file.
  12953. * src/BtRegistry.cc: New file.
  12954. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12955. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12956. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12957. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12958. * src/TorrentRequestInfo.h
  12959. (e): Removed.
  12960. (showFileEntry): Added an argument.
  12961. (getDownloadEngine): Return 0.
  12962. * src/DefaultBtAnnounce.h: New file.
  12963. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12964. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12965. * src/PeerMessageFactory.h
  12966. (btContext): New variable.
  12967. (pieceStorage): New variable.
  12968. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12969. btAnnounce.
  12970. * src/DiskAdaptor.cc
  12971. (DiskAdaptor): Removed topDir.
  12972. (~DiskAdaptor): Removed topDir.
  12973. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12974. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12975. * src/File.h (mkdirs): New function.
  12976. * src/DefaultPeerStorage): New file.
  12977. * src/DownloadEngineFactory.h
  12978. (newTorrentConsoleEngine): Use btContext.
  12979. * src/BtContextAwareCommand.cc: New file.
  12980. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12981. * src/PeerMessage.h
  12982. (btContext): New variable.
  12983. (peerStorage): New variable.
  12984. (pieceStorage): New variable.
  12985. (setBtContext): New function.
  12986. * src/Directry.cc
  12987. (Directory): New function.
  12988. (createDir): Do nothing if name.size() == 0.
  12989. * src/AnnounceList.h
  12990. (AnnounceTier): Removed.
  12991. (AnnounceTiers): Removed.
  12992. * src/DefaultPieceStorage.h: New file.
  12993. * src/Piece.cc (toString): New function.
  12994. To fix typo:
  12995. * src/main.cc (showVersion): Fixed typo.
  12996. To fix compile warning:
  12997. * src/DelegatingPeerListProcessor.cc
  12998. (canHandle): Added "return false".
  12999. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13000. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13001. make the process of announce request testable.
  13002. * src/TrackerWatcherCommand.h
  13003. (TimeA2.h): Removed.
  13004. (interval): Removed.
  13005. (checkPoint): Removed.
  13006. (createRequestCommand): Added an argument 'url'.
  13007. (TrackerWatherCommand): Removed interval.
  13008. (createCommand): New function.
  13009. * src/DownloadEngineFactory.cc
  13010. (newTorrentConsoleEngine): Updated according to the changes in
  13011. TrackerWatherCommand.
  13012. * src/TorrentMan.cc
  13013. (DelegatingPeerListProcessor.h): New includes.
  13014. (TorrentMan): Added the initialization of announceInterval.
  13015. (isStoppedAnnounceReady): New function.
  13016. (isCompletedAnnounceReady): New function.
  13017. (isDefaultAnnounceReady): New function.
  13018. (isAnnounceReady): New function.
  13019. (getAnnounceUrl): New function.
  13020. (announceStart): New function.
  13021. (announceFailure): New function.
  13022. (announceSuccess): New function.
  13023. (isAllAnnounceFailed): New function.
  13024. (resetAnnounce): New function.
  13025. (processAnnounceResponse): New function.
  13026. (needMorePeerConnection): New function.
  13027. (noMoreAnnounce): New function.
  13028. * src/TrackerUpdateCommand.h
  13029. (getTrackerResponse): int->size_t
  13030. * src/TorrentMan.h
  13031. (isStoppedAnnounceReady): New function.
  13032. (isCompletedAnnounceReady): New function.
  13033. (isDefaultAnnounceReady): New function.
  13034. (announceInterval): New variable.
  13035. (isAnnounceReady): New function.
  13036. (getAnnounceUrl): New function.
  13037. (announceStart): New function.
  13038. (announceFailure): New function.
  13039. (announceSuccess): New function.
  13040. (isAllAnnounceFailed): New function.
  13041. (resetAnnounce): New function.
  13042. (processAnnounceResponse): New function.
  13043. (needMorePeerConnection): New function.
  13044. (noMoreAnnounce): New function.
  13045. * src/TrackerWatcherCommand.cc
  13046. (TrackerWatherCommand): Removed interval and checkPoint.
  13047. (execute): Rewritten.
  13048. (createCommand): New function.
  13049. (createRequestCommand): Rewritten.
  13050. * src/TrackerUpdateCommand.cc
  13051. (MetaFileUtil.h): Removed.
  13052. (DelegatingPeerListProcessor.h): Removed.
  13053. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13054. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13055. Request -> RequestHandle:
  13056. * src/HttpResponseCommand.h: Request->RequestHandle
  13057. * src/AbstractCommand.cc: Request->RequestHandle
  13058. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13059. * src/HttpRequestCommand.cc: Request->RequestHandle
  13060. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13061. * src/AbstractCommand.h: Request->RequestHandle
  13062. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13063. * src/HttpResponseCommand.cc: Request->RequestHandle
  13064. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13065. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13066. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13067. * src/HttpConnection.h: Request->RequestHandle
  13068. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13069. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13070. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13071. * src/DownloadCommand.h: Request->RequestHandle
  13072. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13073. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13074. * src/HttpRequestCommand.h: Request->RequestHandle
  13075. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13076. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13077. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13078. * src/HttpDownloadCommand.h: Request->RequestHandle
  13079. * src/FtpConnection.cc: Request->RequestHandle
  13080. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13081. * src/UrlRequestInfo.cc: Request->RequestHandle
  13082. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13083. * src/HttpConnection.h: Request->RequestHandle
  13084. * src/DownloadCommand.cc: Request->RequestHandle
  13085. * src/FtpConnection.h: Request->RequestHandle
  13086. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13087. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13088. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13089. * src/Request.h
  13090. (SharedHandle.h): New include.
  13091. (RequestHandle): New type definition.
  13092. (Requests): Redefined.
  13093. To add MULTITRACKER support:
  13094. * src/TrackerWatcherCommand.h
  13095. (createRequestCommand): New function.
  13096. * src/DownloadEngineFactory.cc
  13097. (newTorrentConsoleEngine): Removed req.
  13098. * src/prefs.h
  13099. (PREF_TRACKER_MAX_TRIES): New definition.
  13100. * src/TorrentMan.cc
  13101. (TorrentMan): Removed req. Added trackerNumTry.
  13102. (~TorrentMan): Removed req.
  13103. (setupInternal1): Added announceList.
  13104. * src/TorrentRequestInfo.cc
  13105. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13106. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13107. * src/main.cc
  13108. (main): Added PREF_TRACKER_MAX_TRIES.
  13109. * src/TorrentMan.h
  13110. (Request.h): Removed.
  13111. (AnnounceList.h): New include.
  13112. (trackerNumTry): New variable.
  13113. (req): Removed.
  13114. (announceList): New variable.
  13115. * src/TrackerWatcherCommand.cc
  13116. (execute): Rewritten.
  13117. (createRequestCommand): New function.
  13118. * src/TrackerUpdateCommand.cc
  13119. (execute): Updated with the use of AnnounceList.
  13120. * src/AnnounceList.cc: New class.
  13121. * src/AnnounceList.h: New class.
  13122. To fix typo:
  13123. * src/prefs.h
  13124. (PREF_MAX_TRIES): max_try->max_tries
  13125. To not to decode "+" as space in URL decode:
  13126. * src/Util.cc
  13127. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13128. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. To add timeout to async name resolution:
  13130. * src/AbstractCommand.h
  13131. (nameResolveFinished): New function. This is not elegant way. It needs
  13132. to be more refined.
  13133. (nameResolverCheck): New variable.
  13134. * src/AbstractCommand.cc
  13135. (AbstractCommand): Added nameResolverCheck.
  13136. (execute): Added the check whether the name resolution has finished.
  13137. (setNameResolverCheck): Set nameResolverCheck to true.
  13138. (disableNameResolverCheck): Set nameResolverCheck to false.
  13139. (nameResolverFinished): New function.
  13140. * src/FtpInitiateConnectionCommand.h
  13141. (nameResolverFinished): New function.
  13142. * src/FtpInitiateConnectionCommand.cc
  13143. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13144. * src/HttpInitiateConnectionCommand.h
  13145. (nameResolverFinished): New function.
  13146. * src/HttpInitiateConnectionCommand.cc
  13147. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13148. * src/prefs.h
  13149. (PREF_DNS_TIMEOUT): New definition.
  13150. * src/main.cc
  13151. (main): Added PREF_DNS_TIMEOUT.
  13152. To add the support for a non-compact response from a tracker:
  13153. * src/PeerListProcessor.h: New class.
  13154. * src/DefaultPeerListProcessor.h: New class.
  13155. * src/DefaultPeerListProcessor.cc: New class.
  13156. * src/CompactPeerListProcessor.h: New class.
  13157. * src/CompactPeerListProcessor.cc: New class.
  13158. * src/DelegatingPeerListProcessor.h: New class.
  13159. * src/DelegatingPeerListProcessor.cc: New class.
  13160. * src/TorrentMan.cc
  13161. (addPeer): New function(overload).
  13162. (addPeer): Delete unused peers only when new peer is added.
  13163. * src/TorrentMan.h
  13164. (PeerListProcessor.h): Included.
  13165. (Peers): Removed.
  13166. (addPeer): New function(overload).
  13167. * src/TrackerUpdateCommand.cc
  13168. (netinet/in.h): Removed.
  13169. (DelegatingPeerListProcessor.h): Included.
  13170. (execute): Updated to use DelegatingPeerListProcessor.
  13171. To fix the memory leak in TorrentMan::peers:
  13172. * src/PeerAbstractCommand.cc
  13173. (onAbort): Added peer->resetStatus().
  13174. * src/Peer.h
  13175. (resetStatus): Made public.
  13176. To improve the precision of the speed calculation:
  13177. * src/SpeedCalc.h
  13178. (nextInterval): New variable.
  13179. * src/SpeedCalc.cc
  13180. (reset): Added nextInterval.
  13181. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13182. (changeSw): Set nextInterval to 15 seconds relative to the current
  13183. instant time.
  13184. * src/main.cc
  13185. (showVersion): Updated.
  13186. (showUsage): Updated.
  13187. * Release 0.8.1
  13188. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13189. * src/main.cc
  13190. (showUsage): Commented out --min-segment-size option.
  13191. (main): Commented out --min-segment-size option.
  13192. * Release 0.8.0
  13193. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13194. * src/*.{h,cc}:
  13195. Added an exception to the license which allows linking with OpenSSL.
  13196. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13197. * src/AbstractCommand.cc
  13198. (execute): Check whether the download has finished before checking
  13199. socket status.
  13200. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13201. Do not exit even if no segment is available.
  13202. * src/prefs.h
  13203. (PREF_STARTUP_IDLE_TIME): New definition.
  13204. * src/PeerInteractionCommand.cc
  13205. (executeInternal): Removed max speed limit. Because it performs bad.
  13206. (receiveMessages): Added max speed limit. This was better than above,
  13207. but still a little bit to be desired. Sometimes the download speed
  13208. became much faster than I specified.
  13209. * src/SpeedCalc.h
  13210. (start): New variable.
  13211. (accumulatedLength): New variable.
  13212. (getAvgSpeed): New function.
  13213. * src/SpeedCalc.cc
  13214. (reset): Added start, accumulatedLength.
  13215. (update): Added calculation of an average speed.
  13216. (getAvgSpeed): New function.
  13217. * src/DownloadCommand.h
  13218. (sw): Removed.
  13219. * src/main.cc
  13220. (main): Added PREF_STARTUP_IDLE_TIME.
  13221. * src/PeerStat.h
  13222. (STATUS): Added REQUEST_IDLE.
  13223. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13224. (getAvgDownloadSpeed): New function
  13225. (requestIdle): New function.
  13226. * src/SegmentMan.h
  13227. (SegmentEntryHandle): New type definition.
  13228. (SegmentEntries): Now holds SegmentEntryHandle.
  13229. (findSlowerSegmentEntry): New funtion.
  13230. * src/SegmentMan.cc
  13231. (save): Updated according to the changes in SegmentEntries.
  13232. (read): Updated according to the changes in SegmentEntries.
  13233. (FindSegmentEntryByIndex): Updated according to the changes in
  13234. SegmentEntries.
  13235. (FindSegmentEntryByCuid): Updated according to the changes in
  13236. SegmentEntries.
  13237. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13238. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13239. Renamed uitr as itr.
  13240. (findSlowerSegmentEntry): New function.
  13241. (getSegment): Updated according to the changes in SegmentEntries.
  13242. Added the feature that cancels the segment with slow server and fast
  13243. one takes it over.
  13244. (cancelSegment): Updated according to the changes in SegmentEntries.
  13245. (getDownloadLength): Updated according to the changes in
  13246. SegmentEntries.
  13247. (init): Assigned 0 to bitfield after deleting it.
  13248. * src/DownloadCommand.cc
  13249. (STARTUP_IDLE_TIME): Removed.
  13250. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13251. * src/PeerChokeCommand.cc
  13252. (optUnchokingPeer): Updated according to the changes in Peer.
  13253. (ResetDelta): Removed.
  13254. (UploadFaster): Updated according to the changes in Peer.
  13255. (DownloadFaster): Updated according to the changes in Peer.
  13256. (execute): I clarify the meaning of "upload" and "download" here.
  13257. "upload" means the transfer from localhost to remote host.
  13258. "download" means the transfer from remote host to localhost.
  13259. Based on this rule, I swapped orderByUploadRate and
  13260. orderByDownloadRate.
  13261. * src/PeerInteractionCommand.cc
  13262. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13263. (executeInternal): Removed the argument of
  13264. peerInteraction->sendMessages().
  13265. (receiveMessages): Rewritten download speed limit.
  13266. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13267. * src/HttpResponseCommand.cc
  13268. (handleDefaultEncoding): If file size is unknown in torrent request,
  13269. do not call segmentMan->initBitfield() here.
  13270. Disabled persistent connection feature in torrent request.
  13271. * src/UrlRequestInfo.h
  13272. (UrlRequestInfo): Removed const qualifier from option.
  13273. * src/TorrentMan.h
  13274. (TransferStat): New class.
  13275. (deltaDownloadLength): Removed.
  13276. (deltaUploadLength): Removed.
  13277. (addDeltaDownloadLength): Removed.
  13278. (getDeltaDownloadLength): Removed.
  13279. (resetDeltaDownloadLength): Removed.
  13280. (addDeltaUploadLength): Removed.
  13281. (getDeltaUploadLength): Removed.
  13282. (resetDeltaUploadLength): Removed.
  13283. (addActivePeer): Added peer->activate().
  13284. (deleteActivePeer): Added peer->deactivate().
  13285. (calculateStat): New function.
  13286. * src/TorrentMan.cc
  13287. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13288. (calculateStat): New function.
  13289. * src/PeerInteraction.h
  13290. (uploadLimit): Removed.
  13291. (option): New variable.
  13292. (setUploadLimit): Removed.
  13293. (getUploadSpeed): Removed.
  13294. (sendMessages): Removed the argument "currentUploadSpeed".
  13295. * src/PeerInteraction.cc
  13296. (prefs.h): Included.
  13297. (PeerInteraction): Removed uploadLimit. Added option.
  13298. (sendMessages): Rewritten upload speed limit.
  13299. (sendHandshake): Removed the argument from sendMessages().
  13300. (sendBitfield): Removed the argument from sendMessages().
  13301. * src/PeerAbstractCommand.cc
  13302. (execute): Commented out the portion of upload limit.
  13303. (onAbort): Removed peer->resetStatus().
  13304. * src/TorrentRequestInfo.cc
  13305. (timeoutSpecified): Declared extern.
  13306. (execute): Set timeout to 180 if timeout is not specified by.
  13307. command-line.
  13308. * src/PieceMessage.cc
  13309. (receivedAction): Added peer->updateDownloadLength().
  13310. Removed peer->addPeerUpload().
  13311. Removed torrentMan->addDeltaDownloadLength().
  13312. (send): Added peer->updateUploadLength().
  13313. Removed peer->addPeerDownload().
  13314. Removed torrentMan->addDeltaUploadLength().
  13315. * src/main.cc
  13316. (timeoutSpecified): New variable.
  13317. (main): Set timeoutSpecified to false.
  13318. If the command-line option "--upload-limit" is specified, then
  13319. timeoutSpecified is set to true. This option will remain in the next
  13320. release, but be deprecated in the future release.
  13321. * src/TorrentRequestInfo.h
  13322. (TorrentRequestInfo): Removed const qualifier from op.
  13323. * src/PeerStat.h
  13324. (uploadSpeed): New variable.
  13325. (PeerStat): Added default value to cuid.
  13326. (calculateUploadSpeed): New function.
  13327. (updateUploadLength): New function.
  13328. (getMaxUploadSpeed): New function.
  13329. (getAvgUploadSpeed): New function.
  13330. (reset): Added uploadSpeed. Set status to IDLE.
  13331. * src/TorrentDownloadEngine.h
  13332. (cp): Declared as Time.
  13333. (sessionDownloadLengthArray): Removed.
  13334. (sessionUploadLengthArray): Removed.
  13335. (currentCp): Removed.
  13336. (lastCalcStat): New variable
  13337. (lastElapsed): Removed.
  13338. (sessionDownloadLength): Removed.
  13339. (calculateStat): New function.
  13340. * src/TorrentDownloadEngine.cc
  13341. (initStatistics): Removed lastElapsed, cp[],
  13342. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13343. currentCp, sessionDownloadLength.
  13344. Added cp.reset() and lastCalcStat.reset().
  13345. (calculateSpeed): Changed the name of the argument.
  13346. (calculateStatistics): Rewritten.
  13347. (calculateStat): New function.
  13348. * src/Peer.h
  13349. (PeerStat.h): Included.
  13350. (peerUpload): Removed.
  13351. (peerDownload): Removed.
  13352. (peerStat): New variable.
  13353. (sessionUploadLength): New variable.
  13354. (sessionDownloadLength): New variable.
  13355. (deltaUpload): Removed.
  13356. (deltaDownload): Removed.
  13357. (resetStatus): Made private.
  13358. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13359. Removed peerUpload, peerDownload.
  13360. (updateUploadLength): New function.
  13361. (addDeltaUpload): Removed.
  13362. (updateDownloadLength): New function.
  13363. (resetDeltaUpload): Removed.
  13364. (getDeltaUpload): Removed.
  13365. (addDeltaDownload): Removed.
  13366. (calculateUploadSpeed): New function.
  13367. (resetDeltaDownload): Removed.
  13368. (getDeltaDownload): Removed.
  13369. (calculateDownloadSpeed): New function.
  13370. (getSessionUploadLength): New function.
  13371. (getSessionDownloadLength): New function.
  13372. (activate): New function.
  13373. (deactivate): New function.
  13374. (addPeerUpload): Removed.
  13375. (setPeerUpload): Removed.
  13376. (getPeerUpload): Removed.
  13377. (addPeerDownload): Removed.
  13378. (setPeerDownload): Removed.
  13379. (getPeerDownload): Removed.
  13380. * src/Peer.cc
  13381. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13382. * src/MetalinkRequestInfo.h
  13383. (MetalinkRequestInfo): Removed const qualifier from op.
  13384. * src/RequestInfo.h
  13385. (op): Removed const qualifier.
  13386. (RequestInfo): Removed const qualifier from op.
  13387. * src/prefs.h
  13388. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13389. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13390. * src/PeerInteractionCommand.cc
  13391. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13392. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13393. * src/PeerInteraction.cc
  13394. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13395. * src/main.cc
  13396. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13397. Added the description of "--max-download-limit" option.
  13398. Removed the description of "--upload-limit" option.
  13399. Added the description of "--max-upload-limit" option.
  13400. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13401. Added "--max-download-limit" option and "--max-upload-limit" option.
  13402. Added the warning message if "--upload-limit" option is used.
  13403. * src/DownloadCommand.cc
  13404. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13405. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13406. To rewrite segment download mechanism for HTTP/FTP download.
  13407. Use BitfieldMan to manage segment download.
  13408. * src/HttpResponseCommand.h
  13409. (executeInternal): Pass the reference of segment.
  13410. * src/AbstractCommand.cc
  13411. (prepareForRetry): Call segmentMan->cancelSegment here.
  13412. (onAbort): Call segmentMan->cancelSegment here.
  13413. * src/HttpDownloadCommand.cc
  13414. (prepareForNextSegment): New function.
  13415. * src/DownloadEngineFactory.cc
  13416. (newConsoleEngine): Removed splitter.
  13417. (newTorrentConsoleEngine): Removed splitter.
  13418. * src/Request.h
  13419. (segment): Renamed from seg.
  13420. * src/FtpInitiateConnectionCommand.h
  13421. (executeInternal): Pass the reference of segment.
  13422. * src/AbstractCommand.h
  13423. (executeInternal): Pass the reference of segment.
  13424. * src/pref.h
  13425. (PREF_SEGMENT_SIZE): New definition.
  13426. * src/HttpProxyRequestCommand.h
  13427. (executeInternal): Pass the reference of segment.
  13428. * src/HttpResponseCommand.cc
  13429. (checkResponse): Allowed status 206 when a request range starts 0.
  13430. (handleDefaultEncoding): Rewritten the code related to Segment.
  13431. (handleOtherEncoding): Rewritten the code related to Segment.
  13432. * src/SegmentMan.h
  13433. (SegmentEntry): New class.
  13434. (SegmentEntries): New type definition.
  13435. (bitfield): New variable.
  13436. (usedSegmentEntries): New variable.
  13437. (onNullBitfield): New function.
  13438. (checkoutSegment): New function.
  13439. (segments): Removed.
  13440. (splitter): Removed.
  13441. (unregisterId): Removed.
  13442. (getSegment): New function(overload)
  13443. (getDownloadedSize): Removed.
  13444. (cancelSegment): New function.
  13445. (completeSegment): New function.
  13446. (initBitfield): New function.
  13447. (hasSegment): New function.
  13448. (getDownloadLength): New function.
  13449. * src/BitfieldMan.h
  13450. (getStartIndex): New function.
  13451. (getEndIndex): New function.
  13452. (getMissingUnusedIndex): New function(overload).
  13453. (getSparseMissingUnusedIndex): New function.
  13454. * src/BitfieldMan.cc
  13455. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13456. (getMissingUnusedIndex): New function(overload).
  13457. (Range): New class.
  13458. (getStartIndex): New function.
  13459. (getEndIndex): New function.
  13460. (getSparseMissingUnusedIndex): New function.
  13461. (isBitSetInternal): Return false if the given index is less than 0.
  13462. * src/HttpInitiateConnectionCommand.h
  13463. (executeInternal): Pass the reference of segment.
  13464. * src/FtpNegotiateCommand.h
  13465. (executeInternal): Pass the reference of segment.
  13466. * src/FtpNegotiateCommand.cc
  13467. (recvSize): Initialize bitfield here.
  13468. * src/FtpTunnelResponseCommand.h
  13469. (executeInternal): Pass the reference of segment.
  13470. * src/HttpConnection.cc
  13471. (createRequest): Rewritten range header processing.
  13472. * src/DownloadCommand.h
  13473. (executeInternal): Pass the reference of segment.
  13474. (prepareForRetry): Removed.
  13475. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13476. function.
  13477. * src/main.cc
  13478. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13479. * src/SegmentMan.cc
  13480. (SegmentMan): Added bitfield. Removed splitter.
  13481. (~SegmentMan): Added bitfield. Removed splitter.
  13482. (unregisterId): Removed.
  13483. (getSegment): Rewritten.
  13484. (updateSegment): Rewritten.
  13485. (save): Rewritten.
  13486. (read): Rewritten.
  13487. (finished): Rewritten.
  13488. (getDownloadedSize): Removed.
  13489. (initBitfield): New function.
  13490. (FindSegmentEntryByIndex): New function object.
  13491. (FindSegmentEntryByCuid): New function object.
  13492. (checkoutSegment): New function.
  13493. (onNullBitfield): New function.
  13494. (getSegment): New function(overload).
  13495. (CancelSegment): New function object.
  13496. (cancelSegment): New function.
  13497. (completeSegment): New function.
  13498. (hasSegment): New function.
  13499. (getDownloadLength): New function.
  13500. * src/FtpInitiateConnectionCommand.cc
  13501. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13502. * src/Segment.h: Rewritten.
  13503. * src/Segment.cc (operator<<): New function.
  13504. * src/HttpDownloadCommand.h
  13505. (prepareForNextSegment): New function.
  13506. * src/Request.cc
  13507. (resetUrl): Made segment null.
  13508. * src/DownloadEngine.cc
  13509. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13510. * src/HttpProxyRequestCommand.h
  13511. (executeInternal): Pass the reference of segment.
  13512. * src/DownloadCommand.cc
  13513. (executeInternal): Rewritten the code related to Segment.
  13514. (prepareForRetry): Removed.
  13515. (prepareForNextSegment): Rewritten.
  13516. * src/FtpTunnelResponseCommand.h
  13517. (executeInternal): Pass the reference of segment.
  13518. To add HTTP 1.1 persistent connection support(experimental)
  13519. * src/HttpRequestCommand.cc
  13520. (executeInternal): Disable keep alive if it is disabled by
  13521. configuration.
  13522. * src/Request.h
  13523. (keepAlive): New variable.
  13524. (isKeepAlive): New function.
  13525. (setKeepAlive): New function.
  13526. * src/pref.h
  13527. (PREF_HTTP_KEEP_ALIVE): New definition.
  13528. * src/HttpResponseCommand.cc
  13529. (executeInternal): Check the remote server supports keep alive.
  13530. * src/HttpConnection.cc
  13531. (createRequest): Send "Connection: close" only if keep alive is
  13532. disabled.
  13533. * src/main.cc
  13534. (main):
  13535. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13536. To add max download speed limit:
  13537. * src/pref.h
  13538. (PREF_MAX_SPEED_LIMIT): New definition.
  13539. * src/PeerInteractionCommand.cc
  13540. (executeInternal): Added max download speed limit. Not tested yet.
  13541. * src/SegmentMan.h
  13542. (PeerStats): New type definition.
  13543. (peerStats): New variable.
  13544. (registerPeerStat): New function.
  13545. (FindPeerStat): New function object.
  13546. (getPeerStat): New function.
  13547. (calculateDownloadSpeed): New function.
  13548. * src/SpeedCalc.h: New class.
  13549. * src/SpeedCalc.cc: New class.
  13550. * src/main.cc
  13551. (main):
  13552. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13553. download speed is not restricted).
  13554. * src/PeerStat.h: New class.
  13555. * src/SegmentMan.cc
  13556. (registerPeerStat): New function.
  13557. (calculateDownloadSpeed): New function.
  13558. * src/DownloadCommand.cc
  13559. (STARTUP_IDLE_TIME): New definition.
  13560. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13561. downloadStart.
  13562. (~DownloadCommand): Call peerStat->downloadStop.
  13563. (executeInternal): Added download speed limitter. Rewritten lowest
  13564. speed limitter.
  13565. * src/HttpConnection.cc
  13566. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13567. * src/AbstractCommand.cc
  13568. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13569. Added hostname to the error message.
  13570. * src/ConsoleDownloadEngine.cc
  13571. (calculateStatistics): Initialize psize with dlSize.
  13572. * src/PieceMessage.cc
  13573. (receivedAction): Do not call peerInteraction->abortPiece here.
  13574. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13575. * src/BitfieldMan.h
  13576. (clearAllUseBit): New function.
  13577. (setAllUseBit): New function.
  13578. * src/BitfieldMan.cc
  13579. (clearAllBit): Do not clear useBitfield here.
  13580. (clearAllUseBit): New function.
  13581. (setAllUseBit): New function.
  13582. * src/Piece.cc
  13583. (clearAllBlock): Call bitfield->clearAllUseBit().
  13584. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13585. To make filename URL-decoded:
  13586. * src/HttpResponseCommand.h: Updated doc.
  13587. * src/HttpResponseCommand.cc
  13588. (determinFilename): Made filename URL-decoded.
  13589. * src/FtpInitiateConnectionCommand.cc
  13590. (executeInternal): Made filename URL-decoded.
  13591. * src/Util.h (urldecode): New function.
  13592. * src/Util.cc (urldecode): New function.
  13593. To fix a bug that caused assertion failure in ares_strerror:
  13594. * src/NameResolver.cc (callback): Fixed the bug.
  13595. * Release 0.7.3
  13596. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. To add --seed-time and --seed-ratio command-line option:
  13598. * src/Option.h (getAsDouble): New function.
  13599. * src/Option.cc (getAsDouble): New function.
  13600. * src/SeedCheckCommand.h: New class.
  13601. * src/SeedCheckCommand.cc: New class.
  13602. * src/DownloadEngineFactory.cc
  13603. (SeedCheckCommand.h): Included.
  13604. (UnionSeedCriteria.h): Included.
  13605. (TimeSeedCriteria.h): Included.
  13606. (ShareRatioSeedCriteria.h): Included.
  13607. (newTorrentConsoleEngine): Added the processing of seed option.
  13608. * src/SeedCriteria.h: New class.
  13609. * src/ShareRatioSeedCriteria.h: New class.
  13610. * src/TimeSeedCriteria.h: New class.
  13611. * src/UnionSeedCriteria.h: New class.
  13612. * src/prefs.h
  13613. (PREF_SEED_TIME): New definition.
  13614. (PREF_SEED_RATIO): New definition.
  13615. * src/main.cc
  13616. (showUsage): Added --seed-time and --seed-ratio option.
  13617. (main): Added --seed-time and --seed-ratio option.
  13618. Made default log file name "/dev/null".
  13619. * src/SharedHandle.h
  13620. (SharedHandle): Copy constructor. Made it assignable from the
  13621. SharedHandle of the subclasses.
  13622. (operator=): Made it assignable from the SharedHandle of the
  13623. subclasses.
  13624. (getRefCount): New function.
  13625. To add notice log level and the switch to write log to stdout. This
  13626. switch is configurable per log level.
  13627. * src/Logger.h
  13628. (notice): New function.
  13629. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13630. constant.
  13631. * src/LogFactory.cc
  13632. (getInstance): The use of NullLogger was removed. A log message with
  13633. notice log level was made written to stdout along with log file.
  13634. * src/NullLogger.h
  13635. (notice): New function.
  13636. * src/SimpleLogger.h
  13637. (writeHeader): Added the 'file' argument.
  13638. (writeLog): Added the 'file' argument.
  13639. (writeFile): New function.
  13640. (stdoutField): New variable.
  13641. (SimpleLogger): Removed the default constructor.
  13642. (SimpleLogger): Made the default value of logfile 0.
  13643. (debug): Added 'virtual' keyword.
  13644. (info): Added 'virtual' keyword.
  13645. (warn): Added 'virtual' keyword.
  13646. (error): Added 'virtual' keyword.
  13647. (notice): New function.
  13648. (setStdout): New function.
  13649. * src/SimpleLogger.cc
  13650. (WRITE_LOG): Replaced writeLog with writeFile.
  13651. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13652. (SimpleLogger): Removed the default constructor.
  13653. (setStdout): New function.
  13654. (writeLog): Added the handling of NOTICE log level.
  13655. (writeFile): New function.
  13656. (notice): New function.
  13657. * src/TorrentMan.h: Updated doc.
  13658. * src/BitfieldMan.h: Updated doc.
  13659. * src/TrackerWatcherCommand.cc
  13660. (execute): Return true if error occurred in the request to the tracker
  13661. and halt is requested.
  13662. * src/TrackerUpdateCommand.cc
  13663. (execute): Return true if error occurred in the request to the tracker
  13664. and halt is requested.
  13665. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13666. DownloadEngine:
  13667. * src/TorrentConsoleDownloadEngine.h
  13668. (onSelectiveDownloadingCompletes): Removed.
  13669. * src/TorrentConsoleDownloadEngine.cc
  13670. (onSelectiveDownloadingCompletes): Removed.
  13671. * src/TorrentDownloadEngine.h
  13672. (onEndOfRun): Added 'virtual' keyword.
  13673. (afterEachIteration): Removed.
  13674. (onSelectiveDownloadingCompletes): Removed.
  13675. * src/TorrentDownloadEngine.cc
  13676. (onEndOfRun): Removed filenameFixed.
  13677. (afterEachIteration): Removed.
  13678. * src/TorrentMan.cc
  13679. (completePiece): Call onDownloadComplete here.
  13680. (onDownloadComplete): Added 2 log messages.
  13681. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13682. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13683. * src/NameResolver.h: Added the prototype declaration of callback().
  13684. To support c-ares library:
  13685. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13686. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13687. * src/FtpInitiateConnectionCommand.h:
  13688. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13689. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13690. * src/HttpInitiateConnectionCommand.h:
  13691. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13692. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13693. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13694. #1542285 by tizianomueller)
  13695. * src/HttpInitiateConnectionCommand.cc:
  13696. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13697. * src/FtpInitiateConnectionCommand.cc:
  13698. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13699. * src/DownloadEngine.h:
  13700. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13701. * src/DownloadEngine.cc:
  13702. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13703. To fix the bug that causes compilation failure with metalink-support
  13704. disabled(bug#1543587):
  13705. * src/main.cc: Fixed with the patch by tizianomueller.
  13706. * Release 0.7.2
  13707. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13708. * src/main.cc
  13709. (main): Added a message to inform users that aria2 is starting to
  13710. verify checksum.
  13711. * src/RequestInfo.cc
  13712. (printDownloadAbortMessage): Added a message to inform users that
  13713. transfer can be resumed.
  13714. * src/FeatureConfig.cc
  13715. (FEATURE_ASYNC_DNS): New definition.
  13716. (FeatureConfig): Added aysnc DNS entry.
  13717. To replace CommandUuid with Command* in SocketEntry and
  13718. NameResolverEntry:
  13719. * src/DownloadEngine.h
  13720. (CommandUuids): Removed.
  13721. (SocketEntry::commandUuid): Removed.
  13722. (SocketEntry::command): New variable.
  13723. (SocketEntry::SocketEntry): Updated.
  13724. (SocketEntry::operator==): Updated.
  13725. (NameResolverEntry::commandUuid): Removed.
  13726. (NameResolverEntry::command): New variable.
  13727. (NameResolverEntry::NameResolverEntry): Updated.
  13728. (NameResolverEntry::operator==): Updated.
  13729. (waitData): Changed the argument type.
  13730. (addSocketForReadCheck): Changed the argument type.
  13731. (deleteSocketForReadCheck): Changed the argument type.
  13732. (addSocketForWriteCheck): Changed the argument type.
  13733. (deleteSocketForWriteCheck): Changed the argument type.
  13734. (addNameResolverCheck): Changed the argument type.
  13735. (deleteNameResolverCheck): Changed the argument type.
  13736. * src/DownloadEngine.cc
  13737. (FindCommand): Removed.
  13738. (run): Removed activeUuid. Added activeCommands instead.
  13739. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13740. (AccumulateActiveCommand): New function object.
  13741. (waitData): Use AccumulateActiveCommand.
  13742. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13743. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13744. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13745. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13746. (addNameResolverCheck): Use Command instead of CommandUuid.
  13747. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13748. * src/AbstractCommand.cc
  13749. (disableReadCheckSocket): Updated according to the changes in
  13750. DownloadEngine.
  13751. (setReadCheckSocket): Updated according to the changes in
  13752. DownloadEngine.
  13753. (disableWriteCheckSocket): Updated according to the changes in
  13754. DownloadEngine.
  13755. (setWriteCheckSocket): Updated according to the changes in
  13756. DownloadEngine.
  13757. (setNameResolverCheck): Updated according to the changes in
  13758. DownloadEngine.
  13759. (disableNameResolverCheck): Updated according to the changes in
  13760. DownloadEngine.
  13761. * src/AbstractCommand.cc
  13762. (disableReadCheckSocket): Updated according to the changes in
  13763. DownloadEngine.
  13764. (setReadCheckSocket): Updated according to the changes in
  13765. DownloadEngine.
  13766. (disableWriteCheckSocket): Updated according to the changes in
  13767. DownloadEngine.
  13768. (setWriteCheckSocket): Updated according to the changes in
  13769. DownloadEngine.
  13770. * release 0.7.1
  13771. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13772. To handle the case where some BitTorrent tracker requires all letters
  13773. except for [A-Za-z0-9] is URL encoded.
  13774. * src/Util.h
  13775. (torrentUrlencode): New function.
  13776. * src/Util.cc
  13777. (ctype.h): Included.
  13778. (torrentUrlencode): New function.
  13779. * src/TrackerWatcherCommand.cc
  13780. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13781. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13782. To add asynchronous DNS support(libares):
  13783. * src/AbstractCommand.h
  13784. (setNameResolverCheck): New function.
  13785. (disableNameResolverCheck): New function
  13786. (resolveHostname): New function.
  13787. * src/AbstractCommand.cc
  13788. (setNameResolverCheck): New function.
  13789. (disableNameResolverCheck): New function
  13790. (resolveHostname): New function.
  13791. * src/FtpInitiateConnectionCommand.h
  13792. (nameResolver): New function.
  13793. * src/FtpInitiateConnectionCommand.cc
  13794. (Util.h): Included.
  13795. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13796. disableWriteCheckSocket.
  13797. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13798. (executeInternal): Added async DNS support.
  13799. * src/HttpInitiateConnectionCommand.h
  13800. (nameResolver): New function.
  13801. * src/HttpInitiateConnectionCommand.cc
  13802. (DlRetryEx.h): Included.
  13803. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13804. disableWriteCheckSocket.
  13805. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13806. (executeInternal): Added async DNS support.
  13807. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13808. by extern "C" declaration.
  13809. * src/NameResolver.cc: New class.
  13810. * src/Util.h:
  13811. (isNumberAndDotsNotation): New function
  13812. * src/Util.cc
  13813. (isNumberAndDotsNotation): New function.
  13814. * src/DownloadEngine.h
  13815. (NameResolver.h): Included.
  13816. (NameResolverEntry): New class.
  13817. (NameResolverEntries): New type definition.
  13818. (addNameResolverCheck): New function.
  13819. (deleteNameResolverCheck): New function.
  13820. * src/DownloadEngine.cc
  13821. (run): Initialize cp with 0.
  13822. (SetDescriptor::operator()): Added for NameResolverEntry.
  13823. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13824. (waitData): Check nameResolver entries.
  13825. (updateFdSet): Update fds in nameResolver entries.
  13826. (addNameResolverCheck): New function.
  13827. (deleteNameResolverCheck): new function.
  13828. * src/PeerInteractionCommand.cc
  13829. (executeInternal): Fixed wrong socket handling.
  13830. * src/main.cc
  13831. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13832. * src/Util.cc
  13833. (fileChecksum): Removed the call to ctx.digestReset().
  13834. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13835. * po/ru.po: Azamat sent me Russian translation.
  13836. * src/FtpNegotiateCommand.cc
  13837. (recvGreeting): Call disableWriteCheckSocket just after
  13838. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13839. (recvRetr): Recognized status code 125 as a acceptable response code.
  13840. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13841. case-insesitive filesystem(BUG#1531057).
  13842. * src/Time.h: Renamed as TimeA2.h.
  13843. * src/Time.cc: Renamed as TimeA2.cc.
  13844. * src/TimeA2.h: New class.
  13845. * src/TimeA2.cc: New class.
  13846. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13847. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13848. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13849. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13850. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13851. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13852. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13853. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13854. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13855. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13856. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13857. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13858. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13859. * release 0.7.0
  13860. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. * src/PeerChokeCommand.h
  13862. (PeerChokeCommand): Rearranged the arguments.
  13863. * src/PeerChokeCommand.cc
  13864. (PeerChokeCommand): Rearranged the arguments.
  13865. * src/MetalinkEntry.h
  13866. (Checksum.h): Included.
  13867. (md5): Removed.
  13868. (sha1): Removed.
  13869. (checksum): New variable.
  13870. (operator=): Updated.
  13871. (check): Removed.
  13872. * src/prefs.h
  13873. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13874. (PREF_FOLLOW_TORRENT): New definition.
  13875. (PREF_SELECT_FILE): New definition.
  13876. (PREF_FOLLOW_METALINK): New definition.
  13877. * src/MetalinkResource.h
  13878. (TYPE_HTTPS): Added to enum TYPE.
  13879. * src/TorrentMan.cc
  13880. (~TorrentMan): Rewritten.
  13881. * src/MultiDiskWriter.cc
  13882. (MultiDiskAdaptor): Updated according to the changes in
  13883. MessageDigestContext.
  13884. (~MultiDiskAdaptor): Updated according to the changes in
  13885. MessageDigestContext.
  13886. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13887. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13888. * src/Util.h
  13889. (fileChecksum): Updated according to the changes in
  13890. MessageDigestContext.
  13891. * src/Util.cc
  13892. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13893. (fileChecksum): Updated according to the changes in
  13894. MessageDigestContext.
  13895. * src/messageDigest.h: Rewritten.
  13896. * src/MetalinkEntry.cc
  13897. (check): Removed.
  13898. (Supported): Updated.
  13899. (dropUnsupportedResource): Fixed a memory leak.
  13900. * src/ShaVisitor.cc
  13901. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13902. (~ShaVisitor): Updated according to the changes in
  13903. MessageDigestContext.
  13904. (visit): Updated according to the changes in MessageDigestContext.
  13905. * src/main.cc
  13906. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13907. command-line option added.
  13908. * src/DownloadEngine.h
  13909. (SocketEntry): New class.
  13910. (SocketEntries): New definition.
  13911. (PairFind): Removed.
  13912. (SockCmdMap): Removed.
  13913. * src/DownloadEngine.cc
  13914. (DownloadEngine): Rewritten.
  13915. (~DownloadEngine): Rewritten.
  13916. (run): Renamed activeCommandUuids as activeUuids.
  13917. (SetDescriptor): Rewritten.
  13918. (AccumulateActiveCommandUuid): Removed.
  13919. (AccumulateActiveUuid): New function object.
  13920. (waitData): Rewritten.
  13921. (updateFdSet): Rewritten.
  13922. (addSocket): Rewritten.
  13923. (deleteSocket): Rewritten.
  13924. (addSocketForReadCheck): Rewritten.
  13925. (deleteSocketForReadCheck): Rewritten.
  13926. (addSocketForWriteCheck): Rewritten.
  13927. (deleteSocketForWriteCheck): Rewritten.
  13928. * src/Xml2MetalinkProcessor.cc
  13929. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13930. * src/DownloadCommand.cc
  13931. (executeInternal): Added the check routine for lowest speed limit.
  13932. * src/AbstractDiskWriter.cc
  13933. (AbstractDiskWriter): Updated according to the changes in
  13934. MessageDigestContext.
  13935. (~AbstractDiskWriter): Updated according to the changes in
  13936. MessageDigestContext.
  13937. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13938. * src/RequestInfo.h: New class.
  13939. * src/UrlRequestInfo.h: New class.
  13940. * src/UrlRequestInfo.cc: New class.
  13941. * src/TorrentRequestInfo.h: New class.
  13942. * src/TorrentRequestInfo.cc: New class.
  13943. * src/MetalinkRequestInfo.h: New class.
  13944. * src/MetalinkRequestInfo.cc: New class.
  13945. * src/Checksum.h: New class.
  13946. * src/DownloadEngineFactory.h: New class.
  13947. * src/DownloadEngineFactory.cc: New class.
  13948. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13949. * src/Option.h
  13950. (getAsBool): New function.
  13951. * src/Option.cc
  13952. (prefs.h): Included.
  13953. (defined): 0-length value is now recognized as undefined.
  13954. (getAsInt): Rewritten.
  13955. (getAsLLInt): Rewritten.
  13956. (getAsBool): New function.
  13957. * src/FeatureConfig.h: Rewritten.
  13958. * src/FeatureConfig.cc: Rewritten.
  13959. * src/prefs.h
  13960. (PREF_STDOUT_LOG): New definition.
  13961. (PREF_LOG): New definition.
  13962. (PREF_DIR): New definition.
  13963. (PREF_OUT): New definition.
  13964. (PREF_SPLIT): New definition.
  13965. (PREF_DAEMON): New definition.
  13966. (PREF_REFERER): New definition.
  13967. (PREF_TORRENT_FILE): New definition.
  13968. (PREF_LISTEN_PORT): New definition.
  13969. (PREF_METALINK_FILE): New definition.
  13970. (PREF_METALINK_VERSION): New definition.
  13971. (PREF_METALINK_LANGUAGE): New definition.
  13972. (PREF_METALINK_OS): New definition.
  13973. (PREF_METALINK_SERVERS): New definition.
  13974. * src/main.cc
  13975. (main): Following command-line parameters are now put into Option
  13976. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13977. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13978. metalinkLanguage, metalinkOs, metalinkServers
  13979. To fix the bug that aria2 can not handle http response header properly.
  13980. * src/HttpHeader.cc
  13981. (put): Made name lowercased.
  13982. (defined): Made name lowercased.
  13983. (getFirst): Made name lowercased.
  13984. (get): Made name lowercased.
  13985. (getFirstAsInt): Rewritten.
  13986. (getFirstAsLLInt): Rewritten.
  13987. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13988. * src/TorrentMan.h:
  13989. (advertisePiece): Updated doc.
  13990. (getAdvertisedPieceIndexes): Updated doc.
  13991. (removeAdvertisedPiece); New function.
  13992. * src/TorrentMan.cc
  13993. (FindElapsedHave): New function object.
  13994. (removeAdvertisedPiece): New function.
  13995. * src/HaveEraseCommand.h: New class.
  13996. * src/HaveEraseCommand.cc: New class.
  13997. * src/FeatureConfig.h: New class.
  13998. * src/FeatureConfig.cc: New class.
  13999. * src/Request.h
  14000. (defaultPorts): Removed.
  14001. * src/Request.cc
  14002. (FeatureConfig.h): Included.
  14003. (Request): Removed the statements related to defaultPorts.
  14004. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14005. A default port number is now retrieved from FeatureConfig.
  14006. * src/main.cc
  14007. (HaveEraseCommand.h): Included.
  14008. (showVersion): Added the output of feature list.
  14009. (main): Added HaveEraseCommand to command queue in BitTorrent
  14010. downloading.
  14011. * src/PeerInteractionCommand.h
  14012. (chokeCheckPoint): Commented out.
  14013. (periodicExecPoint): New variable.
  14014. * src/PeerInteractionCommand.cc
  14015. (executeInternal): Following methods are now called in at least every
  14016. 0.5 seconds to reduce CPU usage:
  14017. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14018. checkHave(), sendKeepAlive().
  14019. (checkLongTimePeerChoking): Commented out.
  14020. * src/BitfieldMan.h
  14021. (getNthBitIndex): Changed the method signature.
  14022. (getMissingIndexRandomly): Changed the method signature.
  14023. * src/BitfieldMan.cc
  14024. (getNthBitIndex): Rewritten
  14025. (getMissingIndexRandomly): Rewritten.
  14026. (hasMissingPiece): Rewritten.
  14027. (getMissingIndex): Refactored.
  14028. (getMissingUnusedIndex); Refactored.
  14029. (getMissingIndex): Refactored.
  14030. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14031. * src/PeerMessage.h
  14032. (Piece.h): Included.
  14033. (SharedHandle.h): Included.
  14034. (invalidate): New variable.
  14035. (uploading): New variable.
  14036. (isInvalidate): New function.
  14037. (isUploading): New function.
  14038. (onPush): New function.
  14039. (onChoked): New function.
  14040. (onCanceled): New function.
  14041. (onAbortPiece): New function.
  14042. (PeerMessageHandle): New type definition.
  14043. * src/PeerMessage.cc
  14044. (PeerMessage): Added the initialization for invalidate and uploading.
  14045. * src/CancelMessage.h
  14046. (CancelMessage): Rewritten.
  14047. * src/RejectMessage.h
  14048. (RejectMessage): Rewritten.
  14049. * src/Metalinker.h
  14050. (operator=): Defined.
  14051. * src/MetaEntry.h
  14052. (operator=): Defined.
  14053. * src/MetalinkResource.h
  14054. (operator=): Defined.
  14055. * src/AllowedFastMessage.h
  14056. (AllowedFastMessage): Rewritten.
  14057. * src/HandshakeMessage.h
  14058. (HandshakeMessage): New function(overload).
  14059. * src/HandshakeMessage.cc
  14060. (HandshakeMessage): Rewritten.
  14061. (init): New function.
  14062. * src/HaveMessage.h
  14063. (HaveMessage): Rewritten.
  14064. * src/Time.h
  14065. (operator=): Defined the function body here.
  14066. * src/Time.cc
  14067. (operator=): Removed.
  14068. * src/SocketCore.h
  14069. (operator==): Defined here.
  14070. (operator!=): Defined here.
  14071. (operator<): Defined here.
  14072. * src/SocketCore.cc
  14073. (operator==): Removed.
  14074. (operator<): Removed.
  14075. * src/BitfieldMan.h
  14076. (operator=): Defined the function body here.
  14077. * src/BitfieldMan.cc
  14078. (operator=): Removed.
  14079. * src/TorrentMan.h
  14080. (deleteErrorPeer): Removed.
  14081. (deleteUnusedPeer); New function.
  14082. * src/TorrentMan.cc
  14083. (addPeer): Call deleteUnusedPeer.
  14084. (deleteErrorPeer): Removed.
  14085. (deleteUnusedPeer): New function.
  14086. * src/PeerAbstractCommand.h
  14087. (setNoCheck): New function.
  14088. (noCheck): New variable.
  14089. * src/PeerAbstractCommand.cc
  14090. (PeerAbstractCommand): Added the initialization of noCheck.
  14091. (execute): Added a check for noCheck.
  14092. (setNoCheck): New function.
  14093. * src/Util.h
  14094. (stdio.h): Included.
  14095. * src/Util.cc
  14096. (unistd.h): Included.
  14097. * src/DefaultDiskWriter.cc
  14098. (unistd.h): Included.
  14099. * src/Peer.h
  14100. (operator==): Defined the function body here.
  14101. (operator!=): Defined the function body here.
  14102. * src/Peer.cc
  14103. (operator==): Removed.
  14104. (operator!=): Removed.
  14105. * src/Piece.h
  14106. (Piece): Defined the function body here(copy constructor).
  14107. (operator=): Defined the function body here.
  14108. (operator==): Defined the function body here.
  14109. * src/Piece.cc
  14110. (Piece): Removed(copy constructor).
  14111. (operator=): Removed.
  14112. (operator==): Removed.
  14113. * src/PeerMessageUtil.h
  14114. (ChokeMessage.h): Removed.
  14115. (UnchokeMessage.h): Removed.
  14116. (InterestedMessage.h): Removed.
  14117. (NotInterestedMessage.h): Removed.
  14118. (HaveMessage.h): Removed.
  14119. (BitfieldMessage.h): Removed.
  14120. (RequestMessage.h): Removed.
  14121. (CancelMessage.h): Removed.
  14122. (PieceMessage.h): Removed.
  14123. (HandshakeMessage.h): Removed.
  14124. (KeepAliveMessage.h): Removed.
  14125. (PortMessage.h): Removed.
  14126. (HaveAllMessage.h): Removed.
  14127. (HaveNoneMessage.h): Removed.
  14128. (PeerConnection.h): Removed.
  14129. (HandshakeMessage.h): Included.
  14130. * src/BitfieldMessage.h
  14131. (init): New function.
  14132. (BitfieldMessage): Rewritten.
  14133. (BitfieldMessage): New function(overload).
  14134. * src/RequestSlot.h
  14135. (operator=): Defined the function body here.
  14136. (operator==): Defined the function body here.
  14137. * src/RequestSlot.cc
  14138. (operator=): Removed.
  14139. (operator==): Removed.
  14140. To remove the dependency on the PeerMessage subclass from
  14141. PeerInteraction:
  14142. * src/PeerMessageFactory.h: New class.
  14143. * src/PeerMessageFactory.cc: New class.
  14144. * src/SimplePeerMessage.cc
  14145. (send): If invalidate is true then do nothing.
  14146. * src/PeerInteractionCommand.cc
  14147. (HandshakeMessage.h): Included.
  14148. (KeepAliveMessage.h): Included.
  14149. (ChokeMessage.h): Included.
  14150. (UnchokeMessage.h): Included.
  14151. (HaveMessage.h): Included.
  14152. (executeInternal): Call setNoCheck().
  14153. Removed setWriteCheckSocket(socket).
  14154. * src/PeerInteraction.h
  14155. (ChokeMessage.h): Removed.
  14156. (UnchokeMessage.h): Removed.
  14157. (InterestedMessage.h): Removed.
  14158. (NotInterestedMessage.h): Removed.
  14159. (HaveMessage.h): Removed.
  14160. (BitfieldMessage.h): Removed.
  14161. (RequestMessage.h): Removed.
  14162. (CancelMessage.h): Removed.
  14163. (PieceMessage.h): Removed.
  14164. (HandshakeMessage.h): Removed.
  14165. (KeepAliveMessage.h): Removed.
  14166. (PortMessage.h): Removed.
  14167. (HaveAllMessage.h): Removed.
  14168. (HaveNoneMessage.h): Removed.
  14169. (RejectMessage.h): Removed.
  14170. (AllowedFastMessage.h): Removed.
  14171. (SuggestPieceMessage.h): Removed.
  14172. (PeerMessageFactory.h): Included.
  14173. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14174. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14175. (PeerMessageFactory): New variable.
  14176. (createPeerMessage): Removed.
  14177. (createHandshakeMessage): Removed.
  14178. (setPeerMessageCommonProperty): Removed.
  14179. (addRequestSlot): New function.
  14180. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14181. (getPeerMessageFactory): New function.
  14182. (createRequestMessage): Removed.
  14183. (createCancelMessage): Removed.
  14184. (createPieceMessage): Removed.
  14185. (createHaveMessage): Removed.
  14186. (createChokeMessage): Removed.
  14187. (createUnchokeMessage): Removed.
  14188. (createInterestedMessage): Removed.
  14189. (createNotInterestedMessage): Removed.
  14190. (createBitfieldMessage): Removed.
  14191. (createKeepAliveMessage): Removed.
  14192. (createHaveAllMessage): Removed.
  14193. (createHaveNoneMessage): Removed.
  14194. (createRejectMessage): Removed.
  14195. (createAllowedFastMessage): Removed.
  14196. * src/PeerInteraction.cc
  14197. (PeerInteraction): Allocate PeerMessageFactory here.
  14198. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14199. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14200. PieceMessage::ID.
  14201. (addMessage): Simplified by using PeerMessage::onPush().
  14202. (addRequestSlot): New function.
  14203. (rejectAllPieceMessageInQueue): Simplified by using
  14204. PeerMessage::onChoked().
  14205. (rejectPieceMessageInQueue): Simplified by using
  14206. PeerMessage::onCanceled().
  14207. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14208. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14209. (createHandshakeMessage): Removed.
  14210. (createPeerMessage): Removed.
  14211. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14212. (setPeerMessageCommonProperty): Removed.
  14213. (createRequestMessage): Removed.
  14214. (createCancelMessage): Removed.
  14215. (createPieceMessage): Removed.
  14216. (createHaveMessage): Removed.
  14217. (createChokeMessage): Removed.
  14218. (createUnchokeMessage): Removed.
  14219. (createInterestedMessage): Removed.
  14220. (createNotInterestedMessage): Removed.
  14221. (createBitfieldMessage): Removed.
  14222. (createKeepAliveMessage): Removed.
  14223. (createHaveAllMessage): Removed.
  14224. (createHaveNoneMessage): Removed.
  14225. (createRejectMessage): Removed.
  14226. (createAllowedFastMessage): Removed.
  14227. * src/PieceMessage.h
  14228. (createRejectMessage): New function.
  14229. (PieceMessage): Rewritten.
  14230. (onChoked): New function.
  14231. (onCanceled): New function.
  14232. * src/PieceMessage.cc
  14233. (send): If invalidate is true then do nothing, just return.
  14234. (createRejectMessage): New function.
  14235. (onChoked): New function.
  14236. (onCanceled): New function.
  14237. * src/RequestMessage.h
  14238. (RequestMessage): Rewritten.
  14239. (onPush): New function.
  14240. (onAbortPiece): New function.
  14241. * src/RequestMessage.cc
  14242. (onPush): New function.
  14243. (onAbortPiece): New function.
  14244. Update fd_set when a socket is added or deleted in order to improve
  14245. performance:
  14246. * src/DownloadEngine.h
  14247. (rfdset): New variable.
  14248. (wfdset): New variable.
  14249. (updateFdSet): New function.
  14250. * src/DownloadEngine.cc
  14251. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14252. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14253. (waitData): Copy rfdset and wfdset.
  14254. (updateFdSet): New function.
  14255. (addSocket): Call updateFdSet.
  14256. (deleteSocket): Call updateFdSet.
  14257. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14258. To add the support for Metalink3.0 backward compatible links:
  14259. * src/Request.h
  14260. (SAFE_CHARS): Added '#'.
  14261. (METALINK_MARK): New definition.
  14262. * src/Request.cc
  14263. (parseUrl): Added the support for Metalink3.0 backward compatible
  14264. links.
  14265. etc
  14266. * src/PeerInteraction.cc
  14267. (MsgPushBack): Removed.
  14268. (sendMessages): Use STL copy and back_inserter.
  14269. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14270. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14271. * src/TorrentMan.h
  14272. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14273. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14274. * src/SharedHandle.h: New class.
  14275. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14276. * src/HttpResponseCommand.h
  14277. (HttpResponseCommand): Wrapped Socket.
  14278. * src/SocketCore.h
  14279. (operator==): New function.
  14280. (operator!=): New function.
  14281. (operator<): New function.
  14282. (getSockfd): New function.
  14283. (isOpen): New function.
  14284. (writeData): New function.
  14285. * src/SocketCore.cc
  14286. (operator==): New function.
  14287. (operator!=): New function.
  14288. (operator<): New function.
  14289. * src/AbstractCommand.h
  14290. (socket): Changed its type to SocketHandle.
  14291. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14292. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14293. (disableReadCheckSocket): New function.
  14294. (disableWriteCheckSocket): New function.
  14295. (readCheckTarget): Changed its type to SocketHandle.
  14296. (writeCheckTarget): Changed its type to SocketHandle.
  14297. (AbstractCommand): Replaced Socket with SocketHandle.
  14298. * src/AbstractCommand.cc
  14299. (AbstractCommand): Replaced Socket with SocketHandle.
  14300. (~AbstractCommand): Removed the deallocation for Socket object.
  14301. (disableReadCheckSocket): New function.
  14302. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14303. (disableWriteCheckSocket): New function.
  14304. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14305. * src/HttpDownloadCommand.cc
  14306. (DownloadCommand): Replaced Socket with SocketHandle.
  14307. * src/PeerAbstractCommand.h
  14308. (socket): Changed its type to SocketHandle.
  14309. (peer): Changed its type to PeerHandle.
  14310. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14311. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14312. (disableReadCheckSocket): New function.
  14313. (disableWriteCheckSocket): New function.
  14314. (readCheckTarget): Changed its type to SocketHandle.
  14315. (writeCheckTarget): Changed its type to SocketHandle.
  14316. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14317. Replaced Peer with PeerHandle.
  14318. * src/HttpRequestCommand.cc
  14319. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14320. Use disableReadCheckSocket.
  14321. * src/PeerInitiateConnectionCommand.h
  14322. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14323. * src/PeerChokeCommand.cc
  14324. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14325. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14326. (execute): Use PeerHandle.
  14327. * src/PeerConnection.h
  14328. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14329. (socket): Changed its type to SocketHandle.
  14330. (PeerConnection): Replaced Socket with SocketHandle.
  14331. * src/PeerConnection.cc
  14332. (PeerConnection): Replaced Socket with SocketHandle.
  14333. * src/PeerInteractionCommand.h
  14334. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14335. Replaced Peer with PeerHandle.
  14336. * src/PeerInteractionCommand.cc
  14337. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14338. Replaced Peer with PeerHandle.
  14339. (executeInternal): Use disableWriteCheckSocket.
  14340. Use HandshakeMessageHandle.
  14341. (receiveMessages): Use PeerMessageHandle.
  14342. (prepareForNextPeer): Use PeerHandle.
  14343. * src/HttpProxyRequestCommand.h
  14344. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14345. * src/HttpResponseCommand.cc
  14346. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14347. * src/TorrentMan.cc
  14348. (nullPeer): Added external reference.
  14349. (~TorrentMan): Removed the deallocation of the elements of peers.
  14350. (addPeer): Rewritten.
  14351. (isPeerAvailable): Use nullPeer.
  14352. (deleteOldpeers): Replaced with deleteErrorPeer.
  14353. (deleteErrorPeer): New function.
  14354. (getPeer): Use PeerHandle and nullPeer.
  14355. (hasMissingPiece): Replaced Peer with PeerHandle.
  14356. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14357. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14358. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14359. (getMissingPiece): Replaced Peer with PeerHandle.
  14360. * src/FtpNegotiateCommand.cc
  14361. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14362. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14363. (recvGreeting): Use disableWriteCheckSocket.
  14364. (recvPasv): Removed the allocation of Socket.
  14365. Use disableReadCheckSocket.
  14366. (sendRestPasv): Use disableWriteCheckSocket.
  14367. (recvRetr): Changed assertion.
  14368. * src/PeerInteraction.h
  14369. (SharedHandle.h): Included SharedHandle.h.
  14370. (PeerMessageHandle): New type definition.
  14371. (HandshakeMessageHandle): New type definition.
  14372. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14373. (peer): Changed its type to PeerHandle.
  14374. (createHandshakeMessage): Replaced HandshakeMessage with
  14375. HandshakeMessageHandle.
  14376. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14377. (PeerInteraction): Replaced Peer with PeerHandle.
  14378. Replaced Socket with SocketHandle.
  14379. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14380. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14381. (receiveHandshake): Replaced HandshakeMessage with
  14382. HandshakeMessageHandle.
  14383. * src/PeerInteraction.cc
  14384. (PeerInteraction): Replaced Peer with PeerHandle.
  14385. Replaced Socket with SocketHandle.
  14386. (~PeerInteraction): Removed the deallocation of the elements of
  14387. messageQueue.
  14388. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14389. (isSendingMessageInProgress): Replaced PeerMessage with
  14390. PeerMessageHandle.
  14391. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14392. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14393. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14394. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14395. (abortPiece): Use PeerMessageHandle.
  14396. (receiveHandshake): Replaced HandshakeMessage with
  14397. HandshakeMessageHandle. Removed try-catch block.
  14398. (createHandshakeMessage): Replaced HandshakeMessage with
  14399. HandshakeMessageHandle.
  14400. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14401. Removed try-catch block.
  14402. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14403. * src/HttpProxyResponseCommand.cc
  14404. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14405. * src/FtpTunnelResponseCommand.h
  14406. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14407. * src/HttpConnection.cc
  14408. (HttpConnection): Replaced Socket with SocketHandle.
  14409. * src/PeerAbstractCommand.cc
  14410. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14411. (~PeerAbstractCommand): Removed the deallocation of socket.
  14412. Use disableReadCheckSocket, disableWriteCheckSocket.
  14413. (disableReadCheckSocket): New function.
  14414. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14415. (disableWriteCheckSocket): New function.
  14416. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14417. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14418. * src/FtpTunnelRequestCommand.cc
  14419. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14420. (~FtpTunnelRequestCommand): Corrected indentation.
  14421. * src/DownloadCommand.h
  14422. (DownloadCommand): Replaced Socket with SocketHandle.
  14423. * src/PeerListenCommand.cc
  14424. (PeerListenCommand): Removed the initialization of socket.
  14425. (~PeerListenCommand): Removed the deallocation of socket.
  14426. (bindPort): Use SocketHandle.
  14427. (execute): Use SocketHandle and PeerHandle.
  14428. * src/FtpDowndloadCommand.cc
  14429. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14430. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14431. * src/main.cc
  14432. (main): Corrected indentation.
  14433. * src/HttpInitiateConnectionCommand.cc
  14434. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14435. (executeInternal): Removed the allocation of socket.
  14436. * src/HttpRequestCommand.h
  14437. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14438. * src/FtpNegotiationCommand.h
  14439. (dataSocket): Changed its type to SocketHandle.
  14440. (serverSocket): Changed its type to SocketHandle.
  14441. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14442. * src/TorrentMan.h
  14443. (MAX_PEER_UPDATE): Removed.
  14444. (MAX_PEERS): New definition.
  14445. (Peers): The element is now of type PeerHandle.
  14446. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14447. (getPeer): Replaced Peer with PeerHandle.
  14448. (deleteOldErrorPeers): Removed.
  14449. (deleteErrorPeer): New function.
  14450. (hasMissingPiece): Replaced Peer with PeerHandle.
  14451. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14452. (getMissingPiece): Replaced Peer with PeerHandle.
  14453. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14454. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14455. (addActivePeer): Replaced Peer with PeerHandle.
  14456. (deleteActivePeer): Replaced Peer with PeerHandle.
  14457. Added a check for the return value of find.
  14458. * src/FtpTunnelResponseCommand.cc
  14459. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14460. * src/FtpInitiateConnectionCommand.cc
  14461. (executeInternal): Removed the allocation of socket.
  14462. * src/DownloadEngine.h
  14463. (Sockets): An element is now of type SocketHandle.
  14464. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14465. (CommandUuids): New type definition.
  14466. (rsockets): Changed its type to SockCmdMap.
  14467. (wsockets): Changed its type to SockCmdMap.
  14468. (addSocket): Rewritten.
  14469. (deleteSocket): Rewritten.
  14470. (addSocketForReadCheck): Rewritten.
  14471. (deleteSocketForReadCheck): Rewritten.
  14472. (addSocketForWriteCheck): Rewritten.
  14473. (deleteSocketForWriteCheck): Rewritten.
  14474. (PairFind): New template class.
  14475. * src/HttpDownloadCommand.h
  14476. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14477. * src/FtpConnection.cc
  14478. (FtpConnection): Replaced Socket with SocketHandle.
  14479. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14480. block.
  14481. * src/InitiateConnectionCommandFactory.cc
  14482. (DlAbortEx.h): Included DlAbortEx.h.
  14483. (createInitiateConnectionCommand): Throw exception if the protocol of
  14484. requested URI is not supported.
  14485. * src/Peer.cc
  14486. (nullPeer): Changed its type to PeerHandle.
  14487. (operator==): New function.
  14488. (operator!=): New function.
  14489. * src/Peer.h
  14490. (SharedHandle.h): Included SharedHandle.h.
  14491. (operator==): New function.
  14492. (operator!=): New function.
  14493. (Peer): Added the default constructor.
  14494. Use resetStatus() to initialize member variables.
  14495. (nullPeer): Removed.
  14496. * src/TrackerUpdateCommand.cc
  14497. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14498. with MIN_PEERS.
  14499. * src/PeerListenCommand.h
  14500. (socket): Changed its type to SocketHandle.
  14501. * src/Command.h
  14502. (CommandUuid): New type definition.
  14503. (uuid): New variable.
  14504. (uuidGen): New variable.
  14505. (Command): Added the initialization of uuid.
  14506. (getUuid): New function.
  14507. * src/Socket.h
  14508. (Socket): Removed.
  14509. (SocketHandle): New type definition.
  14510. * src/DownloadEngine.h
  14511. (FindCommand): New function object.
  14512. (run): The portion of socket check was rewritten.
  14513. (SetDescriptor): New function object.
  14514. (AccumulateActiveCommandUuid): New function object.
  14515. (waitData): Rewritten.
  14516. (addSocket): Rewritten.
  14517. (deleteSocket): Rewritten.
  14518. (addSocketForReadCheck): Rewritten.
  14519. (addSocketForWriteCheck): Rewritten.
  14520. (deleteSocketForReadCheck): Rewritten.
  14521. (deleteSocketForWriteCheck): Rewritten.
  14522. * src/HttpProxyResponseCommand.h
  14523. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14524. * src/HttpConnection.h
  14525. (socket): Changed its type to SocketHandle.
  14526. (HttpConnection): Replaced Socket with SocketHandle.
  14527. * src/PeerInitiateConnectionCommand.cc
  14528. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14529. (executeInternal): Removed the allocation of socket.
  14530. (prepareForNextPeer): Use PeerHandle.
  14531. * src/PeerMessage.h
  14532. (peer): Changed its type to PeerHandle.
  14533. (getPeer): Replaced Peer with PeerHandle.
  14534. (setPeer): Replaced Peer with PeerHandle.
  14535. * src/DownloadCommand.cc
  14536. (DownloadCommand): Replaced Socket with SocketHandle.
  14537. * src/FtpConnection.h
  14538. (socket): Changed its type to SocketHandle.
  14539. (FtpConnection): Replaced Socket with SocketHandle.
  14540. (sendPort); Replaced Socket with SocketHandle.
  14541. * src/FtpDowndloadCommand.h
  14542. (ctrlSocket): Changed its type to SocketHandle.
  14543. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14544. * src/HttpProxyRequestCommand.cc
  14545. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14546. * src/FtpTunnelRequestCommand.h
  14547. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14548. etc
  14549. * src/PeerChokeCommand.h
  14550. (setAllPeerChoked): Removed.
  14551. (setAllPeerResetDelta): Removed.
  14552. * src/PeerChokeCommand.cc
  14553. (setAllPeerChoked): Removed.
  14554. (ChokePeer): New function object.
  14555. (setAllPeerResetDelta): Removed.
  14556. (ResetDelta): New function object.
  14557. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14558. (execute): Show download speed when the local node is a seeder.
  14559. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14560. using STL.
  14561. * src/TrackerWatcherCommand.h
  14562. (MIN_PEERS): Removed.
  14563. * src/TorrentMan.cc
  14564. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14565. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14566. To fix the bug that .aria2 file is not saved if downloading is stopped
  14567. by the errors:it results that aria2 can not resume downloading:
  14568. * src/main.cc
  14569. (normalDownload): Added the call to save().
  14570. (main): Added the deletion of the elements in 'reserved'.
  14571. To fix log:
  14572. * src/PeerInteraction.cc
  14573. (receiveHandshake): Fixed log.
  14574. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14575. To improve download performance in BitTorrent:
  14576. * src/TorrentMan.cc
  14577. (getPeer): Check the number of connections. Return nullPeer if
  14578. it is greater than MAX_PEER_UPDATE.
  14579. This code was originally here, but was removed in 0.5.1.
  14580. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14581. To improve the conditional compilation:
  14582. * src/MultiDiskWriter.h:
  14583. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14584. * src/MultiDiskWriter.cc:
  14585. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14586. * src/Util.h:
  14587. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14588. Added ENABLE_BITTORRENT around computeFastSet().
  14589. * src/Util.cc:
  14590. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14591. Added ENABLE_BITTORRENT around computeFastSet().
  14592. * src/messageDigest.h:
  14593. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14594. * src/ShaVisitor.h:
  14595. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14596. * src/ShaVisitor.cc:
  14597. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14598. * src/main.cc:
  14599. Added ENABLE_BITTORRENT around includes and blocks related to
  14600. BitTorrent.
  14601. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14602. digest support is not available.
  14603. * src/AbstractDiskWriter.h:
  14604. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14605. * src/AbstractDiskWriter.cc:
  14606. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14607. * src/MetalinkEntry.cc
  14608. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14609. support is not available.
  14610. To add command-line options for Metalink:
  14611. * src/main.cc:
  14612. Added metalink-version, metalink-language, metalink-os,
  14613. follow-metalink.
  14614. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14615. * src/main.cc: Use these definition.
  14616. * Release 0.6.0
  14617. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14618. To add Metalink support(http/ftp only):
  14619. * src/AbstractCommand.h
  14620. (tryReserved): New function.
  14621. * src/AbstractCommand.cc
  14622. (execute): Call tryReserved().
  14623. (tryReserved): New function.
  14624. * src/Request.h
  14625. (Requests): New type definition.
  14626. * src/SegmentMan.h
  14627. (reserved): New variable.
  14628. * src/Util.h
  14629. (fileChecksum): New function.
  14630. (toUpper): New function.
  14631. (toLower): New function.
  14632. * src/Util.cc
  14633. (messageDigest.h): Included.
  14634. (trim): Trim \r\n\t.
  14635. (fileChecksum): New function.
  14636. (toUpper): New function.
  14637. (toLower): New function.
  14638. * src/main.cc
  14639. (normalDownload): New function.
  14640. (main): Added 2 command-line options: metalink-file,
  14641. metalink-connection. Their usage has not been written yet.
  14642. * src/MetalinkProcessor.h: New class.
  14643. * src/Xml2MetalinkProcessor.h: New class.
  14644. * src/Xml2MetalinkProcessor.cc: New class.
  14645. * src/MetalinkEntry.h: New class.
  14646. * src/MetalinkEntry.cc: New class.
  14647. * src/MetalinkResource.h: New class.
  14648. * src/MetalinkResource.cc: New class.
  14649. To add md5 message digest checking:
  14650. * src/messageDigest.h: Rewritten.
  14651. * src/MultiDiskWriter.cc: Updated according to the changes in
  14652. messageDigest.h.
  14653. * src/ShaVisitor.cc: Updated according to the changes in
  14654. messageDigest.h.
  14655. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14656. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14657. messageDigest.h.
  14658. To fix a bug that causes segfault when the payload length in peer
  14659. message is less than 0:
  14660. * src/PeerConnection.cc:
  14661. (receiveMessage): Fixed the bug.
  14662. * src/PeerMessageUtil.cc
  14663. (checkLength): Throw an exception if length is less than or equals to
  14664. 0.
  14665. To add new interfaces to Base64 encoding/decoding:
  14666. * src/Base64.h
  14667. (part_encode): Changed the method signature.
  14668. (encode): New function(overload).
  14669. (decode): New function(overload).
  14670. * src/Base64.cc
  14671. (part_encode): Rewritten.
  14672. (encode): Rewritten.
  14673. (encode): New function(overload).
  14674. To prevent a peer to download same piece if there is an error in
  14675. checksum:
  14676. * src/PieceMessage.cc
  14677. (receivedAction): Call peerInteraction->abortPiece().
  14678. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14679. To fix the bug that causes same have message is sent many times to
  14680. a single peer.
  14681. * src/Time.cc
  14682. (isNewer): Use Util::difftv().
  14683. * src/Util.cc
  14684. (difftv): Added a cast to (long long int).
  14685. * src/TorrentMan.cc
  14686. (advertisePiece): Use push_front.
  14687. (getAdvertisedPieceIndexes): A performance improvement was made.
  14688. To fix the bug that sends tracker requests without a sleep interval
  14689. when the number of connections is less than 15.
  14690. * src/TrackerWatcherCommand.cc
  14691. (execute): Now the number of connections is not a factor to decide
  14692. whether or not a tracker request should be sent or not.
  14693. * src/Time.h
  14694. (setTimeInSec): New function.
  14695. * src/Time.cc
  14696. (setTimeInSec): New function.
  14697. etc.
  14698. * src/ChokeMessage.cc
  14699. (receivedAction): Removed peer->snubbing = false
  14700. * src/PeerConnection.h
  14701. (receiveHandshake): Updated doc.
  14702. * src/TorrentMan.h
  14703. (getAdvertisedPieceIndexes): Updated the method signature.
  14704. * src/TorrentMan.cc
  14705. (getAdvertisedPieceIndexes): Updated the method signature.
  14706. * src/Time.h
  14707. (getTimeInMicros): Added a cast to (long long int).
  14708. (getTimeInMillis): Added a cast to (long long int).
  14709. * Release 0.5.2
  14710. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14711. To make a listening socket non-block:
  14712. * src/SocketCore.h
  14713. (setNonBlockingMode): New function.
  14714. * src/SocketCore.cc
  14715. (setNonBlockingMode): New function.
  14716. (beginListen): Added a call to setNonBlockingMode().
  14717. (acceptConnection): Call setNonBlockingMode().
  14718. (setBlockingMode): Updated.
  14719. To handle tracker's NAT-checking:
  14720. * src/PeerConnection.cc
  14721. (receiveHandshake): 'msg' param is filled with received data and
  14722. its length is assigned to 'length' param, even if all handshake
  14723. message is not yet received.
  14724. * src/PeerInteractionCommand.cc
  14725. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14726. a new peer connects to localhost.
  14727. A call to peerInteraction->sendHandshake() was removed because
  14728. it is called from peerInteraction->receiveHandshake(true).
  14729. * src/PeerInteraction.h
  14730. (quickReplied): New variable.
  14731. (receiveHandshake): Added an argument.
  14732. * src/PeerInteraction.cc
  14733. (PeerInteraction): Added the initialization of quickReplied.
  14734. (receiveHandshake): Send handshake message as soon as the info hash
  14735. in a handshake message from a peer is correct.
  14736. To change the random part of peer id and key parameter:
  14737. * src/TorrentMan.h
  14738. (key): New variable.
  14739. * src/TorrentMan.cc
  14740. (setupInternal1): Use Util::randomAlpha() to generate random part
  14741. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14742. key is also generated by Util::randomAlpha() and it is now 8 character
  14743. long.
  14744. * src/Util.h
  14745. (randomAlpha): New function.
  14746. * src/Util.cc
  14747. (randomAlpha): New function.
  14748. * src/TrackerWatcherCommand.cc
  14749. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14750. Added no_peer_id=1.
  14751. Set snubbing flag to false when a choke message is received from a
  14752. snubbed peer.
  14753. * src/ChokeMessage.cc
  14754. (receivedAction): Set snubbing flag to false.
  14755. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14756. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14757. * src/SimpleLogger.h (writeHeader): New function.
  14758. * src/SimpleLogger.cc (writeHeader): New function.
  14759. (writeLog): Fixed the bug that causes segfaults if exception message
  14760. contains an unescaped "%" character.
  14761. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14762. when a tracker request fails.
  14763. * src/Request.cc (parseUrl): Query string is now handled properly.
  14764. * Release 0.5.1
  14765. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14766. To add Time class which represents a specific instant in time and
  14767. its precision is microseconds. Time checking procedures were rewritten
  14768. using this object.
  14769. * src/Time.h: New class.
  14770. * src/Time.cc: New class.
  14771. * src/AbstractCommand.h
  14772. (updateCheckPoint): Removed.
  14773. (isTimeoutDetected): Removed.
  14774. (checkPoint): Changed the type to Time.
  14775. (timeout): New variable.
  14776. (setTimeout): New function.
  14777. * src/AbstractCommand.cc
  14778. (AbstractCommand): Removed the initialization of checkPoint.
  14779. Added the initialization of timeout.
  14780. (updateCheckPoint): Removed.
  14781. (isTimeoutDetected): Removed.
  14782. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14783. * src/PeerChokeCommand.h
  14784. (checkPoint): Changed the type to Time.
  14785. * src/PeerChokeCommand.cc
  14786. (PeerChokeCommand): Removed the initialization of checkPoint.
  14787. (execute): Rewritten using Time object.
  14788. * src/TrackerWatcherCommand.h
  14789. (checkPoint): Changed the type to Time.
  14790. * src/TrackerWatcherCommand.cc
  14791. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14792. (execute): Rewritten.
  14793. * src/ConsoleDownloadEngine.h
  14794. (cp): Changed the type to Time.
  14795. (startup): Changed the type to Time.
  14796. * src/ConsoleDownloadEngine.cc
  14797. (initStatistics): Use cp.reset(), startup.reset().
  14798. (calculateStatistics): Rewritten using Time object.
  14799. * src/PeerAbstractCommand.h
  14800. (updateCheckPoint): Removed.
  14801. (isTimeoutDetected): Removed.
  14802. (checkPoint): Changed the type to Time.
  14803. * src/PeerAbstractCommand.cc
  14804. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14805. (updateCheckPoint): Removed.
  14806. (isTimeoutDetected): Removed.
  14807. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14808. * src/PeerInteractionCommand.cc
  14809. (PeerInteractionCommand): Removed the initializations of struct
  14810. timeval variables.
  14811. * src/PeerInteractionCommand.h
  14812. (keepAliveCheckPoint): Changed the type to Time.
  14813. (chokeCheckPoint): Changed the type to Time.
  14814. (freqCheckPoint): Changed the type to Time.
  14815. (haveCheckTime): Changed the type to Time.
  14816. * src/PeerInteractionCommand.cc
  14817. (executeInternal): Rewritten using Time object.
  14818. (detectMessageFlooding): Rewritten using Time object.
  14819. (checkLongTimePeerChoking): Rewritten using Time object.
  14820. (sendKeepAlive): Rewritten using Time object.
  14821. (checkHave): Rewritten using Time object.
  14822. * src/SleepCommand.h
  14823. (checkPoint): Changed the type to Time.
  14824. * src/SleepCommand.cc
  14825. (SleepCommand): Removed the initialization of checkPoint.
  14826. (execute): Rewritten using Time object.
  14827. * src/TorrentAutoSaveCommand.h
  14828. (checkPoint): Changed the type to Time.
  14829. * src/TorrentAutoSaveCommand.cc
  14830. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14831. (execute): Rewritten.
  14832. * src/DownloadCommand.h
  14833. (sw): Changed the type to Time.
  14834. * src/DownloadCommand.cc
  14835. (DownloadCommand): Removed the initialization of sw.
  14836. (executeInternal): Rewritten.
  14837. * src/RequestSlot.h
  14838. (dispatchedTime): Changed the type to Time.
  14839. * src/RequestSlot.cc
  14840. (RequestSlot): Removed the call to setDispatchedTime().
  14841. (setDispatchedTime): Rewirtten.
  14842. (isTimeout): Rewritten.
  14843. (getLatencyInMillis): Rewritten.
  14844. * src/TorrentDownloadEngine.h
  14845. (cp): Changed the type to Time[2].
  14846. (startup): Changed the type to Time.
  14847. * src/TorrentDownloadEngine.cc
  14848. (initStatistics): Rewritten.
  14849. (calculateStatistics): Rewritten.
  14850. * src/DownloadEngine.cc
  14851. (run): Rewritten.
  14852. To detect all attempts to connect to the tracker are failed:
  14853. * src/AbstractCommand.cc
  14854. (execute): Increment e->segmentMan->errors if a command aborted.
  14855. * src/SegmentMan.h
  14856. (errors): New variable.
  14857. * src/SegmentMan.cc
  14858. (SegmentMan): Added the initialization of errors.
  14859. (init): Added the initialization of errors.
  14860. * src/TrackerWatcherCommand.cc
  14861. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14862. request was failed.
  14863. To handle snubbed peers:
  14864. * src/PeerChokeCommand.cc
  14865. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14866. (execute): Snubbed peers don't get unchoked.
  14867. * src/PeerInteraction.h
  14868. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14869. * src/PeerInteraction.cc
  14870. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14871. back the requested 16k block in 60 seconds.
  14872. * src/PieceMessage.cc
  14873. (receivedAction): A peer's snubbed state is cleard if it sends
  14874. the requested 16k block in 60 seconds.
  14875. * src/Peer.h
  14876. (snubbing): New variable.
  14877. * src/Peer.cc
  14878. (resetStatus): Added snubbed = false.
  14879. To fix the bug that causes have message is not sent:
  14880. * src/PeerInteractionCommand.cc
  14881. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14882. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14883. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14884. * src/TorrentMan.h
  14885. (HaveEntry): New class.
  14886. (advertisePiece): Rewritten.
  14887. (getAdvertisedPieceIndexes): Rewritten.
  14888. (Haves): Changed the type.
  14889. (getAdvertisedPieceIndexes): Added an argument.
  14890. Others:
  14891. * src/TorrentMan.h
  14892. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14893. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14894. * src/TorrentMan.cc
  14895. (getPeer): Don't check the number of connections here.
  14896. (setupInternal1): Changed peerId.
  14897. * src/PeerInteractionCommand.h
  14898. (KEEP_ALIVE_INTERVAL): New definition.
  14899. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14900. * src/main.cc
  14901. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14902. * src/DownloadEngine.h: Removed unnecessary header includes.
  14903. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14904. To fix the bug that causes segfaults if a tracker returns a zero-length
  14905. list as "peers":
  14906. * src/TrackerUpdateCommand.cc
  14907. (execute): Added a check to see wether the type of peers is Data*.
  14908. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14909. * Release 0.5.0
  14910. To fix compile issue with gcc3:
  14911. * src/CancelMessage.h
  14912. (ID): Renamed as ID_t
  14913. (ID_t): New enum.
  14914. * src/RejectMessage.h
  14915. (ID): Renamed as ID_t
  14916. (ID_t): New enum.
  14917. * src/SuggestPieceMessage.h
  14918. (ID): Renamed as ID_t
  14919. (ID_t): New enum.
  14920. * src/AllowedFastMessage.h
  14921. (ID): Renamed as ID_t
  14922. (ID_t): New enum.
  14923. * src/PortMessage.h
  14924. (ID): Renamed as ID_t
  14925. (ID_t): New enum.
  14926. * src/HaveNoneMessage.h
  14927. (ID): Renamed as ID_t
  14928. (ID_t): New enum.
  14929. * src/KeepAliveMessage.h
  14930. (ID): Renamed as ID_t
  14931. (ID_t): New enum.
  14932. * src/HaveAllMessage.h
  14933. (ID): Renamed as ID_t
  14934. (ID_t): New enum.
  14935. * src/UnchokeMessage.h
  14936. (ID): Renamed as ID_t
  14937. (ID_t): New enum.
  14938. * src/BitfieldMessage.h
  14939. (ID): Renamed as ID_t
  14940. (ID_t): New enum.
  14941. * src/PieceMessage.h
  14942. (ID): Renamed as ID_t
  14943. (ID_t): New enum.
  14944. * src/RequestMessage.h
  14945. (ID): Renamed as ID_t
  14946. (ID_t): New enum.
  14947. * src/NotInterestedMessage.h
  14948. (ID): Renamed as ID_t
  14949. (ID_t): New enum.
  14950. * src/ChokeMessage.h
  14951. (ID): Renamed as ID_t
  14952. (ID_t): New enum.
  14953. * src/InterestedMessage.h
  14954. (ID): Renamed as ID_t
  14955. (ID_t): New enum.
  14956. * src/HaveMessage.h
  14957. (ID): Renamed as ID_t
  14958. (ID_t): New enum.
  14959. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14960. * src/PeerAbstractCommand.h
  14961. (beforeSocketCheck): Removed.
  14962. * src/PeerAbstractCommand.cc
  14963. Modified in order to call executeInternal() even if socket check
  14964. and upload limit check fail.
  14965. * src/PeerInteractionCommand.h
  14966. (keepAlive): Removed.
  14967. (sendKeepAlive): New function.
  14968. (checkHave): New function.
  14969. (beforeSocketCheck): Removed.
  14970. * src/PeerInteractionCommand.cc
  14971. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14972. calls to checkHave() and sendKeepAlive().
  14973. (keepAlive): Renamed to sendKeepAlive().
  14974. (sendKeepAlive): New function.
  14975. (beforeSocketCheck): Removed.
  14976. (checkHave): New function.
  14977. * src/BitfieldMan.cc
  14978. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14979. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14980. 0.
  14981. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14982. * src/TorrentMan.h
  14983. (UsedPieces): Removed.
  14984. (Pieces): New type definition.
  14985. * src/Piece.h: Updated doc.
  14986. * src/Peer.h
  14987. (totalLength): Removed.
  14988. * src/Peer.cc
  14989. (updateLatency): Fixed the latency calculation.
  14990. * src/TorrentMan.cc
  14991. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14992. than or equal to MAX_PEER_LIST_SIZE.
  14993. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14994. then return false.
  14995. (deleteOldErrorPeers): Rewritten.
  14996. (deleteUsedPiece): Fixed the miss use of STL remove.
  14997. * src/PeerInteraction.h
  14998. (Pieces): Removed.
  14999. (deleteTimeoutRequestSlot): Removed.
  15000. (deleteCompletedRequestSlot): Removed.
  15001. (checkRequestSlot): New function.
  15002. * src/PeerInteraction.cc
  15003. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15004. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15005. (checkRequestSlot): New function.
  15006. * src/DownloadEngine.cc
  15007. (run): Clear activeSockets before calling waitData().
  15008. (waitData): Removed a call to activeSockets.clear().
  15009. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15010. To attempt to handle EINTR:
  15011. * src/SocketCore.cc
  15012. (isReadable): Added EINTR handling.
  15013. (isWritable): Added EINTR handling.
  15014. To improve the performance:
  15015. * src/AbstractCommand.cc
  15016. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15017. * src/PeerInteractionCommand.h
  15018. (receiveMessage): Renamed as receiveMessages().
  15019. (receiveMessages): New function.
  15020. * src/PeerInteractionCommand.cc
  15021. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15022. () function. detectMessageFlooding() is moved here.
  15023. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15024. (). The flooding detection for have message is comment out.
  15025. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15026. Util::difftv().
  15027. (receiveMessage): Renamed as receiveMessages().
  15028. (receiveMessages): New function.
  15029. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15030. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15031. * src/SleepCommand.cc
  15032. (execute): Use Util::difftvsec() instead of Util::difftv().
  15033. * src/BitfieldMan.h
  15034. (getNthBitIndex): New function.
  15035. (hasMissingPiece): New function.
  15036. (getAllMissingIndexes): New function.
  15037. * src/BitfieldMan.cc
  15038. (countSetBit): Rewritten.
  15039. (getNthBitIndex): New function.
  15040. (getMissingIndexRandomly): Rewritten.
  15041. (hasMissingPiece): New function.
  15042. (getAllMissingIndexes): New function.
  15043. * src/TorrentMan.cc
  15044. (hasMissingPiece): New function.
  15045. (deleteUsedPiece): Rewritten using STL.
  15046. * src/PeerInteraction.cc
  15047. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15048. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15049. (addRequests): Updated the number of pending requests.
  15050. * src/PeerAbstractCommand.cc
  15051. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15052. (execute): Returns true if TorrentMan::isHalt() is true.
  15053. Corrected the condition of upload limit checking.
  15054. * src/Util.h
  15055. (countBit): New function.
  15056. * src/Util.cc
  15057. (nbits): New variable.
  15058. (countBit): New function.
  15059. * src/DownloadEngine.h
  15060. (SockCmdMap): New type definition.
  15061. (waitData): Added an argument.
  15062. (addSocket): Added an argument.
  15063. (addSocketForReadCheck): Added an argument.
  15064. (addSocketForWriteCheck): Added an argument.
  15065. * src/DownloadEngine.cc
  15066. (run): Executes only commands whose sockets are ready to read or write.
  15067. All commands are executed in every 1 second.
  15068. (waitData): Calls select() again if it returned
  15069. EINTR.
  15070. (addSocket): Saves socket and command object pair to the map.
  15071. (deleteSocket): Deletes socket and command object pair from the map.
  15072. (addSocketForReadCheck): Added an argument.
  15073. (addSocketForWriteCheck): Added an argument.
  15074. * src/DownloadCommand.cc
  15075. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15076. To send "event=stopped" to the tracker when the application finishes:
  15077. * src/PeerChokeCommand.h
  15078. (checkPoint): New variable.
  15079. * src/PeerChokeCommand.cc
  15080. (PeerChokeCommand): Added the initialization of checkPoint.
  15081. (execute): The interval check is now done by checkPoint, not
  15082. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15083. * src/TorrentMan.h
  15084. (halt): New function.
  15085. (hasMissingPiece): New function.
  15086. (isHalt): New function.
  15087. (setHalt): New function.
  15088. * src/TorrentMan.cc
  15089. (TorrentMan): Added the initialization of halt.
  15090. * src/TorrentAutoSaveCommand.h
  15091. (checkPoint): New variable.
  15092. * src/PeerListenCommand.cc
  15093. (execute): Returns true if TorrentMan::isHalt() is true.
  15094. * src/main.cc
  15095. (setSignalHander): Added flags argument.
  15096. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15097. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15098. Removed printDownloadAbortMessage() after torrent downloading loop.
  15099. * src/TorrentAutoSaveCommand.cc
  15100. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15101. (execute): Returns true if TorrentMan::isHalt() is true.
  15102. The interval check is now done by checkPoint, not SleepCommand.
  15103. * src/TrackerWatcherCommand.cc
  15104. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15105. event=stopped.
  15106. * src/TrackerUpdateCommand.cc
  15107. (prepareForRetry): Do not use SleepCommand here.
  15108. (execute): Returns true if TorrentMan::isHalt() is true.
  15109. Others:
  15110. * src/TorrentMan.cc
  15111. (getMissingPieceIndex): Updated log message.
  15112. * src/PeerInteraction.cc
  15113. (createPeerMessag): Updated log message.
  15114. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15115. To add the ability to download several pieces in mix in a command and
  15116. increase the number of request slots according to request-cancel
  15117. latency:
  15118. * src/PeerInteractionCommand.cc
  15119. (executeInternal): The number of messages to be received at a time
  15120. is increased from 10 to 50.
  15121. * src/LogFactory
  15122. (getInstance): Added NullLogger.
  15123. * src/NullLogger.h: New class.
  15124. * src/BitfieldMan.h
  15125. (getMissingIndex): New function.
  15126. * src/BitfieldMan.cc
  15127. (getMissingIndex): New function.
  15128. * src/TorrentMan.h
  15129. (checkOutPiece): New function.
  15130. (getMissingPieceIndex): New function.
  15131. (getMissingFastPieceIndex): New function.
  15132. (getMissingFastPiece): New function.
  15133. * src/TorrentMan.cc
  15134. (updatePiece): Rewritten using STL.
  15135. (syncPiece): Rewritten using STL.
  15136. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15137. checkOutPiece().
  15138. (getMissingPieceIndex): New function.
  15139. (getMissingFastPieceIndex): New function.
  15140. (getMissingFastPiece): New function.
  15141. (checkOutPiece): New function.
  15142. * src/PeerInteraction.h
  15143. (Pieces): New type definition.
  15144. (piece): Removed.
  15145. (pieces): New variable.
  15146. (getNewPieceAndSendInterest): Added the "piece" argument.
  15147. (abortPiece): Added the "piece" argument.
  15148. (abortAllPieces): New function.
  15149. (isInRequestSlot): New function.
  15150. (hasDownloadPiece): Added the "index" argument.
  15151. (setDownloadPiece): Removed.
  15152. (getDownloadPiece): Added the "index" argument.
  15153. (updatePiece): New function.
  15154. (createRequestMessage): Added the "index" argument.
  15155. * src/PeerInteraction.cc
  15156. (onChoked): Rewritten.
  15157. (abortPiece): Rewirtten.
  15158. (abortAllPieces): New function.
  15159. (deleteTimeoutRequestSlot): Rewritten.
  15160. Clarified code a little bit.
  15161. (deleteCompletedRequestSlot): Rewritten.
  15162. (isInRequestSlot): New function.
  15163. (syncPiece): Rewritten.
  15164. (updatePiece): New function.
  15165. (getNewPieceAndSendInterest): Rewritten.
  15166. (addRequests): Rewritten.
  15167. (getDownloadPiece): Rewritten.
  15168. (hasDownloadPiece): Rewritten.
  15169. (createRequestMessage): Added the "index" argument.
  15170. * src/common.h
  15171. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15172. (DIV_FLOOR): New definition.
  15173. * src/PieceMessage.cc
  15174. (receivedAction): Update request-piece latency here.
  15175. * src/RequestSlot.h
  15176. (getLatencyInMillis): New function.
  15177. * src/RequestSlot.cc
  15178. (isTimeout): Rewritten using getLatencyInMillis.
  15179. (getLatencyInMillis): New function.
  15180. * src/Piece.h
  15181. (operator==): New function.
  15182. (getMissingBlockIndex): New function.
  15183. * src/Piece.cc
  15184. (operator==): New function.
  15185. (getMissingBlockIndex): New function.
  15186. * src/Peer.h
  15187. (DEFAULT_LATENCY): New definition.
  15188. (latency): New variable.
  15189. (updateLatency): New function.
  15190. (getLatency): New function.
  15191. * src/Peer.cc
  15192. (resetStatus): Reset latecy.
  15193. (updateLatency): New function.
  15194. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15195. * src/SocketCore.cc
  15196. (isReadable): Added secure to the condition.
  15197. * src/HttpConnection.cc
  15198. (receiveResponse): Fixed a bug that causes no response header
  15199. exception.
  15200. * src/Peer.h
  15201. (getFastSet): Fixed the return value type.
  15202. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15203. To remove a wait from download loop:
  15204. * src/DownloadEngine.cc
  15205. (run): Comment out shortSleep.
  15206. To rewrite the message handling:
  15207. * src/SimplePeerMessage.h: New class.
  15208. * src/SimplePeerMessage.cc: New class.
  15209. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15210. (msg): New variable.
  15211. (create): New function.
  15212. (send): Removed.
  15213. (getMessage): New function.
  15214. (getMessageLength): New function.
  15215. * src/CancelMessage.cc
  15216. (create): New function.
  15217. (receivedAction): Replaced deleteRequestMessageInQueue with
  15218. rejectPieceMessageInQueue.
  15219. (send): Removed.
  15220. (getMessage): New function.
  15221. (getMessageLength): New function.
  15222. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15223. (msg): New variable.
  15224. (msgLength): New variable.
  15225. (~BitfieldMessage): Deleted msg.
  15226. (send): Removed.
  15227. (getMessage): New function.
  15228. (getMessageLength): New function.
  15229. * src/BitfieldMessage.cc
  15230. (create): New function.
  15231. (send): Removed.
  15232. (getMessage): New function.
  15233. (getMessageLength): New function.
  15234. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15235. (msg): New variable.
  15236. (sendPredicate): New function.
  15237. (onSendComplete): New function.
  15238. (send): Removed.
  15239. (getMessage): New function.
  15240. (getMessageLength): New function.
  15241. (create): New function.
  15242. * src/ChokeMessage.cc
  15243. (create): New function.
  15244. (send): Removed.
  15245. (sendPredicate): New function.
  15246. (getMessage): New function.
  15247. (getMessageLength): New function.
  15248. (onSendComplete): New function.
  15249. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15250. (msg): New variable.
  15251. (send): Removed.
  15252. (getMessage): New function.
  15253. (getMessageLength): New function.
  15254. * src/KeepAliveMessage.cc
  15255. (send): Removed.
  15256. (getMessage): New function.
  15257. (getMessageLength): New function.
  15258. * src/PortMessage.h
  15259. (create): New function.
  15260. (receivedAction): Updated log message.
  15261. * src/PortMessage.cc: New file.
  15262. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15263. (msg): New variable.
  15264. (sendPredicate): New function.
  15265. (onSendComplete): New function.
  15266. (create): New function.
  15267. (send): Removed.
  15268. (getMessage): New function.
  15269. (getMessageLength): New function.
  15270. * src/UnchokeMessage.cc
  15271. (create): New function.
  15272. (send): Removed.
  15273. (sendPredicate): New function.
  15274. (getMessage): New function.
  15275. (getMessageLength): New function.
  15276. (onSendComplete): New function.
  15277. * src/PieceMessage.h
  15278. (leftPieceDataLength): Removed.
  15279. (leftDataLength): New variable.
  15280. (headerSend): New variable.
  15281. (pendingCount): New variable.
  15282. (msgHeader): New variable.
  15283. (sendPieceData): New function.
  15284. (incrementPendingCount): New function.
  15285. (isPendingCountMax): New function.
  15286. (create): New function.
  15287. (getMessageHeader): New function.
  15288. (getMessageHeaderLength): New function.
  15289. * src/PieceMessage.cc
  15290. (create): New function.
  15291. (getMessageHeader): New function.
  15292. (getMessageHeaderLength): New function.
  15293. (send): Rewritten.
  15294. (sendPieceData): New function.
  15295. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15296. (msg): New variable.
  15297. (create): New function.
  15298. (getMessage): New function.
  15299. (getMessageLength): New function.
  15300. * src/HaveMessage.cc
  15301. (create): New function.
  15302. (send): Removed.
  15303. (sendPieceData): New function.
  15304. (getMessage): New function.
  15305. (getMessageLength): New function.
  15306. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15307. (msg): New variable.
  15308. (create): New function.
  15309. (send): Removed.
  15310. (getMessage): New function.
  15311. (getMessageLength): New function.
  15312. * src/RequestMessage.cc
  15313. (create): New function.
  15314. (receivedAction): Added the handling of fast extension.
  15315. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15316. (send): Removed.
  15317. (getMessage): New function.
  15318. (getMessageLength): New function.
  15319. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15320. (msg): New variable.
  15321. (sendPredicate): New function.
  15322. (onSendComplete): New function.
  15323. (create): New function.
  15324. (getMessage): New function.
  15325. (getMessageLength): New function.
  15326. * src/InterestedMessage.cc
  15327. (create): New function.
  15328. (send): Removed.
  15329. (sendPieceData): New function.
  15330. (getMessage): New function.
  15331. (getMessageLength): New function.
  15332. (onSendComplete): New function.
  15333. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15334. (msg): New variable.
  15335. (sendPieceData): New function.
  15336. (onSendComplete): New function.
  15337. (create): New function.
  15338. (send): Removed.
  15339. (getMessage): New function.
  15340. (getMessageLength): New function.
  15341. * src/NotInterestedMessage.cc
  15342. (create): New function.
  15343. (send): Removed.
  15344. (sendPredicate): New function.
  15345. (getMessage): New function.
  15346. (getMessageLength): New function.
  15347. (onSendComplete): New function.
  15348. * src/AllowedFastMessage.h: New class.
  15349. * src/AllowedFastMessage.cc: New class.
  15350. * src/RejectMessage.h: New class.
  15351. * src/RejectMessage.cc: New class.
  15352. * src/SuggestPieceMessage.h: New class.
  15353. * src/SuggestPieceMessage.cc: New class.
  15354. * src/HaveAllMessage.h: New class.
  15355. * src/HaveAllMessage.cc: New class.
  15356. * src/HaveNoneMessage.h: New class.
  15357. * src/HaveNoneMessage.cc: New class.
  15358. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15359. (msg): New variable.
  15360. (reserved): New variable.
  15361. (create): New function.
  15362. (getId): New function.
  15363. (receivedAction): New function.
  15364. (getMessage): New function.
  15365. (getMessageLength): New function.
  15366. (isFastExtensionSupported): New function.
  15367. * src/HandshakeMessage.cc
  15368. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15369. (create): New function.
  15370. (getMessage): New function.
  15371. (getMessageLength): New function.
  15372. (toString): Added the output of reserved field.
  15373. (check): Added const qualifier.
  15374. (isFastExtensionSupported): New function.
  15375. * src/PeerMessageUtil.h
  15376. (createChokeMessage): Removed.
  15377. (createUnchokeMessage): Removed.
  15378. (createInterestedMessage): Removed.
  15379. (createNotInterestedMessage): Removed.
  15380. (createHaveMessage): Removed.
  15381. (createBitfieldMessage): Removed.
  15382. (createRequestMessage): Removed.
  15383. (createCancelMessage): Removed.
  15384. (createPieceMessage): Removed.
  15385. (createPortMessage): Removed.
  15386. (createChokeMessage): Removed.
  15387. (createUnchokeMessage): Removed.
  15388. (createInterestedMessage): Removed.
  15389. (createNotInterestedMessage): Removed.
  15390. (createHaveMessage): Removed.
  15391. (createBitfieldMessage): Removed.
  15392. (createRequestMessage): Removed.
  15393. (createCancelMessage): Removed.
  15394. (createPieceMessage): Removed.
  15395. (createKeepAliveMessage): Removed.
  15396. (createHandshakeMessage): Removed.
  15397. (setIntParam): New function.
  15398. (createPeerMessageString): New function.
  15399. * src/PeerMessageUtil.cc
  15400. (createChokeMessage): Removed.
  15401. (createUnchokeMessage): Removed.
  15402. (createInterestedMessage): Removed.
  15403. (createNotInterestedMessage): Removed.
  15404. (createHaveMessage): Removed.
  15405. (createBitfieldMessage): Removed.
  15406. (createRequestMessage): Removed.
  15407. (createCancelMessage): Removed.
  15408. (createPieceMessage): Removed.
  15409. (createPortMessage): Removed.
  15410. (createRequestMessage): Removed.
  15411. (createCancelMessage): Removed.
  15412. (createPieceMessage): Removed.
  15413. (createHaveMessage): Removed.
  15414. (createChokeMessage): Removed.
  15415. (createUnchokeMessage): Removed.
  15416. (createInterestedMessage): Removed.
  15417. (createNotInterestedMessage): Removed.
  15418. (createBitfieldMessage): Removed.
  15419. (createKeepAliveMessage): Removed.
  15420. (createHandshakeMessage): Removed.
  15421. (setIntParam): New function.
  15422. (createPeerMessageString): New function.
  15423. * src/PeerConnection.h
  15424. (peer): Removed.
  15425. (torrentMan): Removed.
  15426. (createNLengthMessage): Removed.
  15427. (setIntParam): Removed.
  15428. (writeOutgoingMessageLog): Removed all overloaded functions.
  15429. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15430. (sendMessage): New function.
  15431. (sendHandshake): Removed.
  15432. (sendKeepAlive): Removed.
  15433. (sendChoke): Removed.
  15434. (sendUnchoke): Removed.
  15435. (sendInterested): Removed.
  15436. (sendNotInterested): Removed.
  15437. (sendHave): Removed.
  15438. (sendBitfield): Removed.
  15439. (sendRequest): Removed.
  15440. (sendPiece): Removed.
  15441. (sendPieceHeader): Removed.
  15442. (sendPieceData): Removed.
  15443. (sendCancel): Removed.
  15444. (getPeer): Removed.
  15445. * src/PeerConnection.cc
  15446. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15447. (sendHandshake): Removed.
  15448. (sendKeepAlive): Removed.
  15449. (createNLengthMessage): Removed.
  15450. (setIntParam): Removed.
  15451. (writeOutgoingMessageLog): Removed all overloaded functions.
  15452. (sendChoke): Removed.
  15453. (sendUnchoke): Removed.
  15454. (sendInterested): Removed.
  15455. (sendNotInterested): Removed.
  15456. (sendHave): Removed.
  15457. (sendBitfield): Removed.
  15458. (sendRequest): Removed.
  15459. (sendPiece): Removed.
  15460. (sendPieceHeader): Removed.
  15461. (sendPieceData): Removed.
  15462. (sendMessage): New function.
  15463. (sendCancel): Removed.
  15464. * src/PeerInteractionCommand.cc
  15465. (PeerInteractionCommand): Call setUploadLimit.
  15466. (executeInternal): Call setUploadLimit.
  15467. Added the handling of "inProgress" state of handshake message.
  15468. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15469. sendNow().
  15470. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15471. sendNow().
  15472. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15473. * src/TorrentMan.h
  15474. (PEER_ID_LENGTH): New definition.
  15475. (hasAllPieces): New function.
  15476. * src/TorrentMan.cc
  15477. (getMissingPiece): Added the handling of fast extension.
  15478. (cancelPiece): Call updatePiece().
  15479. (hasAllPieces): New function.
  15480. * src/PeerInteraction.h
  15481. (fastSet): New variable.
  15482. (getNewPieceAndSendInterest): Changed the return type to void.
  15483. (send): Renamed as sendMessages.
  15484. (deleteAllRequestSlot): Removed.
  15485. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15486. (cancelAllRequest): Removed all overloaded functions.
  15487. (deleteAllRequestSlot): Removed.
  15488. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15489. (rejectPieceMessageInQueue): New function.
  15490. (rejectAllPieceMessageInQueue): New function.
  15491. (onChoked): New function.
  15492. (isSendingMessageInProgress): New function.
  15493. (getCorrespondingRequestSlot): Changed its arguments.
  15494. (isInFastSet): New function.
  15495. (addFastSetIndex): New function.
  15496. (addRequests): New function.
  15497. (sendNow): Removed.
  15498. (trySendNow): Removed.
  15499. (sendBitfield): New function.
  15500. (sendAllowdFast): New function.
  15501. (createHaveAllMessage): New function.
  15502. (createHaveNoneMessage): New function.
  15503. (createRejectMessage): New function.
  15504. (createAllowedFastMessage): New function.
  15505. * src/PeerInteraction.cc
  15506. (send): Renamed as sendMessages.
  15507. (sendMessages): New function.
  15508. (MsgPushBack): New class.
  15509. (isSendingMessageInProgress): New function.
  15510. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15511. (rejectAllPieceMessageInQueue): New function.
  15512. Added the handling of fast extension.
  15513. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15514. (rejectPieceMessageInQueue): New function.
  15515. Added the handling of fast extension.
  15516. (deleteRequestSlot): Replaced for loop with std::find.
  15517. (onChoked): New function.
  15518. (deleteAllRequestSlot): Removed.
  15519. (abortPiece): Rewirtten.
  15520. (deleteTimeoutRequestSlot): Updated log messages.
  15521. (getCorrespondingRequestSlot): Changed its arguments.
  15522. (cancelAllRequest): Removed all overloaded functions.
  15523. (receiveHandshake): Added the check to see whether an incoming peer
  15524. supports fast extension.
  15525. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15526. PeerMessageUtil.
  15527. (createPeerMessage): Use create() of each message class instead of
  15528. PeerMessageUtil.
  15529. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15530. AllowedFastMessage were added.
  15531. (getNewPieceAndSendInterest): Changed its return value type to void.
  15532. Added the handling of fast extension.
  15533. (addRequests): New function.
  15534. (sendNow): Removed.
  15535. (sendHandshake): Rewritten.
  15536. (trySendNow): Removed.
  15537. (sendBitfield): New function.
  15538. (sendAllowdFast): New function.
  15539. (isInFastSet): New function.
  15540. (addFastSetIndex): New function.
  15541. (createRequestMessage): Use RequestMessage::create instead of
  15542. PeerMessageUtil.
  15543. (createCancelMessage): Use CancelMessage::create instead of
  15544. PeerMessageUtil.
  15545. (createPieceMessage): Use PieceMessage::create instead of
  15546. PeerMessageUtil.
  15547. (createHaveMessage): Use HaveMessage::create instead of
  15548. PeerMessageUtil.
  15549. (createChokeMessage): Use ChokeMessage::create instead of
  15550. PeerMessageUtil.
  15551. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15552. PeerMessageUtil.
  15553. (createInterestedMessage): Use InterestedMessage::create instead of
  15554. PeerMessageUtil.
  15555. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15556. of PeerMessageUtil.
  15557. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15558. PeerMessageUtil.
  15559. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15560. PeerMessageUtil.
  15561. (createHaveAllMessage): New function.
  15562. (createHaveNoneMessage): New function.
  15563. (createRejectMessage): New function.
  15564. (createAllowedFastMessage: New function.
  15565. * src/Util.h
  15566. (sha1Sum): New function.
  15567. (computeFastSet): New function.
  15568. * src/Util.cc
  15569. (sha1Sum): New function.
  15570. (computeFastSet): New function.
  15571. * src/Peer.h
  15572. (fastExtensionEnabled): New variable.
  15573. (fastSet): New variable.
  15574. (setAllBitfield): New function.
  15575. (setFastExtensionEnabled): New function.
  15576. (isFastExtensionEnabled): New function.
  15577. (addFastSetIndex): New function.
  15578. (getFastSet): New function.
  15579. (isInFastSet): New function.
  15580. (countFastSet): New function.
  15581. * src/Peer.cc
  15582. (isInFastSet): New function.
  15583. (addFastSetIndex): New function.
  15584. (setAllBitfield): New function.
  15585. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15586. sockets.
  15587. * src/PeerAbstractCommand.cc
  15588. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15589. and uploadLimit.
  15590. (execute): Changed the procedure of checking sockets. The upload speed
  15591. checking were added.
  15592. (setUploadLimit): New function.
  15593. (setUploadLimitCheck): New function.
  15594. * src/PeerAbstractCommand.h
  15595. (setUploadLimit): New function.
  15596. (setUploadLimitCheck): New function.
  15597. (uploadLimit): New variable.
  15598. (uploadLimitCheck): New variable.
  15599. To contact a tracker regularly:
  15600. * src/TrackerWatcherCommand.h (interval): New variable.
  15601. (checkPoint): New variable.
  15602. (TrackerWatcherCommand): Added interval argument.
  15603. * src/TrackerWatcherCommand.cc
  15604. (TrackerWatcherCommand): Initialized checkPoint.
  15605. (execute): Now a tracker is contacted in every specified period.
  15606. If peer list is not needed, send request with numwant=0.
  15607. * src/TrackerUpdateCommand.cc
  15608. (execute): Updated log messages.
  15609. * src/DownloadEngine.cc
  15610. (~DownloadEngine): Removed two asserts.
  15611. (waitData): Uncommented wfds. May be a bug fix.
  15612. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15613. * src/PeerInteractionCommand.h
  15614. (checkInactiveConnection): Removed.
  15615. * src/PeerInteractionCommand.cc
  15616. (executeInternal): Removed following function calls:
  15617. detectMessageFlooding(), checkLongTimePeerChoking and
  15618. checkInactiveConnection().
  15619. (checkInactiveConnection): Removed.
  15620. (detectMessageFlooding): Removed function call to
  15621. checkInactiveConnection().
  15622. * src/PeerMessageUtil.h
  15623. (createChokeMessage): New function. Overload.
  15624. (createUnchokeMessage): New function. Overload.
  15625. (createInterestedMessage): New function. Overload.
  15626. (createNotInterestedMessage): New function. Overload.
  15627. (createHaveMessage): New function. Overload.
  15628. (createBitfieldMessage): New function. Overload.
  15629. (createRequestMessage): New function. Overload.
  15630. (createCancelMessage): New function. Overload.
  15631. (createPieceMessage): New function. Overload.
  15632. (createKeepAliveMessage): New function. Overload.
  15633. * src/PeerMessageUtil.cc
  15634. (createChokeMessage): New function. Overload.
  15635. (createUnchokeMessage): New function. Overload.
  15636. (createInterestedMessage): New function. Overload.
  15637. (createNotInterestedMessage): New function. Overload.
  15638. (createHaveMessage): New function. Overload.
  15639. (createBitfieldMessage): New function. Overload.
  15640. (createRequestMessage): New function. Overload.
  15641. (createCancelMessage): New function. Overload.
  15642. (createPieceMessage): New function. Overload.
  15643. (createKeepAliveMessage): New function. Overload.
  15644. * src/SendMessageQueue.cc
  15645. (createRequestMessage): Use PeerMessageUtil.
  15646. (createCancelMessage): Use PeerMessageUtil.
  15647. (createPieceMessage): Use PeerMessageUtil.
  15648. (createHaveMessage): Use PeerMessageUtil.
  15649. (createChokeMessage): Use PeerMessageUtil.
  15650. (createUnchokeMessage): Use PeerMessageUtil.
  15651. (createInterestedMessage): Use PeerMessageUtil.
  15652. (createNotInterestedMessage): Use PeerMessageUtil.
  15653. (createBitfieldMessage): Use PeerMessageUtil.
  15654. (createKeepAliveMessage): Use PeerMessageUtil.
  15655. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15656. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15657. * src/PeerInteraction.h: New class.
  15658. * src/PeerInteraction.cc: New class.
  15659. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15660. Each peer message has its own class.
  15661. * src/PendingMessages.h: Removed.
  15662. * src/PendingMessages.cc: Removed. The sending process was moved to
  15663. each message class.
  15664. * src/RequestSlotMan.h: Removed.
  15665. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15666. SendMessageQueue.
  15667. * src/RequestMessage.h: New class.
  15668. * src/RequestMessage.cc: New class.
  15669. * src/CancelMessage.h: New class.
  15670. * src/CancelMessage.cc: New class.
  15671. * src/BitfieldMessage.h: New class.
  15672. * src/BitfieldMessage.cc: New class.
  15673. * src/ChokeMessage.h: New class.
  15674. * src/ChokeMessage.cc: New class.
  15675. * src/KeepAliveMessage.h: New class.
  15676. * src/KeepAliveMessage.cc: New class.
  15677. * src/PortMessage.h: New class.
  15678. * src/UnchokeMessage.h: New class.
  15679. * src/UnchokeMessage.cc: New class.
  15680. * src/PieceMessage.h: New class.
  15681. * src/PieceMessage.cc: New class.
  15682. * src/HaveMessage.h: New class.
  15683. * src/HaveMessage.cc: New class.
  15684. * src/BitfieldMessage.h: New class.
  15685. * src/BitfieldMessage.cc: New class.
  15686. * src/NotInterestedMessage.h: New class.
  15687. * src/NotInterestedMessage.cc: New class.
  15688. * src/InterestedMessage.h: New class.
  15689. * src/InterestedMessage.cc: New class.
  15690. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15691. (getSendMessageQueue): New function.
  15692. (setSendMessageQueue): New function.
  15693. * src/HandshakeMessage.cc: New class.
  15694. * src/PeerConnection.h (receiveMessage): Changed return value and
  15695. arguments.
  15696. (receiveHandshake): Changed return value and arguments.
  15697. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15698. here.
  15699. (receiveHandshake): Do not create handshake class here.
  15700. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15701. (piece): Removed.
  15702. (syncPiece): Removed.
  15703. (sendInterest): Removed.
  15704. (sendMessages): Removed.
  15705. (createRequestPendingMessage): Removed.
  15706. (checkPieceHash): Removed.
  15707. (erasePieceOnDisk): Removed.
  15708. (getNewPieceAndSendInterest): Removed.
  15709. (onGotNewPice): Removed.
  15710. (onGotWrongPiece): Removed.
  15711. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15712. Removed peerConnection, piece.
  15713. (~PeerInteractionCommand): Removed peerConnection.
  15714. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15715. (syncPiece): Moved to SendMessageQueue.
  15716. (decideChoking): Removed PendingMessage.
  15717. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15718. The action after receiving peer message was moved to each message
  15719. class.
  15720. (onGotNewPice): Moved to SendMessageQueue.
  15721. (onGotWrongPiece): Moved to SendMessageQueue.
  15722. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15723. (sendInterest): Moved to SendMessageQueue.
  15724. (createRequestPendingMessage): Removed.
  15725. (sendMessages): Moved to SendMessageQueue.
  15726. (onAbort): Use SendMessageQueue::abortPiece()
  15727. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15728. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15729. (checkPieceHash): Moved to SendMessageQueue.
  15730. (erasePieceOnDisk): Moved to SendMessageQueue.
  15731. * src/PeerMessageUtil.h
  15732. (createBitfieldMessage): Removed.
  15733. (createHaveMessage): Changed return value and arguments.
  15734. (createBitfieldMessage): Changed return value and arguments.
  15735. (createRequestCancelMessage): Removed.
  15736. (createPieceMessage): Changed return value and arguments.
  15737. (getShortIntParam): New function.
  15738. (checkIndex): Changed arguments.
  15739. (checkBegin): Changed arguments.
  15740. (checkLength): Changed arguments.
  15741. (checkPieceOffset): Removed.
  15742. (checkRange): New function.
  15743. (checkBitfield): Changed arguments.
  15744. (createPeerMessage): Removed.
  15745. (checkIntegrity): Removed.
  15746. (createHandshakeMessage): Changed arguments.
  15747. (createChokeMessage): New function.
  15748. (createUnchokeMessage): New function.
  15749. (createInterestedMessage): New function.
  15750. (createNotInterestedMessage): New function.
  15751. (createRequestMessage): New function.
  15752. (createCancelMessage): New function.
  15753. (createPortMessage): New function.
  15754. * src/PeerMessageUtil.cc
  15755. (createBitfieldMessage): Removed.
  15756. (createHaveMessage): Changed return value and arguments.
  15757. (createBitfieldMessage): Changed return value and arguments.
  15758. (createRequestCancelMessage): Removed.
  15759. (createPieceMessage): Changed return value and arguments.
  15760. (getShortIntParam): New function.
  15761. (checkIndex): Changed arguments.
  15762. (checkBegin): Changed arguments.
  15763. (checkLength): Changed arguments.
  15764. (checkPieceOffset): Removed.
  15765. (checkRange): New function.
  15766. (checkBitfield): Changed arguments.
  15767. (createPeerMessage): Removed.
  15768. (checkIntegrity): Removed.
  15769. (createHandshakeMessage): Changed arguments.
  15770. (createChokeMessage): New function.
  15771. (createUnchokeMessage): New function.
  15772. (createInterestedMessage): New function.
  15773. (createNotInterestedMessage): New function.
  15774. (createRequestMessage): New function.
  15775. (createCancelMessage): New function.
  15776. (createPortMessage): New function.
  15777. * src/PeerMessage.h
  15778. (id): Removed.
  15779. (index): Removed.
  15780. (begin): Removed.
  15781. (length): Removed.
  15782. (bitfield): Removed.
  15783. (bitfieldLength): Removed.
  15784. (block): Removed.
  15785. (blockLength): Removed.
  15786. (inProgress): New variable.
  15787. (cuid): New variable.
  15788. (peer): New variable.
  15789. (sendMessageQueue): New variable.
  15790. (logger): New variable.
  15791. (setBitfield): Removed.
  15792. (getBitfield): Removed.
  15793. (setBlock): Removed.
  15794. (getBlock): Removed.
  15795. (getBitfieldLength): Removed.
  15796. (getBlockLength): Removed.
  15797. (isInProgress): New function.
  15798. (toString): Made pure virtual.
  15799. (check): New function.
  15800. (send): New function.
  15801. (receivedAction): New function.
  15802. (getId): Made pure virtual.
  15803. (setId): Removed.
  15804. (getIndex): Removed.
  15805. (setIndex): Removed.
  15806. (getBegin): Removed.
  15807. (setBegin): Removed.
  15808. (getLength): Removed.
  15809. (setLength): Removed.
  15810. (getCuid): New function.
  15811. (setCuid): New function.
  15812. (getPeer): New function.
  15813. (setPeer): New function.
  15814. (getSendMessageQueue): New function.
  15815. (setSendMessageQueue): New function.
  15816. (ID): Removed.
  15817. * src/PeerMessage.cc
  15818. (setBitfield): Removed.
  15819. (setBlock): Removed.
  15820. (toString): Removed.
  15821. * src/TorrentMan.h
  15822. (getPieceLength): New function.
  15823. (getPieceLength): New function.
  15824. * src/SendMessageQueue.h
  15825. (REQUEST_TIME_OUT): New definition.
  15826. (RequestSlots): New definition.
  15827. (MessageQueue): New definition.
  15828. (requestSlotMan): Removed.
  15829. (pendingMessages): Removed.
  15830. (requestSlots): New variable.
  15831. (messageQueue): New variable.
  15832. (torrentMan): New variable.
  15833. (peerConnection): New variable.
  15834. (peer): New variable.
  15835. (piece): New variable.
  15836. (getNewPieceAndSendInterest): New function.
  15837. (createPeerMessage): New function.
  15838. (createHandshakeMessage): New function.
  15839. (send): Made private.
  15840. (setPeerMessageCommonProperty): New function.
  15841. (deleteAllRequestSlot): New function.
  15842. (deleteRequestMessageInQueue): New function.
  15843. (cancelAllRequest): Made private.
  15844. (cancelAllRequest): Made private.
  15845. (countRequestSlot): Made private.
  15846. (addPendingMessage): Removed.
  15847. (deletePendingPieceMessage): Removed.
  15848. (deletePendingRequestMessage): Removed.
  15849. (addMessage): New function.
  15850. (deletePieceMessageInQueue): New function.
  15851. (deleteTimeoutRequestSlot): Changed argument.
  15852. (deleteCompletedRequestSlot): Changed argument.
  15853. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15854. (getCorrespondingRequestSlot): New function.
  15855. (countPendingMessage): Removed.
  15856. (countMessageInQueue): New function.
  15857. (getTorrentMan): New function.
  15858. (getPeerConnection): New function.
  15859. (hasDownloadPiece): New function.
  15860. (getDownloadPiece): New function.
  15861. (setDownloadPiece): New function.
  15862. (syncPiece): New function.
  15863. (sendMessages): New function.
  15864. (sendNow): New function.
  15865. (trySendNow): New function.
  15866. (abortPiece): New function.
  15867. (sendHandshake): New function.
  15868. (receiveMessage): New function.
  15869. (receiveHandshake): New function.
  15870. (createRequestMessage): New function.
  15871. (createCancelMessage): New function.
  15872. (createPieceMessage): New function.
  15873. (createHaveMessage): New function.
  15874. (createChokeMessage): New function.
  15875. (createUnchokeMessage): New function.
  15876. (createInterestedMessage): New function.
  15877. (createNotInterestedMessage): New function.
  15878. (createBitfieldMessage): New function.
  15879. (createKeepAliveMessage): New function.
  15880. * src/SendMessageQueue.cc
  15881. (SendMessageQueue): Removed requestSlotMan.
  15882. Instantiated peerConnection here.
  15883. (~SendMessageQueue): Removed requestSlotMan.
  15884. Added deletion of peerConnection and the contents of messageQueue.
  15885. (send): Updated according to the change of messageQueue.
  15886. (addPendingMessage): Renamed to addMessage.
  15887. (addMessage): New function.
  15888. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15889. (deletePieceMessageInQueue): New function.
  15890. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15891. (deleteRequestMessageInQueue): New function.
  15892. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15893. here.
  15894. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15895. (...) was moved here.
  15896. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15897. moved here.
  15898. (deleteCompletedRequestSlot):
  15899. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15900. (getCorrespondingRequestSlot):
  15901. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15902. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15903. (countPendingMessage): Renamed to countMessageInQueue.
  15904. (countMessageInQueue): New function.
  15905. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15906. (receiveHandshake): New function.
  15907. (createHandshakeMessage): New function.
  15908. (receiveMessage): New function.
  15909. (createPeerMessage): New function.
  15910. (syncPiece): New function.
  15911. (getNewPieceAndSendInterest): New function.
  15912. (sendMessages): New function.
  15913. (sendNow): New function.
  15914. (trySendNow): New function.
  15915. (sendHandshake): New function.
  15916. (abortPiece): New function.
  15917. (getDownloadPiece): New function.
  15918. (getPeerMessageCommonProperty): New function.
  15919. (createRequestMessage): New function.
  15920. (createCancelMessage): New function.
  15921. (createPieceMessage): New function.
  15922. (createHaveMessage): New function.
  15923. (createChokeMessage): New function.
  15924. (createUnchokeMessage): New function.
  15925. (createInterestedMessage): New function.
  15926. (createNotInterestedMessage): New function.
  15927. (createBitfieldMessage): New function.
  15928. (createKeepAliveMessage): New function.
  15929. To add simple Content-Disposition support:
  15930. * src/HttpResponseCommand.h (determinFilename): New function.
  15931. * src/HttpResponseCommand.cc (executeInternal):
  15932. Use determinFilename(headers) instead of req->getFile() when comparing
  15933. filename.
  15934. (determinFilename): New function.
  15935. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15936. req->getFile().
  15937. (handleOtherEncoding): Use determinFilename(headers) instead of
  15938. req->getFile().
  15939. * src/Util.h (getContentDispositionFilename): New function.
  15940. * src/Util.cc (getContentDispositionFilename): New function.
  15941. * src/LogFactory.h (release): New function.
  15942. * src/LogFactory.cc (release): New function.
  15943. To fix a bug that causes out-of-bound exception when HTTP status
  15944. line is wrong:
  15945. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15946. size.
  15947. * src/common.h (Deleter): New class.
  15948. * src/SegmentMan.cc
  15949. (~SegmentMan): Added deletion of splitter and diskWriter.
  15950. * src/DownloadEngine.h
  15951. (Commands): Use deque.
  15952. (clearQueue): New function.
  15953. * src/DownloadEngine.cc
  15954. (~DownloadEngine): Added deletion of segmentMan.
  15955. (cleanQueue): New function.
  15956. * src/TorrentDownloadEngine.h
  15957. (TorrentDownloadEngine): The implementation was moved to
  15958. TorrentDownloadEngine.cc.
  15959. (~TorrentDownloadEngine): The implementation was moved to
  15960. TorrentDownloadEngine.cc.
  15961. * src/TorrentDownloadEngine.cc
  15962. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15963. * src/main.cc
  15964. (clearRequest): Removed.
  15965. (handler): Added deletion of e.
  15966. (torrentHandler): Added deletion of te.
  15967. (main): Do not share splitter.
  15968. Use Deleter instead of clearRequest.
  15969. Deletion of classes were updated.
  15970. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15971. * src/main.cc (main): Fixed typo.
  15972. * src/message.h: Fixed typo.
  15973. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15974. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15975. To add --select-file command-line option:
  15976. * src/Util.cc
  15977. (unfoldRange): New function.
  15978. (getNum): New function.
  15979. (unfoldSubRange): New function
  15980. * src/main.cc
  15981. (showUsage): Added help message.
  15982. (main): Added --select-file command-line option. Updated the layout of
  15983. file listing.
  15984. * src/common.h
  15985. (Integers): New definition.
  15986. * src/SocketCore.cc
  15987. (writeData): Removed timeout argument.
  15988. (readData): Removed timeout argument.
  15989. (peekData): Removed timeout argument.
  15990. * src/Socket.cc
  15991. (writeData): Removed timeout argument.
  15992. (readData): Removed timeout argument.
  15993. (peekData): Removed timeout argument.
  15994. * Release 0.4.1
  15995. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15996. To deploy upload rate based choking algorithm:
  15997. * src/PeerInteractionCommand.cc
  15998. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15999. peer currently used.
  16000. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16001. download completes. Simplified.
  16002. (receiveMessage): Updated.
  16003. * src/TorrentMan.h
  16004. (activePeers): New variable.
  16005. (addActivePeer): New function.
  16006. (getActivePeers): New function.
  16007. (deleteActivePeer): New function.
  16008. * src/TorrentMan.cc
  16009. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16010. * src/PeerAbstractCommand.cc
  16011. (onAbort): Use peer->resetStatus().
  16012. * src/main.cc
  16013. (PeerChokeCommand.h): Included.
  16014. (main): Added the instance of ChokingCommand to the command queue.
  16015. * src/Peer.h
  16016. (amChoking): Renamed from amChocking
  16017. (chokingRequired): New variable.
  16018. (optUnchoking): New variable.
  16019. (deltaUpload): New variable.
  16020. (deltaDownload): New variable.
  16021. (addDeltaUpload): New function.
  16022. (resetDeltaUpload): New function.
  16023. (addDeltaDownload): New function.
  16024. (resetDeltaDownload): New function.
  16025. (addPeerUpload): Added a call to addDeltaUpload.
  16026. (addPeerDownload): Added a call to addDeltaDownload.
  16027. * src/Peer.cc
  16028. (shouldBeChoking): Renamed from shouldChoke.
  16029. (resetStatus): New function.
  16030. * src/PeerChokeCommand.h: New class.
  16031. * src/PeerChokeCommand.cc: New class.
  16032. To add lazy upload speed limiter:
  16033. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16034. statistics calculation to TorrentDownloadEngine.
  16035. * src/TorrentConsoleDownloadEngine.cc
  16036. (sendStatistics): Renamed from printStatistics.
  16037. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16038. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16039. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16040. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16041. calculation.
  16042. (sendStatistics): New function as pure virtual function.
  16043. (getUploadSpeed): New function.
  16044. * src/TorrentDownloadEngine.cc
  16045. (initStatistics): New function.
  16046. (calculateSpeed): New function.
  16047. (calculateStatistics): New function.
  16048. * src/SendMessageQueue.h
  16049. (uploadLength): New variable.
  16050. (send): Added an argument.
  16051. (setUploadLimit): New function.
  16052. (getUploadLimit): New function.
  16053. * src/SendMessageQueue.cc
  16054. (send): Added upload speed limiter.
  16055. * src/prefs.h
  16056. (PREF_UPLOAD_LIMIT): New definition.
  16057. * src/PeerInteractionCommand.cc
  16058. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16059. * src/main.cc
  16060. (main): Added --upload-limit option
  16061. For bug fixes:
  16062. * src/main.cc
  16063. (showUsage): Corrected --listen-port help
  16064. Other changes:
  16065. * src/TorrentMan.cc
  16066. (getPeer): Return nullPeer if connection is grather than
  16067. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16068. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16069. To add some useful information to the exception message:
  16070. * src/SocketCore.cc : Updated messages.
  16071. * src/SegmentMan.cc :
  16072. * src/TorrentMan.cc : Updated messages.
  16073. * src/MultiDiskWriter.cc : Updated messages.
  16074. * src/Util.cc : Updated messages.
  16075. * src/AbstractDiskWriter.cc : Updated messages.
  16076. * src/PreAllocationDiskWriter.cc : Updated messages.
  16077. * src/message.cc : Added new messages. Updated some messages.
  16078. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16079. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16080. Updated threshold from 30 to 15.
  16081. * src/AbstractDiskWriter.h (filename): New variable.
  16082. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16083. (createFile): Assigned filename.
  16084. * src/main.cc: Updated the help message for http-auth-scheme.
  16085. * Release 0.4.0
  16086. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16087. To add TrackerUpdateCommand with which replaces
  16088. CompactTrackerResponseProcessor:
  16089. * src/TrackerWatcherCommand.h (req): Removed.
  16090. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16091. if the number of peer connections are less than 30.
  16092. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16093. * src/SegmentMan.h (diskWriter): New function.
  16094. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16095. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16096. (main): Use TrackerUpdateCommand.
  16097. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16098. (req): New variable.
  16099. (setTrackerResponseProcessor): Removed.
  16100. (getTrackerResponseProcessor): Removed.
  16101. (processTrackerResponse): Removed.
  16102. * src/DownloadEngine.h (diskWriter): Removed.
  16103. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16104. to torrentMan->processTrackerResponse().
  16105. To add Util::expandBuffer:
  16106. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16107. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16108. * src/Util.h (expandBuffer): New function.
  16109. To fix the bug that causes segmentation fault when "-l ." is specified
  16110. in command-line option:
  16111. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16112. (openFile): New function.
  16113. (closeFile): New function.
  16114. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16115. (~SimpleLogger): Call closeFile();
  16116. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16117. * src/main.cc (main): Added a check to see logger is configured
  16118. properly.
  16119. To enable HTTP authentication without specifying "--http-auth-scheme"
  16120. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16121. * src/HttpConnection.cc (createRequest): Send Authorization header
  16122. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16123. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16124. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16125. * src/Peer.cc (shouldChoke): Updated algorithm.
  16126. * src/message.h (EX_AUTH_FAILED): New definition.
  16127. (EX_FILE_OPEN): New definition.
  16128. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16129. if status == 401.
  16130. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16131. if req->isTorrent == true.
  16132. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16133. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16134. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16135. (createFile): Updated message.
  16136. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16137. To add a readout of estimated remaining time to normal HTTP/FTP
  16138. downloads:
  16139. * src/ConsoleDownloadEngine.h (startup): New variable.
  16140. (startupLength): New variable.
  16141. (isStartupLengthSet): New variable.
  16142. (avgSpeed): New variable.
  16143. (eta): New variable.
  16144. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16145. estimated remaining time.
  16146. (initStatistics): Initialized newly added variables.
  16147. (calculateStatistics): Calculate average speed and estimated remaining
  16148. time.
  16149. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16150. * src/TrackerDownloadCommand.h: Removed.
  16151. * src/TrackerDownloadCommand.cc: Removed.
  16152. * src/TrackerInitCommand.h: Removed.
  16153. * src/TrackerInitCommand.cc: Removed.
  16154. * src/TrackerUpdateCommand.h: Removed.
  16155. * src/TrackerUpdateCommand.cc: Removed.
  16156. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16157. url written in TrackerInitCommand was moved here. Do not create
  16158. tracker request command if torrentMan->trackers != 0.
  16159. * src/CompactTrackerResponseProcessor.h: New class.
  16160. * src/CompactTrackerResponseProcessor.cc: New class.
  16161. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16162. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16163. Decoupled TorrentDownloadEngine from this.
  16164. * src/SegmentMan.h (init): New function.
  16165. * src/SegmentMan.cc (init): New function.
  16166. * src/TorrentMan.h (responseProcessor): New variable.
  16167. (trackers): New variable.
  16168. (setTrackerResponseProcessor): New function.
  16169. (getTrackerResponseProcessor): New function.
  16170. (processTrackerResponse): New function.
  16171. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16172. (processTrackerResponse): New function.
  16173. * src/main.cc (main): Use ByteArrayDiskWriter and
  16174. CompactTrackerResponseProcessor.
  16175. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16176. processTrackerResponse().
  16177. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16178. readout.
  16179. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16180. which indicates download has completed.
  16181. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16182. (closeFile): fd >= 0, not fd > 0
  16183. * src/main.cc (main): Added short cut for show-files.
  16184. Added short cut for torrent-file.
  16185. Added new command-line option listen-port.
  16186. Updated i18n messages.
  16187. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16188. To add LogFactory which creates singleton logger:
  16189. * src/LogFactory.h: New class.
  16190. * src/LogFactory.cc: New class.
  16191. * src/Command.h (logger): New variable.
  16192. (Constructor): Use LogFactory.
  16193. * src/AbstractCommand.cc: Use Command::logger
  16194. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16195. Use LogFactory.
  16196. * src/SegmentSplitter.h : Made logger protected.
  16197. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16198. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16199. * src/DownloadEngine.h : Made logger protected.
  16200. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16201. * src/PeerInteractionCommand.cc : Use Command::logger.
  16202. * src/HttpResponseCommand.cc : Use Command::logger.
  16203. * src/SegmentMan.h : Made logger private.
  16204. * src/TorrentMan.h : Made logger private.
  16205. * src/TorrentMan.cc : Use LogFactory.
  16206. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16207. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16208. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16209. Use LogFactory.
  16210. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16211. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16212. Use LogFactory.
  16213. * src/DownloadCommand.cc : Use Command::logger.
  16214. * src/PeerAbstractCommand.cc : Use Command::logger.
  16215. * src/PeerListenCommand.cc : Use Command::logger.
  16216. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16217. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16218. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16219. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16220. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16221. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16222. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16223. Use LogFactory.
  16224. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16225. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16226. Use LogFactory.
  16227. * src/main.cc (main): Use LogFactory.
  16228. * src/DiskAdaptor.h (logger): New variable.
  16229. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16230. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16231. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16232. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16233. parameter to a tracker request.
  16234. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16235. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16236. * src/main.cc (setSignalHander): New function.
  16237. (main): Added a handler for SIGTERM.
  16238. (handler): Updated message.
  16239. (torrentHandler): Updated message.
  16240. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16241. * src/TorrentConsoleDownloadEngine.cc
  16242. (onPartialDownloadingCompletes): Renamed as
  16243. onSelectiveDownloadingCompletes.
  16244. (onSelectiveDownloadingCompletes): Updated message.
  16245. To add DiskAdaptor which abstract DiskWriter family:
  16246. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16247. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16248. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16249. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16250. MultiDiskAdaptor.h.
  16251. (readFileEntry): Changed its arguments.
  16252. (setup): setupDiskWriter is merged into this function.
  16253. (setupDiskWriter): Removed.
  16254. (setFileFilter): New function.
  16255. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16256. made in readFileEntry.
  16257. (getFilePath): Removed.
  16258. (getTempFilePath): Removed.
  16259. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16260. (fixFilename): Removed.
  16261. (copySingleFile): Removed.
  16262. (splitMultiFile): Removed.
  16263. (deleteTempFile): Removed.
  16264. (setFileEntriesToDownload): Removed.
  16265. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16266. (isSelectiveDownloadingMode): New function.
  16267. (setAllMultiFileRequestedState): Removed.
  16268. (finishPartialDownloadingMode): Renamed as
  16269. finishSelectiveDownloadingMode.
  16270. (finishSelectiveDownloadingMode): New function.
  16271. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16272. (getSelectedTotalLength): New function.
  16273. (onDownloadComplete): Use diskAdaptor.
  16274. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16275. (Range): Removed.
  16276. (setMultiFileEntries): Renamed as setFileEntries.
  16277. (setFileEntries): New function.
  16278. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16279. (pieceLength): New variable.
  16280. * src/main.cc (printDownloadCompeleteMessage): New function.
  16281. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16282. (main): Renamed torrent-show-files to show-files.
  16283. Rewritten file contents listing.
  16284. * src/TorrentMan.h (FileEntry): Removed.
  16285. (multiFileTopDir): Removed.
  16286. (multiFileEntries): Removed.
  16287. (diskWriter): Removed.
  16288. (diskAdaptor): New variable.
  16289. * src/DefaultDiskWriter.h (totalLength): New variable.
  16290. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16291. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16292. diskWriter.
  16293. * src/TorrentConsoleDownloadEngine.h
  16294. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16295. (partialTotalLength): Renamed as selectedTotalLength.
  16296. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16297. openExistingFile, otherwise call initAndOpenFile.
  16298. (closeFile): fd > 0, not fd != 0.
  16299. * src/DirectDiskAdaptor.h: New class.
  16300. * src/DirectDiskAdaptor.cc: New class.
  16301. * src/MultiDiskAdaptor.h: New class.
  16302. * src/MultiDiskAdaptor.cc: New class.
  16303. * src/CopyDiskAdaptor.h: New class.
  16304. * src/CopyDiskAdaptor.cc: New class.
  16305. * src/DiskAdaptor.h: New class.
  16306. * src/DiskAdaptor.cc: New class.
  16307. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16308. (PREF_SHOW_FILES): New definition.
  16309. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16310. To add the ability to download multi torrent into respective files
  16311. directly:
  16312. * src/DiskWriter.h (openFile): New function.
  16313. (seek): Removed.
  16314. * src/MultiDiskWriter.h: New class.
  16315. * src/MultiDiskWriter.cc: New class.
  16316. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16317. protected.
  16318. (openFile): New function.
  16319. * src/AbstractDiskWriter.cc (openFile): New function.
  16320. * src/prefs.h (V_FALSE): New definition.
  16321. (PREF_DIRECT_FILE_MAPPING): New definition.
  16322. * src/TorrentMan.h (setupDiskWriter): New function.
  16323. (setAllMultiFileRequestedState): New function.
  16324. (onDownloadComplete): New function.
  16325. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16326. (setupDiskWriter): New function.
  16327. (getFilePath): Updated.
  16328. (getTempFilePath): Updated.
  16329. (getSegmentFilePath): Updated.
  16330. (fixFilename): Updated.
  16331. (deleteTempFile): Updated.
  16332. (setAllMultiFileRequestedState): New function.
  16333. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16334. (finishPartialDownloadingMode): Reset requested flags.
  16335. (onDownloadComplete): New function.
  16336. * src/main.cc: Added --direct-file-mapping option.
  16337. Use TorrentMan::setupDiskWriter().
  16338. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16339. onDownloadComplete().
  16340. To fix ETA bug:
  16341. * src/Util.h (difftvsec): New function.
  16342. * src/Util.cc (difftvsec): New function.
  16343. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16344. type of "elapsed" instead of long long int.
  16345. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16346. The updates of statistics takes place every 1 seconds.
  16347. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16348. (calculateSpeed): Changed its argument signature.
  16349. * src/PeerMessage.cc (toString): Fixed message.
  16350. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16351. To print ETA:
  16352. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16353. completion handling when dealing with
  16354. TorrentMan::isPartialDownloadingMode() == true.
  16355. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16356. New function.
  16357. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16358. (sessionDownloadLength): New variable.
  16359. (avgSpeed): New variable.
  16360. (eta): New variable.
  16361. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16362. new variables: eta, avgSpeed, startup.
  16363. (calculateSpeed): Calculate average speed and ETA.
  16364. (printStatistics): Added ETA.
  16365. * src/Util.h (secfmt): New function.
  16366. * src/Util.cc (secfmt): New function.
  16367. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16368. To detect "keep alive" flooding:
  16369. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16370. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16371. variable: keepAliveCount.
  16372. (detectMessageFlooding): Added "keep alive" flooding detection.
  16373. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16374. received.
  16375. To add the ability to download only specified files in multi-file
  16376. torrent:
  16377. * src/BitfieldMan.h (filterBitfield): New variable.
  16378. (filterEnabled): New variable.
  16379. (setFilterBit): New function.
  16380. (enableFilter): New function.
  16381. (disableFilter): New function.
  16382. (isFilterEnabled): New function.
  16383. (getFilteredTotalLength): New function.
  16384. (getCompletedLength): New function.
  16385. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16386. filterBitfield, filterEnabled.
  16387. (CopyConstructor): Added filterBitfield and filterEnabled.
  16388. (operator==): Added filterBitfield and filterEnabled.
  16389. (Destructor): Added filterBitfield.
  16390. (getMissingIndex): Use filterBitfield.
  16391. (getMissingUnusedIndex): Use filterBitfield.
  16392. (getFirstMissingUnusedIndex): Use filterBitfield.
  16393. (getFirstMissingUnusedIndex): Use filterBitfield.
  16394. (getAllMissingIndexes): Use filterBitfield.
  16395. (countMissingBlock): Use filterBitfield.
  16396. (countBlock): Use filterBitfield.
  16397. (setBitInternal): Added new argument on.
  16398. (setUseBit): Use setBitInternal.
  16399. (unsetUseBit): Use setBitInternal.
  16400. (setBit): Use setBitInternal.
  16401. (unsetBit): Use setBitInternal.
  16402. (isAllBitSet): Use filterBitfield.
  16403. (setFilterBit): New function.
  16404. (addFilter): New function.
  16405. (enableFilter): New function.
  16406. (disableFilter): New function.
  16407. (clearFilter): New function.
  16408. (isFilterEnabled): New function.
  16409. (getFilteredTotalLength): New function.
  16410. (getCompletedLength): New function.
  16411. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16412. Initalized newly added variables.
  16413. [FileEntry](offset): New variable.
  16414. [FileEntry](extracted): New variable.
  16415. [FileEntry](requested): New variable.
  16416. (readFileEntry): New function.
  16417. (option): New variable.
  16418. (splitMultiFile): Removed const qualifier.
  16419. (fixFilename): Removed const qualifier.
  16420. (readFileEntryFromMetaInfoFile): New function.
  16421. (finishPartialDownloadingMode): New function.
  16422. (isPartialDownloadingMode): New function.
  16423. (setFileEntriesToDownload): New function.
  16424. (getCompletedLength): New function.
  16425. (getPartialTotalLength): New function.
  16426. * src/TorrentMan.cc (readFileEntry): New function.
  16427. (setup): Use readFileEntry. If no-preallocation option is specified,
  16428. use DefaultDiskWriter.
  16429. (readFileEntryFromMetaInfoFile): New function.
  16430. (fixFilename): Removed const qualifier.
  16431. (splitMultiFile): Removed const qualifier.
  16432. (setFileEntriesToDownload): New function.
  16433. (isPartialDownloadingMode): New function.
  16434. (finishPartialDownloadingMode): New function.
  16435. (getCompletedLength): New function.
  16436. (getPartialTotalLength): New function.
  16437. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16438. New variable.
  16439. (partialTotalLength): New variable.
  16440. (downloadLength): New variable.
  16441. (totalLength): New variable.
  16442. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16443. Added log.
  16444. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16445. partialTotalLength, downloadLength, totalLength.
  16446. (calculate): Calculate downloadLength and totalLength.
  16447. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16448. * src/main.cc (addCommand): Changed argument signature.
  16449. (main): Added new variable: args. Added new option "torrent-show-files"
  16450. "no-preallocation". Usage is not updated yet.
  16451. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16452. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16453. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16454. Attempt to add the ability to listing file entries in a .torrent file.
  16455. This feature is not yet complete.
  16456. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16457. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16458. (getName): New function.
  16459. * src/TorrentMan.h (getMultiFileEntries): New function.
  16460. (getName): New function.
  16461. * src/main.cc (main): Use above 2 funtion.
  16462. * Release 0.3.2
  16463. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16464. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16465. (detectMessageFlooding): Updated threshold value.
  16466. (checkLongTimePeerChoking): Updated timeout value.
  16467. (getNewPieceAndSendInterest): Added debug log.
  16468. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16469. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16470. (getPeer): Updated.
  16471. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16472. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16473. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16474. is localhost.
  16475. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16476. * src/PendingMessage.cc (processMessage): Not to send piece message
  16477. if peer is not interested in the pieces localhost has.
  16478. * src/Peer.cc (shouldChoke): Updated.
  16479. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16480. * src/Util.cc (isPowerOf): New function.
  16481. * src/Util.h (isPowerOf): New function.
  16482. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16483. whether or not it is power of 2.
  16484. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16485. Added new class SendMessageQueue that includes PendingMessages and
  16486. RequestSlotMan.
  16487. * src/SendMessageQueue.h: New class.
  16488. * src/SendMessageQueue.cc: New class.
  16489. * src/PendingMessage.h: Added new member variable blockIndex and its
  16490. accessors.
  16491. (createRequestMessage): Updated.
  16492. * src/PendingMessage.cc (createRequestMessage): Updated.
  16493. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16494. SendMessageQueue.
  16495. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16496. (receiveMessage): Updated with SendMessageQueue.
  16497. (deletePendingPieceMessage): Removed.
  16498. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16499. (sendInterest): Updated with SendMessageQueue.
  16500. (createRequestPendingMessage): Updated with SendMessageQueue.
  16501. (sendMessages): Updated with SendMessageQueue.
  16502. (onAbort): Updated with SendMessageQueue.
  16503. (keepAlive): Updated with SendMessageQueue.
  16504. (beforeSocketCheck): Updated SendMessageQueue.
  16505. * src/PeerInteractionCommand (sendMessages): Shuffle
  16506. missingBLockIndexes before using it.
  16507. Added its own timeout for peer connection.
  16508. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16509. setter.
  16510. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16511. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16512. Added setTimeout() call.
  16513. (executeInternal): Added setTimeout() call.
  16514. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16515. Added timeout.
  16516. (isTimeoutDetected): Updated.
  16517. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16518. option.
  16519. Added *simple* message flooding checker.
  16520. * src/PeerInteractionCommand.cc (executeInternal):
  16521. Added detectMessageFlooding() call.
  16522. (detectMessageFlooding): New function.
  16523. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16524. (beforeSocketCheck): Added detectMessageFlooding() call.
  16525. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16526. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16527. Removed deletePendingPieceMessage(), getRequestSlot(),
  16528. deleteRequestSlot(), deleteAllRequestSlot().
  16529. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16530. Added checkLongTimePeerChoking() call.
  16531. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16532. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16533. if duplicate == false.
  16534. The parameter "uploaded" and "downloaded" in the tracker request are
  16535. the size since the client sent the "started" event to the tracker.
  16536. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16537. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16538. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16539. getSessionDownloadedSize(), getSessionUploadedSize().
  16540. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16541. getSessionUploadedSize() instead of getDownloadedSize(),
  16542. getUploadedSize().
  16543. * src/PendingMessage.cc (processMessage): Do not send request message
  16544. if the peer is choking the client.
  16545. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16546. less than interval.
  16547. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16548. * configure.in: Added gnutls support. Added several CPP macros.
  16549. * m4/openssl.m4: Added.
  16550. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16551. readData(), peekData(). Added gnutls support.
  16552. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16553. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16554. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16555. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16556. Instead, added a check for whether setup method has executed
  16557. successfully.
  16558. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16559. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16560. * src/Makefile.am: Updated.
  16561. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16562. using whether OpenSSL or gcrypt, depending on the result of configure
  16563. script.
  16564. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16565. messageDigest.h.
  16566. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16567. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16568. Fixed memory leak.
  16569. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16570. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16571. Removed instantiation of TrackerInitCommand. Instead,
  16572. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16573. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16574. ENABLE_SSL.
  16575. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16576. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16577. If a piece is already acquired by another command, delete the request
  16578. slots for the piece.
  16579. * src/TrackerUpdateCommand.cc (execute):
  16580. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16581. Added a check whether peer list is null.
  16582. Fixed the bug that causes sending completed event to the tracker
  16583. several times.
  16584. * src/TrackerInitCommand.cc (execute):
  16585. Fixed the bug that causes sending completed event to the tracker
  16586. several times.
  16587. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16588. by using messageDigest.h.
  16589. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16590. * PeerConnection.cc: Replaced log message "keep-alive" with
  16591. "keep alive".
  16592. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16593. localhost long time.
  16594. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16595. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16596. at most 100 failure entry from the list. If with duplicate = false,
  16597. MAX_PEER_LIST is not checked.
  16598. * PeerListenCommand.cc: Fixed the argument order of log message.
  16599. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16600. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16601. Added warn().
  16602. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16603. Implemented warn().
  16604. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16605. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16606. * Request.h: Added AFTER_COMPLETED event.
  16607. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16608. instead of downloaded size and progress(%) after download completes.
  16609. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16610. message to the peer if it is interested in what localhost has
  16611. downloaded.
  16612. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16613. destination instead of just renaming it.
  16614. * TorrentMan.cc: Added deleteTempFile().
  16615. * PeerAbstractCommand.cc: do not stop execution after download
  16616. completes. This makes localhost a seeder.
  16617. * Util.{h,cc}: Added fileCopy().
  16618. * PeerListenCommand.cc: do not stop execution after download completes.
  16619. This makes localhost a seeder.
  16620. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16621. Added TorrentMan::deleteTempFile() to torrentHandler.
  16622. Initialized the variable dir as ".".
  16623. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16624. Deleted renameSingleFile().
  16625. Added copySingleFile(), deleteTempFile().
  16626. * DownloadEngine.h: Added virtual function afterEachIteration().
  16627. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16628. in onEndOfRun() to afterEachIteration().
  16629. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16630. true.
  16631. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16632. In rangedFileCopy(), added try-catch block to properly close file
  16633. descriptors.
  16634. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16635. Added afterEachIteration(), isFilenameFixed().
  16636. * Peer.cc: Changed choking strategy.
  16637. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16638. * TrackerInitCommand.cc: Send completed event only once.
  16639. * DownloadEngine.cc: Added a call to afterEachIteration().
  16640. * TrackerUpdateCommand.cc: Do not stop execution after download
  16641. completes.
  16642. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16643. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16644. received from a tracker.
  16645. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16646. Decreased the number of failure peers to delete to 0(just comment out
  16647. the line).
  16648. * Release 0.3.1
  16649. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16650. * PeerInteractionCommand.cc: added a call to
  16651. TorrentMan::unadvertisePiece in Destructor.
  16652. * PeerInteractionCommand.cc: make have message sent immediately
  16653. if the size of pending message queue is zero.
  16654. * TorrentMan.cc: set the maximum size of peer list to 250.
  16655. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16656. to deque.
  16657. * Util.cc: fixed rangedFileCopy.
  16658. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16659. to Constructor. Also, moved digest cleanup to Destructor.
  16660. * MetaFileUtil.cc: fixed memory leak
  16661. * replaced std::vector with std::deque.
  16662. * AbstractCommand.cc: casted timeout value to long long int.
  16663. * ChunkedEncoding.cc: fixed memory leak.
  16664. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16665. * SleepCommand.cc: casted timeout value to long long int.
  16666. * Data.cc: fixed memory leak.
  16667. * Data.cc: fixed toLLInt().
  16668. * BitfieldMan.cc: fixed memory leak.
  16669. * TorrentMan.cc: initialized storeDir to ".".
  16670. * TorrentMan.cc: fixed memory leak.
  16671. * TorrentMan.cc: corrected file paths of splitted files.
  16672. * PeerAbstractCommand.cc: casted timeout to long long int.
  16673. * main.cc: added delete(req) and delete(te->diskWriter).
  16674. * RequestSlot.cc: casted timeout value to long long int.
  16675. * Request.cc: fixed memory leak.
  16676. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16677. have the piece.
  16678. * Peer.{h,cc}: added hasPiece(int index).
  16679. * main.cc: corrected addCommand.
  16680. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16681. * BitTorrent protocol support added.
  16682. * Release 0.3.0
  16683. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16684. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16685. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16686. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16687. decoding did not work properly.
  16688. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16689. * DownloadEngine.h: included sys/time.h
  16690. * DownloadEngine.cc: remove sys/time.h
  16691. * Makefile.am (SUBDIRS): Add intl.
  16692. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16693. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16694. * main.cc: correct help message for --http-auth-scheme.
  16695. * main.cc: changed e-mail address for bug reports.
  16696. * ja.po: added japanese translation.
  16697. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16698. * SimpleLogger.cc: flush log file instead of stdout.
  16699. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16700. * main.cc: Fixed command-line option: max-tries
  16701. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16702. does not equal to seg.sp.
  16703. * DownloadCommand.cc: If EOF is got from the server and the total size
  16704. of file is not zero, then throw DlRetryEx.
  16705. * main.cc: Set the minium value of min-segment-size to 1024.
  16706. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16707. fails because of a regression since 0.2.0 release.
  16708. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16709. * HttpConnection.cc:
  16710. * common.h: defined the user agent name as macro
  16711. * DownloadEngine.{h, cc}:
  16712. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16713. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16714. * main.cc: Download complete/abort message is now generated by main.
  16715. * Makefile.am (SUBDIRS): Add m4.
  16716. (ACLOCAL_AMFLAGS): New variable.
  16717. (EXTRA_DIST): New variable.
  16718. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16719. * gettext: added gettext functionality
  16720. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16721. * AbstractCommand.cc:
  16722. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16723. unregister its cuid from SegmentMan.
  16724. * DownloadEngine.cc: .aria2 file was written when a downloading
  16725. failed with errors.
  16726. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16727. Added "User-Agent" header to CONNECT proxy request.
  16728. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16729. properly.
  16730. * Logger.h:
  16731. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16732. * ChunkedEncoding.cc: Added #include directive for strings.h
  16733. * Release 0.2.1
  16734. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16735. * Util.{h,cc}: added startsWith().
  16736. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16737. Util::endsWith().
  16738. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16739. * common.h: added #include directive of limit.h.
  16740. * DownloadEngine.cc: added #include directive of sys/time.h and
  16741. algorithm.
  16742. * Exception.h: added #include directive of stdio.h.
  16743. * AbstractCommand.h: added #include directive of sys/time.h.
  16744. * DownloadCommand.h: added #include directive of sys/time.h.
  16745. * *.h: added #include directive of common.h to all base classes.
  16746. subclasses' one was removed.
  16747. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16748. does not define these macros.
  16749. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16750. * Release 0.2.0
  16751. * main.cc:
  16752. * HttpInitiateConnectionCommand.{h,cc}:
  16753. * prefs.h:
  16754. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16755. We can now use GET command in http proxy.
  16756. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16757. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16758. that splits slowest segment of SegmentMan::commands vector.
  16759. This is the default split algorithm of aria2.
  16760. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16761. that splits first segment of SegmentMan::commands vector.
  16762. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16763. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16764. * Segment.h:
  16765. * SegmentMan.cc: Added speed field to Segment.h
  16766. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16767. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16768. * message.h: Change file size related %d to %lld.
  16769. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16770. * FtpInitiateConnectionCommand.{h,cc}:
  16771. * FtpNegotiationCommand.{h,cc}:
  16772. * FtpDownloadCommand.{h,cc}:
  16773. * FtpConnection.{h,cc}: Added FTP support
  16774. * SimpleLogger.cc: Log message now includes time information.
  16775. * main.cc: The value of --http-auth-scheme option is chagned from
  16776. 'BASIC' to 'basic'
  16777. * main.cc: Added --timeout command-line option.
  16778. * main.cc: Added --min-segment-size command-line option.
  16779. * main.cc: Added --max-retries command-line option.
  16780. * prefs.h: option string constants are now defined in prefs.h
  16781. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16782. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16783. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16784. with version 0.1.0's one.
  16785. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16786. * configure.in: Added --enable-ssl option to configure script.
  16787. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16788. cannot permit absoluteURI as Request-URI.
  16789. * HttpConnection.cc: Added Referer support.
  16790. * main.cc: Added referer command-line option.
  16791. * main.cc: Added rety-wait command-line option.
  16792. * Exception.h: Fixed formating bug in Exception::setMsg()
  16793. * SocketCore.{h,cc}:
  16794. * Socket.{h, cc}:
  16795. * Request.cc:
  16796. * InitiateConnectionCommandFactory.cc:
  16797. * HttpRequestCommand.cc: Added HTTPS support.
  16798. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16799. for SocketCore.
  16800. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16801. size is wrong
  16802. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16803. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16804. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16805. * Release 0.1.0