ChangeLog 625 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030
  1. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added --install to ACLOCAL_AMFLAGS.
  3. Removed m4 from SUBDIRS.
  4. Updated automake 1.11 and autoconf 2.64.
  5. Replaced some obsolute macros with new one.
  6. * Makefile.am
  7. * configure.ac
  8. * m4/aria2_arg.m4
  9. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Removed Makefile.am in m4 directory.
  11. * configure.ac
  12. * m4/ChangeLog
  13. * m4/Makefile.am
  14. * m4/Makefile.in
  15. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Removed unused m4 macros.
  17. * m4/intldir.m4
  18. * m4/inttypes.m4
  19. * m4/isc-posix.m4
  20. * m4/libgnutls-extra.m4
  21. * m4/ulonglong.m4
  22. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Fixed the bug that causes segmentation fault if
  24. req->getCurrentUrl() contains printf formatting characters such as
  25. %d. The statement that causes this bug is useless and removed.
  26. * src/AbstractCommand.cc
  27. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. * Release 1.6.1
  29. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Updated Simplified Chinese translation. Thanks to translators.
  31. * po/zh_CN.po
  32. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Updated translation template
  34. * po
  35. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Bump up version number to 1.6.1
  37. * configure.ac
  38. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Changed interval from 120 to 60 for dropping inactive peer.
  40. * src/DefaultBtInteractive.cc
  41. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Updated man page for --user-agent and --peer-id-prefix option.
  43. * doc/aria2c.1.txt
  44. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Code clean up
  46. * src/BtPostDownloadHandler.cc
  47. * src/ContentTypeRequestGroupCriteria.cc
  48. * src/ContentTypeRequestGroupCriteria.h
  49. * src/DownloadHandlerConstants.cc
  50. * src/DownloadHandlerConstants.h
  51. * src/DownloadHandlerFactory.cc
  52. * src/MetalinkPostDownloadHandler.cc
  53. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Don't save control file when aria2 exists while checking piece
  55. hash(behavior of -V option). If control file doesn't exist when
  56. aria2 launched, the completed length in saved control file will be
  57. 0 byte and this confuses user. disableSaveControlFile() is called
  58. in RequestGroup::processCheckIntegrityEntry().
  59. enableSaveControlFile() will be called after hash checking is
  60. done. See CheckIntegrityCommand.
  61. * src/CheckIntegrityCommand.cc
  62. * src/RequestGroup.cc
  63. * src/RequestGroup.h
  64. * src/RequestGroupMan.cc
  65. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Included version number in Peer ID and client version. Peer ID
  67. now starts with "aria2/VERSION-", where VERSION is
  68. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  69. * src/DefaultBtInteractive.cc
  70. * src/OptionHandlerFactory.cc
  71. * src/bittorrent_helper.cc
  72. * src/bittorrent_helper.h
  73. * src/main.cc
  74. * src/usage_text.h
  75. * test/BittorrentHelperTest.cc
  76. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Fixed memory leak.
  78. * src/DownloadCommand.cc
  79. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Removed server, port, user and passwd key from options before
  81. XMLRPC::Client.call since they are not options of aria2.
  82. * doc/xmlrpc/aria2mon
  83. * doc/xmlrpc/aria2rpc
  84. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Included version number in user-agent string.
  86. * src/OptionHandlerFactory.cc
  87. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Fixed the bug that the option values changed by XML-RPC
  89. method(changeOption and changeGlobalOption) are overwritten to the
  90. previous value by the next these request which doesn't contain
  91. that option value. Supporse max-download-limit is initially 0. You
  92. changed this value to 100K by changeOption. Then you issue
  93. changeOption request to change max-upload-limit to 50K. This
  94. second request doesn't contain xml-download-limit, so it is back
  95. to initial value, 0. Another improvement is that exception is
  96. thrown when changeOption and changeGlobalOption request contains
  97. option name which doesn't allowed in each request.
  98. * src/DownloadEngine.h
  99. * src/XmlRpcMethod.cc
  100. * src/XmlRpcMethod.h
  101. * src/XmlRpcMethodImpl.cc
  102. * src/download_helper.cc
  103. * src/download_helper.h
  104. * test/XmlRpcMethodTest.cc
  105. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added missing MetalinkParserStateImpl.{cc,h}
  107. * src/MetalinkParserStateImpl.cc
  108. * src/MetalinkParserStateImpl.h
  109. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Put all MetalinkParserState subclasses into
  111. MetalinkParserStateImpl.cc. Use stack to track element structure.
  112. * src/FileMetalinkParserState.cc: Removed
  113. * src/FileMetalinkParserState.h: Removed
  114. * src/FilesMetalinkParserState.cc: Removed
  115. * src/FilesMetalinkParserState.h: Removed
  116. * src/FinMetalinkParserState.cc: Removed
  117. * src/FinMetalinkParserState.h: Removed
  118. * src/HashMetalinkParserState.cc: Removed
  119. * src/HashMetalinkParserState.h: Removed
  120. * src/InitialMetalinkParserState.cc: Removed
  121. * src/InitialMetalinkParserState.h: Removed
  122. * src/LanguageMetalinkParserState.cc: Removed
  123. * src/LanguageMetalinkParserState.h: Removed
  124. * src/Makefile.am
  125. * src/MetalinkMetalinkParserState.cc: Removed
  126. * src/MetalinkMetalinkParserState.h: Removed
  127. * src/MetalinkParserState.h
  128. * src/MetalinkParserStateMachine.cc
  129. * src/MetalinkParserStateMachine.h
  130. * src/OSMetalinkParserState.cc: Removed
  131. * src/OSMetalinkParserState.h: Removed
  132. * src/PieceHashMetalinkParserState.cc: Removed
  133. * src/PieceHashMetalinkParserState.h: Removed
  134. * src/PiecesMetalinkParserState.cc: Removed
  135. * src/PiecesMetalinkParserState.h: Removed
  136. * src/ResourcesMetalinkParserState.cc: Removed
  137. * src/ResourcesMetalinkParserState.h: Removed
  138. * src/SignatureMetalinkParserState.cc: Removed
  139. * src/SignatureMetalinkParserState.h: Removed
  140. * src/SizeMetalinkParserState.cc: Removed
  141. * src/SizeMetalinkParserState.h: Removed
  142. * src/SkipTagMetalinkParserState.cc: Removed
  143. * src/SkipTagMetalinkParserState.h: Removed
  144. * src/URLMetalinkParserState.cc: Removed
  145. * src/URLMetalinkParserState.h: Removed
  146. * src/VerificationMetalinkParserState.cc: Removed
  147. * src/VerificationMetalinkParserState.h: Removed
  148. * src/VersionMetalinkParserState.cc: Removed
  149. * src/VersionMetalinkParserState.h: Removed
  150. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Move all functions in PeerMessageUtil to bittorrent_helper.
  152. * src/BtBitfieldMessage.cc
  153. * src/BtBitfieldMessageValidator.h
  154. * src/BtExtendedMessage.cc
  155. * src/BtHandshakeMessage.cc
  156. * src/BtHandshakeMessageValidator.h
  157. * src/BtPieceMessage.cc
  158. * src/BtPieceMessageValidator.h
  159. * src/BtPortMessage.cc
  160. * src/DHTFindNodeReplyMessage.cc
  161. * src/DHTGetPeersReplyMessage.cc
  162. * src/DHTMessageFactoryImpl.cc
  163. * src/DHTRoutingTableDeserializer.cc
  164. * src/DHTRoutingTableSerializer.cc
  165. * src/DHTTokenTracker.cc
  166. * src/DefaultBtMessageFactory.cc
  167. * src/IndexBtMessage.cc
  168. * src/IndexBtMessage.h
  169. * src/IndexBtMessageValidator.h
  170. * src/Makefile.am
  171. * src/PeerMessageUtil.cc: Removed.
  172. * src/PeerMessageUtil.h: Removed.
  173. * src/RangeBtMessage.cc
  174. * src/RangeBtMessage.h
  175. * src/RangeBtMessageValidator.h
  176. * src/UTPexExtensionMessage.cc
  177. * src/ZeroBtMessage.cc
  178. * src/ZeroBtMessage.h
  179. * src/bittorrent_helper.cc
  180. * src/bittorrent_helper.h
  181. * test/BittorrentHelperTest.cc
  182. * test/BtAllowedFastMessageTest.cc
  183. * test/BtBitfieldMessageTest.cc
  184. * test/BtCancelMessageTest.cc
  185. * test/BtChokeMessageTest.cc
  186. * test/BtExtendedMessageTest.cc
  187. * test/BtHandshakeMessageTest.cc
  188. * test/BtHaveAllMessageTest.cc
  189. * test/BtHaveMessageTest.cc
  190. * test/BtHaveNoneMessageTest.cc
  191. * test/BtInterestedMessageTest.cc
  192. * test/BtNotInterestedMessageTest.cc
  193. * test/BtPieceMessageTest.cc
  194. * test/BtPortMessageTest.cc
  195. * test/BtRejectMessageTest.cc
  196. * test/BtRequestMessageTest.cc
  197. * test/BtSuggestPieceMessageTest.cc
  198. * test/BtUnchokeMessageTest.cc
  199. * test/DHTFindNodeReplyMessageTest.cc
  200. * test/DHTGetPeersReplyMessageTest.cc
  201. * test/DHTMessageFactoryImplTest.cc
  202. * test/DHTRoutingTableDeserializerTest.cc
  203. * test/DHTRoutingTableSerializerTest.cc
  204. * test/DefaultBtMessageFactoryTest.cc
  205. * test/DefaultExtensionMessageFactoryTest.cc
  206. * test/Makefile.am
  207. * test/PeerListProcessorTest.cc
  208. * test/PeerMessageUtilTest.cc: Removed.
  209. * test/UTPexExtensionMessageTest.cc
  210. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Limit the size of values list when sending get_peers reply.
  212. * src/DHTGetPeersReplyMessage.cc
  213. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Updated banner
  215. * doc/xmlrpc/aria2rpc
  216. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Added missing help message for remove command.
  218. * doc/xmlrpc/aria2rpc
  219. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Generated configure and config.h.in
  221. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  222. Add check for fork(), which is missing on MinGW
  223. * src/daemon.cc
  224. * configure.ac
  225. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  227. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  228. Util::httpGMT().
  229. * src/Util.cc
  230. * src/Util.h
  231. * test/UtilTest.cc
  232. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. * Release 1.6.0
  234. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Fixed a path to xmlrpc/README.txt
  236. * doc/Makefile.am
  237. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Added XML-RPC in -v Configuration output.
  239. * src/FeatureConfig.cc
  240. * src/FeatureConfig.h
  241. * test/FeatureConfigTest.cc
  242. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Updated Bulgarian, Russian, Slovak and Japanese
  244. translations. Thanks to all translators.
  245. * po/bg.po
  246. * po/ja.po
  247. * po/ru.po
  248. * po/sk.po
  249. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Removed --retry-wait option from aria2rpc
  251. * doc/xmlrpc/aria2rpc
  252. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Removed --retry-wait option from man page.
  254. * doc/aria2c.1.txt
  255. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Removed --retry-wait option since the current architecture doesn't
  257. allow sleep for particular URI.
  258. * src/AbstractCommand.cc
  259. * src/OptionHandlerFactory.cc
  260. * src/download_helper.cc
  261. * src/prefs.cc
  262. * src/prefs.h
  263. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Removed Retry-After header support. Since the current architecture
  265. doesn't allow sleep for particular URI.
  266. * src/HttpSkipResponseCommand.cc
  267. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Updated the help message for --daemon option.
  269. * doc/aria2c.1.txt
  270. * src/usage_text.h
  271. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Added our own daemon() function for systems which desn't have
  273. daemon(3).
  274. * configure.ac
  275. * src/Makefile.am
  276. * src/daemon.cc
  277. * src/daemon.h
  278. * src/option_processing.cc
  279. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Simplified File::getCurrentDir()
  281. * src/File.cc
  282. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Use exit() instead of _exit
  284. * src/RequestGroupMan.cc
  285. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Replaced "CATEGORY" with "TAGS".
  287. * src/usage_text.h
  288. * doc/aria2c.1.txt
  289. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Updated the help message for --help option.
  291. * src/usage_text.h
  292. * doc/aria2c.1.txt
  293. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Updated man page for added help tags.
  295. * doc/aria2c.1.txt
  296. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Added help category #file. Added #file tag to the options related
  298. to downloaded file.
  299. * src/OptionHandlerFactory.cc
  300. * src/help_tags.h
  301. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Added help categories: #cookie and #hook. Added #https tag to
  303. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  304. * src/OptionHandlerFactory.cc
  305. * src/help_tags.h
  306. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Made MSG_NOT_FILE translatable.
  308. * src/message.h
  309. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Updated man page for --help option.
  311. * doc/aria2c.1.txt
  312. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Updated doc.
  314. * src/XmlRpcMethod.h
  315. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Help category now starts with "#" to distinguish a category from
  317. keyword search. For example, "http" categroy is now "#http". You
  318. can type "--help=#http" to get explanation of options related to
  319. http. If '#' is omitted, then the argument is treated as a keyword
  320. and aria2 searches options whose name includes the keyword and
  321. print matched ones. For example, "--help=http" will show options
  322. whose name includes "http".
  323. * src/OptionHandlerFactory.cc
  324. * src/help_tags.h
  325. * src/usage_text.h
  326. * src/version_usage.cc
  327. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Documented missing experimental tag and newly added xml-rpc tag in
  329. man page.
  330. * doc/aria2c.1.txt
  331. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Added xml-rpc help tag. Tagged xml-rpc related options with
  333. xml-rpc tag.
  334. * src/OptionHandlerFactory.cc
  335. * src/help_tags.h
  336. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Updated message when a path is not a file. Updated common message
  338. for wrong option.
  339. * src/OptionHandlerException.cc
  340. * src/message.h
  341. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Use File::isFile() instead of File::exists(). Updated message when
  343. a path is not a file.
  344. * src/OptionHandlerImpl.cc
  345. * src/message.h
  346. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Fixed the bug that server performence profile is not updated when
  348. aria2c was terminated by emergency shutdown.
  349. * src/TrackerWatcherCommand.cc
  350. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Use LocalFilePathOptionHandler for -T and -M option.
  352. Updated message of MSG_FILE_NOT_EXIST.
  353. * src/OptionHandlerFactory.cc
  354. * src/message.h
  355. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Added LocalFilePathOptionHandler which check whether the specified
  357. file path does exist or not.
  358. * src/OptionHandlerImpl.cc
  359. * src/message.h
  360. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Updated wiki page URI.
  362. * README
  363. * doc/aria2c.1.txt
  364. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Added README.txt for xmlrpc directory.
  366. * doc/Makefile.am
  367. * doc/xmlrpc/README.txt
  368. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Bump up version number to 1.6.0.
  370. * configure.ac
  371. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Added XML-RPC client scripts written in ruby.
  373. * doc/Makefile.am
  374. * doc/xmlrpc/aria2mon
  375. * doc/xmlrpc/aria2rpc
  376. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Added support for IPv6 literal address in URI. Now aria2 can
  378. handle URI such as http://[::1]/
  379. * src/HttpRequest.cc
  380. * src/HttpRequest.h
  381. * src/Request.cc
  382. * src/Request.h
  383. * test/HttpRequestTest.cc
  384. * test/OptionHandlerTest.cc
  385. * test/RequestTest.cc
  386. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Fixed the bug that HTTP request header for XML-RPC request is not
  388. parsed properly.
  389. * src/HttpHeader.cc
  390. * src/HttpHeaderProcessor.cc
  391. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Fixed the bug that XML-RPC authorization might be done before HTTP
  393. request header is fully received.
  394. * src/HttpServerCommand.cc
  395. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Documented --xml-rpc-listen-all option in man page.
  397. * doc/aria2c.1.txt
  398. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Added --xml-rpc-listen-all option. If true is given to this
  400. option, aria2 listens incoming XML-RPC requests on all network
  401. interfaces. If false is given, listens only on local loopback
  402. interface. The default value is false.
  403. * src/HttpListenCommand.cc
  404. * src/OptionHandlerFactory.cc
  405. * src/SocketCore.cc
  406. * src/SocketCore.h
  407. * src/prefs.cc
  408. * src/prefs.h
  409. * src/usage_text.h
  410. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. * Release 1.5.2
  412. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Updated Ukrainian and Russian translations. Thanks to all
  414. translators.
  415. * po/ru.po
  416. * po/uk.po
  417. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Bump up version number to 1.5.2
  419. * configure.ac
  420. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Get comment, comment.utf-8, created by and creation date from
  422. .torrent file and print them in -S output.
  423. * src/bittorrent_helper.cc
  424. * src/bittorrent_helper.h
  425. * test/BittorrentHelperTest.cc
  426. * test/test.torrent
  427. * test/utf8.torrent
  428. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Show exact file size along in -S option output.
  430. * src/Util.h
  431. * src/bittorrent_helper.cc
  432. * test/UtilTest.cc
  433. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Avoided unnecessary memory allocation in
  435. BitfieldMan::getCompletedLength().
  436. * src/BitfieldMan.cc
  437. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Fixed the bug that download fails if
  439. SocketCore::establishConnection() throws exception and aria2
  440. doesn't try another address.
  441. * src/AbstractCommand.cc
  442. * src/InitiateConnectionCommand.cc
  443. * src/message.h
  444. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  446. detected properly.
  447. * m4/sqlite3.m4
  448. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  450. because it causes compile error if PARAMS macro is defined.
  451. * src/XmlRpcElements.cc
  452. * src/XmlRpcElements.h
  453. * src/XmlRpcRequestParserStateImpl.cc
  454. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. * Release 1.5.1
  456. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Bump up version number to 1.5.1
  458. * configure.ac
  459. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Fixed compile error without BitTorrent support
  461. * src/DefaultBtProgressInfoFile.cc
  462. * src/DownloadEngine.cc
  463. * src/DownloadEngine.h
  464. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Added missing '=' in Download Results
  466. * src/RequestGroupMan.cc
  467. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Fixed compiler warning
  469. * src/DefaultBtProgressInfoFile.cc
  470. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Fixed compiler warning on 32bit systems.
  472. * src/DownloadCommand.cc
  473. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Call flush from ServerStatMan::save()
  475. * src/ServerStatMan.cc
  476. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Check stream status after file is opened.
  478. * src/CookieStorage.cc
  479. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Rewritten Signature::save()
  481. * src/Signature.cc
  482. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Rewritten RequestGroupMan::saveServerStat()
  484. * src/RequestGroupMan.cc
  485. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Rewritten stream error handling
  487. * src/DHTAutoSaveCommand.cc
  488. * src/DHTRoutingTableDeserializer.cc
  489. * src/DHTRoutingTableSerializer.cc
  490. * src/DHTSetup.cc
  491. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Check stream status after file is opened.
  493. * src/DefaultBtProgressInfoFile.cc
  494. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Rewritten stream error handling
  496. * src/DefaultBtProgressInfoFile.cc
  497. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Make sure that stream is closed before renaming file. Unit test
  499. fails on mingw32 in the previous implementation.
  500. * src/CookieStorage.cc
  501. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Fixed the unit test error without sqlite3
  503. * test/CookieStorageTest.cc
  504. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Fixed the undefined reference error
  506. * test/HttpResponseTest.cc
  507. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. * Release 1.5.0
  509. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  511. Ukrainian translations. Thanks to all translators.
  512. * po/ru.po
  513. * po/it.po
  514. * po/da.po
  515. * po/bg.po
  516. * po/ja.po
  517. * po/uk.po
  518. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Added missing src/Logger.cc
  520. * src/Logger.cc
  521. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Rewritten Logger to avoiding constly virtual call.
  523. * src/LogFactory.cc
  524. * src/LogFactory.h
  525. * src/Logger.h
  526. * src/Makefile.am
  527. * src/Makefile.in
  528. * src/NullLogger.h: Removed.
  529. * src/SimpleLogger.cc
  530. * src/SimpleLogger.h
  531. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Updated doc
  533. * src/main.cc
  534. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Updated debug log message
  536. * src/AbstractCommand.cc
  537. * src/message.h
  538. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Avoid to create zombie process when commands specified in
  540. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  541. X and NetBSD.
  542. * src/main.cc
  543. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Fixed typo
  545. * src/usage_text.h
  546. * doc/aria2c.1.txt
  547. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Documented 'errorCode' of tellStatus in man page.
  549. * doc/aria2c.1.txt
  550. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  552. This key is only available for stopped/completed downloads and its
  553. value is the error code defined in EXIT STATUS in man page.
  554. * src/XmlRpcMethodImpl.cc
  555. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Fixed the bug that session download length is not updated when
  557. PeerStat is not fastest one.
  558. * src/SegmentMan.cc
  559. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Updated doc.
  561. * doc/aria2c.1.txt
  562. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Updated doc.
  564. * src/AbstractCommand.cc
  565. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Handle the case when DownloadContext has no FileEntry.
  567. * src/XmlRpcMethodImpl.cc
  568. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Handle the situation where struct option.name is char *.
  570. * configure.ac
  571. * src/OptionParser.cc
  572. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Code cleanup
  574. * src/AbstractCommand.cc
  575. * src/DownloadCommand.cc
  576. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Use option of each download to create AuthConfig instead of global
  578. option.
  579. * src/AuthConfigFactory.cc
  580. * src/AuthConfigFactory.h
  581. * src/FtpNegotiationCommand.cc
  582. * src/HttpRequest.cc
  583. * src/HttpRequest.h
  584. * src/HttpRequestCommand.cc
  585. * src/HttpSkipResponseCommand.cc
  586. * src/MultiUrlRequestInfo.cc
  587. * test/AuthConfigFactoryTest.cc
  588. * test/FtpConnectionTest.cc
  589. * test/HttpRequestTest.cc
  590. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Don't call prepareForRetry(1) if all segments are ignored in
  592. SegmentMan.
  593. * src/AbstractCommand.cc
  594. * src/BitfieldMan.cc
  595. * src/BitfieldMan.h
  596. * src/SegmentMan.cc
  597. * src/SegmentMan.h
  598. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Removed FileEntry::getAssociatedUris()
  600. * src/FileEntry.h
  601. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Updated doc: TODO1.5 -> TODO
  603. * src/FileEntry.cc
  604. * src/HttpResponseCommand.cc
  605. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Added assertion fileEntries.size() == 1 if BitTorrent is not
  607. involved.
  608. * src/RequestGroup.cc
  609. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Eliminated duplicated filterBitfield initialization code.
  611. * src/BitfieldMan.cc
  612. * src/BitfieldMan.h
  613. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  615. relatively naive approach, though). For DownloadFailureException,
  616. we handle the case when req is null properly.
  617. * src/AbstractCommand.cc
  618. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Added function returning suffix of control file to
  620. DefaultBtProgressInfoFile.
  621. * src/DefaultBtProgressInfoFile.cc
  622. * src/DefaultBtProgressInfoFile.h
  623. * src/RequestGroup.cc
  624. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Documented getVersion in man page.
  626. * doc/aria2c.1.txt
  627. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Documented type of offset and num for tellWaiting xml-rpc method.
  629. * doc/aria2c.1.txt
  630. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Implemented getVersion xml-rpc method. This method returns struct
  632. which has 2 key-value pairs: "version" key is associated to the
  633. version of aria2, such as "1.5.0". "enabledFeatures" key is
  634. associated to the list of enabled features, such as "Async DNS",
  635. "BitTorrent".
  636. * src/FeatureConfig.h
  637. * src/XmlRpcMethodFactory.cc
  638. * src/XmlRpcMethodImpl.cc
  639. * src/XmlRpcMethodImpl.h
  640. * test/XmlRpcMethodTest.cc
  641. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Removed TLS1.1 protocol support when aria2 is built with gnutls
  643. for compatibility issue.
  644. * src/SocketCore.cc
  645. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Fixed compile error with openSSL
  647. * src/bittorrent_helper.cc
  648. * src/messageDigest.h
  649. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Removed bad code: setting certificate type priority to key
  651. exchange priority.
  652. * src/SocketCore.cc
  653. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Disconnect seeder if client is also in seed state.
  655. * src/BtBitfieldMessage.cc
  656. * src/BtHaveAllMessage.cc
  657. * src/BtHaveMessage.cc
  658. * src/message.h
  659. * test/BtBitfieldMessageTest.cc
  660. * test/BtHaveAllMessageTest.cc
  661. * test/BtHaveMessageTest.cc
  662. * test/MockPieceStorage.h
  663. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Keep CreateRequestCommand in queue when no segment is available so
  665. that they can pick up pieces which slow BitTorrent peers are
  666. downloading.
  667. * src/AbstractCommand.cc
  668. * src/CreateRequestCommand.cc
  669. * src/CreateRequestCommand.h
  670. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. --bt-stop-timeout now only checks download speed.
  672. * src/BtStopDownloadCommand.cc
  673. * src/BtStopDownloadCommand.h
  674. * src/BtSetup.cc
  675. * src/usage_text.h
  676. * doc/aria2c.1.txt
  677. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Fixed compile error regarding BUFSIZE.
  679. * src/DownloadCommand.cc
  680. * src/DownloadCommand.h
  681. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Documented tellWaiting xml-rpc method in man page.
  683. * doc/aria2c.1.txt
  684. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Bump up version number to 1.5.0
  686. * configure.ac
  687. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Removed resolved TODO1.5
  689. * src/AbstractCommand.cc
  690. * src/DownloadCommand.cc
  691. * src/RequestGroup.cc
  692. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Release pooled and in-flight Request objectsand URIResult objects
  694. in FileEntry after download completed.
  695. * src/DownloadContext.cc
  696. * src/DownloadContext.h
  697. * src/FileEntry.cc
  698. * src/FileEntry.h
  699. * src/RequestGroup.cc
  700. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Set manual and source attribute in aria2c.1.txt
  702. * doc/aria2c.1.txt
  703. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Documented that the default value of --use-head is 'false' in man
  705. page.
  706. * doc/aria2c.1.txt
  707. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Added bt-stop-timeout option to -i list.
  709. * doc/aria2c.1.txt
  710. * src/download_helper.cc
  711. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Fixed typo
  713. * doc/aria2c.1.txt
  714. * src/usage_text.h
  715. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Removed peer-id-prefix option from -i list.
  717. * doc/aria2c.1.txt
  718. * src/download_helper.cc
  719. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Fixed typo
  721. * doc/aria2c.1.txt
  722. * src/usage_text.h
  723. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Documented --bt-stop-timeout option in man page.
  725. * doc/aria2c.1.txt
  726. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Updated README regarding multi-file torrent web-seeding.
  728. * doc/README.txt
  729. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Updated man page regarding multi-file torrent web-seeding.
  731. * doc/aria2c.1.txt
  732. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Updated doc
  734. * src/version_usage.cc
  735. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Winsock select() doesn't work if no socket is in FD_SET. To
  737. overcome this problem, a dummy socket is added to FD_SET and it is
  738. given to select().
  739. * src/SelectEventPoll.cc
  740. * src/SelectEventPoll.h
  741. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Disabled --use-head option by default because --use-head=true
  743. causes problems on some web sites.
  744. * src/OptionHandlerFactory.cc
  745. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Print URL List in -S option for torrent.
  747. * src/bittorrent_helper.cc
  748. * src/bittorrent_helper.h
  749. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Allocate buffer in ctor of DownloadCommand.
  751. * src/DownloadCommand.cc
  752. * src/DownloadCommand.h
  753. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Removed DiskAdaptor::onDownloadComplete()
  755. * src/DirectDiskAdaptor.cc
  756. * src/DirectDiskAdaptor.h
  757. * src/DiskAdaptor.h
  758. * src/MultiDiskAdaptor.cc
  759. * src/MultiDiskAdaptor.h
  760. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Committed missing BtStopDownloadCommand.{cc,h}
  762. * src/BtStopDownloadCommand.cc
  763. * src/BtStopDownloadCommand.h
  764. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  766. download if the download speed is 0 and the number of seeder is 0
  767. in consecutive SEC seconds. By default, this function is disabled.
  768. * src/BtSetup.cc
  769. * src/Makefile.am
  770. * src/OptionHandlerFactory.cc
  771. * src/prefs.cc
  772. * src/prefs.h
  773. * src/usage_text.h
  774. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Removed the call to DiskAdaptor::onDownloadComplete() from
  776. BtCheckIntegrityEntry and DefaultPieceStorage.
  777. * src/BtCheckIntegrityEntry.cc
  778. * src/DefaultPieceStorage.cc
  779. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Commented out throw statements when number of piece is 0 to
  781. download 0 length torrent.
  782. * src/bittorrent_helper.cc
  783. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Call RequestGroup::createNextCommandWithAdj() from
  785. BtFileAllocationEntry if at least one FileEntry has URI. The
  786. static function hasAssociatedUri in RequestGroup.cc is renamed as
  787. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  788. * src/BtFileAllocationEntry.cc
  789. * src/FileEntry.h
  790. * src/RequestGroup.cc
  791. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Generate peer ID after SimpleRandomizer is initialized.
  793. * src/main.cc
  794. * src/option_processing.cc
  795. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Removed unused method argument.
  797. * src/CreateRequestCommand.cc
  798. * src/RequestGroup.cc
  799. * src/RequestGroup.h
  800. * src/RequestGroupMan.cc
  801. * src/TrackerWatcherCommand.cc
  802. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Made URI reusing function work.
  804. * src/CreateRequestCommand.cc
  805. * src/FileEntry.cc
  806. * src/FileEntry.h
  807. * test/FileEntryTest.cc
  808. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Add formerly fastest PeerStat's sessionDownloadLength to new
  810. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  811. bytes in a session.
  812. * src/PeerStat.cc
  813. * src/SegmentMan.cc
  814. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. If pipelining is enabled, we can always pool socket.
  816. * src/HttpDownloadCommand.cc
  817. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. In a single file download, file size becomes known just after
  819. downloading, set total length to FileEntry object when download
  820. completed.
  821. * src/DownloadCommand.cc
  822. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Use std::vector::reserve() for fileEntries and pieceHashes in
  824. bittorrent_helper
  825. * src/bittorrent_helper.cc
  826. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  828. Removed hidden option PREF_RESET_URI.
  829. * src/AbstractCommand.cc
  830. * src/OptionHandlerFactory.cc
  831. * src/prefs.cc
  832. * src/prefs.h
  833. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Removed unused variable/function.
  835. * src/PeerStat.h
  836. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Show first URL in Download Results if file path is not available.
  838. * src/FileEntry.h
  839. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Throw exception if file path doesn't exist in FTP URL.
  841. * src/InitiateConnectionCommandFactory.cc
  842. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  844. * src/BitfieldMan.cc
  845. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  847. of PeerStat in SegmentMan. peerStats is used for calculating
  848. download speed. Therefore all active PeerStats should be in
  849. there. Another one is _fastestPeerStats and it only contains
  850. fastest PeerStat for each hostname/protocol pair. They are used
  851. for updating ServerStat.
  852. * src/DownloadCommand.cc
  853. * src/Request.h
  854. * src/RequestGroupMan.cc
  855. * src/SegmentMan.cc
  856. * src/SegmentMan.h
  857. * test/SegmentManTest.cc
  858. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Try all available addresses returned by DNS until it gets
  860. connected in HTTP(S)/FTP download
  861. * src/AbstractCommand.cc
  862. * src/AbstractCommand.h
  863. * src/AbstractProxyRequestCommand.cc
  864. * src/AbstractProxyRequestCommand.h
  865. * src/DNSCache.h
  866. * src/DownloadEngine.cc
  867. * src/DownloadEngine.h
  868. * src/FtpInitiateConnectionCommand.cc
  869. * src/FtpInitiateConnectionCommand.h
  870. * src/FtpNegotiationCommand.cc
  871. * src/FtpNegotiationCommand.h
  872. * src/HttpInitiateConnectionCommand.cc
  873. * src/HttpInitiateConnectionCommand.h
  874. * src/HttpRequestCommand.cc
  875. * src/HttpRequestCommand.h
  876. * src/InitiateConnectionCommand.cc
  877. * src/InitiateConnectionCommand.h
  878. * test/DNSCacheTest.cc
  879. * test/Makefile.am
  880. * test/SimpleDNSCacheTest.cc
  881. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Updated doc
  883. * src/download_helper.cc
  884. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Refactored fieldMan ctor.
  886. * src/BitfieldMan.cc
  887. * src/BitfieldMan.h
  888. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Don't print "No files to download." message if -S is given.
  890. * src/main.cc
  891. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Set referer and method to newly created Request object.
  893. * src/CreateRequestCommand.cc
  894. * src/FileEntry.cc
  895. * src/FileEntry.h
  896. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Removed ctor of AbstractCommand which doesn't take FileEntry.
  898. * src/AbstractCommand.cc
  899. * src/AbstractCommand.h
  900. * src/CreateRequestCommand.cc
  901. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Get proxy download working
  903. * src/AbstractProxyRequestCommand.cc
  904. * src/AbstractProxyRequestCommand.h
  905. * src/AbstractProxyResponseCommand.cc
  906. * src/AbstractProxyResponseCommand.h
  907. * src/FtpInitiateConnectionCommand.cc
  908. * src/FtpTunnelRequestCommand.cc
  909. * src/FtpTunnelRequestCommand.h
  910. * src/FtpTunnelResponseCommand.cc
  911. * src/FtpTunnelResponseCommand.h
  912. * src/HttpInitiateConnectionCommand.cc
  913. * src/HttpProxyRequestCommand.cc
  914. * src/HttpProxyRequestCommand.h
  915. * src/HttpProxyResponseCommand.cc
  916. * src/HttpProxyResponseCommand.h
  917. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Use SegmentMan::getSegment(cuid) for single file download.
  919. * src/AbstractCommand.cc
  920. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. Fixed bufSize calculation
  922. * src/DownloadCommand.cc
  923. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Don't append "/" if base URI ends with "/".
  925. * src/bittorrent_helper.cc
  926. * test/url-list-multiFile.torrent
  927. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. HTTP pipelining is now working. Fixed Segmention fault in
  929. BitfieldMan's copy ctor.
  930. * src/AbstractCommand.cc
  931. * src/BitfieldMan.cc
  932. * src/BitfieldMan.h
  933. * src/DownloadCommand.cc
  934. * src/HttpDownloadCommand.cc
  935. * src/HttpRequest.cc
  936. * src/SegmentMan.cc
  937. * src/SegmentMan.h
  938. * test/BitfieldManTest.cc
  939. * test/SegmentManTest.cc
  940. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Removed ServerHost. Same functionality is implemented using
  942. FileEntry's in-flight Request objects.
  943. * src/AbstractCommand.cc
  944. * src/BtDependency.cc
  945. * src/CreateRequestCommand.cc
  946. * src/FileEntry.cc
  947. * src/FileEntry.h
  948. * src/FtpNegotiationCommand.cc
  949. * src/HttpResponseCommand.cc
  950. * src/Makefile.am
  951. * src/Metalink2RequestGroup.cc
  952. * src/RequestGroup.cc
  953. * src/RequestGroup.h
  954. * src/ServerHost.cc: Removed
  955. * src/ServerHost.h: Removed
  956. * test/BtDependencyTest.cc
  957. * test/FileEntryTest.cc
  958. * test/RequestGroupTest.cc
  959. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Rewritten PeerStat handling. In the previous implementation,
  961. faster command tries to find slower command. In this new
  962. implementation, slower command tries to find faster command.
  963. PeerStat is now created in each HTTP/FTP request to get download
  964. rate correctly. If the download range is small, the download rate
  965. tends to small and this will occur at the later stage of download.
  966. * src/AbstractCommand.cc
  967. * src/DownloadCommand.cc
  968. * src/FileEntry.cc
  969. * src/FileEntry.h
  970. * src/Request.cc
  971. * src/Request.h
  972. * src/RequestGroup.h
  973. * src/RequestGroupMan.cc
  974. * src/SegmentMan.cc
  975. * src/SegmentMan.h
  976. * test/SegmentManTest.cc
  977. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Removed _uris from RequestGroup. All functions that refer to _uris
  979. were moved to FileEntry. Exit status code are now defined in
  980. DownloadResultCode.h.
  981. * src/AbstractCommand.cc
  982. * src/AdaptiveURISelector.cc
  983. * src/AdaptiveURISelector.h
  984. * src/AutoSaveCommand.cc
  985. * src/BtPostDownloadHandler.cc
  986. * src/CheckIntegrityDispatcherCommand.cc
  987. * src/CookieStorage.cc
  988. * src/DHTAutoSaveCommand.cc
  989. * src/DHTBucketRefreshCommand.cc
  990. * src/DHTEntryPointNameResolveCommand.cc
  991. * src/DHTInteractionCommand.cc
  992. * src/DHTPeerAnnounceCommand.cc
  993. * src/DHTTokenUpdateCommand.cc
  994. * src/DlAbortEx.h
  995. * src/DlRetryEx.h
  996. * src/DownloadCommand.cc
  997. * src/DownloadContext.h
  998. * src/DownloadFailureException.h
  999. * src/DownloadResult.h
  1000. * src/DownloadResultCode.h
  1001. * src/FeedbackURISelector.cc
  1002. * src/FeedbackURISelector.h
  1003. * src/FileEntry.cc
  1004. * src/FileEntry.h
  1005. * src/FtpNegotiationCommand.cc
  1006. * src/HttpListenCommand.cc
  1007. * src/HttpResponseCommand.cc
  1008. * src/HttpServerResponseCommand.cc
  1009. * src/HttpSkipResponseCommand.cc
  1010. * src/InOrderURISelector.cc
  1011. * src/InOrderURISelector.h
  1012. * src/Makefile.am
  1013. * src/Makefile.in
  1014. * src/Metalink2RequestGroup.cc
  1015. * src/MultiUrlRequestInfo.cc
  1016. * src/MultiUrlRequestInfo.h
  1017. * src/OptionHandlerFactory.cc
  1018. * src/PeerListenCommand.cc
  1019. * src/RecoverableException.h
  1020. * src/RequestGroup.cc
  1021. * src/RequestGroup.h
  1022. * src/RequestGroupMan.cc
  1023. * src/RequestGroupMan.h
  1024. * src/TimedHaltCommand.cc
  1025. * src/TrackerWatcherCommand.cc
  1026. * src/URIResult.cc
  1027. * src/URIResult.h
  1028. * src/URISelector.h
  1029. * src/XmlRpcMethodImpl.cc
  1030. * src/bittorrent_helper.cc
  1031. * src/bittorrent_helper.h
  1032. * src/download_helper.cc
  1033. * src/main.cc
  1034. * src/option_processing.cc
  1035. * test/BtDependencyTest.cc
  1036. * test/BtPostDownloadHandlerTest.cc
  1037. * test/CookieStorageTest.cc
  1038. * test/DefaultBtMessageDispatcherTest.cc
  1039. * test/DownloadHandlerFactoryTest.cc
  1040. * test/DownloadHelperTest.cc
  1041. * test/FeedbackURISelectorTest.cc
  1042. * test/FileEntryTest.cc
  1043. * test/InOrderURISelectorTest.cc
  1044. * test/Metalink2RequestGroupTest.cc
  1045. * test/MetalinkPostDownloadHandlerTest.cc
  1046. * test/RequestGroupManTest.cc
  1047. * test/RequestGroupTest.cc
  1048. * test/XmlRpcMethodTest.cc
  1049. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Removed MockBtContext.h
  1051. * test/Makefile.am
  1052. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Removed _currentRequest from StreamCheckIntegrityEntry and
  1054. StreamFileAllocationEntry.
  1055. * src/AbstractCommand.cc
  1056. * src/HttpResponseCommand.cc
  1057. * src/RequestGroup.cc
  1058. * src/StreamCheckIntegrityEntry.cc
  1059. * src/StreamCheckIntegrityEntry.h
  1060. * src/StreamFileAllocationEntry.cc
  1061. * src/StreamFileAllocationEntry.h
  1062. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Rewritten DownloadContext and removed SingleFileDownloadContext
  1064. and BtContext and its derived classes. BitTorrent specific
  1065. attributes are now set by DownloadContext::setAttribute() with key
  1066. bittorrent::BITTORRENT.
  1067. * src/AbstractBtMessage.cc
  1068. * src/AbstractBtMessage.h
  1069. * src/AbstractCommand.cc
  1070. * src/AbstractCommand.h
  1071. * src/AbstractProxyRequestCommand.cc
  1072. * src/AbstractProxyResponseCommand.cc
  1073. * src/ActivePeerConnectionCommand.cc
  1074. * src/ActivePeerConnectionCommand.h
  1075. * src/AnnounceList.cc
  1076. * src/BtCheckIntegrityEntry.cc
  1077. * src/BtConstants.h
  1078. * src/BtContext.h: Removed
  1079. * src/BtDependency.cc
  1080. * src/BtExtendedMessage.cc
  1081. * src/BtPieceMessage.cc
  1082. * src/BtPieceMessage.h
  1083. * src/BtPostDownloadHandler.cc
  1084. * src/BtRegistry.cc
  1085. * src/BtRegistry.h
  1086. * src/BtSetup.cc
  1087. * src/CheckIntegrityCommand.cc
  1088. * src/CheckIntegrityEntry.cc
  1089. * src/ChecksumCheckIntegrityEntry.cc
  1090. * src/ConsoleStatCalc.cc
  1091. * src/ContentTypeRequestGroupCriteria.cc
  1092. * src/DHTGetPeersCommand.cc
  1093. * src/DHTGetPeersCommand.h
  1094. * src/DHTPeerLookupTask.cc
  1095. * src/DHTPeerLookupTask.h
  1096. * src/DHTTaskFactory.h
  1097. * src/DHTTaskFactoryImpl.cc
  1098. * src/DHTTaskFactoryImpl.h
  1099. * src/DefaultBtAnnounce.cc
  1100. * src/DefaultBtAnnounce.h
  1101. * src/DefaultBtContext.cc: Removed
  1102. * src/DefaultBtContext.h: Removed
  1103. * src/DefaultBtInteractive.cc
  1104. * src/DefaultBtInteractive.h
  1105. * src/DefaultBtMessageDispatcher.cc
  1106. * src/DefaultBtMessageDispatcher.h
  1107. * src/DefaultBtMessageFactory.cc
  1108. * src/DefaultBtMessageFactory.h
  1109. * src/DefaultBtMessageReceiver.cc
  1110. * src/DefaultBtMessageReceiver.h
  1111. * src/DefaultBtProgressInfoFile.cc
  1112. * src/DefaultBtRequestFactory.cc
  1113. * src/DefaultBtRequestFactory.h
  1114. * src/DefaultExtensionMessageFactory.cc
  1115. * src/DefaultExtensionMessageFactory.h
  1116. * src/DefaultPeerStorage.cc
  1117. * src/DefaultPeerStorage.h
  1118. * src/DefaultPieceStorage.cc
  1119. * src/DefaultSegmentManFactory.cc
  1120. * src/DiskAdaptor.cc
  1121. * src/DiskAdaptor.h
  1122. * src/DownloadContext.cc
  1123. * src/DownloadContext.h
  1124. * src/DownloadEngine.cc
  1125. * src/DownloadEngineFactory.cc
  1126. * src/DownloadHandler.cc
  1127. * src/DownloadResult.h
  1128. * src/FileAllocationCommand.cc
  1129. * src/FileAllocationDispatcherCommand.cc
  1130. * src/FileAllocationEntry.cc
  1131. * src/FileEntry.h
  1132. * src/FillRequestGroupCommand.cc
  1133. * src/FtpDownloadCommand.cc
  1134. * src/FtpFinishDownloadCommand.cc
  1135. * src/FtpInitiateConnectionCommand.cc
  1136. * src/FtpNegotiationCommand.cc
  1137. * src/FtpTunnelRequestCommand.cc
  1138. * src/FtpTunnelResponseCommand.cc
  1139. * src/HandshakeExtensionMessage.cc
  1140. * src/HandshakeExtensionMessage.h
  1141. * src/HaveEraseCommand.cc
  1142. * src/HttpDownloadCommand.cc
  1143. * src/HttpInitiateConnectionCommand.cc
  1144. * src/HttpProxyRequestCommand.cc
  1145. * src/HttpProxyResponseCommand.cc
  1146. * src/HttpRequest.cc
  1147. * src/HttpRequest.h
  1148. * src/HttpRequestCommand.cc
  1149. * src/HttpResponseCommand.cc
  1150. * src/HttpServerBodyCommand.cc
  1151. * src/HttpServerCommand.cc
  1152. * src/HttpSkipResponseCommand.cc
  1153. * src/InitiateConnectionCommandFactory.cc
  1154. * src/InitiatorMSEHandshakeCommand.cc
  1155. * src/InitiatorMSEHandshakeCommand.h
  1156. * src/IteratableChecksumValidator.cc
  1157. * src/IteratableChecksumValidator.h
  1158. * src/IteratableChunkChecksumValidator.cc
  1159. * src/MSEHandshake.cc
  1160. * src/MSEHandshake.h
  1161. * src/Makefile.am
  1162. * src/Makefile.in
  1163. * src/Metalink2RequestGroup.cc
  1164. * src/MetalinkPostDownloadHandler.cc
  1165. * src/MultiDiskAdaptor.cc
  1166. * src/MultiDiskAdaptor.h
  1167. * src/MultiFileAllocationIterator.cc
  1168. * src/MultiUrlRequestInfo.cc
  1169. * src/PeerChokeCommand.cc
  1170. * src/PeerChokeCommand.h
  1171. * src/PeerInitiateConnectionCommand.cc
  1172. * src/PeerInitiateConnectionCommand.h
  1173. * src/PeerInteractionCommand.cc
  1174. * src/PeerInteractionCommand.h
  1175. * src/PeerReceiveHandshakeCommand.cc
  1176. * src/PieceHashCheckIntegrityEntry.cc
  1177. * src/RealtimeCommand.cc
  1178. * src/ReceiverMSEHandshakeCommand.cc
  1179. * src/RequestGroup.cc
  1180. * src/RequestGroup.h
  1181. * src/RequestGroupEntry.cc
  1182. * src/RequestGroupMan.cc
  1183. * src/SeedCheckCommand.cc
  1184. * src/SeedCheckCommand.h
  1185. * src/SegmentMan.cc
  1186. * src/ShareRatioSeedCriteria.h
  1187. * src/SingleFileDownloadContext.cc: Removed
  1188. * src/SingleFileDownloadContext.h: Removed
  1189. * src/SleepCommand.cc
  1190. * src/StreamCheckIntegrityEntry.cc
  1191. * src/TrackerWatcherCommand.cc
  1192. * src/TrackerWatcherCommand.h
  1193. * src/UnknownLengthPieceStorage.cc
  1194. * src/Util.cc
  1195. * src/Util.h
  1196. * src/XmlRpcMethodImpl.cc
  1197. * src/bittorrent_helper.cc
  1198. * src/bittorrent_helper.h
  1199. * src/download_helper.cc
  1200. * src/main.cc
  1201. * src/option_processing.cc
  1202. * test/BitfieldManTest.cc
  1203. * test/BittorrentHelperTest.cc
  1204. * test/BtCancelMessageTest.cc
  1205. * test/BtChokeMessageTest.cc
  1206. * test/BtDependencyTest.cc
  1207. * test/BtPieceMessageTest.cc
  1208. * test/BtPostDownloadHandlerTest.cc
  1209. * test/BtRegistryTest.cc
  1210. * test/BtRejectMessageTest.cc
  1211. * test/BtRequestMessageTest.cc
  1212. * test/DHTPeerAnnounceStorageTest.cc
  1213. * test/DefaultBtAnnounceTest.cc
  1214. * test/DefaultBtContextTest.cc: Removed
  1215. * test/DefaultBtMessageDispatcherTest.cc
  1216. * test/DefaultBtMessageFactoryTest.cc
  1217. * test/DefaultBtProgressInfoFileTest.cc
  1218. * test/DefaultBtRequestFactoryTest.cc
  1219. * test/DefaultExtensionMessageFactoryTest.cc
  1220. * test/DefaultPeerStorageTest.cc
  1221. * test/DefaultPieceStorageTest.cc
  1222. * test/DirectDiskAdaptorTest.cc
  1223. * test/DownloadContextTest.cc
  1224. * test/DownloadHandlerFactoryTest.cc
  1225. * test/DownloadHelperTest.cc
  1226. * test/HandshakeExtensionMessageTest.cc
  1227. * test/HttpRequestTest.cc
  1228. * test/HttpResponseTest.cc
  1229. * test/IteratableChecksumValidatorTest.cc
  1230. * test/IteratableChunkChecksumValidatorTest.cc
  1231. * test/MSEHandshakeTest.cc
  1232. * test/Makefile.am
  1233. * test/Makefile.in
  1234. * test/Metalink2RequestGroupTest.cc
  1235. * test/MetalinkPostDownloadHandlerTest.cc
  1236. * test/MockBtContext.h: Removed
  1237. * test/MockDHTTaskFactory.h
  1238. * test/MockDownloadContext.h: Removed
  1239. * test/MockPieceStorage.h
  1240. * test/MultiDiskAdaptorTest.cc
  1241. * test/MultiFileAllocationIteratorTest.cc
  1242. * test/RequestGroupManTest.cc
  1243. * test/RequestGroupTest.cc
  1244. * test/SegmentManTest.cc
  1245. * test/ShareRatioSeedCriteriaTest.cc
  1246. * test/SingleFileDownloadContextTest.cc: Removed
  1247. * test/UtilTest.cc
  1248. * test/XmlRpcMethodTest.cc
  1249. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Added experimental support of WEB-Seeding for multi-file torrent.
  1251. Due to fundamental changes in file handling in HTTP/FTP code, many
  1252. functions are not working: PeerStat, ServerHost, proxy..etc
  1253. * src/AbstractCommand.cc
  1254. * src/AbstractCommand.h
  1255. * src/BitfieldMan.cc
  1256. * src/BitfieldMan.h
  1257. * src/CreateRequestCommand.cc
  1258. * src/CreateRequestCommand.h
  1259. * src/DefaultPieceStorage.cc
  1260. * src/DefaultPieceStorage.h
  1261. * src/DownloadCommand.cc
  1262. * src/DownloadCommand.h
  1263. * src/DownloadContext.cc
  1264. * src/DownloadContext.h
  1265. * src/FileEntry.cc
  1266. * src/FileEntry.h
  1267. * src/FtpDownloadCommand.cc
  1268. * src/FtpDownloadCommand.h
  1269. * src/FtpFinishDownloadCommand.cc
  1270. * src/FtpFinishDownloadCommand.h
  1271. * src/FtpInitiateConnectionCommand.cc
  1272. * src/FtpInitiateConnectionCommand.h
  1273. * src/FtpNegotiationCommand.cc
  1274. * src/FtpNegotiationCommand.h
  1275. * src/FtpTunnelResponseCommand.cc
  1276. * src/HttpDownloadCommand.cc
  1277. * src/HttpDownloadCommand.h
  1278. * src/HttpInitiateConnectionCommand.cc
  1279. * src/HttpInitiateConnectionCommand.h
  1280. * src/HttpProxyResponseCommand.cc
  1281. * src/HttpRequest.cc
  1282. * src/HttpRequest.h
  1283. * src/HttpRequestCommand.cc
  1284. * src/HttpRequestCommand.h
  1285. * src/HttpResponseCommand.cc
  1286. * src/HttpResponseCommand.h
  1287. * src/HttpSkipResponseCommand.cc
  1288. * src/HttpSkipResponseCommand.h
  1289. * src/InitiateConnectionCommand.cc
  1290. * src/InitiateConnectionCommand.h
  1291. * src/InitiateConnectionCommandFactory.cc
  1292. * src/InitiateConnectionCommandFactory.h
  1293. * src/Makefile.am
  1294. * src/PieceStorage.h
  1295. * src/RequestGroup.cc
  1296. * src/RequestGroup.h
  1297. * src/RequestGroupMan.cc
  1298. * src/SegmentMan.cc
  1299. * src/SegmentMan.h
  1300. * src/SingleFileDownloadContext.h
  1301. * src/StreamFileAllocationEntry.cc
  1302. * src/TrackerWatcherCommand.cc
  1303. * src/UnknownLengthPieceStorage.cc
  1304. * src/UnknownLengthPieceStorage.h
  1305. * src/array_fun.h
  1306. * src/bitfield.h
  1307. * src/download_helper.cc
  1308. * test/DownloadContextTest.cc
  1309. * test/Makefile.am
  1310. * test/MockDownloadContext.h
  1311. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Added tellWaiting XML-RPC method.
  1313. * src/SingleFileDownloadContext.cc
  1314. * src/XmlRpcMethodFactory.cc
  1315. * src/XmlRpcMethodImpl.cc
  1316. * src/XmlRpcMethodImpl.h
  1317. * test/XmlRpcMethodTest.cc
  1318. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Updated CookieStorageTest
  1320. * test/CookieStorageTest.cc
  1321. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1323. handle excepion inside these functions.
  1324. * src/LibgnutlsTLSContext.cc
  1325. * src/LibgnutlsTLSContext.h
  1326. * src/LibsslTLSContext.cc
  1327. * src/LibsslTLSContext.h
  1328. * src/MultiUrlRequestInfo.cc
  1329. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Added comment
  1331. * src/RequestGroup.cc
  1332. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. In CookieStorage::load() and saveNsFormat(), handle exception
  1334. inside the functions. When saving Cookies, first write temporary
  1335. file and after successful writes, then renames it to final
  1336. destination.
  1337. * src/CookieStorage.cc
  1338. * src/CookieStorage.h
  1339. * src/MultiUrlRequestInfo.cc
  1340. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. The default value of --dir option is the absolute path to the
  1342. current directory. If getcwd() is failed, then it is ".", which is
  1343. the same value with old implementation. This change is necessary
  1344. because after daemon() call, the current working directory is
  1345. changed to /.
  1346. * src/File.cc
  1347. * src/File.h
  1348. * src/OptionHandlerFactory.cc
  1349. * src/option_processing.cc
  1350. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Call daemon() with arguments(0,0), which means daemon() changes
  1352. current working directory to / and redirects stdin, stdout and
  1353. stderr to /dev/null.
  1354. * src/option_processing.cc
  1355. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Small performance optimizations.
  1357. * src/RequestGroupMan.cc
  1358. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1360. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1361. * src/RequestGroupMan.cc
  1362. * src/RequestGroupMan.h
  1363. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1365. setNoWiat(true) if newly created command calls
  1366. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1367. * src/HttpListenCommand.cc
  1368. * src/HttpServerBodyCommand.cc
  1369. * src/HttpServerCommand.cc
  1370. * src/HttpServerResponseCommand.cc
  1371. * src/InitiateConnectionCommand.cc
  1372. * src/RequestGroup.cc
  1373. * src/StreamFileAllocationEntry.cc
  1374. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Removed include vector
  1376. * src/BtRegistry.h
  1377. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Rewritten BtRegistry
  1379. * src/BtRegistry.cc
  1380. * src/BtRegistry.h
  1381. * src/BtSetup.cc
  1382. * src/ConsoleStatCalc.cc
  1383. * src/PeerInteractionCommand.cc
  1384. * src/PeerReceiveHandshakeCommand.cc
  1385. * src/ReceiverMSEHandshakeCommand.cc
  1386. * src/RequestGroup.cc
  1387. * src/XmlRpcMethodImpl.cc
  1388. * test/BtRegistryTest.cc
  1389. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1391. * src/DefaultBtProgressInfoFile.cc
  1392. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Throw an exception if position is less than 0.
  1394. * src/XmlRpcMethodImpl.cc
  1395. * test/XmlRpcMethodTest.cc
  1396. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Use writeFilePath() in ConsoleStatCalc.cc
  1398. * src/ConsoleStatCalc.cc
  1399. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Receive the return value as const reference from
  1401. DownloadContext::getFileEntries().
  1402. * src/DefaultPieceStorage.cc
  1403. * src/RequestGroupMan.cc
  1404. * src/XmlRpcMethodImpl.cc
  1405. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. DownloadContext now has _fileEntries so that
  1407. DownloadContext::getFileEntries() can returns its const reference.
  1408. * src/DefaultBtContext.cc
  1409. * src/DefaultBtContext.h
  1410. * src/DownloadContext.cc
  1411. * src/DownloadContext.h
  1412. * src/SingleFileDownloadContext.cc
  1413. * src/SingleFileDownloadContext.h
  1414. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1416. writeFilePath() function template from RequestGroupMan.cc to
  1417. FileEntry.h
  1418. * src/FileEntry.h
  1419. * src/RequestGroupMan.cc
  1420. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Documented 'position' parameter is starting from 0 in man page.
  1422. * doc/aria2c.1.txt
  1423. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Updated doc.
  1425. * src/MSEHandshake.cc
  1426. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Removed _acceptFeatures and its accessor functions from
  1428. RequestGroup since they are not used practically.
  1429. * src/HttpRequestCommand.cc
  1430. * src/RequestGroup.cc
  1431. * src/RequestGroup.h
  1432. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Removed member _maxTries from RequestGroup class to avoid
  1434. duplicate option value. Those classes who refer this variable
  1435. should use option value of PREF_MAX_TRIES directly.
  1436. * src/AbstractCommand.cc
  1437. * src/RequestGroup.cc
  1438. * src/RequestGroup.h
  1439. * src/TrackerWatcherCommand.cc
  1440. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. * Release 1.4.1
  1442. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Fixed compiler warnings on netbsd
  1444. * src/DHTConnectionImpl.cc
  1445. * src/PeerListenCommand.cc
  1446. * src/PeerSessionResource.cc
  1447. * src/SegmentMan.cc
  1448. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Updated Ukrainian translation. Thanks to all translators.
  1450. * po/uk.po
  1451. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Bump up version number to 1.4.1.
  1453. * configure.ac
  1454. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Added unit tests for strjoin, strconcat and strappend.
  1456. * test/a2functionalTest.cc
  1457. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Rewritten strconcat and strappend using operator+ instead of
  1459. append().
  1460. * src/a2functional.h
  1461. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1463. is enabled.
  1464. * src/Makefile.am
  1465. * test/Makefile.am
  1466. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Added countSeeder() function which counts seeder in the given
  1468. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1469. * src/ConsoleStatCalc.cc
  1470. * src/Peer.h
  1471. * src/XmlRpcMethodImpl.cc
  1472. * test/PeerTest.cc
  1473. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Documented missing seeder in getPeers xml-rpc method.
  1475. Documented uploadLength and numSeeders.
  1476. * doc/aria2c.1.txt
  1477. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Added uploadLength and numSeeders to the response of tellStatus
  1479. xml-rpc method. Assert that PeerStorage instance is not null
  1480. instead of checking if statement. It should be non-null in this
  1481. context.
  1482. * src/XmlRpcMethodImpl.cc
  1483. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1485. * src/XmlRpcResponse.cc
  1486. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Avoid intermediate object during string concatenation.
  1488. * src/HttpRequest.cc
  1489. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Added strjoin function template. Use it in pathJoin()
  1491. * src/Util.h
  1492. * src/a2functional.h
  1493. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Avoid intermediate object during string concatenation. Replaced
  1495. post-increment unary operator with pre-increment one in for loop.
  1496. * src/AdaptiveURISelector.cc
  1497. * src/AnnounceList.cc
  1498. * src/AuthConfig.h
  1499. * src/BtBitfieldMessage.cc
  1500. * src/BtExtendedMessage.cc
  1501. * src/BtHandshakeMessage.cc
  1502. * src/BtPieceMessage.cc
  1503. * src/BtPortMessage.cc
  1504. * src/Cookie.cc
  1505. * src/DHTAnnouncePeerMessage.cc
  1506. * src/DHTAutoSaveCommand.cc
  1507. * src/DHTGetPeersReplyMessage.cc
  1508. * src/DHTNode.cc
  1509. * src/DHTQueryMessage.cc
  1510. * src/DHTResponseMessage.cc
  1511. * src/DHTUnknownMessage.cc
  1512. * src/DefaultBtAnnounce.cc
  1513. * src/DefaultBtContext.cc
  1514. * src/DefaultBtInteractive.cc
  1515. * src/DefaultBtProgressInfoFile.cc
  1516. * src/DefaultPeerStorage.cc
  1517. * src/DownloadEngine.cc
  1518. * src/FeatureConfig.cc
  1519. * src/File.cc
  1520. * src/FtpConnection.cc
  1521. * src/FtpNegotiationCommand.cc
  1522. * src/HandshakeExtensionMessage.cc
  1523. * src/HttpConnection.cc
  1524. * src/HttpRequest.cc
  1525. * src/HttpResponseCommand.cc
  1526. * src/HttpServer.cc
  1527. * src/IndexBtMessage.cc
  1528. * src/Metalink2RequestGroup.cc
  1529. * src/OptionHandlerImpl.h
  1530. * src/PStringBuildVisitor.cc
  1531. * src/Peer.cc
  1532. * src/PeerListenCommand.cc
  1533. * src/Piece.cc
  1534. * src/RangeBtMessage.cc
  1535. * src/Request.cc
  1536. * src/Request.h
  1537. * src/RequestGroup.cc
  1538. * src/RequestGroupMan.cc
  1539. * src/ServerStat.cc
  1540. * src/ServerStatMan.cc
  1541. * src/UTPexExtensionMessage.cc
  1542. * src/Util.cc
  1543. * src/a2functional.h
  1544. * src/download_helper.cc
  1545. * src/messageDigest.cc
  1546. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Unchoke a peer randomly at first and second choke round in seed
  1548. state.
  1549. * src/BtSeederStateChoke.cc
  1550. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1551. Added (sock_t) to quiet compiler warnings in MinGW
  1552. * src/SocketCore.cc
  1553. * src/SocketCore.h
  1554. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1556. * src/EpollEventPoll.h
  1557. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1558. Added fork() emulation using CreateProcess() in MinGW
  1559. * src/RequestGroupMan.cc
  1560. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. * Release 1.4.0
  1562. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Added utf8.torrent to EXTRA_DIST
  1564. * test/Makefile.am
  1565. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Fixed docs of aria2.addMetalink xml-rpc method.
  1567. * doc/aria2c.1.txt
  1568. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Added Slovak translation. Updated Ukrainian and Brazilian
  1570. Portuguese translation. Thanks to all translators.
  1571. * po/sk.po
  1572. * po/uk.po
  1573. * po/pt_BR.po
  1574. * po/LINGUAS
  1575. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Added test case for XmlRpcProcessor to fail to parse malformed
  1577. document.
  1578. * test/XmlRpcRequestProcessorTest.cc
  1579. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Removed *.gmo files in po because they are generated on 'make
  1581. dist'
  1582. * po/*.gmo
  1583. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Documented max-concurrent-downloads of changeGlobalOption method
  1585. in man page.
  1586. * doc/aria2c.1.txt
  1587. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Added max-concurrent-downloads option to changeGlobalOption
  1589. xml-rpc method. Rewritten loop conditional in
  1590. RequestGroupMan::fillRequestGroupFromReserver().
  1591. * src/RequestGroupMan.cc
  1592. * src/RequestGroupMan.h
  1593. * src/XmlRpcMethod.cc
  1594. * src/XmlRpcMethodImpl.cc
  1595. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Documented position parameter in man page.
  1597. * doc/aria2c.1.txt
  1598. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Added 'position' parameter to addUri, addTorrent and addMetalink
  1600. xml-rpc method.
  1601. * src/RequestGroupMan.cc
  1602. * src/RequestGroupMan.h
  1603. * src/XmlRpcMethodImpl.cc
  1604. * test/XmlRpcMethodTest.cc
  1605. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Removed Peer.cc from compile source list when --disable-bittorrent
  1607. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1608. takes Peer.
  1609. * src/DefaultPieceStorage.cc
  1610. * src/DefaultPieceStorage.h
  1611. * src/Makefile.am
  1612. * src/PieceStorage.h
  1613. * src/UnknownLengthPieceStorage.cc
  1614. * src/UnknownLengthPieceStorage.h
  1615. * test/MockPieceStorage.h
  1616. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Implemented getter methods in header files to give them more
  1618. chance of optimization.
  1619. Return const reference for SharadHandle if possible.
  1620. * src/AbstractAuthResolver.cc
  1621. * src/AbstractAuthResolver.h
  1622. * src/AbstractBtMessage.cc
  1623. * src/AbstractBtMessage.h
  1624. * src/AbstractSingleDiskAdaptor.cc
  1625. * src/AbstractSingleDiskAdaptor.h
  1626. * src/AsyncNameResolver.cc
  1627. * src/AsyncNameResolver.h
  1628. * src/BNode.cc
  1629. * src/BNode.h
  1630. * src/BitfieldMan.cc
  1631. * src/BitfieldMan.h
  1632. * src/BtAbortOutstandingRequestEvent.h
  1633. * src/BtExtendedMessage.cc
  1634. * src/BtExtendedMessage.h
  1635. * src/BtSeederStateChoke.cc
  1636. * src/BtSeederStateChoke.h
  1637. * src/Cookie.cc
  1638. * src/Cookie.h
  1639. * src/DHTBucket.cc
  1640. * src/DHTBucket.h
  1641. * src/DHTConnectionImpl.cc
  1642. * src/DHTConnectionImpl.h
  1643. * src/DHTFindNodeReplyMessage.cc
  1644. * src/DHTFindNodeReplyMessage.h
  1645. * src/DHTGetPeersReplyMessage.cc
  1646. * src/DHTGetPeersReplyMessage.h
  1647. * src/DHTInteractionCommand.cc
  1648. * src/DHTMessage.cc
  1649. * src/DHTMessage.h
  1650. * src/DHTMessageDispatcherImpl.cc
  1651. * src/DHTMessageEntry.cc
  1652. * src/DHTMessageReceiver.cc
  1653. * src/DHTMessageReceiver.h
  1654. * src/DHTMessageTrackerEntry.cc
  1655. * src/DHTMessageTrackerEntry.h
  1656. * src/DHTPeerAnnounceEntry.cc
  1657. * src/DHTPeerAnnounceEntry.h
  1658. * src/DHTPeerLookupTask.cc
  1659. * src/DHTPeerLookupTask.h
  1660. * src/DHTRoutingTableDeserializer.cc
  1661. * src/DHTRoutingTableDeserializer.h
  1662. * src/DefaultBtAnnounce.cc
  1663. * src/DefaultBtAnnounce.h
  1664. * src/DefaultBtMessageDispatcher.cc
  1665. * src/DefaultBtMessageDispatcher.h
  1666. * src/DefaultBtRequestFactory.cc
  1667. * src/DefaultBtRequestFactory.h
  1668. * src/DiskAdaptor.cc
  1669. * src/DiskAdaptor.h
  1670. * src/DownloadContext.cc
  1671. * src/DownloadContext.h
  1672. * src/DownloadEngine.cc
  1673. * src/DownloadEngine.h
  1674. * src/EpollEventPoll.cc
  1675. * src/EpollEventPoll.h
  1676. * src/FtpConnection.cc
  1677. * src/FtpConnection.h
  1678. * src/HttpConnection.cc
  1679. * src/HttpConnection.h
  1680. * src/HttpHeader.cc
  1681. * src/HttpHeader.h
  1682. * src/HttpRequest.cc
  1683. * src/HttpRequest.h
  1684. * src/HttpResponse.cc
  1685. * src/HttpResponse.h
  1686. * src/LibsslTLSContext.cc
  1687. * src/LibsslTLSContext.h
  1688. * src/MSEHandshake.cc
  1689. * src/MSEHandshake.h
  1690. * src/MetalinkEntry.cc
  1691. * src/MetalinkEntry.h
  1692. * src/MetalinkParserController.cc
  1693. * src/MetalinkParserController.h
  1694. * src/MetalinkParserStateMachine.cc
  1695. * src/MetalinkParserStateMachine.h
  1696. * src/MultiDiskAdaptor.cc
  1697. * src/MultiDiskAdaptor.h
  1698. * src/NetrcAuthResolver.cc
  1699. * src/NetrcAuthResolver.h
  1700. * src/Peer.cc
  1701. * src/Peer.h
  1702. * src/PeerSessionResource.cc
  1703. * src/PeerSessionResource.h
  1704. * src/Piece.cc
  1705. * src/Piece.h
  1706. * src/PieceStatMan.cc
  1707. * src/PieceStatMan.h
  1708. * src/Request.cc
  1709. * src/Request.h
  1710. * src/RequestGroup.cc
  1711. * src/RequestGroup.h
  1712. * src/RequestGroupMan.cc
  1713. * src/RequestGroupMan.h
  1714. * src/RequestSlot.cc
  1715. * src/RequestSlot.h
  1716. * src/SegmentMan.cc
  1717. * src/SegmentMan.h
  1718. * src/SelectEventPoll.cc
  1719. * src/SelectEventPoll.h
  1720. * src/ServerStat.cc
  1721. * src/ServerStat.h
  1722. * src/Signature.cc
  1723. * src/Signature.h
  1724. * src/URIResult.cc
  1725. * src/URIResult.h
  1726. * src/UTPexExtensionMessage.cc
  1727. * src/UTPexExtensionMessage.h
  1728. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Fixed compile error without BitTorrent and Metalink support.
  1730. * src/XmlRpcMethod.cc
  1731. * src/XmlRpcMethodFactory.cc
  1732. * src/XmlRpcMethodImpl.cc
  1733. * src/XmlRpcMethodImpl.h
  1734. * test/XmlRpcMethodTest.cc
  1735. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Rewritten the help message for --allow-overwrite option.
  1737. * doc/aria2c.1.txt
  1738. * src/usage_text.h
  1739. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1740. Fixed typo
  1741. * doc/aria2c.1.txt
  1742. * src/usage_text.h
  1743. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Updated README for 1.4.0 release. Use new table syntax of
  1745. asciidoc.
  1746. * README
  1747. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Documented --xml-rpc-max-request-size option in man page.
  1749. * doc/aria2c.1.txt
  1750. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Moved C_* constants from BtContext to DefaultBtContext.
  1752. * src/BtContext.cc: Removed.
  1753. * src/BtContext.h
  1754. * src/DefaultBtContext.cc
  1755. * src/DefaultBtContext.h
  1756. * src/Makefile.am
  1757. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1759. path key respectively when persing .torrent file.
  1760. * src/BtContext.cc
  1761. * src/BtContext.h
  1762. * src/DefaultBtContext.cc
  1763. * test/DefaultBtContextTest.cc
  1764. * test/utf8.torrent
  1765. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Added --xml-rpc-max-request-size option to limit the size of
  1767. XML-RPC request.
  1768. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Documented XML-RPC API in man page.
  1770. * doc/aria2c.1.txt
  1771. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1773. will break strict-aliasing rules
  1774. * src/PeerConnection.cc
  1775. * test/DHTRoutingTableSerializerTest.cc
  1776. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1778. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1779. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1780. PKG_CHECK_MODULES macro uses latter name.
  1781. * m4/sqlite3.m4
  1782. * src/Makefile.am
  1783. * test/Makefile.am
  1784. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Fixed typo
  1786. * configure.ac
  1787. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1789. presence of libgnutls using pkg-config first. If it fails, fall
  1790. back to old macro libgnutls.m4.
  1791. * configure.ac
  1792. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Use s itself instead of !s.bad()
  1794. * src/CookieStorage.cc
  1795. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Documented --on-download-* option and --save-cookies option in man
  1797. page.
  1798. * doc/aria2c.1.txt
  1799. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Set possible values for --load-cookie option to "/path/to/file".
  1801. * src/OptionHandlerFactory.cc
  1802. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Added --save-cookies option.
  1804. * src/Cookie.cc
  1805. * src/Cookie.h
  1806. * src/CookieStorage.cc
  1807. * src/CookieStorage.h
  1808. * src/MultiUrlRequestInfo.cc
  1809. * src/OptionHandlerFactory.cc
  1810. * src/prefs.cc
  1811. * src/prefs.h
  1812. * src/usage_text.h
  1813. * test/CookieStorageTest.cc
  1814. * test/CookieTest.cc
  1815. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Removed tellAll XML-RPC command because its reponse tends to be
  1817. big if stopped/waiting downloads pile up.
  1818. * src/XmlRpcMethodFactory.cc
  1819. * src/XmlRpcMethodImpl.cc
  1820. * src/XmlRpcMethodImpl.h
  1821. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Added the ability to execute command when download starts and
  1823. stops. You can also specify command for particular cases such as
  1824. complete/error download. Added --on-download-start,
  1825. --on-download-stop, --on-download-complete and --on-download-error
  1826. option.
  1827. * src/OptionHandlerFactory.cc
  1828. * src/RequestGroupMan.cc
  1829. * src/prefs.cc
  1830. * src/prefs.h
  1831. * src/usage_text.h
  1832. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Fixed test error
  1834. * test/BencodeTest.cc
  1835. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Added unit tests.
  1837. * test/XmlRpcMethodTest.cc
  1838. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Made exception message more verbose.
  1840. * src/bencode.cc
  1841. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1843. space in console readout. Also they are now shown in MiB/s if
  1844. speed > 1024KiB/s.
  1845. * src/ConsoleStatCalc.cc
  1846. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Added SEED to console output, which represents the number of
  1848. seeders currently the client is connecting to.
  1849. * src/ConsoleStatCalc.cc
  1850. * src/ConsoleStatCalc.h
  1851. * src/DownloadEngine.cc
  1852. * src/NullStatCalc.h
  1853. * src/StatCalc.h
  1854. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Added source filename(__FILE__) and line number(__LINE__) to
  1856. exception message.
  1857. * src/AbstractCommand.cc
  1858. * src/AbstractDiskWriter.cc
  1859. * src/AbstractProxyResponseCommand.cc
  1860. * src/BDE.h
  1861. * src/BtAllowedFastMessage.cc
  1862. * src/BtHandshakeMessageValidator.h
  1863. * src/BtHaveAllMessage.cc
  1864. * src/BtHaveNoneMessage.cc
  1865. * src/BtPieceMessage.cc
  1866. * src/BtRejectMessage.cc
  1867. * src/ChunkedDecoder.cc
  1868. * src/CookieStorage.cc
  1869. * src/DHTAnnouncePeerMessage.cc
  1870. * src/DHTEntryPointNameResolveCommand.cc
  1871. * src/DHTMessageFactoryImpl.cc
  1872. * src/DHTMessageTracker.cc
  1873. * src/DHTRoutingTableDeserializer.cc
  1874. * src/DHTRoutingTableSerializer.cc
  1875. * src/DHTSetup.cc
  1876. * src/DHTTokenTracker.cc
  1877. * src/DefaultBtAnnounce.cc
  1878. * src/DefaultBtContext.cc
  1879. * src/DefaultBtInteractive.cc
  1880. * src/DefaultBtMessageFactory.cc
  1881. * src/DefaultBtProgressInfoFile.cc
  1882. * src/DefaultExtensionMessageFactory.cc
  1883. * src/DlAbortEx.h
  1884. * src/DlRetryEx.h
  1885. * src/DownloadCommand.cc
  1886. * src/DownloadEngineFactory.cc
  1887. * src/DownloadFailureException.h
  1888. * src/Exception.cc
  1889. * src/Exception.h
  1890. * src/ExpatMetalinkProcessor.cc
  1891. * src/ExpatXmlRpcRequestProcessor.cc
  1892. * src/FallocFileAllocationIterator.cc
  1893. * src/FatalException.h
  1894. * src/FtpConnection.cc
  1895. * src/FtpFinishDownloadCommand.cc
  1896. * src/FtpInitiateConnectionCommand.cc
  1897. * src/FtpNegotiationCommand.cc
  1898. * src/GZipDecoder.cc
  1899. * src/HandshakeExtensionMessage.cc
  1900. * src/HttpConnection.cc
  1901. * src/HttpHeaderProcessor.cc
  1902. * src/HttpInitiateConnectionCommand.cc
  1903. * src/HttpResponse.cc
  1904. * src/HttpResponseCommand.cc
  1905. * src/HttpServer.cc
  1906. * src/HttpSkipResponseCommand.cc
  1907. * src/InitiateConnectionCommandFactory.cc
  1908. * src/IteratableChunkChecksumValidator.cc
  1909. * src/LibgcryptARC4Context.h
  1910. * src/LibgcryptARC4Decryptor.h
  1911. * src/LibgcryptARC4Encryptor.h
  1912. * src/LibgcryptDHKeyExchange.h
  1913. * src/LibgnutlsTLSContext.cc
  1914. * src/LibsslARC4Context.h
  1915. * src/LibsslARC4Decryptor.h
  1916. * src/LibsslARC4Encryptor.h
  1917. * src/LibsslDHKeyExchange.h
  1918. * src/LibsslTLSContext.cc
  1919. * src/MSEHandshake.cc
  1920. * src/MessageDigestHelper.cc
  1921. * src/MetalinkHelper.cc
  1922. * src/MultiDiskAdaptor.cc
  1923. * src/NameMatchOptionHandler.h
  1924. * src/NameResolver.cc
  1925. * src/Netrc.cc
  1926. * src/NsCookieParser.cc
  1927. * src/OptionHandlerException.cc
  1928. * src/OptionHandlerException.h
  1929. * src/OptionHandlerImpl.h
  1930. * src/OptionParser.cc
  1931. * src/ParameterizedStringParser.cc
  1932. * src/PeerAbstractCommand.cc
  1933. * src/PeerConnection.cc
  1934. * src/PeerMessageUtil.cc
  1935. * src/PeerReceiveHandshakeCommand.cc
  1936. * src/Platform.cc
  1937. * src/ReceiverMSEHandshakeCommand.cc
  1938. * src/RecoverableException.h
  1939. * src/RequestGroup.cc
  1940. * src/SimpleLogger.cc
  1941. * src/SocketCore.cc
  1942. * src/Sqlite3MozCookieParser.cc
  1943. * src/UTPexExtensionMessage.cc
  1944. * src/Util.cc
  1945. * src/XML2SAXMetalinkProcessor.cc
  1946. * src/Xml2XmlRpcRequestProcessor.cc
  1947. * src/XmlRpcMethodImpl.cc
  1948. * src/bencode.cc
  1949. * src/download_helper.cc
  1950. * src/messageDigest.h
  1951. * test/ExceptionTest.cc
  1952. * test/TestUtil.cc
  1953. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Bump up version number to 1.4.0
  1955. * configure.ac
  1956. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Added 2files.metalink to EXTRA_DIST
  1958. * test/Makefile.am
  1959. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Added missing 2files.metalink
  1961. * test/2files.metalink
  1962. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Show "[MEMORY]" prefix before filename in download summary if it
  1964. is downloaded into memory.
  1965. * src/DownloadResult.h
  1966. * src/RequestGroup.cc
  1967. * src/RequestGroupMan.cc
  1968. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1970. * src/ExpatXmlRpcRequestProcessor.cc
  1971. * src/Xml2XmlRpcRequestProcessor.cc
  1972. * src/message.h
  1973. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Defined const BDEs to avoid duplicate instantiation.
  1975. Defined MSG_GID_NOT_PROVIDED.
  1976. * src/XmlRpcMethodImpl.cc
  1977. * src/message.h
  1978. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Code cleanup
  1980. * src/Xml2XmlRpcRequestProcessor.cc
  1981. * src/Xml2XmlRpcRequestProcessor.h
  1982. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Defined ENABLE_XML_RPC
  1984. * configure.ac
  1985. * configure
  1986. * config.h.in
  1987. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Added ExpatXmlRpcRequestProcessor
  1989. * src/ExpatXmlRpcRequestProcessor.cc
  1990. * src/ExpatXmlRpcRequestProcessor.h
  1991. * src/Makefile.am
  1992. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Added tests for addTorrent and addMetalink command.
  1994. * test/TestUtil.cc
  1995. * test/TestUtil.h
  1996. * test/XmlRpcMethodTest.cc
  1997. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Corrected the description of --file-allocation option.
  1999. * doc/aria2c.1.txt
  2000. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added tellAll command.
  2002. * src/XmlRpcMethodFactory.cc
  2003. * src/XmlRpcMethodImpl.cc
  2004. * src/XmlRpcMethodImpl.h
  2005. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2007. * src/XmlRpcMethodImpl.cc
  2008. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Added changeGlobalOption command. Currently,
  2010. max-overall-download-limit and max-overall-upload-limit option are
  2011. available.
  2012. * src/RequestGroupMan.h
  2013. * src/XmlRpcMethod.cc
  2014. * src/XmlRpcMethod.h
  2015. * src/XmlRpcMethodFactory.cc
  2016. * src/XmlRpcMethodImpl.cc
  2017. * src/XmlRpcMethodImpl.h
  2018. * test/XmlRpcMethodTest.cc
  2019. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Added changeOption command. Currently, max-download-limit,
  2021. max-upload-limit option are available in this command.
  2022. * src/RequestGroup.h
  2023. * src/XmlRpcMethod.cc
  2024. * src/XmlRpcMethod.h
  2025. * src/XmlRpcMethodFactory.cc
  2026. * src/XmlRpcMethodImpl.cc
  2027. * src/XmlRpcMethodImpl.h
  2028. * test/XmlRpcMethodTest.cc
  2029. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Added purgeDownloadResult command.
  2031. * src/RequestGroupMan.cc
  2032. * src/RequestGroupMan.h
  2033. * src/XmlRpcMethodFactory.cc
  2034. * src/XmlRpcMethodImpl.cc
  2035. * src/XmlRpcMethodImpl.h
  2036. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Refactored.
  2038. * src/XmlRpcMethod.cc
  2039. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2041. XmlRpcResponse.
  2042. * src/HttpServerBodyCommand.cc
  2043. * src/Makefile.am
  2044. * src/XmlRpcMethod.cc
  2045. * src/XmlRpcMethod.h
  2046. * src/XmlRpcMethodImpl.cc
  2047. * src/XmlRpcResponse.cc
  2048. * src/XmlRpcResponse.h
  2049. * test/XmlRpcMethodTest.cc
  2050. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. In XML-RPC option struct, header and index-out option can take
  2052. array as value.
  2053. * src/XmlRpcMethod.cc
  2054. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Removed unused option member from PeerConnection.
  2056. * src/InitiatorMSEHandshakeCommand.cc
  2057. * src/PeerConnection.cc
  2058. * src/PeerConnection.h
  2059. * src/PeerInteractionCommand.cc
  2060. * src/PeerReceiveHandshakeCommand.cc
  2061. * src/ReceiverMSEHandshakeCommand.cc
  2062. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added "seeder" key to getPeers response.
  2064. * src/XmlRpcMethodImpl.cc
  2065. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Added addMetalink XML-RPC command.
  2067. * src/XmlRpcMethodFactory.cc
  2068. * src/XmlRpcMethodImpl.cc
  2069. * src/XmlRpcMethodImpl.h
  2070. * src/download_helper.cc
  2071. * src/download_helper.h
  2072. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Fixed the bug that POU peers are never choked in seeding.
  2074. * src/BtSeederStateChoke.cc
  2075. * src/BtSeederStateChoke.h
  2076. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Added web-seeding URI handling in addTorrent command.
  2078. * src/XmlRpcMethodImpl.cc
  2079. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Added "length" key to getFiles response.
  2081. * src/XmlRpcMethodImpl.cc
  2082. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Moved --no-netrc option from ftp option section to http/ftp option
  2084. section.
  2085. * doc/aria2c.1.txt
  2086. * src/OptionHandlerFactory.cc
  2087. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Removed garbage "\" character before '
  2089. * doc/aria2c.1.txt
  2090. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Removed garbage "\" character before http.
  2092. * doc/aria2c.1.txt
  2093. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Documented additional options that can be specified in -i list.
  2095. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2096. and --xml-rpc-passwd. Removed --enable-http-server and
  2097. --http-server-listen-port.
  2098. * doc/aria2c.1.txt
  2099. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2101. * src/DefaultPeerStorage.cc
  2102. * src/DefaultPeerStorage.h
  2103. * src/PeerStorage.h
  2104. * src/XmlRpcMethodImpl.cc
  2105. * test/MockPeerStorage.h
  2106. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Put a call to Socket::isReadable() in try block.
  2108. * src/HttpServerBodyCommand.cc
  2109. * src/HttpServerCommand.cc
  2110. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2112. exception , so it is now in try block.
  2113. * src/HttpServerResponseCommand.cc
  2114. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added "amChoking" and "peerChoking" key in getPeers response.
  2116. * src/XmlRpcMethodImpl.cc
  2117. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Added test case for zero-length filter.
  2119. * test/BitfieldManTest.cc
  2120. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. getFiles command now returns file data for finished/stopped
  2122. downloads.
  2123. * src/XmlRpcMethodImpl.cc
  2124. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. DownloadResult now has the list of FileEntry. The download
  2126. summary displays the path of first selected file and the number of
  2127. remaining files for multi-file torrent.
  2128. * src/DownloadResult.h
  2129. * src/RequestGroup.cc
  2130. * src/RequestGroupMan.cc
  2131. * test/RequestGroupTest.cc
  2132. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Fixed segmentation fault error when no file is selected in
  2134. multi-file torrent.
  2135. * src/BitfieldMan.cc
  2136. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Escaped <,>,& character in XML-RPC response.
  2138. * src/XmlRpcMethod.cc
  2139. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Throw DlAbortEx instead of FatalException during parsing options
  2141. because we don't want for aria2 to quit when bad option is passed
  2142. via XML-RPC.
  2143. * src/OptionHandlerException.cc
  2144. * src/OptionHandlerException.h
  2145. * src/OptionHandlerImpl.h
  2146. * src/OptionParser.cc
  2147. * src/OptionParser.h
  2148. * src/PStringSegment.cc
  2149. * src/ParameterizedStringParser.cc
  2150. * src/download_helper.cc
  2151. * test/ParameterizedStringParserTest.cc
  2152. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Selecting files are now done in
  2154. DefaultBtContext::setFileFileter().
  2155. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2156. functions are removed because they are no longer used. Creating
  2157. filter in BitfieldMan is done in new funtion
  2158. PieceStorage::setupFileFilter()
  2159. * src/BtContext.cc
  2160. * src/BtContext.h
  2161. * src/DefaultBtContext.cc
  2162. * src/DefaultBtContext.h
  2163. * src/DefaultPieceStorage.cc
  2164. * src/DefaultPieceStorage.h
  2165. * src/DiskAdaptor.cc
  2166. * src/DiskAdaptor.h
  2167. * src/PieceStorage.h
  2168. * src/RequestGroup.cc
  2169. * src/UnknownLengthPieceStorage.h
  2170. * src/XmlRpcMethodImpl.cc
  2171. * test/DefaultBtContextTest.cc
  2172. * test/MockBtContext.h
  2173. * test/MockPieceStorage.h
  2174. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Fixed compile error on Mac OS X
  2176. * src/HttpServer.cc
  2177. * src/XmlRpcMethod.h
  2178. * src/XmlRpcMethodImpl.cc
  2179. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Use std::binary_search instead of std::find
  2181. * src/DefaultPieceStorage.cc
  2182. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Removed unnecessary BDE() call; leave them to implicit conversion.
  2184. * src/XmlRpcMethodImpl.cc
  2185. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Return connections and gid in string
  2187. * src/XmlRpcMethodImpl.cc
  2188. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Renamed addURI as addUri
  2190. * src/XmlRpcMethodFactory.cc
  2191. * src/XmlRpcMethodImpl.cc
  2192. * src/XmlRpcMethodImpl.h
  2193. * test/XmlRpcMethodTest.cc
  2194. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Renamed addTorrentFile as addTorrent
  2196. * src/XmlRpcMethodFactory.cc
  2197. * src/XmlRpcMethodImpl.cc
  2198. * src/XmlRpcMethodImpl.h
  2199. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. The information for files, URIs, peers are removed from the
  2201. reponse of TellaActive, TellStatus command because they tend to be
  2202. large. Instead they can be retrieved by the dedicated commands:
  2203. getFiles, getUris and getPeers respectively.
  2204. * src/XmlRpcMethodFactory.cc
  2205. * src/XmlRpcMethodImpl.cc
  2206. * src/XmlRpcMethodImpl.h
  2207. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Removed --max-overall-upload-limit and
  2209. --max-overall-download-limit option from listRequestOptions.
  2210. * src/download_helper.cc
  2211. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Log incoming host in HttpListenCommand.
  2213. * src/HttpListenCommand.cc
  2214. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2216. --xml-rpc-passwd option.
  2217. * src/HttpServer.cc
  2218. * src/HttpServer.h
  2219. * src/HttpServerCommand.cc
  2220. * src/OptionHandlerFactory.cc
  2221. * src/prefs.cc
  2222. * src/prefs.h
  2223. * src/usage_text.h
  2224. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2226. processing 0 length request.
  2227. * src/HttpServerBodyCommand.cc
  2228. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Removed --enable-http-server and --http-server-listen-port
  2230. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2231. instead. The original feature for --enable-http-server that
  2232. reports download progress in HTML was officially removed. Persist
  2233. XML-RPC connection if client supports keep-alive.
  2234. * src/DownloadEngineFactory.cc
  2235. * src/HttpServerCommand.cc
  2236. * src/HttpServerResponseCommand.cc
  2237. * src/Makefile.am
  2238. * src/Makefile.in
  2239. * src/OptionHandlerFactory.cc
  2240. * src/RequestGroupMan.cc
  2241. * src/main.cc
  2242. * src/option_processing.cc
  2243. * src/prefs.cc
  2244. * src/prefs.h
  2245. * src/usage_text.h
  2246. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Added "uris" key to the response of tellStatus command. Added
  2248. "connections" key to the response of tellStatus and tellActive
  2249. command.
  2250. * src/XmlRpcMethodImpl.cc
  2251. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2253. Added TellStatusXmlRpcMethod. Remove command can now remove
  2254. waiting RequestGroup.
  2255. * src/RequestGroupMan.cc
  2256. * src/RequestGroupMan.h
  2257. * src/XmlRpcMethodFactory.cc
  2258. * src/XmlRpcMethodImpl.cc
  2259. * src/XmlRpcMethodImpl.h
  2260. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Initialized _peerId
  2262. * src/Peer.cc
  2263. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Return fault structure for error. FailXmlRpcMethod is renamed as
  2265. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2266. in non-torrent download. Return single param value.
  2267. * src/XmlRpcMethod.cc
  2268. * src/XmlRpcMethodFactory.cc
  2269. * src/XmlRpcMethodImpl.cc
  2270. * src/XmlRpcMethodImpl.h
  2271. * test/XmlRpcMethodTest.cc
  2272. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2274. command.
  2275. * src/RequestGroup.cc
  2276. * src/RequestGroup.h
  2277. * src/RequestGroupMan.cc
  2278. * src/XmlRpcMethodImpl.cc
  2279. * test/RequestGroupTest.cc
  2280. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Added more options that can be specified in -i list and xml-rpc
  2282. add* command.
  2283. * src/download_helper.h
  2284. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. The available options in -i list should be listed in
  2286. listRequestOptions().
  2287. * src/download_helper.cc
  2288. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2290. command.
  2291. * src/XmlRpcMethodImpl.cc
  2292. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Now RequestGroup has its own copy of Option object. This will help
  2294. to give custom option for each RequestGroup.
  2295. addTorrentFile command now takes options.
  2296. * src/AbstractCommand.cc
  2297. * src/AbstractCommand.h
  2298. * src/AbstractProxyRequestCommand.cc
  2299. * src/ActivePeerConnectionCommand.cc
  2300. * src/ActivePeerConnectionCommand.h
  2301. * src/AdaptiveURISelector.cc
  2302. * src/BtCheckIntegrityEntry.cc
  2303. * src/BtDependency.cc
  2304. * src/BtDependency.h
  2305. * src/BtFileAllocationEntry.cc
  2306. * src/BtPostDownloadHandler.cc
  2307. * src/CheckIntegrityEntry.cc
  2308. * src/DownloadCommand.cc
  2309. * src/FtpDownloadCommand.cc
  2310. * src/FtpFinishDownloadCommand.cc
  2311. * src/FtpInitiateConnectionCommand.cc
  2312. * src/FtpNegotiationCommand.cc
  2313. * src/HttpInitiateConnectionCommand.cc
  2314. * src/HttpRequestCommand.cc
  2315. * src/HttpResponseCommand.cc
  2316. * src/HttpSkipResponseCommand.cc
  2317. * src/InitiateConnectionCommand.cc
  2318. * src/InitiateConnectionCommandFactory.cc
  2319. * src/InitiatorMSEHandshakeCommand.cc
  2320. * src/InitiatorMSEHandshakeCommand.h
  2321. * src/Metalink2RequestGroup.cc
  2322. * src/Metalink2RequestGroup.h
  2323. * src/MetalinkPostDownloadHandler.cc
  2324. * src/MultiUrlRequestInfo.cc
  2325. * src/MultiUrlRequestInfo.h
  2326. * src/PeerAbstractCommand.cc
  2327. * src/PeerInteractionCommand.cc
  2328. * src/PeerInteractionCommand.h
  2329. * src/PeerReceiveHandshakeCommand.cc
  2330. * src/PeerReceiveHandshakeCommand.h
  2331. * src/RequestGroup.cc
  2332. * src/RequestGroup.h
  2333. * src/TrackerWatcherCommand.cc
  2334. * src/TrackerWatcherCommand.h
  2335. * src/XmlRpcMethod.cc
  2336. * src/XmlRpcMethod.h
  2337. * src/XmlRpcMethodImpl.cc
  2338. * src/download_helper.cc
  2339. * src/download_helper.h
  2340. * src/main.cc
  2341. * test/BtDependencyTest.cc
  2342. * test/BtPostDownloadHandlerTest.cc
  2343. * test/DefaultBtMessageDispatcherTest.cc
  2344. * test/DownloadHandlerFactoryTest.cc
  2345. * test/DownloadHelperTest.cc
  2346. * test/Metalink2RequestGroupTest.cc
  2347. * test/MetalinkPostDownloadHandlerTest.cc
  2348. * test/RequestGroupManTest.cc
  2349. * test/RequestGroupTest.cc
  2350. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Added tellActiveStatus xml-rpc command which reports download
  2352. status of active downloads.
  2353. * src/XmlRpcMethodFactory.cc
  2354. * src/XmlRpcMethodImpl.cc
  2355. * src/XmlRpcMethodImpl.h
  2356. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Added addTorrentFile xml-rpc command which receives uploaded
  2358. torrent file and add download for it.
  2359. * src/RequestGroupMan.cc
  2360. * src/XmlRpcMethodFactory.cc
  2361. * src/XmlRpcMethodImpl.cc
  2362. * src/XmlRpcMethodImpl.h
  2363. * src/download_helper.cc
  2364. * src/download_helper.h
  2365. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Added remove xml-rpc command which removes specified download.
  2367. There is a known issue: the removed unfinished downloads are
  2368. reported ERR when aria2 exits. They should be reported as INPR.
  2369. * src/RequestGroupMan.cc
  2370. * src/RequestGroupMan.h
  2371. * src/XmlRpcMethodFactory.cc
  2372. * src/XmlRpcMethodImpl.cc
  2373. * src/XmlRpcMethodImpl.h
  2374. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. If --enable-http-server is enabled, don't stop aria2 when all
  2376. download finished and don't quit when no files to download at
  2377. start up.
  2378. * src/RequestGroupMan.cc
  2379. * src/main.cc
  2380. * src/option_processing.cc
  2381. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Added missing AM_CONDITIONAL
  2383. * configure.ac
  2384. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Added xml-rpc functionality. Currently only addURI commad is
  2386. supported. To enable xml-rpc, run aria2 with
  2387. --enable-http-server. This option name is temporal and will be
  2388. changed. The feature that reports download progress in html format
  2389. is temporarily disabled.
  2390. * src/HttpServer.cc
  2391. * src/HttpServer.h
  2392. * src/HttpServerBodyCommand.cc
  2393. * src/HttpServerBodyCommand.h
  2394. * src/HttpServerCommand.cc
  2395. * src/HttpServerResponseCommand.cc
  2396. * src/Makefile.am
  2397. * src/OptionParser.cc
  2398. * src/OptionParser.h
  2399. * src/RequestGroupMan.cc
  2400. * src/RequestGroupMan.h
  2401. * src/XmlRpcMethod.cc
  2402. * src/XmlRpcMethod.h
  2403. * src/XmlRpcMethodFactory.cc
  2404. * src/XmlRpcMethodFactory.h
  2405. * src/XmlRpcMethodImpl.cc
  2406. * src/XmlRpcMethodImpl.h
  2407. * src/download_helper.cc
  2408. * src/download_helper.h
  2409. * test/Makefile.am
  2410. * test/XmlRpcMethodTest.cc
  2411. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Added xml-rpc request parser. The supported value types are:
  2413. i4/int, string, double, struct, array, base64. Currently only
  2414. libxml2 version is provided.
  2415. * src/Xml2XmlRpcRequestProcessor.cc
  2416. * src/Xml2XmlRpcRequestProcessor.h
  2417. * src/XmlRpcElements.cc
  2418. * src/XmlRpcElements.h
  2419. * src/XmlRpcRequest.h
  2420. * src/XmlRpcRequestParserController.cc
  2421. * src/XmlRpcRequestParserController.h
  2422. * src/XmlRpcRequestParserState.h
  2423. * src/XmlRpcRequestParserStateImpl.cc
  2424. * src/XmlRpcRequestParserStateImpl.h
  2425. * src/XmlRpcRequestParserStateMachine.cc
  2426. * src/XmlRpcRequestParserStateMachine.h
  2427. * src/XmlRpcRequestProcessor.h
  2428. * test/XmlRpcRequestParserControllerTest.cc
  2429. * test/XmlRpcRequestProcessorTest.cc
  2430. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. * Release 1.3.3
  2432. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Fixed compile error since r1202.
  2434. * src/ExpatMetalinkProcessor.cc
  2435. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Updated Ukrainian, Russian and Simplified Chinese
  2437. translations. Thanks to all translators.
  2438. * po/ru.po
  2439. * po/uk.po
  2440. * po/zh_CN.po
  2441. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Pass reference of Option object instead of pointer.
  2443. * src/download_helper.cc
  2444. * src/download_helper.h
  2445. * src/main.cc
  2446. * test/DownloadHelperTest.cc
  2447. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2449. from option directly. Instead, get them from RequestGroup.
  2450. * src/ActivePeerConnectionCommand.cc
  2451. * src/ActivePeerConnectionCommand.h
  2452. * src/PeerReceiveHandshakeCommand.cc
  2453. * src/RequestGroup.h
  2454. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Removed unused uploadLimitCheck and uploadLimit from
  2456. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2457. PeerInteractionCommand.
  2458. * src/PeerAbstractCommand.cc
  2459. * src/PeerAbstractCommand.h
  2460. * src/PeerInteractionCommand.cc
  2461. * src/PeerInteractionCommand.h
  2462. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Fixed broken file renaming feature since r1202.
  2464. * src/FtpNegotiationCommand.cc
  2465. * src/FtpNegotiationCommand.h
  2466. * src/HttpResponseCommand.cc
  2467. * src/RequestGroup.cc
  2468. * src/RequestGroup.h
  2469. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Removed unused debug log
  2471. * src/SocketCore.cc
  2472. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Generated configure and Makefile.in using autoconf 2.63 and
  2474. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2475. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2476. * configure.ac
  2477. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Moved piece statistics stuff to new PieceStatMan class.
  2479. Refactored PieceSelector interface.
  2480. * src/DefaultPieceStorage.cc
  2481. * src/DefaultPieceStorage.h
  2482. * src/LongestSequencePieceSelector.cc
  2483. * src/LongestSequencePieceSelector.h
  2484. * src/Makefile.am
  2485. * src/PieceSelector.h
  2486. * src/PieceStatMan.cc
  2487. * src/PieceStatMan.h
  2488. * src/RarestPieceSelector.cc
  2489. * src/RarestPieceSelector.h
  2490. * src/RequestGroup.cc
  2491. * test/DefaultPieceStorageTest.cc
  2492. * test/InOrderPieceSelector.h
  2493. * test/Makefile.am
  2494. * test/PieceStatManTest.cc
  2495. * test/RarestPieceSelectorTest.cc
  2496. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Added static member _protocolFamily to SocketCore. By default,
  2498. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2499. address. Sometime SocketCore::bind() and
  2500. SocketCore::establishConnection() use difference protocl family
  2501. and latter cannot connect to former. To avoid this situation, we
  2502. limit protocol family to AF_INET for unit tests.
  2503. * src/SocketCore.cc
  2504. * src/SocketCore.h
  2505. * test/AllTest.cc
  2506. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Avoid std::bad_alloc for negative bencode string length.
  2508. * src/bencode.cc
  2509. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Supported segmented downloading with chunked transfer encoding and
  2511. content-length.
  2512. * src/DownloadCommand.cc
  2513. * src/HttpResponseCommand.cc
  2514. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Bump up version number to 1.3.3
  2516. * configure.ac
  2517. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2519. from 4096 to 65536 (for insanely large ftp login banners)
  2520. * src/FtpConnection.h
  2521. * test/FtpConnectionTest.cc
  2522. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. In DefaultBtContext::getActualBasePath(), return first
  2524. FileEntry::getPath() for single file torrent.
  2525. * src/DefaultBtContext.cc
  2526. * test/DefaultBtContextTest.cc
  2527. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2529. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2530. Removed _directIOAllowed member from DiskWriter.
  2531. * src/AbstractDiskWriter.cc
  2532. * src/AbstractDiskWriter.h
  2533. * src/AbstractSingleDiskAdaptor.cc
  2534. * src/AbstractSingleDiskAdaptor.h
  2535. * src/BinaryStream.h
  2536. * src/ByteArrayDiskWriter.h
  2537. * src/DefaultPieceStorage.cc
  2538. * src/DiskWriter.h
  2539. * src/MultiDiskAdaptor.cc
  2540. * src/MultiDiskAdaptor.h
  2541. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Now the constructor of AbstractDiskWriter takes filename as an
  2543. argument and filename argument is removed from openFile(),
  2544. initAndOpenFile(), openExistingFile() interface. storeDir member
  2545. and its accessor functions are removed from DiskAdaptor because it
  2546. is not used anymore. size() member function of DefaultDiskWriter,
  2547. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2548. opening file.
  2549. * src/AbstractDiskWriter.cc
  2550. * src/AbstractDiskWriter.h
  2551. * src/AbstractSingleDiskAdaptor.cc
  2552. * src/AbstractSingleDiskAdaptor.h
  2553. * src/ByteArrayDiskWriter.cc
  2554. * src/ByteArrayDiskWriter.h
  2555. * src/ByteArrayDiskWriterFactory.cc
  2556. * src/ByteArrayDiskWriterFactory.h
  2557. * src/DefaultDiskWriter.cc
  2558. * src/DefaultDiskWriter.h
  2559. * src/DefaultDiskWriterFactory.cc
  2560. * src/DefaultDiskWriterFactory.h
  2561. * src/DefaultPieceStorage.cc
  2562. * src/DirectDiskAdaptor.cc
  2563. * src/DirectDiskAdaptor.h
  2564. * src/DiskAdaptor.h
  2565. * src/DiskWriter.h
  2566. * src/DiskWriterFactory.h
  2567. * src/MessageDigestHelper.cc
  2568. * src/MultiDiskAdaptor.cc
  2569. * src/RequestGroup.cc
  2570. * src/UnknownLengthPieceStorage.cc
  2571. * src/Util.cc
  2572. * test/DefaultDiskWriterTest.cc
  2573. * test/DirectDiskAdaptorTest.cc
  2574. * test/FallocFileAllocationIteratorTest.cc
  2575. * test/MessageDigestHelperTest.cc
  2576. * test/MetalinkProcessorTest.cc
  2577. * test/MultiDiskAdaptorTest.cc
  2578. * test/MultiFileAllocationIteratorTest.cc
  2579. * test/SingleFileAllocationIteratorTest.cc
  2580. * test/UtilTest.cc
  2581. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Fixed the bug that aria2 aborts when --select-file is used. This
  2583. bug was introduced in r1199.
  2584. * src/MultiDiskAdaptor.cc
  2585. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Code cleanup
  2587. * test/MockPieceStorage.cc
  2588. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Fixed the bug that read-only file with wrong file size will cause
  2590. error because it cannot be truncated to the correct size. Now if
  2591. file size is different than the expected one, re-open file in
  2592. writable mode.
  2593. * src/AbstractSingleDiskAdaptor.cc
  2594. * src/AbstractSingleDiskAdaptor.h
  2595. * src/BtCheckIntegrityEntry.cc
  2596. * src/DiskAdaptor.h
  2597. * src/MultiDiskAdaptor.h
  2598. * src/RequestGroup.cc
  2599. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Fixed the bug that with --check-integrity option aria2 reports
  2601. downloaded file size is 0 even if some parts of file is correctly
  2602. downloaded. This bug is reproducible for the download that a file
  2603. includes last piece is missing. This bug doesn't reveal for
  2604. single-torrent with file allocation on.
  2605. * src/IteratableChecksumValidator.cc
  2606. * test/IteratableChecksumValidatorTest.cc
  2607. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2609. * src/RequestGroupMan.cc
  2610. * src/AdaptiveURISelector.cc
  2611. * src/AdaptiveURISelector.h
  2612. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. * Release 1.3.2
  2614. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Updated README
  2616. * README
  2617. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Updated Ukrainian translations. Thanks to Alexander10.
  2619. * po/uk.po
  2620. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Code cleanup
  2622. * src/MetalinkParserStateMachine.cc
  2623. * src/MetalinkParserStateMachine.h
  2624. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2626. and expat simultaneously, MetalinkProcessor is now not base class
  2627. and it is directly implemented in XML2SAXMetalinkProcessor and
  2628. ExpatMetalinkProcessor.
  2629. * src/ExpatMetalinkProcessor.cc
  2630. * src/ExpatMetalinkProcessor.h
  2631. * src/Makefile.am
  2632. * src/MetalinkHelper.cc
  2633. * src/MetalinkProcessor.h
  2634. * src/MetalinkProcessorFactory.cc: Removed.
  2635. * src/MetalinkProcessorFactory.h: Removed
  2636. * src/XML2SAXMetalinkProcessor.cc
  2637. * src/XML2SAXMetalinkProcessor.h
  2638. * test/MetalinkProcessorTest.cc
  2639. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Bump up version number to 1.3.2
  2641. * configure.ac
  2642. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Added missing file.
  2644. * test/Makefile.am
  2645. * test/url-list-singleFileEndsWithSlash.torrent
  2646. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2648. request.
  2649. * src/AnnounceList.cc
  2650. * src/AnnounceList.h
  2651. * src/BDE.cc: Added
  2652. * src/BDE.h: Added
  2653. * src/DHTAbstractMessage.cc
  2654. * src/DHTAbstractMessage.h
  2655. * src/DHTAnnouncePeerMessage.cc
  2656. * src/DHTAnnouncePeerMessage.h
  2657. * src/DHTAnnouncePeerReplyMessage.cc
  2658. * src/DHTAnnouncePeerReplyMessage.h
  2659. * src/DHTFindNodeMessage.cc
  2660. * src/DHTFindNodeMessage.h
  2661. * src/DHTFindNodeReplyMessage.cc
  2662. * src/DHTFindNodeReplyMessage.h
  2663. * src/DHTGetPeersMessage.cc
  2664. * src/DHTGetPeersMessage.h
  2665. * src/DHTGetPeersReplyMessage.cc
  2666. * src/DHTGetPeersReplyMessage.h
  2667. * src/DHTMessageFactory.h
  2668. * src/DHTMessageFactoryImpl.cc
  2669. * src/DHTMessageFactoryImpl.h
  2670. * src/DHTMessageReceiver.cc
  2671. * src/DHTMessageTracker.cc
  2672. * src/DHTMessageTracker.h
  2673. * src/DHTPingMessage.cc
  2674. * src/DHTPingMessage.h
  2675. * src/DHTPingReplyMessage.cc
  2676. * src/DHTPingReplyMessage.h
  2677. * src/DHTQueryMessage.cc
  2678. * src/DHTQueryMessage.h
  2679. * src/DHTResponseMessage.cc
  2680. * src/DHTResponseMessage.h
  2681. * src/DefaultBtAnnounce.cc
  2682. * src/DefaultBtContext.cc
  2683. * src/DefaultBtContext.h
  2684. * src/HandshakeExtensionMessage.cc
  2685. * src/Makefile.am
  2686. * src/PeerListProcessor.h
  2687. * src/UTPexExtensionMessage.cc
  2688. * src/bencode.cc
  2689. * src/bencode.h
  2690. * test/AnnounceListTest.cc
  2691. * test/BDETest.cc: Added
  2692. * test/BencodeTest.cc
  2693. * test/DHTAnnouncePeerMessageTest.cc
  2694. * test/DHTAnnouncePeerReplyMessageTest.cc
  2695. * test/DHTFindNodeMessageTest.cc
  2696. * test/DHTFindNodeReplyMessageTest.cc
  2697. * test/DHTGetPeersMessageTest.cc
  2698. * test/DHTGetPeersReplyMessageTest.cc
  2699. * test/DHTMessageFactoryImplTest.cc
  2700. * test/DHTMessageTrackerTest.cc
  2701. * test/DHTPingMessageTest.cc
  2702. * test/DHTPingReplyMessageTest.cc
  2703. * test/Makefile.am
  2704. * test/MockDHTMessageFactory.h
  2705. * test/PeerListProcessorTest.cc
  2706. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Use url-list (web-seeding) only for single-file torrent. This is
  2708. basically the same behavior with Metalink file with torrent and
  2709. URIs.
  2710. * src/RequestGroup.cc
  2711. * src/DefaultBtContext.cc
  2712. * test/DefaultBtContextTest.cc
  2713. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Rewritten expr
  2715. * src/array_fun.h
  2716. * test/array_funTest.cc
  2717. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2719. * src/DefaultBtMessageDispatcher.cc
  2720. * src/a2algo.h
  2721. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Removed ExtendedMessagingAware. Instead of using inheritance,
  2723. added ExtensionMessageRegistry and it is passed to
  2724. DefaultExtensionMessageFactory.
  2725. * src/DefaultBtInteractive.cc
  2726. * src/DefaultBtInteractive.h
  2727. * src/DefaultExtensionMessageFactory.cc
  2728. * src/DefaultExtensionMessageFactory.h
  2729. * src/ExtendedMessagingAware.h: Removed.
  2730. * src/ExtensionMessageFactory.h
  2731. * src/ExtensionMessageRegistry.h: Added.
  2732. * src/Makefile.am
  2733. * src/PeerInteractionCommand.cc
  2734. * test/DefaultExtensionMessageFactoryTest.cc
  2735. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Fixed typo in log messages
  2737. * src/MSEHandshake.cc
  2738. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Fixed the bug that prevents torrent download from finishing. The
  2740. bug doesn't reveal for all torrents. The torrents affected this
  2741. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2742. of pieces.
  2743. * src/bitfield.h
  2744. * test/bitfieldTest.cc
  2745. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Code cleanup
  2747. * src/PeerListProcessor.h
  2748. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Removed RequestGroupAware
  2750. * src/AbstractCommand.cc
  2751. * src/AbstractCommand.h
  2752. * src/ActivePeerConnectionCommand.cc
  2753. * src/ActivePeerConnectionCommand.h
  2754. * src/DHTGetPeersCommand.cc
  2755. * src/DHTGetPeersCommand.h
  2756. * src/InitiatorMSEHandshakeCommand.cc
  2757. * src/InitiatorMSEHandshakeCommand.h
  2758. * src/Makefile.am
  2759. * src/PeerInitiateConnectionCommand.cc
  2760. * src/PeerInitiateConnectionCommand.h
  2761. * src/PeerInteractionCommand.cc
  2762. * src/PeerInteractionCommand.h
  2763. * src/RealtimeCommand.cc
  2764. * src/RealtimeCommand.h
  2765. * src/RequestGroupAware.cc: Removed
  2766. * src/RequestGroupAware.h: Removed
  2767. * src/SeedCheckCommand.cc
  2768. * src/SeedCheckCommand.h
  2769. * src/SleepCommand.cc
  2770. * src/TrackerWatcherCommand.cc
  2771. * src/TrackerWatcherCommand.h
  2772. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Rewritten PeerListProcessor
  2774. * src/PeerListProcessor.h
  2775. * src/CompactPeerListProcessor.h: Removed
  2776. * src/CompactPeerListProcessor.cc: Removed
  2777. * src/DelegatingPeerListProcessor.cc: Removed.
  2778. * src/DefaultBtAnnounce.cc
  2779. * src/Makefile.am
  2780. * src/UTPexExtensionMessage.cc
  2781. * src/DefaultPeerListProcessor.h: Removed.
  2782. * src/DefaultPeerListProcessor.cc: Removed.
  2783. * src/DelegatingPeerListProcessor.h: Removed.
  2784. * test/Makefile.am
  2785. * test/PeerListProcessorTest.cc
  2786. * test/DefaultPeerListProcessorTest.cc: Removed.
  2787. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Rewritten RequestGroupMan::calculateStat()
  2789. * src/RequestGroupMan.cc
  2790. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Removed unnecessary virtual destructor for Request class.
  2792. * src/Request.cc
  2793. * src/Request.h
  2794. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Avoid dynamic_pointer_cast.
  2796. * src/DHTGetPeersCommand.cc
  2797. * src/DHTGetPeersCommand.h
  2798. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2800. BtEvent.
  2801. * src/AbstractBtEventListener.h: Removed.
  2802. * src/AbstractBtMessage.cc
  2803. * src/AbstractBtMessage.h
  2804. * src/BtAbortOutstandingRequestEvent.h
  2805. * src/BtCancelSendingPieceEvent.h
  2806. * src/BtChokedEvent.h: Removed.
  2807. * src/BtChokingEvent.h
  2808. * src/BtEvent.h: Removed
  2809. * src/BtEventListener.h: Removed.
  2810. * src/BtMessage.h
  2811. * src/BtPieceMessage.cc
  2812. * src/BtPieceMessage.h
  2813. * src/BtRequestMessage.cc
  2814. * src/BtRequestMessage.h
  2815. * src/DefaultBtMessageDispatcher.cc
  2816. * src/Makefile.am
  2817. * src/a2functional.h
  2818. * test/BtPieceMessageTest.cc
  2819. * test/BtRequestMessageTest.cc
  2820. * test/DefaultBtMessageDispatcherTest.cc
  2821. * test/MockBtMessage.h
  2822. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Code cleanup
  2824. * src/RequestGroupMan.cc
  2825. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2826. Code cleanup
  2827. * src/DownloadCommand.cc
  2828. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2830. byte.
  2831. * src/DownloadCommand.cc
  2832. * src/bitfield.h
  2833. * test/bitfieldTest.cc
  2834. Fixed the bug that causes infinite loop if broken web server
  2835. returns chunked response without last "0" chunk-size marker and
  2836. closes connection.
  2837. * src/DownloadCommand.cc
  2838. Instantiate properly configured HttpDownloadCommand for
  2839. non-resumable downlaods.
  2840. * src/HttpResponseCommand.cc
  2841. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Rewritten array operation functions.
  2843. * src/BitfieldMan.cc
  2844. * src/array_fun.h
  2845. * test/array_funTest.cc
  2846. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2847. Removed unused variable 'query'
  2848. * src/Request.cc
  2849. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2851. accidentally set to false in r1162.
  2852. * configure.ac
  2853. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Code cleanup
  2855. * src/BNode.cc
  2856. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Increase prefixLength for the bucket which doesn't own local node
  2858. ID when splitting bucket.
  2859. * src/DHTBucket.cc
  2860. * test/DHTBucketTest.cc
  2861. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. * Release 1.3.1
  2863. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Bump up version number to 1.3.1
  2865. * configure.ac
  2866. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Removed unused variable checkPoint. Also removed include directive
  2868. for TimeA2.h.
  2869. * src/SeedCheckCommand.h
  2870. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Fixed the bug that upload limit exceeds the value specified in
  2872. --seed-ratio option depending on the timing of the execution of
  2873. SeedCheckCommand.
  2874. * src/SeedCheckCommand.cc
  2875. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Fixed the bug that removed peer's session upload/download length
  2877. are counted twice in _cachedTransferStat before it is
  2878. re-calculated. This affected the calculation of shara ratio,
  2879. resulting aria2 wrongly determines that specified share ratio is
  2880. reached. Also fixed the typo in calculateStatFor function name.
  2881. * src/BtSetup.cc
  2882. * src/DefaultPeerStorage.cc
  2883. * src/ShareRatioSeedCriteria.h
  2884. * test/ShareRatioSeedCriteriaTest.cc
  2885. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. * Release 1.3.0
  2887. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2889. Nynorsk translations. Thanks to all translators.
  2890. * po/es.po
  2891. * po/ja.po
  2892. * po/nn.po
  2893. * po/ru.po
  2894. * po/uk.po
  2895. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Rewritten isInRange()
  2897. * src/DHTBucket.cc
  2898. * test/DHTBucketTest.cc
  2899. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Fixed typo
  2901. * doc/aria2c.1.txt
  2902. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2904. malloc/realloc is not used.
  2905. * src/configure.ac
  2906. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2908. char* bitfield instead of stl container for efficiency.
  2909. PieceSelector::select now takes this
  2910. bitfield. RarestPieceSelector::select now also performs
  2911. efficiently for this change. bitfield namespace is introduced and
  2912. it has several helper functions to handle basic bitfield
  2913. operations such as test, count set bits, etc.
  2914. * src/BitfieldMan.cc
  2915. * src/BitfieldMan.h
  2916. * src/DefaultBtRequestFactory.cc
  2917. * src/DefaultPieceStorage.cc
  2918. * src/DefaultPieceStorage.h
  2919. * src/LongestSequencePieceSelector.cc
  2920. * src/LongestSequencePieceSelector.h
  2921. * src/Makefile.am
  2922. * src/Piece.cc
  2923. * src/Piece.h
  2924. * src/PieceSelector.h
  2925. * src/RarestPieceSelector.cc
  2926. * src/RarestPieceSelector.h
  2927. * src/Util.cc
  2928. * src/Util.h
  2929. * src/bitfield.h
  2930. * test/BitfieldManTest.cc
  2931. * test/LongestSequencePieceSelectorTest.cc
  2932. * test/Makefile.am
  2933. * test/RarestPieceSelectorTest.cc
  2934. * test/UtilTest.cc
  2935. * test/bitfieldTest.cc
  2936. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. Made accepted socket non-block.
  2938. * src/FtpNegotiationCommand.cc
  2939. * src/HttpListenCommand.cc
  2940. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2942. * src/AbstractSingleDiskAdaptor.cc
  2943. * src/DefaultPieceStorage.cc
  2944. * src/DiskAdaptor.h
  2945. * src/DiskAdaptor.h
  2946. * src/MultiFileAllocationIterator.cc
  2947. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Run
  2949. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2950. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2951. it doesn't need to be called every time when
  2952. DefaultBtInteractive::doInteractionProcessing() is called.
  2953. * src/DefaultBtInteractive.cc
  2954. * src/DefaultBtInteractive.h
  2955. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Documented 'falloc' in man page.
  2957. * doc/aria2c.1.txt
  2958. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Updated doc
  2960. * src/usage_text.h
  2961. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2963. allocation mode uses posix_fallocate() system call to allocate
  2964. file on disk. If you are using newer file systems such as ext4
  2965. (with extents support), btrfs or xfs, 'falloc' is your best
  2966. choice. It allocates large(few GiB) files almost instantly. Don't
  2967. use 'falloc' with legacy file systems such as ext3 because it
  2968. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2969. until allocation finishes. 'falloc' may not be available if your
  2970. system doesn't have posix_fallocate() system call.
  2971. * configure.ac
  2972. * src/AbstractDiskWriter.cc
  2973. * src/AbstractDiskWriter.h
  2974. * src/AbstractSingleDiskAdaptor.cc
  2975. * src/BinaryStream.h
  2976. * src/BtCheckIntegrityEntry.cc
  2977. * src/ByteArrayDiskWriter.h
  2978. * src/CheckIntegrityEntry.cc
  2979. * src/CheckIntegrityEntry.h
  2980. * src/DefaultPieceStorage.cc
  2981. * src/DiskAdaptor.cc
  2982. * src/DiskAdaptor.h
  2983. * src/DiskWriter.h
  2984. * src/FallocFileAllocationIterator.cc
  2985. * src/FallocFileAllocationIterator.h
  2986. * src/FileAllocationEntry.cc
  2987. * src/FileAllocationEntry.h
  2988. * src/Makefile.am
  2989. * src/MultiFileAllocationIterator.cc
  2990. * src/MultiFileAllocationIterator.h
  2991. * src/OptionHandlerFactory.cc
  2992. * src/RequestGroup.cc
  2993. * src/StreamCheckIntegrityEntry.cc
  2994. * src/prefs.cc
  2995. * src/prefs.h
  2996. * src/usage_text.h
  2997. * test/FallocFileAllocationIteratorTest.cc
  2998. * test/Makefile.am
  2999. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Removed duplicate enableDirectIO() call.
  3001. * src/MultiFileAllocationIterator.cc
  3002. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3004. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3005. cost of std::rotate().
  3006. * src/RarestPieceSelector.cc
  3007. * src/RarestPieceSelector.h
  3008. * test/RarestPieceSelectorTest.cc
  3009. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Updated usage doc for --bt-tracker-interval option.
  3011. * src/usage_text.h
  3012. * doc/aria2c.1.txt
  3013. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Documented --bt-tracker-interval option in man page.
  3015. * doc/aria2c.1.txt
  3016. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Added an option to specify the interval between tracker requests.
  3018. If non-zero value is specified, aria2 uses it and ignores the
  3019. interval value in the response of tracker. If zero is specified,
  3020. aria2 determines the inteval value based on the tarcker response
  3021. and download progress.
  3022. * src/DefaultBtAnnounce.cc
  3023. * src/DefaultBtAnnounce.h
  3024. * src/OptionHandlerFactory.cc
  3025. * src/RequestGroup.cc
  3026. * src/prefs.cc
  3027. * src/prefs.h
  3028. * src/usage_text.h
  3029. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Added operator+=, operator-=, operator-
  3031. * src/TransferStat.cc
  3032. * src/TransferStat.h
  3033. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Refactored RarestPieceSelector to reduce CPU load, especially for
  3035. addPieceStats.
  3036. * src/RarestPieceSelector.cc
  3037. * src/RarestPieceSelector.h
  3038. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3040. getAllMissingBlockIndexes to reduce a call to
  3041. array_function_base::operator[].
  3042. * src/BitfieldMan.cc
  3043. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Cached TransferStat/download speed to avoid to sum them up in each
  3045. call.
  3046. * src/DefaultPeerStorage.cc
  3047. * src/DefaultPeerStorage.h
  3048. * src/SegmentMan.cc
  3049. * src/SegmentMan.h
  3050. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Typedefed cuid_t as int32_t in Command.h
  3052. * src/CUIDCounter.h
  3053. * src/Command.cc
  3054. * src/Command.h
  3055. * src/DownloadEngine.cc
  3056. * src/DownloadEngine.h
  3057. * src/PeerStat.h
  3058. * src/SegmentMan.cc
  3059. * src/SegmentMan.h
  3060. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Reduced the number of calls to PeerStorage::calculateStat() and
  3062. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3063. transfer rate.
  3064. * src/DefaultBtInteractive.cc
  3065. * src/DefaultBtMessageDispatcher.cc
  3066. * src/DefaultPeerStorage.cc
  3067. * src/DefaultPeerStorage.h
  3068. * src/DownloadCommand.cc
  3069. * src/DownloadEngine.cc
  3070. * src/PeerStorage.h
  3071. * src/SegmentMan.cc
  3072. * src/SegmentMan.h
  3073. * test/MockPeerStorage.h
  3074. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Prepended _dir+"/" after joining path elements in torrent file.
  3076. * src/DefaultBtContext.cc
  3077. * test/DefaultBtContextTest.cc
  3078. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Added missing IndexBtMessageValidator.h
  3080. * src/Makefile.am
  3081. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3083. Chinese translations. Thank you for contributing our project.
  3084. * po/id.po
  3085. * po/it.po
  3086. * po/ru.po
  3087. * po/uk.po
  3088. * po/zh_CN.po
  3089. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Updated README
  3091. * README
  3092. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Bump up version number to 1.3.0
  3094. * configure.ac
  3095. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Updated doc
  3097. * src/DefaultBtContext.h
  3098. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Slice/joinPath for name of single torrent.
  3100. * src/DefaultBtContext.cc
  3101. * test/DefaultBtContextTest.cc
  3102. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Updated man page: Documented --dry-run and --index-out
  3104. options. Changed the default value of --uri-selector and
  3105. --http-auth-challenge options. Removed --direct-file-mapping
  3106. option. Added example for --index-out
  3107. * doc/aria2c.1.txt
  3108. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Updated TEXT_DRY_RUN
  3110. * src/usage_text.h
  3111. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. Changed the default value of --uri-selector option from 'inorder'
  3113. to 'feedback'
  3114. * src/OptionHandlerFactory.cc
  3115. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Included current URI in exception message.
  3117. * src/AbstractCommand.cc
  3118. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Renamed ServerStatURISelector as FeedbackURISelector.
  3120. * src/FeedbackURISelector.cc
  3121. * src/FeedbackURISelector.h
  3122. * src/Makefile.am
  3123. * src/RequestGroupMan.cc
  3124. * src/ServerStatURISelector.cc
  3125. * src/ServerStatURISelector.h
  3126. * test/FeedbackURISelectorTest.cc
  3127. * test/Makefile.am
  3128. * test/ServerStatURISelectorTest.cc
  3129. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3131. all URIs are tested and their timeout is not reached.
  3132. * src/AdaptiveURISelector.cc
  3133. * src/AdaptiveURISelector.h
  3134. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Changed the default value of --http-auth-challenge option to false.
  3136. * src/OptionHandlerFactory.cc
  3137. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Reuse URIs when all unused URIs run out.
  3139. * src/OptionHandlerFactory.cc
  3140. * src/RequestGroup.cc
  3141. * src/prefs.cc
  3142. * src/prefs.h
  3143. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3145. and BtRejectMessage are derived from RangeBtMessage class.
  3146. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3147. derived from IndexBtMessage class. BtChokeMessage,
  3148. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3149. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3150. ZeroBtMessage class.
  3151. * src/AbstractBtMessage.cc
  3152. * src/AbstractBtMessage.h
  3153. * src/BtAllowedFastMessage.cc
  3154. * src/BtAllowedFastMessage.h
  3155. * src/BtAllowedFastMessageValidator.h: Removed
  3156. * src/BtBitfieldMessage.cc
  3157. * src/BtBitfieldMessage.h
  3158. * src/BtCancelMessage.cc
  3159. * src/BtCancelMessage.h
  3160. * src/BtCancelMessageValidator.h: Removed
  3161. * src/BtChokeMessage.cc
  3162. * src/BtChokeMessage.h
  3163. * src/BtExtendedMessage.cc
  3164. * src/BtExtendedMessage.h
  3165. * src/BtHandshakeMessage.cc
  3166. * src/BtHandshakeMessage.h
  3167. * src/BtHaveAllMessage.cc
  3168. * src/BtHaveAllMessage.h
  3169. * src/BtHaveMessage.cc
  3170. * src/BtHaveMessage.h
  3171. * src/BtHaveMessageValidator.h: Removed
  3172. * src/BtHaveNoneMessage.cc
  3173. * src/BtHaveNoneMessage.h
  3174. * src/BtInterestedMessage.cc
  3175. * src/BtInterestedMessage.h
  3176. * src/BtKeepAliveMessage.cc
  3177. * src/BtKeepAliveMessage.h
  3178. * src/BtNotInterestedMessage.cc
  3179. * src/BtNotInterestedMessage.h
  3180. * src/BtPieceMessage.cc
  3181. * src/BtPieceMessage.h
  3182. * src/BtPortMessage.cc
  3183. * src/BtPortMessage.h
  3184. * src/BtRejectMessage.cc
  3185. * src/BtRejectMessage.h
  3186. * src/BtRejectMessageValidator.h: Removed
  3187. * src/BtRequestMessage.cc
  3188. * src/BtRequestMessage.h
  3189. * src/BtRequestMessageValidator.h: Removed
  3190. * src/BtSuggestPieceMessage.cc
  3191. * src/BtSuggestPieceMessage.h
  3192. * src/BtSuggestPieceMessageValidator.h: Removed
  3193. * src/BtUnchokeMessage.cc
  3194. * src/BtUnchokeMessage.h
  3195. * src/DefaultBtMessageFactory.cc
  3196. * src/IndexBtMessage.cc
  3197. * src/IndexBtMessage.h
  3198. * src/IndexBtMessageValidator.h
  3199. * src/Makefile.am
  3200. * src/PeerMessageUtil.cc
  3201. * src/PeerMessageUtil.h
  3202. * src/RangeBtMessage.cc
  3203. * src/RangeBtMessage.h
  3204. * src/RangeBtMessageValidator.h
  3205. * src/SimpleBtMessage.cc
  3206. * src/SimpleBtMessage.h
  3207. * src/ZeroBtMessage.cc
  3208. * src/ZeroBtMessage.h
  3209. * test/BtRequestMessageTest.cc
  3210. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Reverted usage_text.h to r1093 to avoid to lose translated
  3212. messages.
  3213. * src/usage_text.h
  3214. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3216. declared as non-const previously is now const and defined in class
  3217. definition.
  3218. * src/AbstractBtMessage.cc
  3219. * src/AbstractBtMessage.h
  3220. * src/BtAllowedFastMessage.cc
  3221. * src/BtAllowedFastMessage.h
  3222. * src/BtBitfieldMessage.h
  3223. * src/BtCancelMessage.cc
  3224. * src/BtCancelMessage.h
  3225. * src/BtChokeMessage.cc
  3226. * src/BtChokeMessage.h
  3227. * src/BtExtendedMessage.cc
  3228. * src/BtExtendedMessage.h
  3229. * src/BtHandshakeMessage.cc
  3230. * src/BtHandshakeMessage.h
  3231. * src/BtHaveAllMessage.cc
  3232. * src/BtHaveAllMessage.h
  3233. * src/BtHaveMessage.cc
  3234. * src/BtHaveMessage.h
  3235. * src/BtHaveNoneMessage.cc
  3236. * src/BtHaveNoneMessage.h
  3237. * src/BtInterestedMessage.cc
  3238. * src/BtInterestedMessage.h
  3239. * src/BtKeepAliveMessage.cc
  3240. * src/BtKeepAliveMessage.h
  3241. * src/BtMessage.h
  3242. * src/BtNotInterestedMessage.cc
  3243. * src/BtNotInterestedMessage.h
  3244. * src/BtPieceMessage.h
  3245. * src/BtPortMessage.cc
  3246. * src/BtPortMessage.h
  3247. * src/BtRejectMessage.cc
  3248. * src/BtRejectMessage.h
  3249. * src/BtRequestMessage.cc
  3250. * src/BtRequestMessage.h
  3251. * src/BtSuggestPieceMessage.cc
  3252. * src/BtSuggestPieceMessage.h
  3253. * src/BtUnchokeMessage.cc
  3254. * src/BtUnchokeMessage.h
  3255. * src/SimpleBtMessage.cc
  3256. * src/SimpleBtMessage.h
  3257. * test/MockBtMessage.h
  3258. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Use FileEntry::exists()
  3260. * src/MultiDiskAdaptor.cc
  3261. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Added exists()
  3263. * src/FileEntry.cc
  3264. * src/FileEntry.h
  3265. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Added missing prefix dir.
  3267. * src/download_helper.cc
  3268. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3270. * src/CopyDiskAdaptor.cc: Removed
  3271. * src/CopyDiskAdaptor.h: Removed
  3272. * src/DefaultPieceStorage.cc
  3273. * src/Makefile.am
  3274. * src/OptionHandlerFactory.cc
  3275. * src/prefs.cc
  3276. * src/prefs.h
  3277. * src/usage_text.h
  3278. * test/CopyDiskAdaptorTest.cc: Removed
  3279. * test/Makefile.am
  3280. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Rewritten isSameFileBeingDownloaded()
  3282. * src/RequestGroupMan.cc
  3283. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Removed getName() from DownloadContext. getName() is declared in
  3285. BtContext.
  3286. * src/BtContext.h
  3287. * src/DownloadContext.h
  3288. * src/SingleFileDownloadContext.cc
  3289. * src/SingleFileDownloadContext.h
  3290. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3291. in AbstractSingleDiskAdaptor.
  3292. * src/AbstractSingleDiskAdaptor.h
  3293. * src/DiskAdaptor.h
  3294. * src/MultiDiskAdaptor.h
  3295. * src/RequestGroup.cc
  3296. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3297. MultiDiskAdaptor.
  3298. * src/DefaultPieceStorage.cc
  3299. * src/MultiDiskAdaptor.cc
  3300. * src/MultiDiskAdaptor.h
  3301. * test/MultiDiskAdaptorTest.cc
  3302. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. FileEntry::getPath() contains store(top level) directory to
  3304. simplify path handling operation. In the previous implementation,
  3305. store directory is concatenated to FileEntry::getPath() in
  3306. DownloadContext.
  3307. * src/BtDependency.cc
  3308. * src/BtPostDownloadHandler.cc
  3309. * src/CopyDiskAdaptor.cc
  3310. * src/DefaultBtContext.cc
  3311. * src/DirectDiskAdaptor.cc
  3312. * src/FileEntry.cc
  3313. * src/FileEntry.h
  3314. * src/FtpNegotiationCommand.cc
  3315. * src/HttpResponse.cc
  3316. * src/HttpResponseCommand.cc
  3317. * src/Metalink2RequestGroup.cc
  3318. * src/MultiDiskAdaptor.cc
  3319. * src/MultiDiskAdaptor.h
  3320. * src/MultiFileAllocationIterator.cc
  3321. * src/RequestGroup.cc
  3322. * src/SingleFileDownloadContext.cc
  3323. * src/SingleFileDownloadContext.h
  3324. * src/download_helper.cc
  3325. * test/BtDependencyTest.cc
  3326. * test/CopyDiskAdaptorTest.cc
  3327. * test/DefaultBtContextTest.cc
  3328. * test/DefaultBtProgressInfoFileTest.cc
  3329. * test/DirectDiskAdaptorTest.cc
  3330. * test/DownloadHelperTest.cc
  3331. * test/FileEntryTest.cc
  3332. * test/MultiDiskAdaptorTest.cc
  3333. * test/MultiFileAllocationIteratorTest.cc
  3334. * test/RequestGroupTest.cc
  3335. * test/SingleFileDownloadContextTest.cc
  3336. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Fixed compiler warning
  3338. * src/download_helper.cc
  3339. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Throw exception if same infohash torrent is now downloading.
  3341. * src/RequestGroup.cc
  3342. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Added --dry-run option. In this mode, aria2 just checks whether
  3344. the remote file is available and doesn't download data. This
  3345. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3346. are canceled in this mode.
  3347. * src/FtpNegotiationCommand.cc
  3348. * src/HttpResponseCommand.cc
  3349. * src/HttpResponseCommand.h
  3350. * src/OptionHandlerFactory.cc
  3351. * src/RequestGroup.cc
  3352. * src/RequestGroupMan.cc
  3353. * src/prefs.cc
  3354. * src/prefs.h
  3355. * src/usage_text.h
  3356. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Fixed compiler waring
  3358. * test/UriListParserTest.cc
  3359. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Parse options in -i list using OptionParser.
  3361. * src/UriListParser.cc
  3362. * src/UriListParser.h
  3363. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Don't reset URI in retry to avoid additional round trips because
  3365. of redirects.
  3366. * src/AbstractCommand.cc
  3367. * src/OptionHandlerFactory.cc
  3368. * src/prefs.cc
  3369. * src/prefs.h
  3370. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Declared hide() in OptionHandler.
  3372. * src/NameMatchOptionHandler.h
  3373. * src/OptionHandler.h
  3374. * src/OptionHandlerImpl.h
  3375. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Updated doc
  3377. * src/Peer.h
  3378. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Added log message in setStatusInternal()
  3380. * src/ServerStat.cc
  3381. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3383. effectively exclude failed server.
  3384. * src/AbstractCommand.cc
  3385. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Added --index-out option to specify each file path for torrent.
  3387. Here index shown in --show-files option is used to specify which
  3388. file path should be altered. For example, to change the file path
  3389. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3390. option multiple times: --index-out=1=aria2.tar.bz2
  3391. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3392. available. This option can be specified in -i list.
  3393. * src/DefaultBtContext.cc
  3394. * src/DefaultBtContext.h
  3395. * src/MultiDiskAdaptor.cc
  3396. * src/MultiDiskAdaptor.h
  3397. * src/MultiFileAllocationIterator.cc
  3398. * src/OptionHandlerFactory.cc
  3399. * src/OptionHandlerImpl.h
  3400. * src/Util.cc
  3401. * src/Util.h
  3402. * src/download_helper.cc
  3403. * src/prefs.cc
  3404. * src/prefs.h
  3405. * src/usage_text.h
  3406. * test/DefaultBtContextTest.cc
  3407. * test/MultiDiskAdaptorTest.cc
  3408. * test/MultiFileAllocationIteratorTest.cc
  3409. * test/UtilTest.cc
  3410. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Use Util::pathJoin()
  3412. * src/MetalinkParserController.cc
  3413. * test/test.xml
  3414. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Use Util::pathJoin()
  3416. * src/DefaultBtContext.cc
  3417. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Added Util::pathJoin()
  3419. * src/Util.h
  3420. * test/UtilTest.cc
  3421. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Applied basename function to remove directory element in
  3423. content-disposition value.
  3424. Return empty string if content-disposition value is ".." or ".".
  3425. * src/Util.cc
  3426. * test/UtilTest.cc
  3427. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Added --max-overall-download-limit in man page.
  3429. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3430. * doc/aria2c.1.txt
  3431. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Added --max-overall-download-limit option. Now --max-upload-limit
  3433. option is not ignored when --max-overall-upload-limit option has
  3434. non-zero value. aria2 checks download(upload) speed in the order:
  3435. first checks overall speed limit and if it is not exceeded, then
  3436. checks speed limit per download. Thus you can specify both
  3437. value. For example, set --max-overall-download-limit=1M and
  3438. --max-download-limit=500K to prevent from one download from eating
  3439. all overall speed limit.
  3440. * src/DefaultBtInteractive.cc
  3441. * src/DefaultBtInteractive.h
  3442. * src/DefaultBtMessageDispatcher.cc
  3443. * src/DefaultBtMessageDispatcher.h
  3444. * src/DownloadCommand.cc
  3445. * src/DownloadCommand.h
  3446. * src/FtpNegotiationCommand.cc
  3447. * src/HttpResponseCommand.cc
  3448. * src/OptionHandlerFactory.cc
  3449. * src/PeerInteractionCommand.cc
  3450. * src/RequestGroup.cc
  3451. * src/RequestGroup.h
  3452. * src/RequestGroupMan.cc
  3453. * src/RequestGroupMan.h
  3454. * src/prefs.cc
  3455. * src/prefs.h
  3456. * src/usage_text.h
  3457. * test/DefaultBtMessageDispatcherTest.cc
  3458. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Documented select-file option in Input File section.
  3460. Documented --http-auth-challenge option.
  3461. * doc/aria2c.1.txt
  3462. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Now select-file can be specified in the uri list(-i list).
  3464. * src/BtContext.cc
  3465. * src/BtContext.h
  3466. * src/RequestGroup.cc
  3467. * src/Sequence.h
  3468. * src/download_helper.cc
  3469. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Made the upper value of --max-concurrent-downloads options unlimited.
  3471. * src/OptionHandlerFactory.cc
  3472. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Fixed the bug that disk writer is not created even if it shares
  3474. same piece with the preceding file if the length of previous file
  3475. is 0.
  3476. * src/MultiDiskAdaptor.cc
  3477. * test/MultiDiskAdaptorTest.cc
  3478. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. In BitTorrent, Open files in read-only mode for hash check. After
  3480. that, re-open file in read/write mode only when the download is
  3481. not finished.
  3482. * src/AbstractDiskWriter.cc
  3483. * src/AbstractDiskWriter.h
  3484. * src/AbstractSingleDiskAdaptor.cc
  3485. * src/AbstractSingleDiskAdaptor.h
  3486. * src/BtCheckIntegrityEntry.cc
  3487. * src/DiskAdaptor.h
  3488. * src/DiskWriter.h
  3489. * src/MultiDiskAdaptor.cc
  3490. * src/MultiDiskAdaptor.h
  3491. * src/RequestGroup.cc
  3492. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Added --http-auth-challenge option. If it is set to true(by
  3494. default), aria2 sends HTTP authorization header only when it is
  3495. requested by the server. If false is set, then authorization
  3496. header is always sent to the server. This is useful for servers
  3497. that don't respond 401 code when authentication is required.
  3498. There is an exception: if username and password are embedded in
  3499. URI, authorization header is always sent to the server regardless
  3500. of this option.
  3501. * src/AuthConfigFactory.cc
  3502. * src/HttpSkipResponseCommand.cc
  3503. * src/OptionHandlerFactory.cc
  3504. * src/prefs.cc
  3505. * src/prefs.h
  3506. * src/usage_text.h
  3507. * test/AuthConfigFactoryTest.cc
  3508. * test/HttpRequestTest.cc
  3509. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. * Release 1.2.0
  3511. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3513. Thanks to all translators.
  3514. * po/es.po
  3515. * po/ja.po
  3516. * po/ru.po
  3517. * po/uk.po
  3518. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Call deleteSocketForReadCheck() before socket is closed.
  3520. * src/HttpListenCommand.cc
  3521. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Defined virtual destructor for BObject.
  3523. * src/bencode.h
  3524. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Rewritten BDE to make it efficient.
  3526. * src/bencode.cc
  3527. * src/bencode.h
  3528. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Removed function throw list.
  3530. * src/bencode.cc
  3531. * src/bencode.h
  3532. * test/BencodeTest.cc
  3533. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Enclosed all URLs in double quotes in command-line examples.
  3535. * doc/aria2c.1.txt
  3536. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Updated reference/see also section.
  3538. * README
  3539. * doc/aria2c.1.txt
  3540. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Reorganized man page based on man man-pages.
  3542. * doc/aria2c.1.txt
  3543. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3545. because same documents are available in man page. Added
  3546. References section.
  3547. * README
  3548. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3550. PERFORMANCE PROFILE section.
  3551. * doc/aria2c.1.txt
  3552. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Rewritten the section for configuration file.
  3554. * README
  3555. * doc/aria2c.1.txt
  3556. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Fixed the segmentation fault during execution of choking algorithm
  3558. in leecher state because of broken compare operator
  3559. implementation.
  3560. * src/BtLeecherStateChoke.cc
  3561. * src/BtLeecherStateChoke.h
  3562. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Open file in binary mode.
  3564. * src/CookieStorage.cc
  3565. * src/DHTSetup.cc
  3566. * src/DHTUtil.cc
  3567. * src/Netrc.cc
  3568. * src/NsCookieParser.cc
  3569. * src/ProtocolDetector.cc
  3570. * src/RequestGroupMan.cc
  3571. * src/Signature.cc
  3572. * src/bencode.cc
  3573. * src/download_helper.cc
  3574. * src/option_processing.cc
  3575. * test/CookieParserTest.cc
  3576. * test/DefaultBtProgressInfoFileTest.cc
  3577. * test/FileTest.cc
  3578. * test/GZipDecoderTest.cc
  3579. * test/RequestGroupManTest.cc
  3580. * test/SignatureTest.cc
  3581. * test/SingleFileAllocationIteratorTest.cc
  3582. * test/UriListParserTest.cc
  3583. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Removed operator[] because it is ambiguous with built-in []
  3585. operator.
  3586. * src/array_fun.h
  3587. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Fixed compile error
  3589. * src/OptionParser.cc
  3590. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Added missing call to arrayWrapperConst
  3592. * test/array_funTest.cc
  3593. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Use array_wrapper instead of array_ptr.
  3595. * src/DHTRoutingTableDeserializer.cc
  3596. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3598. * src/array_fun.h
  3599. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Added array_wrapper template.
  3601. * src/array_fun.h
  3602. * test/array_funTest.cc
  3603. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Use operator T* of array_ptr.
  3605. * src/OptionParser.cc
  3606. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. Use localhost instead of 127.0.0.1
  3608. * test/FtpConnectionTest.cc
  3609. * test/MSEHandshakeTest.cc
  3610. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Added operator T*
  3612. * src/array_fun.h
  3613. * test/array_funTest.cc
  3614. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Use dynamically allocated char array to detect memory access
  3616. violation.
  3617. * src/DHTRoutingTableDeserializer.cc
  3618. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3620. defined.
  3621. * src/PeerMessageUtil.cc
  3622. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3624. * configure.ac
  3625. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Added a check to see struct sockaddr_in has sin_len member.
  3627. * configure.ac
  3628. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Fixed buffer overrun.
  3630. * src/DHTRoutingTableDeserializer.cc
  3631. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Added LL for long long int constant.
  3633. * test/FtpConnectionTest.cc
  3634. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Casted to unsigned int to suppress compiler warning on netbsd.
  3636. * src/BtRuntime.h
  3637. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3639. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3640. type time_t.
  3641. * src/SimpleLogger.cc
  3642. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Added test for FtpConnection::receiveSizeResponse().
  3644. * test/FtpConnectionTest.cc
  3645. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Fix epoll error on the old kernel 2.6.8 or ealier.
  3647. * src/EpollEventPoll.cc
  3648. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Use Util::parseLLInt instead of sscanf for portability. The
  3650. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3651. * src/FtpConnection.cc
  3652. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3654. block. It should not filter anything.
  3655. * src/BitfieldMan.cc
  3656. * src/ConsoleStatCalc.cc
  3657. * test/BitfieldManTest.cc
  3658. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Fixed the bug that the boolean options that don't take arguments
  3660. don't work.
  3661. * src/OptionHandlerImpl.h
  3662. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Fixed broken selected file BitTorrent download.
  3664. * src/MultiDiskAdaptor.cc
  3665. * test/MultiDiskAdaptorTest.cc
  3666. * test/MultiFileAllocationIteratorTest.cc
  3667. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Fixed #define guard for EpollEventPoll
  3669. * src/EpollEventPoll.h
  3670. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Wait 2 seconds. 1 second is sometimes not enough.
  3672. * test/TimeSeedCriteriaTest.cc
  3673. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Use localhost instead of 127.0.0.1.
  3675. * test/DHTConnectionImplTest.cc
  3676. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Suppressed compiler warning.
  3678. * src/AdaptiveURISelector.cc
  3679. * src/DefaultPieceStorage.cc
  3680. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Defined virtual destructor.
  3682. * src/MetalinkParserState.h
  3683. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Give NULL for second argument of getaddrinfo instead of "0".
  3685. * src/NameResolver.cc
  3686. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3688. included strptime doesn't parse data for this format.
  3689. * src/FtpConnection.cc
  3690. * test/FtpConnectionTest.cc
  3691. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Removed tests giving -1 for unsigned argument.
  3693. * test/SingleFileDownloadContextTest.cc
  3694. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Don't use sha256 in tests because it might not be supported by the
  3696. SSL library.
  3697. * test/MetalinkProcessorTest.cc
  3698. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Removed tests giving -1 for unsigned argument.
  3700. * test/AlphaNumberDecoratorTest
  3701. * test/BitfieldManTest.cc
  3702. * test/DefaultBtContextTest.cc
  3703. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Fixed compile error without libcares when epoll is available.
  3705. * src/EpollEventPoll.cc
  3706. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Included fstream instead of iostream.
  3708. * test/SignatureTest.cc
  3709. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Removed #include <algorithm>
  3711. * test/RequestGroupTest.cc
  3712. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3714. using RequestGroup::extractURIResult().
  3715. * src/AdaptiveURISelector.cc
  3716. * src/RequestGroup.cc
  3717. * src/RequestGroup.h
  3718. * test/RequestGroupTest.cc
  3719. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Added tests for array_ptr.
  3721. * test/array_funTest.cc
  3722. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Don't send ip parameter to a tracker if ip parameter is empty
  3724. string.
  3725. * src/DefaultBtAnnounce.cc
  3726. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Adjusted line feed.
  3728. * src/version_usage.cc
  3729. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Print tags, possible values when OptionHandlerException is caught.
  3731. * src/option_processing.cc
  3732. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Changed the message for FatalException.
  3734. * src/OptionParser.cc
  3735. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3736. Documented --bt-external-ip option in man page. Updated man pages
  3737. for --proxy-method option.
  3738. * doc/aria2c.1.txt
  3739. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Use GET method for FTP via HTTP proxy.
  3741. * src/FtpInitiateConnectionCommand.cc
  3742. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Changed the default value of --proxy-method option from 'tunnel'
  3744. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3745. option.
  3746. * src/AbstractCommand.cc
  3747. * src/AbstractCommand.h
  3748. * src/FtpInitiateConnectionCommand.cc
  3749. * src/HttpDownloadCommand.cc
  3750. * src/HttpInitiateConnectionCommand.cc
  3751. * src/HttpInitiateConnectionCommand.h
  3752. * src/OptionHandlerFactory.cc
  3753. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Initialized _logger
  3755. * src/SelectEventPoll.cc
  3756. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Defined a copy constructor for the same type.
  3758. * src/SharedHandle.h
  3759. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Added OptionParser::parseArg() which internally uses getopt_long
  3761. to parse command-line options. All command-line options are now
  3762. configured by OptionHandler. No manual editing of struct option*
  3763. is required any more.
  3764. * src/NameMatchOptionHandler.h
  3765. * src/OptionHandler.h
  3766. * src/OptionHandlerFactory.cc
  3767. * src/OptionHandlerImpl.h
  3768. * src/OptionParser.cc
  3769. * src/OptionParser.h
  3770. * src/array_fun.h
  3771. * src/main.cc
  3772. * src/option_processing.cc
  3773. * test/OptionHandlerTest.cc
  3774. * test/OptionParserTest.cc
  3775. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Fixed configure error with --disable-epoll
  3777. * configure.ac
  3778. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Fixed compile error when HAVE_EPOLL is not defined.
  3780. Fixed linker error on bigendian systems.
  3781. * src/SocketCore.cc
  3782. * src/SocketCore.h
  3783. * test/DefaultBtProgressInfoFileTest.cc
  3784. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Added --bt-external-ip option. You can specify the external IP
  3786. address to report to a BitTorrent tracker. Although this function
  3787. is named 'external', it can accept any kind of IP addresses.
  3788. * src/DefaultBtAnnounce.cc
  3789. * src/OptionHandlerFactory.cc
  3790. * src/option_processing.cc
  3791. * src/prefs.cc
  3792. * src/prefs.h
  3793. * src/usage_text.h
  3794. * test/DefaultBtAnnounceTest.cc
  3795. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Extracted the algorithm to find the longest incremental sequence
  3797. as max_sequence template.
  3798. * src/LongestSequencePieceSelector.cc
  3799. * src/a2algo.h
  3800. * test/Makefile.am
  3801. * test/a2algoTest.cc
  3802. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3804. * src/usage_text.h
  3805. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Updated doc for --uri-selector, --http-server-listen-port and
  3807. --enable-http-server option. Documented --event-poll option.
  3808. * doc/aria2c.1.txt
  3809. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Updated doc for --enable-http-server.
  3811. * src/usage_text.h
  3812. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Documented --http-server-listen-port and --enable-http-server in
  3814. man page.
  3815. * doc/aria2c.1.txt
  3816. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3818. translations. Thanks to all translators.
  3819. * po/es.po
  3820. * po/id.po
  3821. * po/it.po
  3822. * po/ru.po
  3823. * po/uk.po
  3824. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Bump up version number to 1.2.0
  3826. * configure.ac
  3827. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. BtContext::getAnnounceTiers() now returns const reference.
  3829. * src/BtContext.h
  3830. * src/DefaultBtContext.cc
  3831. * src/DefaultBtContext.h
  3832. * test/MockBtContext.h
  3833. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Change the number of retries for tracker request based on the
  3835. number of available tracker in a torrent file.
  3836. * src/TrackerWatcherCommand.cc
  3837. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Added _maxTries property to RequestGroup and assign the option
  3839. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3840. RequestGroup::getMaxTries() instead of
  3841. Option::getAsInt(PREF_MAX_TRIES).
  3842. * src/AbstractCommand.cc
  3843. * src/RequestGroup.cc
  3844. * src/RequestGroup.h
  3845. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3847. Mandriva. I modified the patch: make RequestGroup have the
  3848. timeout value and AdaptiveURISelector directly modifies that
  3849. value.
  3850. * src/AbstractCommand.cc
  3851. * src/AdaptiveURISelector.cc
  3852. * src/AdaptiveURISelector.h
  3853. * src/FtpNegotiationCommand.cc
  3854. * src/RequestGroup.cc
  3855. * src/RequestGroup.h
  3856. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Fixed compiler warning
  3858. * test/IteratableChecksumValidatorTest.cc
  3859. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3861. integrated downloads. This PieceSelector subclass finds the
  3862. longest continuous sequence in the available missing pieces and
  3863. selects the last index of such sequence. This makes HTTP/FTP
  3864. connections less interrupted by the pieces obtained by BitTorrent
  3865. peers.
  3866. * src/DefaultPieceStorage.cc
  3867. * src/DefaultPieceStorage.h
  3868. * src/LongestSequencePieceSelector.cc
  3869. * src/LongestSequencePieceSelector.h
  3870. * src/Makefile.am
  3871. * src/PieceSelector.h
  3872. * src/RarestPieceSelector.h
  3873. * src/RequestGroup.cc
  3874. * test/BtDependencyTest.cc
  3875. * test/DefaultPieceStorageTest.cc
  3876. * test/IteratableChecksumValidatorTest.cc
  3877. * test/LongestSequencePieceSelectorTest.cc
  3878. * test/Makefile.am
  3879. * test/SegmentManTest.cc
  3880. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Fixed the bug that the average speed is wrong in
  3882. http/ftp/BitTorrent integrated download. Only the download bytes
  3883. in BitTorrent were considered.
  3884. * src/RequestGroup.cc
  3885. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Choose port for BitTorrent/DHT randomly from the specified range.
  3887. * src/DHTConnectionImpl.cc
  3888. * src/PeerListenCommand.cc
  3889. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Send HTTP Authorization header only if it is requested by the
  3891. server(response 401). There are some exceptions. The authorization
  3892. header for proxy is always sent if it is available without request
  3893. by the server. If username/password is specified in the URI, it
  3894. is immediately sent to the server without request by the server.
  3895. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3896. SharedHandle<AuthConfig>().
  3897. NetrcAuthResolver::resolveAuthConfig() returns
  3898. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3899. * src/AbstractAuthResolver.cc
  3900. * src/AbstractProxyRequestCommand.cc
  3901. * src/AuthConfigFactory.cc
  3902. * src/AuthConfigFactory.h
  3903. * src/HttpConnection.cc
  3904. * src/HttpRequest.cc
  3905. * src/HttpRequest.h
  3906. * src/HttpResponse.cc
  3907. * src/HttpResponseCommand.cc
  3908. * src/HttpSkipResponseCommand.cc
  3909. * test/AuthConfigFactoryTest.cc
  3910. * test/HttpRequestTest.cc
  3911. * test/HttpResponseTest.cc
  3912. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Remove leading "--" from help keyword and a substring after "="
  3914. from help keyword, so that one can query options by '-h--max-' or
  3915. '-hmax-peers=10'.
  3916. * src/option_processing.cc
  3917. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Rewritten PStringVisitor and its implementation.
  3919. * src/PStringBuildVisitor.cc
  3920. * src/PStringBuildVisitor.h
  3921. * src/PStringDatum.h
  3922. * src/PStringNumLoop.h
  3923. * src/PStringSegment.cc
  3924. * src/PStringSegment.h
  3925. * src/PStringSelect.h
  3926. * src/PStringVisitor.h
  3927. * src/download_helper.cc
  3928. * test/PStringBuildVisitorTest.cc
  3929. * test/ParameterizedStringParserTest.cc
  3930. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Persist connection between the built-in HTTP server and a client
  3932. if a client supports keep-alive. Fixed the bug that aria2 exits
  3933. when the HTTP server receives EOF from a client.
  3934. * src/HttpServer.cc
  3935. * src/HttpServer.h
  3936. * src/HttpServerCommand.cc
  3937. * src/HttpServerCommand.h
  3938. * src/HttpServerResponseCommand.cc
  3939. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Added experimental built-in HTTP server. Currently, when a client
  3941. accesses to the server, it responds with the current download
  3942. progress. By default, it is disabled. To enable the server, give
  3943. --enable-http-server option. To change the default port number
  3944. for the server to listen to, use --http-server-listen-port option.
  3945. The response HTML is very simple and refreshes it self each 1
  3946. second. Because of this refresh, you see flicker in normal web
  3947. browser such as Firefox. I recommend to use console-based browser
  3948. such as elinks, w3m. To connect to the server, run 'elinks
  3949. http://localhost:6800/' while running aria2. Please replace port
  3950. number '6800'(which is default) with your preference.
  3951. * src/DownloadEngineFactory.cc
  3952. * src/HttpHeader.cc
  3953. * src/HttpHeader.h
  3954. * src/HttpHeaderProcessor.cc
  3955. * src/HttpHeaderProcessor.h
  3956. * src/HttpListenCommand.cc
  3957. * src/HttpListenCommand.h
  3958. * src/HttpServer.cc
  3959. * src/HttpServer.h
  3960. * src/HttpServerCommand.cc
  3961. * src/HttpServerCommand.h
  3962. * src/HttpServerResponseCommand.cc
  3963. * src/HttpServerResponseCommand.h
  3964. * src/Makefile.am
  3965. * src/OptionHandlerFactory.cc
  3966. * src/Util.cc
  3967. * src/Util.h
  3968. * src/help_tags.h
  3969. * src/option_processing.cc
  3970. * src/prefs.cc
  3971. * src/prefs.h
  3972. * src/usage_text.h
  3973. * test/HttpHeaderProcessorTest.cc
  3974. * test/UtilTest.cc
  3975. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Removed.
  3977. * src/CheckIntegrityMan.cc
  3978. * src/FileAllocationMan.cc
  3979. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Made (piece) hash check sequential for each RequestGroup because
  3981. simultaneous hash check is slower than sequential execution.
  3982. * src/CheckIntegrityCommand.cc
  3983. * src/CheckIntegrityDispatcherCommand.cc
  3984. * src/CheckIntegrityDispatcherCommand.h
  3985. * src/CheckIntegrityMan.h
  3986. * src/ConsoleStatCalc.cc
  3987. * src/DownloadCommand.cc
  3988. * src/DownloadEngine.cc
  3989. * src/DownloadEngine.h
  3990. * src/DownloadEngineFactory.cc
  3991. * src/Makefile.am
  3992. * src/Makefile.in
  3993. * src/RequestGroup.cc
  3994. * src/StatCalc.h
  3995. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3997. SequentialDispatcherCommand.
  3998. * src/FileAllocationDispatcherCommand.cc
  3999. * src/SequentialDispatcherCommand.h
  4000. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Rewritten FileAllocationDispatcherCommand using brand new
  4002. SequentialDispatcherCommand.
  4003. * src/DownloadEngineFactory.cc
  4004. * src/FileAllocationCommand.cc
  4005. * src/FileAllocationDispatcherCommand.cc
  4006. * src/FileAllocationDispatcherCommand.h
  4007. * src/Makefile.am
  4008. * src/SequentialDispatcherCommand.h
  4009. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Replaced FileAllocationMan with
  4011. SequentialPicker<FileAllocationEntry>.
  4012. * src/BtCheckIntegrityEntry.cc
  4013. * src/ConsoleStatCalc.cc
  4014. * src/DownloadEngine.cc
  4015. * src/DownloadEngine.h
  4016. * src/DownloadEngineFactory.cc
  4017. * src/FileAllocationCommand.cc
  4018. * src/FileAllocationDispatcherCommand.cc
  4019. * src/FileAllocationMan.h
  4020. * src/Makefile.am
  4021. * src/SequentialPicker.h
  4022. * src/StatCalc.h
  4023. * src/StreamCheckIntegrityEntry.cc
  4024. * test/Makefile.am
  4025. * test/SequentialPickerTest.cc
  4026. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Added doc for adaptive URI selector.
  4028. * doc/aria2c.1.txt
  4029. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Added doc for adaptive URI selector.
  4031. * src/usage_text.h
  4032. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Added doc for --bt-max-peers option.
  4034. * doc/aria2c.1.txt
  4035. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Added doc for --bt-hash-check-seed option.
  4037. * doc/aria2c.1.txt
  4038. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Documented exit codes.
  4040. * doc/aria2c.1.txt
  4041. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Added --bt-max-peers option to specify the maximum number of peers
  4043. per torrent. 0 means unlimited number of peers.
  4044. * src/ActivePeerConnectionCommand.cc
  4045. * src/BtRuntime.h
  4046. * src/DefaultPeerStorage.cc
  4047. * src/DefaultPeerStorage.h
  4048. * src/OptionHandlerFactory.cc
  4049. * src/RequestGroup.cc
  4050. * src/option_processing.cc
  4051. * src/prefs.cc
  4052. * src/prefs.h
  4053. * src/usage_text.h
  4054. * test/DefaultPeerStorageTest.cc
  4055. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Added --bt-hash-check-seed option. If true is given to this
  4057. option, after hash check using --check-integrity option and file
  4058. is complete, continue to seed file. If you want to check file and
  4059. download it only when it is damaged or incomplete, set this option
  4060. to false. This option has effect only on BitTorrent download.
  4061. The default value is true(This is the same behavior with the
  4062. previous release).
  4063. * src/BtCheckIntegrityEntry.cc
  4064. * src/OptionHandlerFactory.cc
  4065. * src/option_processing.cc
  4066. * src/prefs.cc
  4067. * src/prefs.h
  4068. * src/usage_text.h
  4069. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Updated copyright year.
  4071. * src/version_usage.cc
  4072. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4074. * doc/aria2c.1.txt
  4075. * src/usage_text.h
  4076. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Made the max value of split option unlimited.
  4078. * doc/aria2c.1.txt
  4079. * src/OptionHandlerFactory.cc
  4080. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Fixed compile warning/error.
  4082. * src/DownloadResult.h
  4083. * src/HttpDownloadCommand.cc
  4084. * src/ServerStat.cc
  4085. * test/RequestGroupTest.cc
  4086. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Added --event-poll option to select the method for polling events.
  4088. The available methods are "select" and "epoll". "epoll" is
  4089. available on Linux only. The earlier release has the compile
  4090. option to choose from these methods.
  4091. * configure.ac
  4092. * src/RequestGroupMan.cc
  4093. * src/OptionHandlerFactory.cc
  4094. * src/EpollEventPoll.h
  4095. * src/StreamFileAllocationEntry.cc
  4096. * src/a2io.h
  4097. * src/SelectEventPoll.h
  4098. * src/option_processing.cc
  4099. * src/prefs.h
  4100. * src/EpollEventPoll.cc
  4101. * src/EventPoll.h
  4102. * src/SocketCore.h
  4103. * src/Makefile.am
  4104. * src/main.cc
  4105. * src/DownloadEngine.h
  4106. * src/SelectEventPoll.cc
  4107. * src/DownloadEngine.cc
  4108. * src/SocketCore.cc
  4109. * src/DownloadEngineFactory.cc
  4110. * src/Makefile.in
  4111. * src/prefs.cc
  4112. * src/usage_text.h
  4113. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Included RecoverableException.h from main.cc
  4115. * src/main.cc
  4116. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4118. now returns last error encountered in the HTTP/FTP downloads as a
  4119. exit status value. If all downloads finished successfully, aria2
  4120. returns 0. The error code is defined in src/DownloadResult.h.
  4121. The error occurred in the download currently in progress is not
  4122. reported as a last error. If no error has encountered but there
  4123. are in progress or waiting downloads, aria2 returns 7.
  4124. * src/AbstractCommand.cc
  4125. * src/DlAbortEx.h
  4126. * src/DlRetryEx.h
  4127. * src/DownloadCommand.cc
  4128. * src/DownloadFailureException.h
  4129. * src/DownloadResult.h
  4130. * src/FtpNegotiationCommand.cc
  4131. * src/HttpSkipResponseCommand.cc
  4132. * src/Makefile.am
  4133. * src/MultiUrlRequestInfo.cc
  4134. * src/MultiUrlRequestInfo.h
  4135. * src/RecoverableException.h
  4136. * src/RequestGroup.cc
  4137. * src/RequestGroup.h
  4138. * src/RequestGroupMan.cc
  4139. * src/RequestGroupMan.h
  4140. * src/URIResult.cc
  4141. * src/URIResult.h
  4142. * src/main.cc
  4143. * src/option_processing.cc
  4144. * test/RequestGroupTest.cc
  4145. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4147. patch adds AdaptiveURISelector, which selects one of the bests
  4148. mirrors for first and reserved connections. For supplementary
  4149. ones, it returns mirrors which has not been tested yet, and if
  4150. each of them already tested, returns mirrors which has to be
  4151. tested again. Otherwise, it doesn't return anymore mirrors.
  4152. * src/AdaptiveURISelector.cc
  4153. * src/AdaptiveURISelector.h
  4154. * src/FtpNegotiationCommand.cc
  4155. * src/HttpResponseCommand.cc
  4156. * src/Makefile.am
  4157. * src/Makefile.in
  4158. * src/OptionHandlerFactory.cc
  4159. * src/RequestGroup.cc
  4160. * src/RequestGroup.h
  4161. * src/RequestGroupMan.cc
  4162. * src/ServerStat.cc
  4163. * src/ServerStat.h
  4164. * src/ServerStatMan.cc
  4165. * src/SpeedCalc.cc
  4166. * src/URISelector.h
  4167. * src/prefs.cc
  4168. * src/prefs.h
  4169. * test/RequestGroupManTest.cc
  4170. * test/ServerStatManTest.cc
  4171. * test/ServerStatTest.cc
  4172. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Fixed unit test error.
  4174. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4175. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. * Release 1.1.2
  4177. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Updated Russian translation. Thanks to the translators.
  4179. * po/ru.po
  4180. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Added the description of --use-head option to man page.
  4182. * doc/aria2c.1.txt
  4183. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Bump up version number to 1.1.2
  4185. * configure.ac
  4186. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Added --use-head option to toggle whether HEAD method should be
  4188. used in the first HTTP request. By default aria2 uses HEAD method
  4189. as the first request. When the server doesn't recognize HEAD, then
  4190. give aria2 --use-head=false to force aria2 to use GET method
  4191. instead.
  4192. * src/OptionHandlerFactory.cc
  4193. * src/RequestGroupMan.cc
  4194. * src/option_processing.cc
  4195. * src/prefs.cc
  4196. * src/prefs.h
  4197. * src/usage_text.h
  4198. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4199. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4200. message is received before CHOKE message. The old implementation
  4201. doen't clear the use-bit of the piece when recieved REJECT
  4202. message.
  4203. * src/DefaultBtMessageDispatcher.cc
  4204. * test/DefaultBtMessageDispatcherTest.cc
  4205. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4206. * Release 1.1.1
  4207. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Bump up version number to 1.1.1.
  4209. * configure.ac
  4210. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4212. is printed repeatedly.
  4213. * src/ConsoleStatCalc.cc
  4214. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. * Release 1.1.0
  4216. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Added ifdef clause for conditional compilation.
  4218. * src/main.cc
  4219. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4220. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4221. translations. Thanks to all translators.
  4222. * po/ja.po
  4223. * po/ru.po
  4224. * po/uk.po
  4225. * po/zh_CN.po
  4226. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Added the preceding ">>> " before the message "Printing the
  4228. contents of file..." to make the output more readable.
  4229. * src/main.cc
  4230. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Added try-catch block in the loop in showFiles() to continue the
  4232. operation even if the exception occurred in one file.
  4233. * src/main.cc (showFiles)
  4234. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Made messages in showFiles() translatable.
  4236. * po/aria2.pot
  4237. * src/main.cc
  4238. * src/message.h
  4239. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Print the contents of Torrent/Metalink files are printed without
  4241. -T/-M options.
  4242. * src/main.cc
  4243. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Escaped '--' with '\--'
  4245. * README
  4246. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Updated "How to build" section in README. Mentioned about
  4248. --with-ca-bundle compile option.
  4249. * README
  4250. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Bump up version number to 1.1.0.
  4252. * configure.ac
  4253. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4254. Added a note for --dht-listen-port option.
  4255. * doc/aria2c.1.txt
  4256. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4257. Update doc for --realtime-chunk-checksum option.
  4258. * doc/aria2c.1.txt
  4259. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4260. Update doc for --realtime-chunk-checksum option.
  4261. * src/usage_text.h
  4262. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Updated French, Japanese, Russian and Ukrainian translations.
  4264. Thanks to all translators.
  4265. * po/fr.po
  4266. * po/ja.po
  4267. * po/ru.po
  4268. * po/uk.po
  4269. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Renamed aria2c.pot to aria2.pot
  4271. * po/aria2.pot
  4272. * po/aria2c.pot: Removed.
  4273. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Removed MetaEntry.h
  4275. * src/Makefile.am
  4276. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. Rename file by appending digits if a local file exists and its
  4278. file size is larger than that of remote file with --continue
  4279. option. The old implementation just throws exception in such case.
  4280. * src/RequestGroup.cc
  4281. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Fixed the bug that download progress summary is not printed in the
  4283. interval specified by the option.
  4284. * src/ConsoleStatCalc.cc
  4285. * src/ConsoleStatCalc.h
  4286. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4287. Fixed compiler warning
  4288. * src/Cookie.cc
  4289. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4290. Fixed the cookie implementation based on RFC2965.
  4291. Now if a value in domain field is not started with dot, then
  4292. prepend dot. That means a cookie with domain=sf.net is sent to
  4293. wiki.sf.net.
  4294. * src/Cookie.cc
  4295. * test/CookieParserTest.cc
  4296. * test/CookieStorageTest.cc
  4297. * test/CookieTest.cc
  4298. * test/NsCookieParserTest.cc
  4299. * test/Sqlite3MozCookieParserTest.cc
  4300. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4301. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4302. is enabled and the server doesn't support keep-alive.
  4303. * src/AbstractCommand.cc
  4304. * src/DownloadCommand.cc
  4305. * src/HttpDownloadCommand.cc
  4306. * src/HttpDownloadCommand.h
  4307. * src/HttpResponseCommand.cc
  4308. * src/Request.cc
  4309. * src/Request.h
  4310. * test/RequestTest.cc
  4311. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4312. Removed Dictionary/List/Data and its related classes.
  4313. * src/BencodeVisitor.cc: Removed.
  4314. * src/BencodeVisitor.h: Removed.
  4315. * src/Data.cc: Removed.
  4316. * src/Data.h: Removed.
  4317. * src/Dictionary.cc: Removed.
  4318. * src/Dictionary.h: Removed.
  4319. * src/List.cc: Removed.
  4320. * src/List.h: Removed.
  4321. * src/Makefile.am
  4322. * src/MetaEntry.h: Removed.
  4323. * src/MetaEntryVisitor.h: Removed.
  4324. * src/MetaFileUtil.cc: Removed.
  4325. * src/MetaFileUtil.h: Removed.
  4326. * test/BencodeVisitorTest.cc: Removed.
  4327. * test/DataTest.cc: Removed.
  4328. * test/DictionaryTest.cc: Removed.
  4329. * test/ListTest.cc: Removed.
  4330. * test/Makefile.am
  4331. * test/MetaFileUtilTest.cc: Removed.
  4332. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Removed include of MetaEntry.h
  4334. * test/DHTMessageTrackerEntryTest.cc
  4335. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Use BDE instead of Dictionary/List/Data.
  4337. * src/AnnounceList.cc
  4338. * src/AnnounceList.h
  4339. * test/AnnounceListTest.cc
  4340. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Use BDE instead of Dictionary/List/Data.
  4342. * src/DHTAbstractMessage.cc
  4343. * src/DHTAbstractMessage.h
  4344. * src/DHTAnnouncePeerMessage.cc
  4345. * src/DHTAnnouncePeerMessage.h
  4346. * src/DHTAnnouncePeerReplyMessage.cc
  4347. * src/DHTAnnouncePeerReplyMessage.h
  4348. * src/DHTFindNodeMessage.cc
  4349. * src/DHTFindNodeMessage.h
  4350. * src/DHTFindNodeReplyMessage.cc
  4351. * src/DHTFindNodeReplyMessage.h
  4352. * src/DHTGetPeersMessage.cc
  4353. * src/DHTGetPeersMessage.h
  4354. * src/DHTGetPeersReplyMessage.cc
  4355. * src/DHTGetPeersReplyMessage.h
  4356. * src/DHTMessageFactory.h
  4357. * src/DHTMessageFactoryImpl.cc
  4358. * src/DHTMessageFactoryImpl.h
  4359. * src/DHTMessageReceiver.cc
  4360. * src/DHTMessageTracker.cc
  4361. * src/DHTMessageTracker.h
  4362. * src/DHTPingMessage.cc
  4363. * src/DHTPingMessage.h
  4364. * src/DHTPingReplyMessage.cc
  4365. * src/DHTPingReplyMessage.h
  4366. * src/DHTQueryMessage.cc
  4367. * src/DHTQueryMessage.h
  4368. * src/DHTResponseMessage.cc
  4369. * src/DHTResponseMessage.h
  4370. * test/DHTAnnouncePeerMessageTest.cc
  4371. * test/DHTAnnouncePeerReplyMessageTest.cc
  4372. * test/DHTFindNodeMessageTest.cc
  4373. * test/DHTFindNodeReplyMessageTest.cc
  4374. * test/DHTGetPeersMessageTest.cc
  4375. * test/DHTGetPeersReplyMessageTest.cc
  4376. * test/DHTMessageFactoryImplTest.cc
  4377. * test/DHTMessageTrackerTest.cc
  4378. * test/DHTPingMessageTest.cc
  4379. * test/DHTPingReplyMessageTest.cc
  4380. * test/MockDHTMessageFactory.h
  4381. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4382. Added tests the case where length < 0 is specified.
  4383. * test/BencodeTest.cc
  4384. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Fixed memory leak in decoderawstring()
  4386. * src/bencode.cc
  4387. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Added missing #ifdef guard. Added uc() function for String and
  4389. removeKey() for Dict.
  4390. * src/bencode.cc
  4391. * src/bencode.h
  4392. * test/BencodeTest.cc
  4393. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Use BDE instead of Dictionary/List/Data.
  4395. * src/HandshakeExtensionMessage.cc
  4396. * src/HandshakeExtensionMessage.h
  4397. * test/HandshakeExtensionMessageTest.cc
  4398. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4399. Added --max-overall-upload-limit option. This option limits the
  4400. overall upload speed. Stated in help message that the existing
  4401. --max-upload-limit option limits the upload speed per each
  4402. torrent. Man page is also updated.
  4403. * doc/aria2c.1.txt
  4404. * src/DefaultBtMessageDispatcher.cc
  4405. * src/DefaultBtMessageDispatcher.h
  4406. * src/OptionHandlerFactory.cc
  4407. * src/PeerInteractionCommand.cc
  4408. * src/option_processing.cc
  4409. * src/prefs.cc
  4410. * src/prefs.h
  4411. * src/usage_text.h
  4412. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Use BDE instead of Dictionary/List/Data classes.
  4414. * src/CompactPeerListProcessor.cc
  4415. * src/CompactPeerListProcessor.h
  4416. * src/DefaultBtAnnounce.cc
  4417. * src/DefaultBtContext.cc
  4418. * src/DefaultBtContext.h
  4419. * src/DefaultPeerListProcessor.cc
  4420. * src/DefaultPeerListProcessor.h
  4421. * src/DelegatingPeerListProcessor.cc
  4422. * src/DelegatingPeerListProcessor.h
  4423. * src/PeerListProcessor.h
  4424. * src/UTPexExtensionMessage.cc
  4425. * src/Util.h
  4426. * src/message.h
  4427. * test/DefaultBtContextTest.cc
  4428. * test/DefaultPeerListProcessorTest.cc
  4429. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Added bencode helper functions and BDE class.
  4431. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4432. * src/Makefile.am
  4433. * src/bencode.cc
  4434. * src/bencode.h
  4435. * test/BencodeTest.cc
  4436. * test/Makefile.am
  4437. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Fixed the bug that bad URI is sent to the tracker when the announe
  4439. URI in torrent file includes query.
  4440. * src/DefaultBtAnnounce.cc
  4441. * test/DefaultBtAnnounceTest.cc
  4442. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4443. Added Option::blank().
  4444. Use !Option::blank(name) instead of Option::defined(name) for
  4445. the options that take filename.
  4446. * src/MultiUrlRequestInfo.cc
  4447. * src/Option.cc
  4448. * src/Option.h
  4449. * src/main.cc
  4450. * src/option_processing.cc
  4451. * test/OptionTest.cc
  4452. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Documented the default value of --check-certificate option in man
  4454. page.
  4455. * doc/aria2c.1.txt
  4456. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Enabled --check-certificate by default. Added compile
  4458. time(configure) option --with-ca-bundle to specify CA bundle.
  4459. Warn if --check-certificate=true and --ca-certificate is not
  4460. specified or loading CA certificate is failed.
  4461. * configure.ac
  4462. * src/MultiUrlRequestInfo.cc
  4463. * src/OptionHandlerFactory.cc
  4464. * src/message.h
  4465. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Mentioned https tag in help option.
  4467. * doc/aria2c.1.txt
  4468. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Added `https' tag to help option category. Added https tag to
  4470. --ca-certificate, --certificate, --check-certificate and
  4471. --private-key option.
  4472. * src/OptionHandlerFactory.cc
  4473. * src/help_tags.h
  4474. * src/option_processing.cc
  4475. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Changed the package name from `aria2c' to `aria2' in order to fix
  4477. the packaging issue in Debian and Fedora. The name of the
  4478. executable is not changed.
  4479. * configure.ac
  4480. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Fixed typos
  4482. * src/usage_text.h
  4483. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Fixed typos and updated doc.
  4485. * README
  4486. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Fixed typos
  4488. * doc/aria2c.1.txt
  4489. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4490. Fixed typos
  4491. * src/usage_text.h
  4492. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Print a message when no files to download.
  4494. * src/download_helper.cc
  4495. * src/main.cc
  4496. * src/message.h
  4497. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. RFC3986 complied Percent-Encoding(urlencode).
  4499. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4500. ones.
  4501. * src/Request.cc
  4502. * src/Util.cc
  4503. * src/Util.h
  4504. * test/BtHandshakeMessageTest.cc
  4505. * test/DefaultBtAnnounceTest.cc
  4506. * test/DefaultBtContextTest.cc
  4507. * test/RequestTest.cc
  4508. * test/UtilTest.cc
  4509. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Fixed the bug that prevents aria2 from downloading 0-length files
  4511. via HTTP/FTP.
  4512. * src/DefaultBtContext.cc
  4513. * src/DefaultBtContext.h
  4514. * src/DownloadContext.h
  4515. * src/FtpNegotiationCommand.cc
  4516. * src/HttpResponseCommand.cc
  4517. * src/HttpResponseCommand.h
  4518. * src/RequestGroup.cc
  4519. * src/SingleFileDownloadContext.cc
  4520. * src/SingleFileDownloadContext.h
  4521. * test/BtPostDownloadHandlerTest.cc
  4522. * test/MetalinkPostDownloadHandlerTest.cc
  4523. * test/MockBtContext.h
  4524. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4525. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4526. * src/option_processing.cc
  4527. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Applied aria2-1.0.1-mingw.patch.
  4529. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4530. mingw.
  4531. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4532. * src/SocketCore.cc
  4533. * src/a2netcompat.h
  4534. * test/SocketCoreTest.cc
  4535. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. * Release 1.0.1
  4537. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Updated Ukrainian and Norwegian Nynorsk translations.
  4539. Thanks to all translators.
  4540. * po/nn.po
  4541. * po/uk.po
  4542. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Don't show download result when -S option is used.
  4544. * src/main.cc
  4545. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Bump up version number to 1.0.1
  4547. * configure.ac
  4548. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Closed files after the test cases in MultiDiskWriterTest::
  4550. testResetDiskWriterEntries(). This will fix the unit test error
  4551. in mingw32 build.
  4552. * test/MultiDiskWriterTest.cc
  4553. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Use HEAD method to get file size from HTTP server for segmented
  4555. downloading.
  4556. The request to the BitTorrent Tracker always uses GET method because
  4557. the response of the tracker is small and it doesn't need segmented
  4558. download.
  4559. * src/FtpNegotiationCommand.cc
  4560. * src/HttpRequest.cc
  4561. * src/HttpResponseCommand.cc
  4562. * src/HttpSkipResponseCommand.cc
  4563. * src/RequestGroup.cc
  4564. * src/RequestGroup.h
  4565. * src/TrackerWatcherCommand.cc
  4566. * test/HttpRequestTest.cc
  4567. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Fixed the bug that causes floating exception when -T option is used and
  4569. no URIs are given.
  4570. * src/download_helper.cc
  4571. * test/DownloadHelperTest.cc
  4572. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4573. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4574. errors in MinGW:
  4575. Closed file after saving server stats (RequestGroupMan.cc)
  4576. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4577. Ignored case & handled 2-digit years (strptime.c)
  4578. Added missing suseconds_t definition (a2time.h)
  4579. Fixed socket CLOSE() define (SocketCore.cc)
  4580. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4581. Changed utime() test values from x000 to x00000 as MinGW failed on
  4582. values less than timezone offset from Unix epoch
  4583. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4584. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4585. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4586. handle negative dates (CookieParserTest.cc)
  4587. * src/a2time.h
  4588. * src/FtpConnection.cc
  4589. * src/RequestGroupMan.cc
  4590. * src/SocketCore.cc
  4591. * src/strptime.c
  4592. * test/CookieParserTest.cc
  4593. * test/CopyDiskAdaptorTest.cc
  4594. * test/FileTest.cc
  4595. * test/FtpConnectionTest.cc
  4596. * test/MultiDiskAdaptorTest.cc
  4597. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4598. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4599. * doc/aria2c.1.txt
  4600. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4601. * Release 1.0.0
  4602. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. Added '~' to reserved characters.
  4604. * src/Util.cc
  4605. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Do not urlencode Request::url in setUrl() because we want unmodified
  4607. URL using Request::getUrl()
  4608. * src/Request.cc
  4609. * src/Request.h
  4610. * test/RequestTest.cc
  4611. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4613. Thanks to all translators.
  4614. * po/bg.po
  4615. * po/fr.po
  4616. * po/ja.po
  4617. * po/ru.po
  4618. * po/uk.po
  4619. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Bump up version number to 1.0.0
  4621. * configure.ac
  4622. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Added nosqlite3 build to build_test.sh.
  4624. Renamed noxml as expat.
  4625. * build_test.sh
  4626. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Updated INPUT FILE section.
  4628. * doc/aria2c.1.txt
  4629. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4631. on big endian systems because test .aria2 files are made for little
  4632. endian systems.
  4633. * test/DefaultBtProgressInfoFileTest.cc
  4634. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Dropped ares support.
  4636. * README
  4637. * configure.ac
  4638. * m4/libares.m4: Removed.
  4639. * src/AsyncNameResolver.cc
  4640. * src/Makefile.am
  4641. * test/Makefile.am
  4642. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4644. Removed const qualifier from DiskWriter::size().
  4645. * src/AbstractDiskWriter.cc
  4646. * src/AbstractDiskWriter.h
  4647. * src/ByteArrayDiskWriter.cc
  4648. * src/ByteArrayDiskWriter.h
  4649. * src/DiskWriter.h
  4650. * test/ByteArrayDiskWriterTest.cc
  4651. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. Fixed the bug that causes segmentation fault/bus error during executing
  4653. choking algorithm while seeding. This is caused by improper
  4654. implementation of compare function which returns inconsistent results
  4655. depending on the timing of last unchoke.
  4656. * src/BtSeederStateChoke.cc
  4657. * src/BtSeederStateChoke.h
  4658. * src/DefaultPeerStorage.cc
  4659. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Removed TODO
  4661. * TODO
  4662. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added a section that explains how to pass argument to options that
  4664. takes optional arguments with its short form.
  4665. * doc/aria2c.1.txt
  4666. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Added -u for the short form of --max-upload-limit option.
  4668. * doc/aria2c.1.txt
  4669. * src/option_processing.cc
  4670. * src/usage_text.h
  4671. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4672. Added -V for the short form of --check-integrity option.
  4673. Now the argument of --check-integrity option is optional:
  4674. if it is omitted, it is evaluated as true.
  4675. * doc/aria2c.1.txt
  4676. * src/option_processing.cc
  4677. * src/usage_text.h
  4678. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Made the default value of --ftp-pasv option set to true and it can take
  4680. true/false values.
  4681. * src/OptionHandlerFactory.cc
  4682. * src/option_processing.cc
  4683. * src/usage_text.h
  4684. * doc/aria2c.1.txt
  4685. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Given custom random number generator to std::random_shuffle.
  4687. * src/AnnounceList.cc
  4688. * src/BtLeecherStateChoke.cc
  4689. * src/BtSeederStateChoke.cc
  4690. * src/DefaultBtRequestFactory.cc
  4691. * src/MetalinkEntry.cc
  4692. * src/RarestPieceSelector.cc
  4693. * src/SimpleRandomizer.cc
  4694. * src/SimpleRandomizer.h
  4695. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Now the default value of --enable-direct-io is true.
  4697. * src/OptionHandlerFactory.cc
  4698. * doc/aria2c.1.txt
  4699. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4700. Erase peer before executing onReturningPeer and onErasingPeer
  4701. because choking algorithm called from onReturningPeer doesn't
  4702. like erasing peer in the active peer list.
  4703. * src/DefaultPeerStorage.cc
  4704. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Instead of creating special filename in createDownloadResult() if
  4706. inMemoryDownload() is true, now it is done in getFilePath().
  4707. * src/RequestGroup.cc
  4708. * test/RequestGroupTest.cc
  4709. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4710. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4711. processed in memory. This is the fix for previous comment out.
  4712. * src/MemoryBufferPreDownloadHandler.cc
  4713. * src/RequestGroup.cc
  4714. * src/RequestGroup.h
  4715. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Commented out the code which sets virtual directory path "[MEMORY]"
  4717. propagate directory to store to following RequestGroup.
  4718. * src/MemoryBufferPreDownloadHandler.cc
  4719. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Bump up version number to 1.0.0b
  4721. * configure.ac
  4722. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Added input_uris.txt to EXTRA_DIST
  4724. * test/Makefile.am
  4725. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Removed PeerObject.h from Makefile.am
  4727. * src/Makefile.am
  4728. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Avoid slow seeding
  4730. * src/PeerInteractionCommand.cc
  4731. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Updated usage for -i option.
  4733. * src/usage_text.h (TEXT_INPUT_FILE)
  4734. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4735. Added INPUT FILE section to man page.
  4736. Escaped fake URLs.
  4737. * doc/aria2c.1.txt
  4738. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Fixed wrong note position for -o option.
  4740. * doc/aria2c.1.txt
  4741. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Fixed compile error without SSL/XML library.
  4743. * src/DefaultBtProgressInfoFile.cc
  4744. * src/DefaultBtProgressInfoFile.h
  4745. * src/FileMetalinkParserState.cc
  4746. * src/RequestGroup.h
  4747. * src/SocketCore.cc
  4748. * src/SocketCore.h
  4749. * src/VerificationMetalinkParserState.cc
  4750. * src/download_helper.h
  4751. * src/main.cc
  4752. * test/DefaultBtProgressInfoFileTest.cc
  4753. * test/DownloadHelperTest.cc
  4754. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Rewritten URI handling functions. They are now provided as a testable
  4756. functions.
  4757. * src/Makefile.am
  4758. * src/RequestGroup.cc
  4759. * src/RequestGroup.h
  4760. * src/download_helper.cc
  4761. * src/download_helper.h
  4762. * src/main.cc
  4763. * test/DownloadHelperTest.cc
  4764. * test/Makefile.am
  4765. * test/input_uris.txt
  4766. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Quickly terminate commands when ctrl-c is pressed.
  4768. * src/DownloadEngine.cc
  4769. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Quickly terminate idle commands when download finished.
  4771. * src/AbstractCommand.cc
  4772. * src/DownloadCommand.cc
  4773. * src/DownloadEngine.cc
  4774. * src/DownloadEngine.h
  4775. * src/SleepCommand.cc
  4776. * src/SleepCommand.h
  4777. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Added the ability to specify output filename and directory in input
  4779. file.
  4780. Additional parameters are added in the following line of URIs
  4781. with proceeding white space(s), 1 parameter in 1 line.
  4782. The parameter names are the same with the command-line option name
  4783. without proceeding "--". Not all the options are available here:
  4784. at the moment, 'dir' and 'out' options are avialable.
  4785. Please note that out option has no effect against Metalink or BitTorrent
  4786. downloads.
  4787. Example input file:
  4788. http://host/foo-1.1.tar.bz2
  4789. out=foo.tar.bz2
  4790. dir=/tmp/downloads
  4791. http://host/thundermonkey-2.0.tar.bz2
  4792. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4793. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4794. thundermonkey-2.0.tar.bz2 is saved as
  4795. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4796. * src/BtPostDownloadHandler.cc
  4797. * src/Metalink2RequestGroup.cc
  4798. * src/Metalink2RequestGroup.h
  4799. * src/MetalinkPostDownloadHandler.cc
  4800. * src/UriListParser.cc
  4801. * src/UriListParser.h
  4802. * src/main.cc
  4803. * test/Metalink2RequestGroupTest.cc
  4804. * test/UriListParserTest.cc
  4805. * test/filelist1.txt
  4806. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Fixed error when SSL library is not found.
  4808. * configure.ac
  4809. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Cross referenced among -s, -C and -j options.
  4811. Updated usage of -C and -s options.
  4812. * src/usage_text.h
  4813. * doc/aria2c.1.txt
  4814. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Fixed bad cast in 32bit platforms.
  4816. * test/DefaultPieceStorageTest.cc
  4817. (DefaultPieceStorageTest::testGetCompletedLength)
  4818. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Fixed unit test fails on 32bit platforms.
  4820. * test/CookieParserTest.cc
  4821. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Show an average download speed in Download results.
  4823. * src/BtFileAllocationEntry.cc
  4824. * src/DefaultPieceStorage.cc
  4825. * src/DownloadContext.cc
  4826. * src/DownloadContext.h
  4827. * src/DownloadResult.h
  4828. * src/RequestGroup.cc
  4829. * src/RequestGroupMan.cc
  4830. * src/StreamFileAllocationEntry.cc
  4831. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Fixed the bug that metalink file is not processed if Content-Type
  4833. field has a paramter.
  4834. * src/HttpResponse.cc
  4835. * src/HttpResponse.h
  4836. * test/HttpResponseTest.cc
  4837. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Removed unused code.
  4839. * src/DefaultBtAnnounce.cc
  4840. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4842. the value larger than DefaultPieceStorage::getTotalLength() when
  4843. in flight pieces are involved.
  4844. * src/DefaultPieceStorage.cc
  4845. * test/DefaultPieceStorageTest.cc
  4846. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Bump up version number to 1.0.0a.
  4848. * configure.ac
  4849. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Updated configure.ac
  4851. * configure.ac
  4852. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Added usege for proxy.
  4854. * doc/aria2c.1.txt
  4855. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Added usage for --ca-certificate, --certificate, --private-key and
  4857. --check-certificate options.
  4858. * doc/aria2c.1.txt
  4859. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Updated man page
  4861. * doc/aria2c.1.txt
  4862. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4863. Added --no-proxy option. It receives comman separated hostname or
  4864. domains to which proxy should not be used.
  4865. aria2 honors the environment variable no_proxy to override no-proxy
  4866. value in configuration file. The user can override the environment
  4867. variable no_proxy with --no-proxy command-line option.
  4868. * src/AbstractCommand.cc
  4869. * src/OptionHandlerFactory.cc
  4870. * src/option_processing.cc
  4871. * src/prefs.cc
  4872. * src/prefs.h
  4873. * src/usage_text.h
  4874. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4875. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4876. The CA certificates are specified in --ca-certificate option.
  4877. By default, the verification is disabled. Use --check-certificate
  4878. option to enable it.
  4879. * src/HttpRequestCommand.cc
  4880. * src/LibgnutlsTLSContext.cc
  4881. * src/LibgnutlsTLSContext.h
  4882. * src/LibsslTLSContext.cc
  4883. * src/LibsslTLSContext.h
  4884. * src/MultiUrlRequestInfo.cc
  4885. * src/OptionHandlerFactory.cc
  4886. * src/SocketCore.cc
  4887. * src/SocketCore.h
  4888. * src/a2functional.h
  4889. * src/message.h
  4890. * src/option_processing.cc
  4891. * src/prefs.cc
  4892. * src/prefs.h
  4893. * src/usage_text.h
  4894. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Added client certificate authentication for SSL/TLS.
  4896. Currently a private key must be decrypted for use with aria2.
  4897. If a user accidentally gives encrypted file to aria2 then following
  4898. thing happens:
  4899. If encrypted private key is given to aria2, it behaves differently
  4900. depending on the ssl library it uses. If aria2 built with openssl then
  4901. openssl prompts the user for password. If aria2 build with gnutls then
  4902. aria2 exists with error at start up.
  4903. * src/DownloadEngineFactory.cc
  4904. * src/MultiUrlRequestInfo.cc
  4905. * src/OptionHandlerFactory.cc
  4906. * src/option_processing.cc
  4907. * src/prefs.cc
  4908. * src/prefs.h
  4909. * src/usage_text.h
  4910. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Introduced TLSContext that holds TLS related data that can be shared
  4912. with multiple SSL connections.
  4913. * src/DownloadEngineFactory.cc
  4914. * src/LibgnutlsTLSContext.cc
  4915. * src/LibgnutlsTLSContext.h
  4916. * src/LibsslTLSContext.cc
  4917. * src/LibsslTLSContext.h
  4918. * src/Makefile.am
  4919. * src/SocketCore.cc
  4920. * src/SocketCore.h
  4921. * src/TLSContext.h
  4922. * src/message.h
  4923. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4924. Fixed the bug that the DiskWriter of the first FileEntry whose
  4925. `needsFileAllocation' property is false is not created
  4926. even if it shares a piece with next FileEntry which `requested' property
  4927. is true.
  4928. Fixed the bug that zero-length file is not created if pre file
  4929. allocation is not done.
  4930. * src/MultiDiskAdaptor.cc
  4931. * src/MultiDiskAdaptor.h
  4932. * test/MultiDiskAdaptorTest.cc
  4933. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Added the ability to pool proxy connection.
  4935. The conneciton in FTP with proxy-method=GET is not pooled.
  4936. Proxy-Connection header will not be sent when sending CONNECT method.
  4937. * src/DownloadEngine.cc
  4938. * src/DownloadEngine.h
  4939. * src/FtpFinishDownloadCommand.cc
  4940. * src/FtpInitiateConnectionCommand.cc
  4941. * src/FtpNegotiationCommand.cc
  4942. * src/HttpDownloadCommand.cc
  4943. * src/HttpInitiateConnectionCommand.cc
  4944. * src/HttpRequest.cc
  4945. * src/HttpRequest.h
  4946. * src/HttpResponse.cc
  4947. * src/HttpSkipResponseCommand.cc
  4948. * test/HttpRequestTest.cc
  4949. * test/HttpResponseTest.cc
  4950. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Handle date before epoch.
  4952. To create *bad* Time object, call Time::null().
  4953. * src/CookieParser.cc
  4954. * src/FtpConnection.cc
  4955. * src/FtpConnection.h
  4956. * src/FtpNegotiationCommand.cc
  4957. * src/RequestGroup.cc
  4958. * src/TimeA2.cc
  4959. * src/TimeA2.h
  4960. * test/CookieParserTest.cc
  4961. * test/FtpConnectionTest.cc
  4962. * test/TimeTest.cc
  4963. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4964. Added support for following envrionment variables: http_proxy,
  4965. https_proxy, ftp_proxy and all_proxy.
  4966. Each variable is equivalent to the aria2 option whose name is the
  4967. variable name with '_' replaced with '-'.
  4968. They overrides options specified in aria2.conf file.
  4969. The envrionment variables can be overrode using command-line option.
  4970. * src/option_processing.cc
  4971. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Renamed --http-proxy-method as --proxy-method.
  4973. * src/AbstractCommand.cc
  4974. * src/FtpInitiateConnectionCommand.cc
  4975. * src/HttpInitiateConnectionCommand.cc
  4976. * src/OptionHandlerFactory.cc
  4977. * src/option_processing.cc
  4978. * src/prefs.cc
  4979. * src/prefs.h
  4980. * src/usage_text.h
  4981. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4983. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4984. Above 3 options and --http-proxy option can handle proxy in URL format
  4985. like: http://user:passwd@host:port.
  4986. If a proxy requires user/password, they must be specified in a URL.
  4987. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4988. instead.
  4989. * src/AbstractCommand.cc
  4990. * src/AbstractCommand.h
  4991. * src/AbstractProxyRequestCommand.cc
  4992. * src/AbstractProxyRequestCommand.h
  4993. * src/AuthConfigFactory.cc
  4994. * src/AuthConfigFactory.h
  4995. * src/FtpFinishDownloadCommand.cc
  4996. * src/FtpInitiateConnectionCommand.cc
  4997. * src/FtpInitiateConnectionCommand.h
  4998. * src/FtpNegotiationCommand.cc
  4999. * src/FtpTunnelRequestCommand.cc
  5000. * src/FtpTunnelRequestCommand.h
  5001. * src/HttpDownloadCommand.cc
  5002. * src/HttpInitiateConnectionCommand.cc
  5003. * src/HttpInitiateConnectionCommand.h
  5004. * src/HttpProxyRequestCommand.cc
  5005. * src/HttpProxyRequestCommand.h
  5006. * src/HttpRequest.cc
  5007. * src/HttpRequest.h
  5008. * src/HttpRequestCommand.cc
  5009. * src/HttpRequestCommand.h
  5010. * src/HttpSkipResponseCommand.cc
  5011. * src/InitiateConnectionCommand.cc
  5012. * src/InitiateConnectionCommand.h
  5013. * src/OptionHandlerFactory.cc
  5014. * src/OptionHandlerImpl.h
  5015. * src/Request.cc
  5016. * src/option_processing.cc
  5017. * src/prefs.cc
  5018. * src/prefs.h
  5019. * src/usage_text.h
  5020. * test/AuthConfigFactoryTest.cc
  5021. * test/HttpRequestTest.cc
  5022. * test/OptionHandlerTest.cc
  5023. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Execute choking algorithm when unchoked and interested peer is
  5025. disconected.
  5026. * src/DefaultPeerStorage.cc
  5027. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added testcase for BtNotInterestedMessage from unchoked peer.
  5029. * test/BtNotInterestedMessageTest.cc
  5030. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. Execute choking algorithm when BtInterestedMessage arrives from
  5032. unchoked peer.
  5033. * src/BtInterestedMessage.cc
  5034. * src/BtInterestedMessage.h
  5035. * src/DefaultBtMessageFactory.cc
  5036. * test/BtInterestedMessageTest.cc
  5037. * test/MockPeerStorage.h
  5038. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. AuthConfigFactory is now part of DownloadEngine.
  5040. * src/AbstractProxyRequestCommand.cc
  5041. * src/AuthConfigFactory.h
  5042. * src/DownloadEngine.cc
  5043. * src/DownloadEngine.h
  5044. * src/FtpConnection.cc
  5045. * src/FtpConnection.h
  5046. * src/FtpNegotiationCommand.cc
  5047. * src/HttpConnection.cc
  5048. * src/HttpRequest.cc
  5049. * src/HttpRequest.h
  5050. * src/HttpRequestCommand.cc
  5051. * src/HttpResponse.cc
  5052. * src/HttpResponseCommand.cc
  5053. * src/HttpSkipResponseCommand.cc
  5054. * src/MultiUrlRequestInfo.cc
  5055. * src/main.cc
  5056. * test/FtpConnectionTest.cc
  5057. * test/HttpRequestTest.cc
  5058. * test/HttpResponseTest.cc
  5059. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Corrected catched exception type.
  5061. * src/ServerStatMan.cc
  5062. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. DNSCache is now part of DownloadEngine.
  5064. * src/DNSCache.h
  5065. * src/DownloadEngine.cc
  5066. * src/DownloadEngine.h
  5067. * src/InitiateConnectionCommand.cc
  5068. * src/MultiUrlRequestInfo.cc
  5069. * test/Makefile.am
  5070. * test/Makefile.in
  5071. * test/SimpleDNSCacheTest.cc
  5072. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5073. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5074. DownloadEngine.
  5075. * src/ActivePeerConnectionCommand.cc
  5076. * src/BtSetup.cc
  5077. * src/CUIDCounter.h
  5078. * src/DHTSetup.cc
  5079. * src/DownloadCommand.cc
  5080. * src/DownloadEngine.cc
  5081. * src/DownloadEngine.h
  5082. * src/DownloadEngineFactory.cc
  5083. * src/FileAllocationDispatcherCommand.cc
  5084. * src/InitiatorMSEHandshakeCommand.cc
  5085. * src/PeerInitiateConnectionCommand.cc
  5086. * src/PeerInteractionCommand.cc
  5087. * src/PeerListenCommand.cc
  5088. * src/RequestGroup.cc
  5089. * src/StreamFileAllocationEntry.cc
  5090. * src/TrackerWatcherCommand.cc
  5091. * src/main.cc
  5092. * test/RequestGroupManTest.cc
  5093. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Implemented commented code in BtSeederStateChoke
  5095. * src/BtSeederStateChoke.cc
  5096. * src/Peer.cc
  5097. * src/Peer.h
  5098. * src/PeerInteractionCommand.cc
  5099. * src/PeerSessionResource.cc
  5100. * src/PeerSessionResource.h
  5101. * test/MockBtMessageDispatcher.h
  5102. * test/PeerSessionResourceTest.cc
  5103. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5105. its object.
  5106. * src/AbstractBtMessage.cc
  5107. * src/ActivePeerConnectionCommand.cc
  5108. * src/ActivePeerConnectionCommand.h
  5109. * src/BtContextAwareCommand.cc
  5110. * src/BtContextAwareCommand.h
  5111. * src/BtExtendedMessage.cc
  5112. * src/BtExtendedMessage.h
  5113. * src/BtInterestedMessage.cc
  5114. * src/BtInterestedMessage.h
  5115. * src/BtNotInterestedMessage.cc
  5116. * src/BtNotInterestedMessage.h
  5117. * src/BtRegistry.cc
  5118. * src/BtRegistry.h
  5119. * src/BtSeederStateChoke.cc
  5120. * src/BtSetup.cc
  5121. * src/DHTGetPeersCommand.cc
  5122. * src/DHTGetPeersCommand.h
  5123. * src/DHTPeerAnnounceEntry.cc
  5124. * src/DHTPeerAnnounceEntry.h
  5125. * src/DHTPeerAnnounceStorage.cc
  5126. * src/DHTPeerAnnounceStorage.h
  5127. * src/DHTPeerLookupTask.cc
  5128. * src/DHTPeerLookupTask.h
  5129. * src/DHTSetup.cc
  5130. * src/DHTSetup.h
  5131. * src/DHTTaskFactory.h
  5132. * src/DHTTaskFactoryImpl.cc
  5133. * src/DHTTaskFactoryImpl.h
  5134. * src/DefaultBtAnnounce.cc
  5135. * src/DefaultBtInteractive.cc
  5136. * src/DefaultBtInteractive.h
  5137. * src/DefaultBtMessageDispatcher.cc
  5138. * src/DefaultBtMessageDispatcher.h
  5139. * src/DefaultBtMessageFactory.cc
  5140. * src/DefaultBtMessageFactory.h
  5141. * src/DefaultBtMessageReceiver.cc
  5142. * src/DefaultBtProgressInfoFile.cc
  5143. * src/DefaultBtProgressInfoFile.h
  5144. * src/DefaultBtRequestFactory.cc
  5145. * src/DefaultBtRequestFactory.h
  5146. * src/DefaultExtensionMessageFactory.cc
  5147. * src/DefaultExtensionMessageFactory.h
  5148. * src/DefaultPeerStorage.cc
  5149. * src/DefaultPeerStorage.h
  5150. * src/DownloadEngine.cc
  5151. * src/DownloadEngine.h
  5152. * src/InitiatorMSEHandshakeCommand.cc
  5153. * src/InitiatorMSEHandshakeCommand.h
  5154. * src/MSEHandshake.cc
  5155. * src/MSEHandshake.h
  5156. * src/Makefile.am
  5157. * src/Makefile.in
  5158. * src/PeerChokeCommand.cc
  5159. * src/PeerChokeCommand.h
  5160. * src/PeerInitiateConnectionCommand.cc
  5161. * src/PeerInitiateConnectionCommand.h
  5162. * src/PeerInteractionCommand.cc
  5163. * src/PeerInteractionCommand.h
  5164. * src/PeerObject.h
  5165. * src/PeerReceiveHandshakeCommand.cc
  5166. * src/PeerReceiveHandshakeCommand.h
  5167. * src/ReceiverMSEHandshakeCommand.cc
  5168. * src/RequestGroup.cc
  5169. * src/RequestGroup.h
  5170. * src/RequestGroupMan.cc
  5171. * src/RequestGroupMan.h
  5172. * src/SeedCheckCommand.cc
  5173. * src/SeedCheckCommand.h
  5174. * src/ShareRatioSeedCriteria.h
  5175. * src/SimpleBtMessage.cc
  5176. * src/TrackerWatcherCommand.cc
  5177. * src/TrackerWatcherCommand.h
  5178. * src/UTPexExtensionMessage.cc
  5179. * src/UTPexExtensionMessage.h
  5180. * test/BtCancelMessageTest.cc
  5181. * test/BtChokeMessageTest.cc
  5182. * test/BtExtendedMessageTest.cc
  5183. * test/BtInterestedMessageTest.cc
  5184. * test/BtNotInterestedMessageTest.cc
  5185. * test/BtPieceMessageTest.cc
  5186. * test/BtPortMessageTest.cc
  5187. * test/BtRegistryTest.cc
  5188. * test/BtRejectMessageTest.cc
  5189. * test/BtRequestMessageTest.cc
  5190. * test/DHTPeerAnnounceEntryTest.cc
  5191. * test/DHTPeerAnnounceStorageTest.cc
  5192. * test/DefaultBtMessageDispatcherTest.cc
  5193. * test/DefaultBtMessageFactoryTest.cc
  5194. * test/DefaultBtProgressInfoFileTest.cc
  5195. * test/DefaultBtRequestFactoryTest.cc
  5196. * test/DefaultExtensionMessageFactoryTest.cc
  5197. * test/MSEHandshakeTest.cc
  5198. * test/MockDHTTaskFactory.h
  5199. * test/ShareRatioSeedCriteriaTest.cc
  5200. * test/UTPexExtensionMessageTest.cc
  5201. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5202. Fixed compiler warning.
  5203. * test/UtilTest.cc
  5204. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Treat Cookie object as session cookie if expiry = 0 is given.
  5206. With this change, you can specify session scoped cookies in an external
  5207. file setting expiry value to 0.
  5208. * src/Cookie.cc
  5209. * src/Cookie.h
  5210. * test/CookieParserTest.cc
  5211. * test/CookieStorageTest.cc
  5212. * test/CookieTest.cc
  5213. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Changed signature of DHTMessageFactory::createResponseMessage().
  5215. Removed unused validateIDMatch.
  5216. * src/DHTMessageFactory.h
  5217. * src/DHTMessageFactoryImpl.cc
  5218. * src/DHTMessageFactoryImpl.h
  5219. * src/DHTMessageTracker.cc
  5220. * test/DHTMessageFactoryImplTest.cc
  5221. * test/MockDHTMessageFactory.h
  5222. Dropped DHT message coming from same ID of localhost.
  5223. * src/DHTMessageReceiver.cc
  5224. Rejected adding node whose ID is the same as localhost's.
  5225. * src/DHTRoutingTable.cc
  5226. * test/BtPortMessageTest.cc
  5227. * test/DHTRoutingTableTest.cc
  5228. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Pool connection when redirection occurs with Content-Length = 0.
  5230. * src/HttpSkipResponseCommand.cc
  5231. * src/HttpSkipResponseCommand.h
  5232. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Fixed the bug that causes time out when redirection occurs with
  5234. content-length 0.
  5235. * src/HttpResponseCommand.cc
  5236. * src/HttpSkipResponseCommand.cc
  5237. * src/HttpSkipResponseCommand.h
  5238. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Now each status legends is shown only when it appears in Download
  5240. Result. If Download Result has no item, then status legend will not
  5241. be printed.
  5242. * src/RequestGroupMan.cc
  5243. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Removed duplicate creation of OptionHandlers.
  5245. * src/option_processing.cc
  5246. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Fixed the bug that causes segmentation fault when accessing files which
  5248. don't exist or are not included in --select-file option while
  5249. validating chunk checksum.
  5250. * src/MultiDiskAdaptor.cc
  5251. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Fixed compiler warning.
  5253. * test/UtilTest.cc
  5254. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5256. * src/IteratableChecksumValidator.cc
  5257. * src/IteratableChunkChecksumValidator.cc
  5258. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. * Release 0.16.2
  5260. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Added Serbian translation. Updated Ukrainian translation.
  5262. Thanks to all translators.
  5263. * po/sr.po
  5264. * po/uk.po
  5265. * po/LINGUAS
  5266. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Bump up version number to 0.16.2
  5268. * configure.ac
  5269. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Added length equality test to operator== to drop a piece message
  5271. whose length does not match to the requested one.
  5272. * src/RequestSlot.cc
  5273. * test/DefaultBtMessageDispatcherTest.cc
  5274. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5276. recieved.
  5277. In this fix, if a request larger than 16KiB length is received, aria2
  5278. disconnects the peer.
  5279. * src/BtConstants.h
  5280. * src/PeerMessageUtil.cc
  5281. * src/PeerMessageUtil.h
  5282. * test/BtRequestMessageTest.cc
  5283. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. * Release 0.16.1
  5285. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5287. * doc/aria2c.1.txt
  5288. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5290. Updated French, Simplified Chinese and Japanese translations.
  5291. Thanks to all translators.
  5292. en@quot and en@boldquot are also added.
  5293. * po/LINGUAS
  5294. * po/fr.po
  5295. * po/ja.po
  5296. * po/uk.po
  5297. * po/vi.po
  5298. * po/zh_CN.po
  5299. * po/zh_TW.po
  5300. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Bump up version number to 0.16.1.
  5302. * configure.ac
  5303. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Updated README.
  5305. * README
  5306. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5308. not to replace '--' with em dash character.
  5309. * doc/aria2c.1.txt
  5310. * doc/makeman
  5311. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5313. every SEC seconds.
  5314. * src/DownloadEngineFactory.cc
  5315. * src/OptionHandlerFactory.cc
  5316. * src/option_processing.cc
  5317. * src/usage_text.h
  5318. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Fixed compile warning on linux-amd64
  5320. * src/FtpConnection.cc
  5321. * src/IteratableChunkChecksumValidator.cc
  5322. * src/MultiDiskAdaptor.cc
  5323. Fixed the bug that unit test fails on linux-amd64
  5324. * test/UtilTest.cc
  5325. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Added --dht-file-path option to change the path to dht.dat, which is a
  5327. serialized DHT routing table.
  5328. * src/OptionHandlerFactory.cc
  5329. * src/option_processing.cc
  5330. * src/usage_text.h
  5331. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Fixed possible underflow.
  5333. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5334. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Fixed the bug that last character in URI is not encoded.
  5336. * src/Request.cc
  5337. * test/RequestTest.cc
  5338. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Fixed the bug that referer header field contains fragment.
  5340. Now Request class removes fragment part of URI and encodes it
  5341. in Request::setUri() and setReferer().
  5342. * src/Request.h
  5343. * src/Request.cc
  5344. * test/RequestTest.cc
  5345. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Added missing m4 macros.
  5347. * m4/cppunit.m4
  5348. * m4/libgcrypt.m4
  5349. * m4/libgnutls-extra.m4
  5350. * m4/libgnutls.m4
  5351. * m4/libxml2.m4
  5352. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Fixed compile error with gcc-4.4(snapshot)
  5354. * src/File.cc
  5355. * src/FtpConnection.cc
  5356. * src/OptionHandlerImpl.h
  5357. * src/Util.cc
  5358. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Removed assert()
  5360. * src/SocketBuffer.cc (SocketBuffer::send)
  5361. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Changed the type of _numNewConnection to unsigned int.
  5363. * src/ActivePeerConnectionCommand.cc
  5364. * src/ActivePeerConnectionCommand.h
  5365. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. * Release 0.16.0
  5367. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Updated doc
  5369. * README
  5370. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5372. translations. Thanks to all translators.
  5373. * po/bg.po
  5374. * po/de.po
  5375. * po/fr.po
  5376. * po/ja.po
  5377. * po/zh_CN.po
  5378. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Bump up version number to 0.16.0.
  5380. * configure.ac
  5381. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5383. int32_t.
  5384. Changed the type of count to int32_t.
  5385. * src/Metalink2RequestGroup.cc
  5386. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Added test for Time::elapsed(time_t).
  5388. * test/TimeTest.cc
  5389. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5391. Util::difftv() should be used instead.
  5392. * src/TimeA2.cc
  5393. * src/TimeA2.h
  5394. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Made socket for dht connections non-blocking
  5396. * src/DHTAbstractMessage.cc
  5397. * src/DHTAbstractMessage.h
  5398. * src/DHTConnection.h
  5399. * src/DHTConnectionImpl.cc
  5400. * src/DHTConnectionImpl.h
  5401. * src/DHTMessage.h
  5402. * src/DHTMessageDispatcherImpl.cc
  5403. * src/DHTMessageDispatcherImpl.h
  5404. * src/DHTUnknownMessage.cc
  5405. * src/DHTUnknownMessage.h
  5406. * src/SocketCore.cc
  5407. * src/SocketCore.h
  5408. * test/MockDHTMessage.h
  5409. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Changed the type of offset to int.
  5411. * src/ParameterizedStringParser.cc
  5412. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Made getAsInt() return int32_t
  5414. * src/Option.h
  5415. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5417. build.
  5418. * configure.ac
  5419. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Use sqlite3_open if sqlite3_open_v2 is not available.
  5421. * src/Sqlite3MozCookieParser.cc
  5422. * src/Sqlite3MozCookieParser.h
  5423. * m4/sqlite3.m4
  5424. * test/Sqlite3MozCookieParserTest.cc
  5425. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5427. * src/BtPieceMessage.cc
  5428. * src/DHTPeerAnnounceStorage.cc
  5429. * src/DefaultPieceStorage.cc
  5430. * src/DownloadCommand.cc
  5431. * src/DownloadEngine.cc
  5432. * src/FtpConnection.cc
  5433. * src/PeerConnection.cc
  5434. * src/PeerMessageUtil.cc
  5435. * src/RequestGroup.cc
  5436. * src/RequestGroupMan.cc
  5437. * src/SimpleBtMessage.cc
  5438. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5440. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5441. * src/AbstractDiskWriter.cc
  5442. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Don't set Request::supportsPersistentConnection() in HttpConnection
  5444. since this code is also used in AbstractProxyResponseCommand.
  5445. Moved those code to HttpResponse.
  5446. * src/HttpResponse.cc
  5447. * src/HttpResponse.h
  5448. * src/HttpConnection.cc
  5449. * src/HttpConnection.h
  5450. * src/HttpResponseCommand.cc
  5451. * test/HttpResponseTest.cc
  5452. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5454. The configuration is minimum: no torrent, no metalink, so there may be
  5455. other compile error on their code.
  5456. * src/a2netcompat.h
  5457. * src/File.cc
  5458. * src/File.h
  5459. * src/SocketCore.cc
  5460. * src/SocketCore.h
  5461. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Made a socket of incoming peer non-blocking.
  5463. * src/PeerListenCommand.cc
  5464. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5466. whole message data is not sent in one send() call.
  5467. * src/BtPieceMessage.cc
  5468. * src/BtPieceMessage.h
  5469. * src/PeerConnection.cc
  5470. * src/PeerConnection.h
  5471. * src/SimpleBtMessage.cc
  5472. * src/SimpleBtMessage.h
  5473. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Fixed the bug that aria2 downloads faster than max-download-limit when
  5475. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5476. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5477. , instead of sum of them.
  5478. * src/ActivePeerConnectionCommand.cc
  5479. * src/DefaultBtInteractive.cc
  5480. * src/DownloadCommand.cc
  5481. * src/PeerInteractionCommand.cc
  5482. * src/PeerReceiveHandshakeCommand.cc
  5483. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. Fixed the bug that HTTPS download fails.
  5485. * src/AbstractCommand.cc
  5486. * src/AbstractCommand.h
  5487. * src/DownloadCommand.cc
  5488. * src/FtpConnection.cc
  5489. * src/HttpConnection.cc
  5490. * src/HttpRequestCommand.cc
  5491. * src/HttpResponseCommand.cc
  5492. * src/HttpSkipResponseCommand.cc
  5493. * src/MSEHandshake.cc
  5494. * src/PeerConnection.cc
  5495. * src/SocketCore.cc
  5496. * src/SocketCore.h
  5497. Fixed the bug that aria2 doesn't download whole content body and cannot
  5498. reuse connection if chunked transfer encoding and gzip content encoding
  5499. are set.
  5500. * src/DownloadCommand.cc
  5501. * src/HttpSkipResponseCommand.cc
  5502. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Updated man page.
  5504. * doc/aria2c.1.txt
  5505. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. When error occurred while aria2 was parsing an .aria2.conf file, print
  5507. the usage of the option that caused error.
  5508. * src/option_processing.cc
  5509. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. Fixed compile error on OptionHandlerException
  5511. * src/Makefile.am
  5512. * src/OptionHandlerException.cc
  5513. * src/OptionHandlerException.h
  5514. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Moved message of the error to OptionHandlerException.h
  5516. * src/NameMatchOptionHandler.h
  5517. * src/OptionHandlerException.h
  5518. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. When error occurs while aria2 is parsing an command-line option, print
  5520. the usage of the option.
  5521. * src/Makefile.am
  5522. * src/NameMatchOptionHandler.h
  5523. * src/OptionHandlerException.h
  5524. * src/option_processing.cc
  5525. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Reverted previous change.
  5527. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5528. username is not in URI.
  5529. * src/HttpRequest.cc
  5530. * src/Request.cc
  5531. * test/HttpRequestTest.cc
  5532. * test/RequestTest.cc
  5533. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Now colon is required for username and password in FTP URL, like:
  5535. ftp://username:password@host.
  5536. If colon is not there, aria2 don't parse it as a username. For example,
  5537. aria2 don't retrieve username from ftp://username@host.
  5538. This fix was made in order to login FTP server via non-transparent ftp
  5539. proxy.
  5540. * src/Request.cc
  5541. * test/RequestTest.cc
  5542. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5543. Use netrc for HTTP.
  5544. Now FTP user/password is sent in Authorization header when
  5545. --ftp-via-http-proxy=get is given.
  5546. * src/AuthConfigFactory.cc
  5547. * src/HttpRequest.cc
  5548. * src/HttpRequest.h
  5549. * src/NetrcAuthResolver.cc
  5550. * src/NetrcAuthResolver.h
  5551. * src/OptionHandlerFactory.cc
  5552. * src/option_processing.cc
  5553. * src/prefs.cc
  5554. * src/prefs.h
  5555. * test/AuthConfigFactoryTest.cc
  5556. * test/HttpRequestTest.cc
  5557. * test/NetrcAuthResolverTest.cc
  5558. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Issue PWD command first and get working directory and use it as a prefix
  5560. for CWD command.
  5561. * src/DownloadEngine.cc
  5562. * src/DownloadEngine.h
  5563. * src/FtpConnection.cc
  5564. * src/FtpConnection.h
  5565. * src/FtpFinishDownloadCommand.cc
  5566. * src/FtpInitiateConnectionCommand.cc
  5567. * src/FtpNegotiationCommand.cc
  5568. * src/FtpNegotiationCommand.h
  5569. * test/FtpConnectionTest.cc
  5570. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Removed default user/pass for FTP user/pass, since it should not have
  5572. precedence over netrc configuration by default.
  5573. * src/OptionHandlerFactory.cc
  5574. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Added debug log for socket event.
  5576. * src/AbstractCommand.cc
  5577. * src/PeerAbstractCommand.cc
  5578. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Log microseconds.
  5580. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5581. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Replaced HelpItem.cc with OptionHandler.cc.
  5583. * po/POTFILES.in
  5584. Updated po files with 'make update-po'
  5585. * po/aria2c.pot
  5586. * po/*.po
  5587. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Removed possible values from the text.
  5589. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5590. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Removed unused preferences:
  5592. PREF_NO_PREALLOCATION
  5593. PREF_STDOUT_LOG
  5594. PREF_TRACKER_MAX_TRIES
  5595. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5596. PREF_MIN_SEGMENT_SIZE
  5597. * src/option_processing.cc
  5598. * src/prefs.cc
  5599. * src/prefs.h
  5600. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Integrated HelpItem into OptionParser to ease the workload for adding
  5602. new options. Removed default value from usage text.
  5603. * src/HelpItem.cc: Removed.
  5604. * src/HelpItem.h: Removed.
  5605. * src/HelpItemFactory.cc: Removed.
  5606. * src/HelpItemFactory.h: Removed.
  5607. * src/Makefile.am
  5608. * src/Makefile.in
  5609. * src/NameMatchOptionHandler.h
  5610. * src/OptionHandler.cc
  5611. * src/OptionHandler.h
  5612. * src/OptionHandlerFactory.cc
  5613. * src/OptionHandlerImpl.h
  5614. * src/OptionParser.cc
  5615. * src/OptionParser.h
  5616. * src/TagContainer.cc: Removed.
  5617. * src/TagContainer.h: Removed.
  5618. * src/TaggedItem.cc: Removed.
  5619. * src/TaggedItem.h: Removed.
  5620. * src/main.cc
  5621. * src/option_processing.cc
  5622. * src/usage_text.h
  5623. * src/version_usage.cc
  5624. * test/HelpItemTest.cc: Removed.
  5625. * test/Makefile.am
  5626. * test/Makefile.in
  5627. * test/OptionHandlerTest.cc
  5628. * test/OptionParserTest.cc
  5629. * test/TagContainerTest.cc: Removed.
  5630. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Moved `TransferStat stat = ...' to inside the `if' clause.
  5632. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5633. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Fixed the bug that a block in a piece is requested when same block is
  5635. already requested to the same peer in end game mode.
  5636. * src/BtRequestFactory.h
  5637. * src/DefaultBtInteractive.cc
  5638. * src/DefaultBtRequestFactory.cc
  5639. * src/DefaultBtRequestFactory.h
  5640. * src/DefaultPieceStorage.cc
  5641. * src/DefaultPieceStorage.h
  5642. * src/PieceStorage.h
  5643. * src/UnknownLengthPieceStorage.cc
  5644. * src/UnknownLengthPieceStorage.h
  5645. * test/DefaultBtRequestFactoryTest.cc
  5646. * test/DefaultPieceStorageTest.cc
  5647. * test/MockBtRequestFactory.h
  5648. * test/MockPieceStorage.h
  5649. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Removed _uploadLength and _downloadLength from PeerSessionResource
  5651. and use PeerStat::_sessionUploadLength and
  5652. PeerStat::_sessionDownloadLength.
  5653. * src/PeerSessionResource.cc
  5654. * src/PeerSessionResource.h
  5655. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Fixed the bug that prefixLength of split bucket which doesn't include
  5657. local node ID is incremented.
  5658. * src/DHTBucket.cc
  5659. * src/DHTBucket.h
  5660. * test/DHTBucketTest.cc
  5661. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Added cookies.sqlite to EXTRA_DIST
  5663. * test/Makefile.am
  5664. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. Added Turkish translation. Updated French, German, Russian and
  5666. Simplified Chinese translations. Thanks to all translators.
  5667. * po/LINGUAS
  5668. * po/de.po
  5669. * po/fr.po
  5670. * po/ru.po
  5671. * po/tr.po
  5672. * po/zh_CN.po
  5673. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Added deliminating text to the beginning of the log so that one can find
  5675. where the log starts easily.
  5676. * src/main.cc
  5677. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5679. to fix compile error when async DNS is not enabled by configuration.
  5680. * src/AbstractCommand.cc
  5681. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. If establishing conneciton to a server is failed, then mark error on
  5683. its ServerStat.
  5684. Added the cause of error to log when error event occurred.
  5685. Moved message string to message.h for translation.
  5686. * src/AbstractCommand.cc
  5687. * src/AbstractCommand.h
  5688. * src/FtpNegotiationCommand.cc
  5689. * src/HttpRequestCommand.cc
  5690. * src/PeerAbstractCommand.cc
  5691. * src/message.h
  5692. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Added the function to get error message from socket.
  5694. * src/SocketCore.cc
  5695. * src/SocketCore.h
  5696. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5698. * src/RequestGroupMan.cc
  5699. * src/RequestGroupMan.h
  5700. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. If error event is received in epoll, then abort download immediately.
  5702. * src/AbstractCommand.cc
  5703. * src/Command.cc
  5704. * src/Command.h
  5705. * src/DownloadEngine.cc
  5706. * src/PeerAbstractCommand.cc
  5707. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Added usage message for --uri-selector, --server-stat-of,
  5709. --server-stat-in, --server-stat-timeout options.
  5710. * src/HelpItemFactory.cc
  5711. * src/usage_text.h
  5712. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Added upper limit of FTP response buffer. The current implementation
  5714. uses 4096bytes as a limit.
  5715. * src/FtpConnection.cc
  5716. * src/FtpConnection.h
  5717. * test/FtpConnectionTest.cc
  5718. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Use non-blocking socket for TCP communication to avoid possible
  5720. blocking due to buffer full.
  5721. * src/AbstractProxyRequestCommand.cc
  5722. * src/FtpConnection.cc
  5723. * src/FtpConnection.h
  5724. * src/FtpNegotiationCommand.cc
  5725. * src/FtpNegotiationCommand.h
  5726. * src/HttpConnection.cc
  5727. * src/HttpConnection.h
  5728. * src/HttpRequestCommand.cc
  5729. * src/InitiatorMSEHandshakeCommand.cc
  5730. * src/InitiatorMSEHandshakeCommand.h
  5731. * src/MSEHandshake.cc
  5732. * src/MSEHandshake.h
  5733. * src/Makefile.am
  5734. * src/PeerConnection.cc
  5735. * src/PeerConnection.h
  5736. * src/PeerInteractionCommand.cc
  5737. * src/PeerListenCommand.cc
  5738. * src/ReceiverMSEHandshakeCommand.cc
  5739. * src/ReceiverMSEHandshakeCommand.h
  5740. * src/SocketBuffer.cc
  5741. * src/SocketBuffer.h
  5742. * src/SocketCore.cc
  5743. * src/SocketCore.h
  5744. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Call setStatusRealtime() in constructor.
  5746. * src/RealtimeCommand.cc
  5747. * src/RealtimeCommand.h
  5748. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Call Download::setNoWait(true) to execute newly created command without
  5750. a pause.
  5751. * src/AbstractCommand.cc
  5752. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5754. found' error from HTTP/FTP server NUM times without getting single
  5755. bytes of data, then force the download to fail.
  5756. Basically aria2 tris all URIs available. So if long list of URIs are
  5757. specified in Metalink, then aria2 will take a long time to fail
  5758. eventually if all URIs are outdated. This option eases this situation
  5759. to limit the number of servers to try.
  5760. * src/FtpNegotiationCommand.cc
  5761. * src/HelpItemFactory.cc
  5762. * src/HttpResponseCommand.cc
  5763. * src/OptionHandlerFactory.cc
  5764. * src/PeerStat.h
  5765. * src/RequestGroup.cc
  5766. * src/RequestGroup.h
  5767. * src/SegmentMan.cc
  5768. * src/SegmentMan.h
  5769. * src/option_processing.cc
  5770. * src/prefs.cc
  5771. * src/prefs.h
  5772. * src/usage_text.h
  5773. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5775. response even if more than one response is in it.
  5776. * src/FtpConnection.cc
  5777. * src/FtpConnection.h
  5778. * test/FtpConnectionTest.cc
  5779. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Merged from stable-0.15
  5781. * m4/libcares.m4
  5782. Use pkg-config
  5783. * m4/sqlite3.m4
  5784. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Removed unnecessary if statement.
  5786. * src/DefaultPieceStorage.cc (initPieceStorage)
  5787. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Added --connect-timeout option to specify connect timeout in seconds.
  5789. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5790. connecting to BitTorrent peer is not controlled by this option.
  5791. * src/AbstractProxyRequestCommand.cc
  5792. * src/FtpNegotiationCommand.cc
  5793. * src/HelpItemFactory.cc
  5794. * src/HttpRequestCommand.cc
  5795. * src/OptionHandlerFactory.cc
  5796. * src/option_processing.cc
  5797. * src/prefs.cc
  5798. * src/prefs.h
  5799. * src/usage_text.h
  5800. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Added help message for -R option.
  5802. * src/HelpItemFactory.cc
  5803. * src/usage_text.h
  5804. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Added the message that the time is in local time zone.
  5806. * src/RequestGroup.cc
  5807. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Implemented the ability to get timestamp from remote FTP server using
  5809. MDTM command described in RFC3659.
  5810. * src/FtpConnection.cc
  5811. * src/FtpConnection.h
  5812. * src/FtpNegotiationCommand.cc
  5813. * src/FtpNegotiationCommand.h
  5814. * test/FtpConnectionTest.cc
  5815. * test/Makefile.am
  5816. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Implemented the ability to get timestamp from remote HTTP server and
  5818. apply it to local file. To enable this feature, --remote-time option
  5819. is added. No usage text has been written yet.
  5820. If several servers returns difference timestamp, then aria2 uses latest
  5821. one.
  5822. * src/CopyDiskAdaptor.cc
  5823. * src/CopyDiskAdaptor.h
  5824. * src/DirectDiskAdaptor.cc
  5825. * src/DirectDiskAdaptor.h
  5826. * src/DiskAdaptor.h
  5827. * src/File.cc
  5828. * src/File.h
  5829. * src/HttpHeader.cc
  5830. * src/HttpHeader.h
  5831. * src/HttpResponse.cc
  5832. * src/HttpResponse.h
  5833. * src/HttpResponseCommand.cc
  5834. * src/HttpResponseCommand.h
  5835. * src/MultiDiskAdaptor.cc
  5836. * src/MultiDiskAdaptor.h
  5837. * src/OptionHandlerFactory.cc
  5838. * src/RequestGroup.cc
  5839. * src/RequestGroup.h
  5840. * src/RequestGroupMan.cc
  5841. * src/option_processing.cc
  5842. * src/prefs.cc
  5843. * src/prefs.h
  5844. * test/CopyDiskAdaptorTest.cc
  5845. * test/FileTest.cc
  5846. * test/Makefile.am
  5847. * test/Makefile.in
  5848. * test/MultiDiskAdaptorTest.cc
  5849. * test/TestUtil.cc
  5850. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Fixed the bug that DiskWriterEntry is not created when its
  5852. FileEntry.isRequested() is false and it doesn't share a piece with
  5853. other FileEntries that are requested. This bug causes segmentation fault
  5854. in the end.
  5855. * src/MultiDiskAdaptor.cc
  5856. * src/MultiDiskAdaptor.h
  5857. * src/MultiFileAllocationIterator.cc
  5858. * test/MultiDiskAdaptorTest.cc
  5859. * test/MultiFileAllocationIteratorTest.cc
  5860. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5861. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5862. called if the number of file entries are greater than max open files.
  5863. * src/AbstractSingleDiskAdaptor.cc
  5864. * src/AbstractSingleDiskAdaptor.h
  5865. * src/DiskAdaptor.h
  5866. * src/MultiDiskAdaptor.cc
  5867. * src/MultiDiskAdaptor.h
  5868. * test/MultiDiskAdaptorTest.cc
  5869. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Added a constuctor that receives struct timeval.
  5871. Added operator<.
  5872. * src/TimeA2.cc
  5873. * src/TimeA2.h
  5874. * test/TimeTest.cc
  5875. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5877. * src/CookieParser.cc
  5878. * test/CookieParserTest.cc
  5879. * test/HttpResponseTest.cc
  5880. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Implmented the functions to parse date.
  5882. * src/TimeA2.cc
  5883. * src/TimeA2.h
  5884. * test/TimeTest.cc
  5885. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Added "Firefox3 Cookie" feature to FeatureConfig
  5887. * src/FeatureConfig.cc
  5888. * src/FeatureConfig.h
  5889. * test/FeatureConfigTest.cc
  5890. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Bump up version number to 0.16.0b
  5892. * configure.ac
  5893. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Use pkg-config if is is available.
  5895. * m4/openssl.m4
  5896. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5898. * src/BtAnnounce.h
  5899. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. If an error occurred with a URI, remove identical URI from remaining
  5901. URI list because it is likely that same error occurred in the end and it
  5902. is waste of time.
  5903. * src/AbstractCommand.cc
  5904. * src/RequestGroup.cc
  5905. * src/RequestGroup.h
  5906. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Removed wrong comment.
  5908. * src/DefaultPeerStorage.cc
  5909. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5911. Added return value of getpid() to argument of srand() to achieve more
  5912. randomized value.
  5913. * src/SimpleRandomizer.cc
  5914. * src/SimpleRandomizer.h
  5915. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Contact tracker frequently when the number of connections are 0 and
  5917. download is not finished yet.
  5918. * src/ActivePeerConnectionCommand.cc
  5919. * src/BtAnnounce.h
  5920. * src/DefaultBtAnnounce.cc
  5921. * src/DefaultBtAnnounce.h
  5922. * test/MockBtAnnounce.h
  5923. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Moved threshold values to UTPexExtensionMessage.
  5925. * src/DefaultBtInteractive.cc
  5926. * src/Peer.cc
  5927. * src/Peer.h
  5928. * src/UTPexExtensionMessage.cc
  5929. * src/UTPexExtensionMessage.h
  5930. * test/UTPexExtensionMessageTest.cc
  5931. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Added _incoming member to Peer class and made it true if the peer
  5933. initiated connection. Don't add those peer to UTPex message.
  5934. If extended handshake is received, assign _incoming to false.
  5935. * src/DefaultBtInteractive.cc
  5936. * src/HandshakeExtensionMessage.cc
  5937. * src/Peer.cc
  5938. * src/Peer.h
  5939. * src/PeerListenCommand.cc
  5940. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5942. Encoding Decoder. Removed size threshold for turning off on the fly
  5943. inflation because resulting file may or may not be inflated depending
  5944. on the file size and I think it is not expected by users.
  5945. This change fixes segmentation fault when Metalink file contains gzipped
  5946. file and its filesize is provided.
  5947. * src/HttpResponseCommand.cc
  5948. * src/HttpResponseCommand.h
  5949. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Made Cookie immutable.
  5951. * src/Cookie.cc
  5952. * src/Cookie.h
  5953. * src/CookieParser.cc
  5954. * src/CookieParser.h
  5955. * src/CookieStorage.cc
  5956. * test/CookieParserTest.cc
  5957. * test/CookieStorageTest.cc
  5958. * test/NsCookieParserTest.cc
  5959. * test/Sqlite3MozCookieParserTest.cc
  5960. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Removed CookieBox, CookieBoxFactory.
  5962. * src/CookieBox.cc
  5963. * src/CookieBox.h
  5964. * src/CookieBoxFactory.cc
  5965. * src/CookieBoxFactory.h
  5966. * src/Makefile.am
  5967. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Use CookieStorage class instead of CookieBox class.
  5969. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5970. * src/AbstractProxyRequestCommand.cc
  5971. * src/CookieStorage.cc
  5972. * src/DownloadEngine.cc
  5973. * src/DownloadEngine.h
  5974. * src/HttpConnection.cc
  5975. * src/HttpConnection.h
  5976. * src/HttpRequest.cc
  5977. * src/HttpRequest.h
  5978. * src/HttpRequestCommand.cc
  5979. * src/HttpResponse.cc
  5980. * src/HttpResponseCommand.cc
  5981. * src/HttpSkipResponseCommand.cc
  5982. * src/Makefile.am
  5983. * src/MultiUrlRequestInfo.cc
  5984. * src/Request.cc
  5985. * src/Request.h
  5986. * src/main.cc
  5987. * test/AllTest.cc
  5988. * test/CookieStorageTest.cc
  5989. * test/CookieTest.cc
  5990. * test/HttpRequestTest.cc
  5991. * test/HttpResponseTest.cc
  5992. * test/Makefile.am
  5993. * test/NsCookieParserTest.cc
  5994. * test/Sqlite3MozCookieParserTest.cc
  5995. * test/nscookietest.txt
  5996. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Updated
  5998. * test/Cookies.sqlite
  5999. * test/nscookietest.txt
  6000. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Added tests for CookieStorage::load()
  6002. * test/CookieStorageTest.cc
  6003. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Added CookieStorage class which is based on RFC2109 and manages cookies
  6005. more strictly than CookieBox and CookieBoxFactory class.
  6006. * src/CookieStorage.cc
  6007. * src/CookieStorage.h
  6008. * src/Cookie.cc
  6009. * src/Cookie.h
  6010. * test/CookieStorageTest.cc
  6011. * test/CookieTest.cc
  6012. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Fixed the bug that commands are created more than the number of pieces.
  6014. * src/RequestGroup.cc
  6015. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Fixed infinite loop bug in FTP when SIZE command failed.
  6017. * src/FtpNegotiationCommand.cc
  6018. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Removed DirectDiskAdaptorTest.h
  6020. * test/Makefile.am
  6021. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Fixed chunk checksum validation cannot detect trailing garbage data.
  6023. BUG#2074141
  6024. * src/AbstractSingleDiskAdaptor.cc
  6025. * src/AbstractSingleDiskAdaptor.h
  6026. * src/CheckIntegrityEntry.cc
  6027. * src/CheckIntegrityEntry.h
  6028. * src/DiskAdaptor.h
  6029. * src/MultiDiskAdaptor.cc
  6030. * src/MultiDiskAdaptor.h
  6031. * src/RequestGroup.cc
  6032. * test/DirectDiskAdaptorTest.cc
  6033. * test/MultiDiskAdaptorTest.cc
  6034. * test/TestUtil.cc
  6035. * test/TestUtil.h
  6036. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Bump up version number of dht.dat file to 3. In version 3 format, time
  6038. is stored in 64bit, network byte order.
  6039. New build can load old format(version 2) but it saves the file in new
  6040. format. It means once you used new build, your dht.dat becomes
  6041. incompatible with older build.
  6042. * src/DHTRoutingTableDeserializer.cc
  6043. * src/DHTRoutingTableSerializer.cc
  6044. * test/DHTRoutingTableSerializerTest.cc
  6045. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6047. * test/Makefile.am
  6048. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Bump up version number of .aria2 control file to 0001.
  6050. New aria2 can still load version 0000 file but it saves the file in
  6051. version 0001 format. It means that new aria2 can resume download
  6052. started by old aria2 but the opposite is not true.
  6053. * src/DefaultBtProgressInfoFile.cc
  6054. * src/DefaultBtProgressInfoFile.h
  6055. * test/DefaultBtProgressInfoFileTest.cc
  6056. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Added ntoh64 and hton64 as inline functions.
  6058. * src/Util.cc
  6059. * test/UtilTest.cc
  6060. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Added sqlite3 depenency and Firefox3 cookie support.
  6062. * README
  6063. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. State that firefox3 cookie is supported explicitly in the usage.
  6065. * src/usage_text.h
  6066. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Externalized message.
  6068. * src/RequestGroupMan.cc
  6069. * src/message.h
  6070. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Save temporary file first and rename to the destination on success.
  6072. Added test cases.
  6073. * src/RequestGroupMan.cc
  6074. * test/RequestGroupManTest.cc
  6075. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Fixed the bug that the number of connected peer is exceeding the limit
  6077. (55 by default) in seeding mode.
  6078. Multiplied 0.8 to _maxUploadSpeedLimit.
  6079. * src/ActivePeerConnectionCommand.cc
  6080. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Clear table item.
  6082. * src/Dictionary.cc
  6083. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Fixed error handling of lseek.
  6085. * src/AbstractDiskWriter.cc
  6086. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6088. style cookie file.
  6089. * src/usage_text.h
  6090. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6092. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6093. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6094. * src/Util.cc
  6095. * src/Util.h
  6096. * src/CookieParser.cc
  6097. * test/UtilTest.cc
  6098. * test/CookieParserTest.cc
  6099. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Separate the implementation to load old mozilla format of cookie to
  6101. NsCookieParser class.
  6102. * src/CookieBoxFactory.cc
  6103. * src/CookieBoxFactory.h
  6104. * src/NsCookieParser.cc
  6105. * src/NsCookieParser.h
  6106. * test/NsCookieParserTest.cc
  6107. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Made parse() const
  6109. * src/Sqlite3MozCookieParser.cc
  6110. * src/Sqlite3MozCookieParser.h
  6111. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added firefox3 cookie support based on the patch submitted by
  6113. tizianomueller.
  6114. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6115. this functionality.
  6116. * configure.ac
  6117. * m4/sqlite3.m4
  6118. * src/CookieBoxFactory.cc
  6119. * src/CookieBoxFactory.h
  6120. * src/Makefile.am
  6121. * src/Makefile.in
  6122. * src/Sqlite3MozCookieParser.cc
  6123. * src/Sqlite3MozCookieParser.h
  6124. * src/main.cc
  6125. * test/CookieBoxFactoryTest.cc
  6126. * test/Makefile.am
  6127. * test/Makefile.in
  6128. * test/Sqlite3MozCookieParserTest.cc
  6129. * test/badcookies.sqlite
  6130. * test/cookies.sqlite
  6131. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Added Danish and Greek translations.
  6133. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6134. Great thanks to all translators.
  6135. * po/LINGUAS
  6136. * po/el.po
  6137. * po/da.po
  6138. * po/es.po
  6139. * po/ca.po
  6140. * po/nn.po
  6141. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Fixed man page: --follow-bittorrent should be --follow-torrent
  6143. * doc/aria2c.1.txt
  6144. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Fixed: numCommand is less than the value specified in -C option.
  6146. * src/RequestGroup.cc
  6147. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6148. Fixed occasional assertion failure in PieceSegment.
  6149. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6150. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6151. creation of duplicate segments and one of the segment was finished then
  6152. assertion failure was caused.
  6153. * src/SegmentMan.cc
  6154. * test/SegmentManTest.cc
  6155. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Added options to load/save the server's performance/status to a file
  6157. and the timeout to drop their data.
  6158. --server-stat-of=FILE specifies the file to which performance data
  6159. is saved.
  6160. --server-stat-if=FILE specifies the file to read previously saved
  6161. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6162. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6163. TIMEOUT is specified in seconds and the default value is 24hours.
  6164. * src/MultiUrlRequestInfo.cc
  6165. * src/OptionHandlerFactory.cc
  6166. * src/RequestGroupMan.cc
  6167. * src/RequestGroupMan.h
  6168. * src/ServerStatMan.cc
  6169. * src/ServerStatMan.h
  6170. * src/option_processing.cc
  6171. * src/prefs.cc
  6172. * src/prefs.h
  6173. * test/ServerStatManTest.cc
  6174. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6176. * src/ServerStatMan.cc
  6177. * src/ServerStatMan.h
  6178. * test/ServerStatManTest.cc
  6179. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Implemented ServerStatMan::load(...) function and its test case.
  6181. * src/ServerStat.cc
  6182. * src/ServerStat.h
  6183. * src/ServerStatMan.cc
  6184. * test/ServerStatManTest.cc
  6185. * test/ServerStatTest.cc
  6186. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Use time_t instead of int32_t. Use int64_t where milli second is
  6188. expected.
  6189. * src/TimeA2.cc
  6190. * src/TimeA2.h
  6191. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Implemented ServerStatMan::save(...) function and its test case.
  6193. * src/ServerStat.cc
  6194. * src/ServerStat.h
  6195. * src/ServerStatMan.cc
  6196. * src/ServerStatMan.h
  6197. * test/ServerStatManTest.cc
  6198. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Now aria2 uses name attribute in Metalink as local filename in
  6200. BitTorrent downloads. BUG#2033999
  6201. * src/BtContext.h
  6202. * src/BtDependency.cc
  6203. * src/DefaultBtContext.cc
  6204. * src/DefaultBtContext.h
  6205. * src/SingleFileDownloadContext.cc
  6206. * src/SingleFileDownloadContext.h
  6207. * test/BtDependencyTest.cc
  6208. * test/DefaultBtContextTest.cc
  6209. * test/MockBtContext.h
  6210. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Added AC_C_BIGENDIAN
  6212. * src/configure.ac
  6213. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Limited numCommand less than or equal to the number of piece.
  6215. * src/RequestGroup.cc
  6216. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6218. directive.
  6219. * test/DefaultPieceStorageTest.cc
  6220. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Fixed memory leak in test code
  6222. * test/AnnounceListTest.cc
  6223. * test/DefaultPeerListProcessorTest.cc
  6224. * test/DefaultPeerStorageTest.cc
  6225. * test/MetaFileUtilTest.cc
  6226. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6228. * src/DefaultPieceStorage.cc
  6229. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Initialized _directIOAllowed
  6231. * src/MultiDiskAdaptor.cc
  6232. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Fixed memory leak
  6234. * src/GZipDecoder.cc
  6235. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Fixed memory leak
  6237. * src/MetalinkParserStateMachine.cc
  6238. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed memory leak
  6240. * src/Dictionary.cc
  6241. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Fixed memory leak
  6243. * src/IteratableChunkChecksumValidator.h
  6244. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Fixed unmatched malloc/free.
  6246. * src/IteratableChunkChecksumValidator.cc
  6247. * src/IteratableChecksumValidator.cc
  6248. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. Removed max chunk size check. This change fixes BUG#2040169
  6250. * src/ChunkedDecoder.cc
  6251. * src/ChunkedDecoder.h
  6252. * test/ChunkedDecoderTest.cc
  6253. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Implemented download speed based URI selection algorithm.
  6255. Introduced new option --uri-selector.
  6256. If --uri-selector=feedback is given, aria2 uses download speed observed
  6257. in the previous downloads and chooses fastest server in the URI list.
  6258. Currently at most 10 URIs are considered to introduce randomeness for
  6259. finding better servers. The speed is average download speed in the
  6260. downloads.
  6261. On the other hand, if --uri-selector=inorder is given, which is default,
  6262. URI is tried in order in URI list.
  6263. The usage text for the new option has not been written yet.
  6264. * src/AbstractCommand.cc
  6265. * src/DownloadCommand.cc
  6266. * src/DownloadEngine.cc
  6267. * src/DownloadEngineFactory.cc
  6268. * src/InOrderURISelector.cc
  6269. * src/InOrderURISelector.h
  6270. * src/OptionHandlerFactory.cc
  6271. * src/PeerStat.h
  6272. * src/RequestGroup.cc
  6273. * src/RequestGroup.h
  6274. * src/RequestGroupMan.cc
  6275. * src/RequestGroupMan.h
  6276. * src/SegmentMan.cc
  6277. * src/SegmentMan.h
  6278. * src/ServerStat.cc
  6279. * src/ServerStat.h
  6280. * src/ServerStatMan.cc
  6281. * src/ServerStatMan.h
  6282. * src/ServerStatURISelector.cc
  6283. * src/ServerStatURISelector.h
  6284. * src/URISelector.h
  6285. * src/option_processing.cc
  6286. * src/prefs.cc
  6287. * src/prefs.h
  6288. * test/InOrderURISelectorTest.cc
  6289. * test/RequestGroupManTest.cc
  6290. * test/ServerStatManTest.cc
  6291. * test/ServerStatURISelectorTest.cc
  6292. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. * Release 0.15.1+2
  6294. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Bump up version number to 0.15.1+2
  6296. * configure.ac
  6297. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6299. * m4/aria2_arg.m4
  6300. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. * Release 0.15.1+1
  6302. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Bump up version number to 0.15.1+1
  6304. * configure.ac
  6305. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Fixed the bug that causes segmentaion fault when resuming download
  6307. using metalink without size tag. Reproducible only using HTTP URI.
  6308. * src/HttpResponseCommand.cc
  6309. * src/FtpNegotiationCommand.cc
  6310. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. * Release 0.15.1
  6312. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Updated Bulgarian and French translations, thanks to all translators.
  6314. * po/bg.po
  6315. * po/fr.po
  6316. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Bump up version number to 0.15.1
  6318. * configure.ac
  6319. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Avoid repeated call of gettimeofday() when calculating speed.
  6321. * src/SpeedCalc.cc
  6322. * src/SpeedCalc.h
  6323. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. Removed writable check when socket's send buffer is full in BitTorrent
  6325. downloads to lower CPU usage.
  6326. * src/PeerInteractionCommand.cc
  6327. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Fixed broken gzip inflation.
  6329. Turn off segmented downloading if gzip content is smaller than or equal
  6330. to 1MiB and inflate the data on the fly, because HTTP response header
  6331. doesn't contain the length of inflated file we can't determin where
  6332. the chunk of data should be written.
  6333. On the other hand, if gzip content is larger than 1MB, then turn off
  6334. on the fly inflation, because some servers returns "content-type: gzip"
  6335. for *.tgz, *.gz files.
  6336. * src/DownloadCommand.cc
  6337. * src/HttpResponseCommand.cc
  6338. * src/HttpResponseCommand.h
  6339. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Applied tizianomueller's patch to fix compile error.
  6341. * test/BitfieldManTest.cc
  6342. * test/BtRequestMessageTest.cc
  6343. * test/DefaultBtContextTest.cc
  6344. * test/DefaultDiskWriterTest.cc
  6345. * test/DefaultPieceStorageTest.cc
  6346. * test/HttpHeaderProcessorTest.cc
  6347. * test/HttpResponseTest.cc
  6348. * test/Metalink2RequestGroupTest.cc
  6349. * test/MetalinkParserControllerTest.cc
  6350. * test/MetalinkProcessorTest.cc
  6351. * test/PeerSessionResourceTest.cc
  6352. * test/UtilTest.cc
  6353. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. * Release 0.15.0
  6355. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Reordered src files in POTFILES.in so that usage text appears first.
  6357. * po/POTFILES.in
  6358. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Bump up version number to 0.15.0
  6360. * configure.ac
  6361. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Added Bulgarian translation.
  6363. Updated Catalan, Spanish, French and Japanese translations.
  6364. Thanks to all translators.
  6365. * po/LINGUAS
  6366. * po/bg.po
  6367. * po/ca.po
  6368. * po/es.po
  6369. * po/fr.po
  6370. * po/ja.po
  6371. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Updated feature list. Added libz for dependency section.
  6373. Added a description about unit testing using CppUnit.
  6374. * README
  6375. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Added a test for libz. Quoted where it is necessary.
  6377. * build_test.sh
  6378. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Added GZip to `Enabled Features' list.
  6380. * src/FeatureConfig.cc
  6381. * src/FeatureConfig.h
  6382. * test/FeatureConfigTest.cc
  6383. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6385. the transfer has not yet started.
  6386. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6387. * src/SegmentMan.cc
  6388. * src/SegmentMan.h
  6389. * test/SegmentManTest.cc
  6390. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Cache last calculated average download/upload speed.
  6392. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6393. cached value.
  6394. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6395. * src/PeerStat.h
  6396. * src/SpeedCalc.cc
  6397. * src/SpeedCalc.h
  6398. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Call parseUrl directly.
  6400. * src/Request.cc (resetUrl)
  6401. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6402. Supported absolute/relative path in Location header field.
  6403. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6404. * src/HttpHeader.cc
  6405. * src/HttpHeader.h
  6406. * src/HttpResponse.cc
  6407. * src/HttpSkipResponseCommand.cc
  6408. * src/Request.cc
  6409. * test/HttpHeaderTest.cc
  6410. * test/HttpResponseTest.cc
  6411. * test/RequestTest.cc
  6412. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Changed help text for --load-cookie option.
  6414. * doc/aria2c.1.txt
  6415. * src/usage_text.h
  6416. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Regenerated test/Makefile.in to remove stale ChangeLog.
  6418. * test/Makefile.in
  6419. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Updated po files.
  6421. * po/aria2c.pot
  6422. * po/*.po
  6423. * po/*.gmo
  6424. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Bump up version number to 0.15.0b
  6426. * configure.ac
  6427. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Externalize messages.
  6429. * src/RequestGroupMan.cc
  6430. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6431. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Use File::exists() instead of File::isFile() to allow non-regular file
  6433. such as block special files.
  6434. * src/AbstractDiskWriter.cc
  6435. * src/MultiDiskWriter.cc
  6436. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6438. * src/gai_strerror.h
  6439. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Fixed compile error. Thanks gknauf for the patch.
  6441. * src/asctime_r.c
  6442. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Included asctime_r.h from a2time.h.
  6444. * src/a2time.h
  6445. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Added a message "aria2 doesn't verify signature" to log message when
  6447. signature file is saved.
  6448. * src/RequestGroupMan.cc
  6449. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added the ability to save signature when download is completed if
  6451. signature is available. The filename of signature file is the path to
  6452. download file followed by ".sig". If it already exists, then signature
  6453. will not be saved.
  6454. * src/RequestGroupMan.cc
  6455. * src/Signature.cc
  6456. * test/SignatureTest.cc
  6457. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Updated the descriptions for --bt-seed-unverified.
  6459. * doc/aria2c.1
  6460. * doc/aria2c.1.html
  6461. * doc/aria2c.1.txt
  6462. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6464. that this is not going to verify files using piece hashes.
  6465. * src/HelpItemFactory.cc
  6466. * src/OptionHandlerFactory.cc
  6467. * src/RequestGroup.cc
  6468. * src/option_processing.cc
  6469. * src/prefs.cc
  6470. * src/prefs.h
  6471. * src/usage_text.h
  6472. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Added the ability to retrieve signature from Metalink file.
  6474. A retrieved signature is stored in Signature class and it is held by
  6475. DownloadContext class. Note that aria2 doesn't verify signature.
  6476. * src/DownloadContext.cc
  6477. * src/DownloadContext.h
  6478. * src/Makefile.am
  6479. * src/Makefile.in
  6480. * src/Metalink2RequestGroup.cc
  6481. * src/MetalinkEntry.cc
  6482. * src/MetalinkEntry.h
  6483. * src/MetalinkParserController.cc
  6484. * src/MetalinkParserController.h
  6485. * src/MetalinkParserStateMachine.cc
  6486. * src/MetalinkParserStateMachine.h
  6487. * src/Signature.cc
  6488. * src/Signature.h
  6489. * src/SignatureMetalinkParserState.cc
  6490. * src/SignatureMetalinkParserState.h
  6491. * src/VerificationMetalinkParserState.cc
  6492. * src/VerificationMetalinkParserState.h
  6493. * test/Metalink2RequestGroupTest.cc
  6494. * test/MetalinkParserControllerTest.cc
  6495. * test/MetalinkProcessorTest.cc
  6496. * test/test.xml
  6497. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Close DiskAdaptor after renaming file.
  6499. * src/RequestGroup.cc
  6500. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6501. Corrected indentation
  6502. * src/DefaultBtProgressInfoFile.cc
  6503. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Moved the calls of std::ios::exceptions() inside of try-catch block
  6505. because if an error occurred in constructor of std::fstream, then
  6506. exception is thrown immediately when std::ios::exceptions() is called
  6507. which results unhandled exception and aria2c aborts.
  6508. * src/DefaultBtProgressInfoFile.cc
  6509. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Added the test for the previous change in DefaultBtContext.cc
  6511. * test/DefaultBtContextTest.cc
  6512. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Fixed the bug that causes infinite loop when the number of pieces are
  6514. fewer than allowed fast set size which is 10 by default.
  6515. * src/DefaultBtContext.cc
  6516. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Updated the descriptions for -j, -s. Added --bt-seed.
  6518. * doc/aria2c.1
  6519. * doc/aria2c.1.html
  6520. * doc/aria2c.1.txt
  6521. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6523. aria2 seeds previously downloaded files without validating piece hashs.
  6524. * src/HelpItemFactory.cc
  6525. * src/OptionHandlerFactory.cc
  6526. * src/RequestGroup.cc
  6527. * src/option_processing.cc
  6528. * src/prefs.cc
  6529. * src/prefs.h
  6530. * src/usage_text.h
  6531. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Updated DESCRIPTION of man page.
  6533. * doc/aria2c.1
  6534. * doc/aria2c.1.html
  6535. * doc/aria2c.1.txt
  6536. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6538. Don't define `struct addrinfo' when __sun is defined.
  6539. * src/getaddrinfo.h
  6540. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6542. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6543. second argument is of type `struct _stati64'. Otherwise it is defined as
  6544. `struct stat'.
  6545. * src/AbstractDiskWriter.cc
  6546. * src/File.cc
  6547. * src/File.h
  6548. * src/a2io.h
  6549. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Fixed the compile error in hurd-i386
  6551. See the original bug report:
  6552. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6553. * src/a2io.h
  6554. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Code cleanup.
  6556. * src/PeerAbstractCommand.cc
  6557. * src/PeerAbstractCommand.h
  6558. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Removed TransferEncoding.
  6560. * src/DownloadCommand.cc
  6561. * src/DownloadCommand.h
  6562. * src/HttpResponseCommand.cc
  6563. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Updated po files.
  6565. * po/aria2c.pot
  6566. * po/*.po
  6567. * po/*.gmo
  6568. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6570. * src/A2STR.cc
  6571. * src/A2STR.h
  6572. * src/ChunkedDecoder.cc
  6573. * src/ChunkedDecoder.h
  6574. * src/ChunkedEncoding.cc: Removed
  6575. * src/ChunkedEncoding.h: Removed
  6576. * src/DownloadCommand.cc
  6577. * src/DownloadCommand.h
  6578. * src/HttpDownloadCommand.cc
  6579. * src/HttpResponse.cc
  6580. * src/HttpResponse.h
  6581. * src/HttpResponseCommand.cc
  6582. * src/HttpSkipResponseCommand.cc
  6583. * src/HttpSkipResponseCommand.h
  6584. * src/Makefile.am
  6585. * src/TransferEncoding.h: Removed
  6586. * test/ChunkedDecoderTest.cc
  6587. * test/ChunkedEncodingTest.cc: Removed
  6588. * test/HttpResponseTest.cc
  6589. * test/Makefile.am
  6590. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Use append instead of insert.
  6592. * src/GZipDecoder.cc
  6593. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Updated doc
  6595. * src/Decoder.h
  6596. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Updated usage text for -s option.
  6598. * src/usage_text.h
  6599. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6601. * src/Request.cc
  6602. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Cleaned up configure.ac.
  6604. * configure.ac
  6605. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6607. AC_ARG_ENABLE.
  6608. * configure.ac
  6609. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6611. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6612. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6613. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6614. fly and writes decoded data to a local disk.
  6615. * README
  6616. * README.html
  6617. * configure.ac
  6618. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6619. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6620. * m4/libz.m4
  6621. * src/Decoder.h
  6622. * src/DownloadCommand.cc
  6623. * src/DownloadCommand.h
  6624. * src/Exception.h
  6625. * src/GZipDecoder.cc
  6626. * src/GZipDecoder.h
  6627. * src/HttpHeader.cc
  6628. * src/HttpHeader.h
  6629. * src/HttpRequest.cc
  6630. * src/HttpRequest.h
  6631. * src/HttpResponse.cc
  6632. * src/HttpResponse.h
  6633. * src/HttpResponseCommand.cc
  6634. * src/Makefile.am
  6635. * test/GZipDecoderTest.cc
  6636. * test/HttpRequestTest.cc
  6637. * test/HttpResponseTest.cc
  6638. * test/Makefile.am
  6639. * test/Makefile.in
  6640. * test/gzip_decode_test.gz
  6641. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Clarified usage of -j option.
  6643. * src/usage_text.h
  6644. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Disabled getting size from the response of RETR.
  6646. If SIZE command failed, then disable resuming and segmented downloading.
  6647. * src/FtpConnection.cc
  6648. * src/FtpConnection.h
  6649. * src/FtpNegotiationCommand.cc
  6650. * src/FtpNegotiationCommand.h
  6651. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Use digits to find first byte of file size, which makes the intention
  6653. of the code clearer.
  6654. * src/FtpConnection.cc
  6655. Don't call validateTotalLength() when size is 0.
  6656. * src/FtpNegotiationCommand.cc
  6657. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Updated po files.
  6659. * po/aria2c.pot
  6660. * po/*.gmo
  6661. * po/*.po
  6662. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Clarified usage text for --split option.
  6664. * src/usage_text.h
  6665. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Bump up version number to 0.15.0dev. "dev" means "development"
  6667. version, which means I started the development of the next release!
  6668. * src/configure.ac
  6669. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. If FTP server returns negative response with REST raw command and
  6671. requested range is not 0, throw exception. If requested range is 0,
  6672. continue download a file from 0 byte.
  6673. * src/FtpNegotiationCommand.cc
  6674. * src/FtpNegotiationCommand.h
  6675. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Supported FTP server which don't recognize SIZE raw command.
  6677. If SIZE raw command is failed, aria2 will try to get file size
  6678. from the response of RETR raw command. If both attempts are failed,
  6679. then resuming and segmented downloading are disabled.
  6680. * src/FtpConnection.cc
  6681. * src/FtpConnection.h
  6682. * src/FtpNegotiationCommand.cc
  6683. * src/FtpNegotiationCommand.h
  6684. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. * Release 0.14.0+1
  6686. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Bump up version number to 0.14.0+1
  6688. * src/configure.ac
  6689. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Fixed the code that refers static member variable from non-static
  6691. context.
  6692. * src/DefaultPeerStorage.cc
  6693. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. * Release 0.14.0
  6695. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Added build test script
  6697. * build_test.sh
  6698. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Updated ja.po
  6700. * src/ja.po
  6701. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Bump up version number to 0.14.0
  6703. * src/configure.ac
  6704. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Updated ja.po and fr.po. Great thanks for french translators and
  6706. Sebastien WILLEMIJNS.
  6707. * po/fr.po
  6708. * po/ja.po
  6709. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Added configure option to enable/disable epoll support.
  6711. * configure.ac
  6712. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Updated man page.
  6714. * doc/aria2c.1.txt
  6715. * doc/aria2c.1
  6716. * doc/aria2c.1.html
  6717. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Added missing default value '5' to the usage of --split option.
  6719. * src/HelpItemFactory.cc
  6720. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Filled up pieces based on the number of missing blocks, rather than
  6722. simplay the number of piece * block length.
  6723. * src/BtRequestFactory.h
  6724. * src/DefaultBtInteractive.cc
  6725. * src/DefaultBtInteractive.h
  6726. * src/DefaultBtRequestFactory.cc
  6727. * src/DefaultBtRequestFactory.h
  6728. * src/Piece.cc
  6729. * src/Piece.h
  6730. * test/BitfieldManTest.cc
  6731. * test/DefaultBtRequestFactoryTest.cc
  6732. * test/MockBtRequestFactory.h
  6733. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Made _epEvents a member variable.
  6735. * src/DownloadEngine.cc
  6736. * src/DownloadEngine.h
  6737. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Cancel download if http redirect is bounded more than 20 times.
  6739. * src/AbstractCommand.cc
  6740. * src/HttpSkipResponseCommand.cc
  6741. * src/Request.cc
  6742. * src/Request.h
  6743. * test/RequestTest.cc
  6744. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Fixed unhandled exception(removed keyword `new').
  6746. * src/SocketCore.cc (initEPOLL)
  6747. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Removed visit(const MetaEntry*)
  6749. * src/MetaEntryVisitor.h:
  6750. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6751. and made them virtual.
  6752. * src/BencodeVisitor.h
  6753. * src/BencodeVisitor.cc
  6754. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Updated po files.
  6756. * po/aria2c.pot
  6757. * po/*.po
  6758. * po/*.gmo
  6759. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6761. the number of socket to watch out.
  6762. * src/PeerInteractionCommand.cc
  6763. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. When there is not enough space in disk when writing a chunk of data,
  6765. aria2 now prints the message to the console to warn user and aborts
  6766. its download. Not all downloads are canceled because some downloads
  6767. may use another disk or partition. BUG#1640332
  6768. * src/AbstractDiskWriter.cc
  6769. * src/PeerAbstractCommand.cc
  6770. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6771. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6772. setHaltRequested(true) to cancel download.
  6773. * src/PeerInteractionCommand.h
  6774. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6776. socket from int to sock_t as sockets are unsigned in Windows.
  6777. For AsyncNameResolver, DownloadEngine, I did additional modification
  6778. for the portion of the code changed according to epoll support.
  6779. I defined sock_t in a2netcompat.h to use sock_t without including
  6780. SocketCore.h.
  6781. * src/AsyncNameResolver.cc
  6782. * src/AsyncNameResolver.h
  6783. * src/DownloadEngine.cc
  6784. * src/DownloadEngine.h
  6785. * src/SocketCore.cc
  6786. * src/SocketCore.h
  6787. * src/a2netcompat.h
  6788. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6790. changes in the patch were applied.
  6791. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6792. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6793. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6794. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6796. a2io.h and common.h were modified.
  6797. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6798. MinGW.
  6799. * src/common.h: Changed off_t to 64 bit in MinGW.
  6800. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6802. only a2netcompat.h is modified.
  6803. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6804. directives.
  6805. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6807. only gai_strerror.h is modified.
  6808. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6809. winsock errors in MinGW.
  6810. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6812. follow sources are applied.
  6813. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6814. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6815. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6816. I included locale.h from Platform.cc.
  6817. * src/main.cc: Moved common setup/teardown code to Platform class.
  6818. * test/AllTest.cc: Use Platform class.
  6819. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6820. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6822. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6823. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6824. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6826. aria2-0.13.2+1-mingw-2.patch.
  6827. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6828. systems which don't have termious.h. I moved the directive inside of
  6829. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6830. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6831. anyway.
  6832. * src/asctime_r.h
  6833. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6834. I added 2nd argument to the prototype declaration.
  6835. * src/StringFormat.cc: Get rid of vasprintf.
  6836. * src/getaddrinfo.h: Fixed constants.
  6837. * configure.ac: Added the check for asctime_r function.
  6838. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6839. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Added writable test for Socket when the sending message is in progress.
  6841. Usually the sending message is piece message. Without wriable check,
  6842. upload latency is dropped to more than 1sec.
  6843. * src/PeerInteractionCommand.cc
  6844. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Create only requested files and files which shares a piece with
  6846. requested file in multi-torrent downloads. Directory structures are
  6847. also created in the same rule.
  6848. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6849. DiskWriterEntry as in the previous implementation.
  6850. * src/MultiDiskWriter.cc
  6851. * src/MultiFileAllocationIterator.cc
  6852. * src/MultiFileAllocationIterator.h
  6853. * test/MultiFileAllocationIteratorTest.cc
  6854. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Commented out -lprofiler
  6856. * src/Makefile.am
  6857. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Bump up version number to 0.14.0b.
  6859. * src/configure.ac
  6860. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Actively establish connection to peers in seeding, when peer cache
  6862. is not full and max upload speed limit is not reached.
  6863. * src/ActivePeerConnectionCommand.cc
  6864. * src/ActivePeerConnectionCommand.h
  6865. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6867. to make room more fleshy, recently found peers.
  6868. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6869. it.
  6870. * src/DefaultPeerStorage.cc
  6871. * test/DefaultPeerStorageTest.cc
  6872. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Returns cached data only when the previous receiveHandshake() is called
  6874. with peek = true.
  6875. * src/PeerConnection.cc (receiveHandshake)
  6876. * src/PeerConnection.h (receiveHandshake)
  6877. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Changed default value of -s option from 1 to 5.
  6879. Also max value of -s option is changed from 5 to 16.
  6880. * src/HelpItemFactory.cc
  6881. * src/OptionHandlerFactory.cc
  6882. * src/option_processing.cc
  6883. * src/usage_text.h
  6884. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Changed -s options behavior. Now it means the number of connections
  6886. made simultaneously in each http/ftp download.
  6887. If 1 URL is specified, the behavior is the same with old implementation.
  6888. If -s N is given and more than N URLs are specified, first N URLs are
  6889. used and remaining URLs are used for backup. If less than N URLs are
  6890. specified, some of URLs are used more than once so that totally N
  6891. connections are made simultaneously.
  6892. * src/main.cc
  6893. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Included missing iosfwd or ostream header.
  6895. * src/RequestGroupMan.cc
  6896. * src/TaggedItem.cc
  6897. * src/TaggedItem.h
  6898. * src/Util.cc
  6899. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6901. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6902. * src/HttpConnection.cc: Included missing sstream.
  6903. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Added --bt-max-open-files option.
  6905. * src/DefaultPieceStorage.cc
  6906. * src/HelpItemFactory.cc
  6907. * src/MultiDiskAdaptor.cc
  6908. * src/MultiDiskAdaptor.h
  6909. * src/OptionHandlerFactory.cc
  6910. * src/option_processing.cc
  6911. * src/prefs.cc
  6912. * src/prefs.h
  6913. * src/usage_text.h
  6914. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Fixed the bug that aria2 aborts when a path to a directory is given
  6916. in command-line.
  6917. * src/ProtocolDetector.cc
  6918. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Limited the number files opened in each BitTorrent download. The default
  6920. value is 100. The option to change this value will be added.
  6921. * src/MultiDiskAdaptor.cc
  6922. * src/MultiDiskAdaptor.h
  6923. * src/MultiFileAllocationIterator.cc
  6924. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Fixed the bug that HTTP downloads don't start with old libraries.
  6926. * src/HttpHeaderProcessor.cc
  6927. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Use empty() instead of size() > 0.
  6929. * src/HttpConnection.cc
  6930. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Drop connection if the incoming peer ID is the same with localhost's
  6932. one. The previous implementation drops connection when incoming peer's
  6933. IP address is the same with localhost's one.
  6934. * src/PeerListenCommand.cc
  6935. * src/DefaultBtInteractive.cc
  6936. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Returns cached data without checking whether socket is readable
  6938. if the cache is available.
  6939. * src/PeerConnection.cc (receiveHandshake)
  6940. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Included stdint.h
  6942. * src/common.h
  6943. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Removed duplicate HAVE_GETTIMEOFDAY
  6945. * src/Makefile.am
  6946. * src/Makefile.in
  6947. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Use interval as a minInterval when minInterval is not supplied.
  6949. * src/DefaultBtAnnounce.cc
  6950. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6952. attempt is failed, then 2nd attempt get kicked out more quickly.
  6953. And it is now static const member of DefaultBtAnnounce.
  6954. * src/DefaultBtAnnounce.h
  6955. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6957. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6958. * src/ActivePeerConnectionCommand.cc
  6959. * src/BtConstants.h
  6960. * src/BtRuntime.h
  6961. * src/DHTGetPeersCommand.cc
  6962. * src/DefaultBtAnnounce.cc
  6963. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6964. BtRuntime::MAX_PEERS.
  6965. * src/DefaultPeerStorage.h
  6966. * src/InitiatorMSEHandshakeCommand.cc
  6967. * src/PeerInitiateConnectionCommand.cc
  6968. * src/PeerInteractionCommand.cc
  6969. * src/PeerReceiveHandshakeCommand.cc
  6970. * src/TrackerWatcherCommand.cc
  6971. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Always Connect to _numNewConnection
  6973. * src/ActivePeerConnectionCommand.cc
  6974. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Made `begin' unsigned int.
  6976. * src/GrowSegment.h
  6977. * src/Piece.cc
  6978. * src/Piece.h
  6979. * src/PiecedSegment.cc
  6980. * src/PiecedSegment.h
  6981. * src/Segment.h
  6982. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Calculate piece hash when data is arrived if the data is arrived in
  6984. order. This removes additional read operation for hash calculation.
  6985. If the data is arrived in out of order, the hash is calucated when the
  6986. piece is completed. This is the same behavior as the old implementation.
  6987. * src/BtPieceMessage.cc
  6988. * src/DefaultBtProgressInfoFile.cc
  6989. * src/DefaultPieceStorage.cc
  6990. * src/DownloadCommand.cc
  6991. * src/DownloadCommand.h
  6992. * src/DownloadEngine.cc
  6993. * src/GrowSegment.cc
  6994. * src/GrowSegment.h
  6995. * src/Piece.cc
  6996. * src/Piece.h
  6997. * src/PiecedSegment.cc
  6998. * src/PiecedSegment.h
  6999. * src/Segment.h
  7000. * test/PieceTest.cc
  7001. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Try to keep the ordering of outgoing piece message.
  7003. * src/DefaultBtMessageDispatcher.cc
  7004. (DefaultBtMessageDispatcher::sendMessages)
  7005. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Fixed busy loop when error/hup epoll events occur.
  7007. * src/AbstractCommand.cc
  7008. * src/PeerAbstractCommand.cc
  7009. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Added --bt-request-peer-speed-limit option, which was a constant
  7011. SLOW_SPEED_THRESHOLD.
  7012. * src/ActivePeerConnectionCommand.cc
  7013. * src/ActivePeerConnectionCommand.h
  7014. * src/BtConstants.h
  7015. * src/HelpItemFactory.cc
  7016. * src/OptionHandlerFactory.cc
  7017. * src/PeerReceiveHandshakeCommand.cc
  7018. * src/option_processing.cc
  7019. * src/prefs.cc
  7020. * src/prefs.h
  7021. * src/usage_text.h
  7022. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Removed repeated call of getTopDirPath(). Instead, call it once and
  7024. cache the result.
  7025. * src/MultiDiskAdaptor.cc
  7026. * src/MultiDiskAdaptor.h
  7027. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7028. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Fixed compile error on debian etch.
  7030. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7031. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7032. it is undefined.
  7033. * src/Util.cc (ULLONG_MAX)
  7034. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Added epoll support. Use epoll if it is available. If not, use select.
  7036. When async dns is enabled in compile time, epoll support is enabled
  7037. only when aria2 is built with c-ares. This condition statement is
  7038. defined in a2io.h.
  7039. Currently aria2 supports both c-ares and ares, but ares is maintained
  7040. for quite a while and debian already has c-ares package, ares support
  7041. will be dropped in the future version.
  7042. * configure.ac
  7043. * src/AbstractCommand.cc
  7044. * src/AsyncNameResolver.cc
  7045. * src/AsyncNameResolver.h
  7046. * src/Command.cc
  7047. * src/Command.h
  7048. * src/DownloadEngine.cc
  7049. * src/DownloadEngine.h
  7050. * src/PeerAbstractCommand.cc
  7051. * src/SocketCore.cc
  7052. * src/SocketCore.h
  7053. * src/a2io.h
  7054. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7056. directive.
  7057. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Do not do write operation to /dev/null file.
  7059. * src/LogFactory.cc
  7060. * src/SimpleLogger.cc
  7061. Replaced vasprintf with vsnprintf
  7062. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7063. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. * src/BtRequestMessage.cc
  7065. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7066. for segmentation fault caused by previous commit.
  7067. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Reduced the usage of gettimeofday().
  7069. * src/DefaultBtMessageDispatcher.cc
  7070. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7071. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7072. * src/RequestSlot.cc
  7073. * src/RequestSlot.h
  7074. (RequestSlot::isTimeout)
  7075. Made RequestSlot have a reference to Piece object to avoid find
  7076. Piece repeatedly.
  7077. * src/DefaultBtMessageDispatcher.cc
  7078. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7079. * src/RequestSlot.cc
  7080. * src/RequestSlot.h
  7081. (RequestSlot::getPiece)
  7082. * test/DefaultBtMessageDispatcherTest.cc
  7083. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. * src/TimeA2.cc
  7085. * src/TimeA2.h
  7086. (Time::difference): New function.
  7087. (Time::elapsed): Done optimization.
  7088. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7090. directive.
  7091. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. * src/option_processing.cc: Added missing `defined' keyword to #if
  7093. directive.
  7094. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Bump up version number to 0.13.2+1
  7096. * src/configure.ac
  7097. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Refactored broken outstanding piece handling.
  7099. * src/DefaultPieceStorage.cc
  7100. * src/DefaultPieceStorage.h
  7101. * src/Piece.cc
  7102. * src/Piece.h
  7103. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7105. name collision of static variable and predefined macro.
  7106. * src/BtContext.cc
  7107. * src/BtContext.h
  7108. * src/CookieBoxFactory.cc
  7109. * src/CookieBoxFactory.h
  7110. * src/CookieParser.cc
  7111. * src/CookieParser.h
  7112. * src/DefaultBtContext.cc
  7113. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. * src/RequestGroup.cc
  7115. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7116. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. * Release 0.13.2
  7118. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7120. * po/fr.po
  7121. * po/ja.po
  7122. * po/aria2c.pot
  7123. * po/*.po
  7124. * po/*.gmo
  7125. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Bump up version number to 0.13.2
  7127. * src/configure.ac
  7128. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Refactord.
  7130. * src/RequestGroupMan.cc
  7131. (removeStoppedGroup)
  7132. (fillRequestGroupFromReserver)
  7133. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Fixed compile error on Ubuntu.
  7135. * src/BtPieceMessage.cc
  7136. * src/MessageDigestHelper.cc
  7137. * src/Util.cc
  7138. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Fixed compile error when configured with --disable-bittorrent
  7140. * test/DownloadHandlerFactoryTest.cc
  7141. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Done make update-po
  7143. * po/aria2c.pot
  7144. * po/*.po
  7145. * po/*.gmo
  7146. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Bump up version number to 0.13.2rc.
  7148. * src/configure.ac
  7149. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Made option name bold. Updated SYNOPSIS to make it more readable.
  7151. * doc/aria2c.1.txt
  7152. * doc/aria2c.1
  7153. * doc/aria2c.1.html
  7154. * src/version_usage.cc
  7155. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Refactored. Use std::string instead of size and char*.
  7157. * Data.cc
  7158. * Data.h
  7159. * test/Data.cc
  7160. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Added trimSelf(). Rewritten trim() to use trimSelf().
  7162. * Util.cc
  7163. * Util.h
  7164. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7166. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Fixed compile error when configured with --disable-metalink.
  7168. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7169. * test/FeatureConfigTest.cc
  7170. * test/DownloadHandlerFactoryTest.cc
  7171. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Fixed compile error when configured with --without-gnutls
  7173. --without-openssl
  7174. * src/main.cc
  7175. * test/DefaultBtProgressInfoFileTest.cc
  7176. * test/SegmentManTest.cc
  7177. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Fixed compile error with OpenSSL.
  7179. * src/IteratableChunkChecksumValidator.cc
  7180. * src/LibsslDHKeyExchange.h
  7181. * src/MessageDigestHelper.cc
  7182. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Revert the default value of --max-concurrent-downloads to 5.
  7184. Revert the default value of --metalink-servers to 5.
  7185. Man pages was also updated.
  7186. * src/option_processing.cc
  7187. * doc/aria2c.1.txt
  7188. * doc/aria2c.1.html
  7189. * doc/aria2c.1
  7190. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Returns const reference:
  7192. DownloadContext::getPieceHash, DownloadContext::getName,
  7193. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7194. BtContext::getInfoHashAsString,
  7195. * src/BtContext.h
  7196. * src/DefaultBtContext.cc
  7197. * src/DefaultBtContext.h
  7198. * src/DownloadContext.h
  7199. * src/SingleFileDownloadContext.h
  7200. * test/MockBtContext.h
  7201. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. * src/RequestGroup.h (getDir): Removed.
  7203. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Returns const reference. The internal urlencode function was optimized
  7205. a little bit.
  7206. * src/Request.cc
  7207. * src/Request.h
  7208. * src/HttpRequest.cc
  7209. * src/HttpRequest.h
  7210. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Defined option name and possible values as std::string to reduce
  7212. temporary string object creation in runtime.
  7213. * src/HelpItemFactory.cc
  7214. * src/LogFactory.cc
  7215. * src/Option.cc
  7216. * src/OptionHandlerFactory.cc
  7217. * src/option_processing.cc
  7218. * src/prefs.cc
  7219. * src/prefs.h
  7220. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Return const reference.
  7222. * src/DownloadHandlerConstants.cc
  7223. * src/DownloadHandlerConstants.h
  7224. (getMetalinkExtensions)
  7225. (getMetalinkContentTypes)
  7226. (getBtExtensions)
  7227. (getBtContentTypes)
  7228. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. * src/HttpHeader.cc (get): Rewritten.
  7230. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Make HttpHeader::getFirst(...) return const reference.
  7232. * src/HttpHeader.cc
  7233. * src/HttpHeader.h
  7234. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7236. it with V_TRUE.
  7237. * src/DefaultPieceStorage.cc
  7238. * src/DownloadCommand.cc
  7239. * src/FtpNegotiationCommand.cc
  7240. * src/HttpRequest.cc
  7241. * src/InitiateConnectionCommand.cc
  7242. * src/RequestGroup.cc
  7243. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Made Option::get(...) return const reference of std::string.
  7245. * src/Option.cc
  7246. * src/Option.h
  7247. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Replaced std:copy with insert.
  7249. * src/DefaultBtMessageDispatcher.cc
  7250. * src/DefaultPieceStorage.cc
  7251. * src/DownloadEngineFactory.cc
  7252. * src/RequestGroup.cc
  7253. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Included SocketCore.h to fix compiler warning.
  7255. * src/InitiateConnectionCommand.cc
  7256. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Put piece selection strategy algorithm to RarestPieceSelector class,
  7258. Added a switch to choose whether randomized selection so that unit
  7259. tests emit same results in, possibly, win32.
  7260. * src/DefaultPieceStorage.cc
  7261. * src/DefaultPieceStorage.h
  7262. * src/RarestPieceSelector.cc
  7263. * src/RarestPieceSelector.h
  7264. * test/DefaultPieceStorageTest.cc
  7265. * test/RarestPieceSelectorTest.cc
  7266. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Don't pool connection if HTTP proxy is enabled.
  7268. * src/FtpFinishDownloadCommand.cc
  7269. * src/FtpNegotiationCommand.cc
  7270. * src/HttpSkipResponseCommand.cc
  7271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7273. * src/AbstractCommand.cc
  7274. * src/AbstractCommand.h
  7275. * src/ActivePeerConnectionCommand.cc
  7276. * src/FtpInitiateConnectionCommand.cc
  7277. * src/HttpInitiateConnectionCommand.cc
  7278. * src/InitiateConnectionCommandFactory.cc
  7279. * src/PeerAbstractCommand.cc
  7280. * src/PeerAbstractCommand.h
  7281. * src/PeerInitiateConnectionCommand.cc
  7282. * src/TrackerWatcherCommand.cc
  7283. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Sort RequestSlot in ascending order and manipulate them using
  7285. lower_bound.
  7286. * src/DefaultBtMessageDispatcher.cc
  7287. * src/DefaultBtMessageDispatcher.h
  7288. (getMessageQueue): Added const qualifier.
  7289. (getRequestSlots): Added const qualifier.
  7290. (sendMessages): Use empty() instead of size().
  7291. (doCancelSendingPieceAction): Use HandleEvent object.
  7292. (doAbortOutstandingRequestAction): Rewritten.
  7293. (doChokedAction): Rewritten.
  7294. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7295. (isOutstandingRequest): Rewritten.
  7296. (getOutstandingRequest): Rewritten.
  7297. (removeOutstandingRequest): Rewritten.
  7298. (addOutstandingRequest): Rewritten.
  7299. * src/RequestSlot.cc
  7300. * src/RequestSlot.h
  7301. (operator=): Rewritten.
  7302. (operator!=): New function.
  7303. (operator<): New function.
  7304. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. * src/DefaultBtRequestFactory.cc
  7306. (doChokedAction): Rewritten.
  7307. (removeCompletedPiece): Rewritten.
  7308. (removeTargetPiece): Rewritten.
  7309. (createRequestMessages): Added the debug log.
  7310. (createRequestMessagesOnEndGame: Added the debug log.
  7311. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Added the debug log message.
  7313. * src/BtPieceMessage.cc (doReceivedAction)
  7314. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7316. used lower_bound to process them rather than linear search.
  7317. * src/DHTPeerAnnounceStorage.cc
  7318. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7320. peer has at least one completed piece.
  7321. * src/Peer.cc
  7322. * src/Peer.h
  7323. * src/PeerInteractionCommand.cc
  7324. * src/PeerSessionResource.cc
  7325. * src/PeerSessionResource.h
  7326. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7327. Removed unnecessary sorting
  7328. * src/DefaultPieceStorage (DefaultPieceStorage)
  7329. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Rewritten the portion of the code that mangaes allowed fast indexes.
  7331. * src/PeerSessionResource.cc
  7332. * src/PeerSessionResource.h
  7333. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Removed the invalid string including '\r' from ru.po and
  7335. did make update-po.
  7336. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Added --log-level and --summary-interval to man page.
  7338. * doc/aria2c.1.txt
  7339. * doc/aria2c.1.html
  7340. * doc/aria2c.1
  7341. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Added --log-level option to specify log level. Log messages under
  7343. the specified level are not output. Default value is `debug'.
  7344. * src/HelpItemFactory.cc
  7345. * src/LogFactory.cc
  7346. * src/LogFactory.h
  7347. * src/Logger.h
  7348. * src/OptionHandlerFactory.cc
  7349. * src/SimpleLogger.cc
  7350. * src/SimpleLogger.h
  7351. * src/main.cc
  7352. * src/option_processing.cc
  7353. * src/prefs.h
  7354. * src/usage_text.h
  7355. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Print download progress summary of all parallel downloads in specified
  7357. interval, default 60 secs. While aria2 could download several files
  7358. in parallel (see -j option), it displayed just first download progress,
  7359. and the other downloads are hidden from the users. This new feature
  7360. prints all downloads currently in-progress to the console so that you
  7361. can check the status of all downloads. The interval can be adjusted
  7362. by --summary-interval option.
  7363. The progress readout is now cut so that all fits in the one line of
  7364. console.
  7365. * src/ConsoleStatCalc.cc
  7366. * src/ConsoleStatCalc.h
  7367. * src/HelpItemFactory.cc
  7368. * src/OptionHandlerFactory.cc
  7369. * src/RequestGroupMan.cc
  7370. * src/RequestGroupMan.h
  7371. * src/main.cc
  7372. * src/option_processing.cc
  7373. * src/prefs.h
  7374. * src/usage_text.h
  7375. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7377. * src/DownloadEngine.cc (DownloadEngine)
  7378. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7380. defined.
  7381. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7382. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Use erase+lower_bound+insert instead of sort.
  7384. * src/DefaultPieceStorage.cc (addPieceStats)
  7385. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7387. * src/A2STR.cc
  7388. * src/A2STR.h
  7389. * src/OptionParser.cc (parse)
  7390. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Defined fake filename `[tracker.announce]' as static const std::string.
  7392. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7393. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Defined default filename `index.html' as static const std::string
  7395. * src/SingleFileDownloadContext.cc
  7396. * src/SingleFileDownloadContext.h
  7397. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Defined "[MEMORY]" as static const std::string.
  7399. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7400. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Defined control file's version number as static const std::string.
  7402. * src/DefaultBtProgressInfoFile.cc
  7403. * src/DefaultBtProgressInfoFile.h
  7404. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Use Request::METHOD_GET
  7406. * src/RequestGroup.cc (createNextCommandWithAdj)
  7407. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Defined "OK", "ERR", "INPR" as static const std::string
  7409. * src/RequestGroupMan.cc (showDownloadResults)
  7410. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Defined default client used in extended handshake as static const
  7412. std::string
  7413. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7414. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7416. * src/HttpConnection.cc (eraseConfidentialInfo)
  7417. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Defined default ftp user and password as static const std::string
  7419. * src/AuthConfigFactory.cc
  7420. * src/AuthConfigFactory.h
  7421. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7422. Defined strings used in netrc as static const std::string
  7423. * src/Netrc.cc
  7424. * src/Netrc.h
  7425. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Defined HTTP status as static const std::string
  7427. * src/AbstractProxyResponseCommand.cc
  7428. * src/HttpHeader.cc
  7429. * src/HttpHeader.h
  7430. * src/HttpResponse.cc
  7431. * src/HttpResponseCommand.cc
  7432. * src/HttpSkipResponseCommand.cc
  7433. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Defined "\r\n", "A", "I" as static const std::string
  7435. * src/A2STR.cc
  7436. * src/A2STR.h
  7437. * src/FtpConnection.cc
  7438. * src/FtpConnection.h
  7439. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Added COLON_C(".") and used it in Request::parseUrl()
  7441. * src/A2STR.cc
  7442. * src/A2STR.h
  7443. * src/Request.cc (parseUrl)
  7444. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Changed the type of padName from `const std::string&' to `const char*'.
  7446. * src/MSEHandshake.cc (verifyPadLength)
  7447. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Defined "sha1" as static const std::string.
  7449. * src/MetalinkParserController.cc
  7450. * src/MetalinkParserController.h
  7451. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Defined message digest algorithm name as static const std::string
  7453. * src/DHTTokenTracker.cc
  7454. * src/DHTUtil.cc
  7455. * src/DefaultBtContext.cc
  7456. * src/MSEHandshake.cc
  7457. * src/MessageDigestHelper.cc
  7458. * src/Peer.cc
  7459. * src/messageDigest.cc
  7460. * src/messageDigest.h
  7461. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Made string literals used in SAX parser static const std::string.
  7463. * src/FileMetalinkParserState.cc
  7464. * src/FileMetalinkParserState.h
  7465. * src/FilesMetalinkParserState.cc
  7466. * src/FilesMetalinkParserState.h
  7467. * src/InitialMetalinkParserState.cc
  7468. * src/InitialMetalinkParserState.h
  7469. * src/MetalinkMetalinkParserState.cc
  7470. * src/MetalinkMetalinkParserState.h
  7471. * src/PiecesMetalinkParserState.cc
  7472. * src/PiecesMetalinkParserState.h
  7473. * src/ResourcesMetalinkParserState.cc
  7474. * src/ResourcesMetalinkParserState.h
  7475. * src/VerificationMetalinkParserState.cc
  7476. * src/VerificationMetalinkParserState.h
  7477. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7479. * src/A2STR.cc
  7480. * src/A2STR.h
  7481. * src/File.cc
  7482. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Defined static const std::string IP("ip"), PORT("port") and use them
  7484. instead of string literals.
  7485. * src/DefaultPeerListProcessor.cc
  7486. * src/DefaultPeerListProcessor.h
  7487. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Made string literals for torrent file processing static const
  7489. std::string.
  7490. * src/BtContext.cc
  7491. * src/BtContext.h
  7492. * src/DefaultBtContext.cc
  7493. * src/DefaultBtContext.h
  7494. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Made string literal for tracker response static const std::string
  7496. * src/BtAnnounce.cc
  7497. * src/BtAnnounce.h
  7498. * src/DefaultBtAnnounce.cc
  7499. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Use DHTMessage::T instead of "t".
  7501. * src/DHTMessageTracker.cc (messageArrived)
  7502. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Made keyName static const. Made trimmed charset static const
  7504. std::string.
  7505. * src/Util.cc (getContentDispositionFilename)
  7506. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Made USER_AGENT const. Made "/" static const std::string.
  7508. * src/A2STR.cc
  7509. * src/A2STR.h
  7510. * src/HttpRequest.cc
  7511. * src/HttpRequest.h
  7512. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Made string listeral to static const std::string:
  7514. "Content-Range", "Content-Length"
  7515. * src/HttpHeader.cc
  7516. * src/HttpHeader.h
  7517. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Made string listeral to static const std::string.
  7519. * src/HttpConnection.cc
  7520. * src/HttpHeader.cc
  7521. * src/HttpHeader.h
  7522. * src/HttpResponse.cc
  7523. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Made string listeral to static const std::string.
  7525. * src/A2STR.cc
  7526. * src/A2STR.h
  7527. * src/SimpleLogger.cc
  7528. * src/SimpleLogger.h
  7529. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Made string literal to static const std::string.
  7531. Rewritten CookieParser::setField.
  7532. * src/A2STR.cc
  7533. * src/A2STR.h
  7534. * src/CookieBoxFactory.cc
  7535. * src/CookieBoxFactory.h
  7536. * src/CookieParser.cc
  7537. * src/CookieParser.h
  7538. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Made string literal to static const std::string
  7540. * src/DHTAbstractMessage.cc
  7541. * src/DHTAnnouncePeerMessage.cc
  7542. * src/DHTAnnouncePeerMessage.h
  7543. * src/DHTAnnouncePeerReplyMessage.cc
  7544. * src/DHTAnnouncePeerReplyMessage.h
  7545. * src/DHTFindNodeMessage.cc
  7546. * src/DHTFindNodeMessage.h
  7547. * src/DHTFindNodeReplyMessage.cc
  7548. * src/DHTFindNodeReplyMessage.h
  7549. * src/DHTGetPeersMessage.cc
  7550. * src/DHTGetPeersMessage.h
  7551. * src/DHTGetPeersReplyMessage.cc
  7552. * src/DHTGetPeersReplyMessage.h
  7553. * src/DHTMessage.cc
  7554. * src/DHTMessage.h
  7555. * src/DHTMessageFactoryImpl.cc
  7556. * src/DHTMessageReceiver.cc
  7557. * src/DHTPingMessage.cc
  7558. * src/DHTPingMessage.h
  7559. * src/DHTPingReplyMessage.cc
  7560. * src/DHTPingReplyMessage.h
  7561. * src/DHTQueryMessage.cc
  7562. * src/DHTQueryMessage.h
  7563. * src/DHTResponseMessage.cc
  7564. * src/DHTResponseMessage.h
  7565. * src/DHTUnknownMessage.cc
  7566. * src/DHTUnknownMessage.h
  7567. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Made string literal to static const std::string
  7569. * src/BtChokeMessage.cc (toString)
  7570. * src/BtHaveAllMessage.cc (toString)
  7571. * src/BtHaveNoneMessage.cc (toString)
  7572. * src/BtInterestedMessage.cc (toString)
  7573. * src/BtNotInterestedMessage.cc (toString)
  7574. * src/BtUnchokeMessage.cc (toString)
  7575. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Replaced "" with static const variable A2STR::NIL.
  7577. Replaced string comparison against "" with std::string::empty().
  7578. Added PROTO_* to Request class and use them as a protocol string
  7579. constant.
  7580. Made "started", "stopped", "completed" static const variable in
  7581. AnnounceList class.
  7582. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Updated translations. Great thanks to translators.
  7584. * po/ca.po
  7585. * po/de.po
  7586. * po/fr.po
  7587. * po/it.po
  7588. * po/ja.po
  7589. * po/ru.po
  7590. * po/zh_CN.po
  7591. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Updated man page; categorized options and fixed typo.
  7593. * doc/aria2c.1.txt
  7594. * doc/aria2c.1.html
  7595. * doc/aria2c.1
  7596. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Removed const ref
  7598. * src/MetalinkEntry.cc (AddProtocolPreference)
  7599. * src/RequestGroup.cc (FindServerHostByHostname)
  7600. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Rewritten Accept-Features handling.
  7602. * src/HttpRequestCommand.cc (createHttpRequest)
  7603. * src/a2functional.h
  7604. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Changed method signature:
  7606. DHTAbstractNodeLookupTask::toEntries
  7607. * src/DHTAbstractNodeLookupTask.cc
  7608. * src/DHTAbstractNodeLookupTask.h
  7609. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Changed method signature:
  7611. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7612. * src/BtContext.h
  7613. * src/DefaultBtContext.cc
  7614. * src/DefaultBtContext.h
  7615. * src/DefaultBtInteractive.cc
  7616. * test/DefaultBtContextTest.cc
  7617. * test/MockBtContext.h
  7618. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Changed method signature:
  7620. MultiFileAllocationIterator::makeDiskWriterEntries
  7621. * src/MultiFileAllocationIterator.cc
  7622. * src/MultiFileAllocationIterator.h
  7623. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Changed method sinature:
  7625. MetalinkEntry::toFileEntry,
  7626. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7627. Metalinker::queryEntry
  7628. * src/Metalink2RequestGroup.cc
  7629. * src/MetalinkEntry.cc
  7630. * src/MetalinkEntry.h
  7631. * src/MetalinkHelper.cc
  7632. * src/MetalinkHelper.h
  7633. * src/Metalinker.cc
  7634. * src/Metalinker.h
  7635. * src/main.cc
  7636. * test/MetalinkHelperTest.cc
  7637. * test/MetalinkerTest.cc
  7638. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Changed method sinature:
  7640. RequestGroup::getURIs
  7641. * src/RequestGroup.cc
  7642. * src/RequestGroup.h
  7643. * test/Metalink2RequestGroupTest.cc
  7644. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Changed method signature:
  7646. PeerListProcessor::extractPeer
  7647. * src/CompactPeerListProcessor.cc
  7648. * src/CompactPeerListProcessor.h
  7649. * src/DefaultBtAnnounce.cc
  7650. * src/DefaultPeerListProcessor.cc
  7651. * src/DefaultPeerListProcessor.h
  7652. * src/DelegatingPeerListProcessor.cc
  7653. * src/DelegatingPeerListProcessor.h
  7654. * src/PeerListProcessor.h
  7655. * src/UTPexExtensionMessage.cc
  7656. * test/DefaultPeerListProcessorTest.cc
  7657. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Changed method signature:
  7659. BtRequestFactory::createRequestMessages,
  7660. BtRequestFactory::createRequestMessagesOnEndGame
  7661. * src/BtRequestFactory.h
  7662. * src/DefaultBtInteractive.cc
  7663. * src/DefaultBtRequestFactory.cc
  7664. * src/DefaultBtRequestFactory.h
  7665. * test/DefaultBtRequestFactoryTest.cc
  7666. * test/MockBtRequestFactory.h
  7667. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Changed method signature:
  7669. PieceStorage::getInFlightPieces
  7670. * src/DefaultBtProgressInfoFile.cc
  7671. * src/DefaultPieceStorage.cc
  7672. * src/DefaultPieceStorage.h
  7673. * src/PieceStorage.h
  7674. * src/UnknownLengthPieceStorage.cc
  7675. * src/UnknownLengthPieceStorage.h
  7676. * test/DefaultBtProgressInfoFileTest.cc
  7677. * test/MockPieceStorage.h
  7678. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Changed method signature:
  7680. PostDownloadHandler::getNextRequestGroups
  7681. Metalink2RequestGroup::generate
  7682. RequestGroup::postDownloadProcessing
  7683. * src/BtPostDownloadHandler.cc
  7684. * src/BtPostDownloadHandler.h
  7685. * src/Metalink2RequestGroup.cc
  7686. * src/Metalink2RequestGroup.h
  7687. * src/MetalinkPostDownloadHandler.cc
  7688. * src/MetalinkPostDownloadHandler.h
  7689. * src/PostDownloadHandler.h
  7690. * src/RequestGroup.cc
  7691. * src/RequestGroup.h
  7692. * src/RequestGroupMan.cc
  7693. * src/main.cc
  7694. * test/BtPostDownloadHandlerTest.cc
  7695. * test/Metalink2RequestGroupTest.cc
  7696. * test/MetalinkPostDownloadHandlerTest.cc
  7697. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Rewritten AccRequestGroup
  7699. * src/main.cc
  7700. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Rewritten.
  7702. * src/TaggedItem.cc (toTagString)
  7703. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Rewritten Accept-Features handling.
  7705. * src/HttpRequestCommand.cc (createHttpRequest)
  7706. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. Rewritten accept types handling.
  7708. * HttpRequest.cc (createRequest)
  7709. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Rewritten
  7711. * src/FeatureConfig.cc (featureSummary)
  7712. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Changed method signature:
  7714. PeerStorage::getActivePeers
  7715. * src/DHTPeerAnnounceEntry.cc
  7716. * src/DefaultPeerStorage.cc
  7717. * src/DefaultPeerStorage.h
  7718. * src/PeerStorage.h
  7719. * test/DefaultPeerStorageTest.cc
  7720. * test/MockPeerStorage.h
  7721. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Changed method signature:
  7723. DHTPeerAnnounceStorage::getPeers,
  7724. DHTPeerAnnounceEntry::getPeers
  7725. * src/DHTGetPeersMessage.cc
  7726. * src/DHTPeerAnnounceEntry.cc
  7727. * src/DHTPeerAnnounceEntry.h
  7728. * src/DHTPeerAnnounceStorage.cc
  7729. * src/DHTPeerAnnounceStorage.h
  7730. * test/DHTAnnouncePeerMessageTest.cc
  7731. * test/DHTPeerAnnounceEntryTest.cc
  7732. * test/DHTPeerAnnounceStorageTest.cc
  7733. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Changed method signature:
  7735. NameResolver::resolve
  7736. * src/DHTEntryPointNameResolveCommand.cc
  7737. * src/InitiateConnectionCommand.cc
  7738. * src/NameResolver.cc
  7739. * src/NameResolver.h
  7740. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Changed method signature:
  7742. PieceStorage::getAdvertisedPieceIndexes
  7743. * src/DefaultBtInteractive.cc
  7744. * src/DefaultPieceStorage.cc
  7745. * src/DefaultPieceStorage.h
  7746. * src/PieceStorage.h
  7747. * src/UnknownLengthPieceStorage.h
  7748. * test/MockPieceStorage.h
  7749. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Changed method signature:
  7751. SegmentMan::getInFlightSegment
  7752. * src/AbstractCommand.cc
  7753. * src/SegmentMan.cc
  7754. * src/SegmentMan.h
  7755. * test/SegmentManTest.cc
  7756. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Changed method signature:
  7758. DHTAbstractNodeLookupTask::getNodesFromMessage
  7759. * src/DHTAbstractNodeLookupTask.cc
  7760. * src/DHTAbstractNodeLookupTask.h
  7761. * src/DHTNodeLookupTask.cc
  7762. * src/DHTNodeLookupTask.h
  7763. * src/DHTPeerLookupTask.cc
  7764. * src/DHTPeerLookupTask.h
  7765. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7767. * src/AbstractCommand.cc
  7768. * src/BtCheckIntegrityEntry.cc
  7769. * src/BtCheckIntegrityEntry.h
  7770. * src/BtFileAllocationEntry.cc
  7771. * src/BtFileAllocationEntry.h
  7772. * src/BtSetup.cc
  7773. * src/BtSetup.h
  7774. * src/CheckIntegrityCommand.cc
  7775. * src/CheckIntegrityEntry.h
  7776. * src/ChecksumCheckIntegrityEntry.cc
  7777. * src/ChecksumCheckIntegrityEntry.h
  7778. * src/DHTSetup.cc
  7779. * src/DHTSetup.h
  7780. * src/DownloadEngine.cc
  7781. * src/FileAllocationCommand.cc
  7782. * src/FileAllocationEntry.h
  7783. * src/RequestGroup.cc
  7784. * src/RequestGroup.h
  7785. * src/RequestGroupMan.cc
  7786. * src/RequestGroupMan.h
  7787. * src/StreamCheckIntegrityEntry.cc
  7788. * src/StreamCheckIntegrityEntry.h
  7789. * src/StreamFileAllocationEntry.cc
  7790. * src/StreamFileAllocationEntry.h
  7791. * src/TrackerWatcherCommand.cc
  7792. * src/a2functional.h
  7793. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Changed method signature:
  7795. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7796. DHTBucket::getGoodNodes,
  7797. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7798. * src/BNode.cc
  7799. * src/BNode.h
  7800. * src/DHTAbstractNodeLookupTask.cc
  7801. * src/DHTAutoSaveCommand.cc
  7802. * src/DHTBucket.cc
  7803. * src/DHTBucket.h
  7804. * src/DHTBucketRefreshTask.cc
  7805. * src/DHTFindNodeMessage.cc
  7806. * src/DHTGetPeersMessage.cc
  7807. * src/DHTRoutingTable.cc
  7808. * src/DHTRoutingTable.h
  7809. * test/BNodeTest.cc
  7810. * test/DHTBucketTest.cc
  7811. * test/DHTRoutingTableTest.cc
  7812. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. In piece selection functions, Pass std::deque<...> by reference rather
  7814. than returning it.
  7815. * src/BitfieldMan.cc
  7816. * src/BitfieldMan.h
  7817. * src/DefaultBtRequestFactory.cc
  7818. * src/DefaultPieceStorage.cc
  7819. * src/Piece.cc
  7820. * src/Piece.h
  7821. * test/BitfieldManTest.cc
  7822. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Implemented rarest piece first piece selection strategy.
  7824. * src/AbstractBtMessage.cc
  7825. * src/AbstractBtMessage.h
  7826. * src/BitfieldMan.cc
  7827. * src/BitfieldMan.h
  7828. * src/BtBitfieldMessage.cc
  7829. * src/BtHaveAllMessage.cc
  7830. * src/BtHaveMessage.cc
  7831. * src/DefaultPieceStorage.cc
  7832. * src/DefaultPieceStorage.h
  7833. * src/PeerInteractionCommand.cc
  7834. * src/PieceStorage.h
  7835. * src/UnknownLengthPieceStorage.h
  7836. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Rewritten readData and writeData.
  7838. * src/MultiDiskAdaptor.cc
  7839. * src/MultiDiskAdaptor.h
  7840. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Move \n out of the message "Usage: ...".
  7842. * src/version_usage.cc
  7843. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Bump up version number to 0.13.2b.
  7845. * configure.ac
  7846. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added const qualifier to argument Exception& e.
  7848. * src/Logger.h
  7849. * src/SimpleLogger.cc
  7850. * src/SimpleLogger.h
  7851. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Pool connection when CWD, SIZE command fails.
  7853. * src/FtpNegotiationCommand.cc
  7854. * src/FtpNegotiationCommand.h
  7855. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7857. * src/HttpResponseCommand.cc
  7858. * src/HttpSkipResponseCommand.cc
  7859. * src/HttpSkipResponseCommand.h
  7860. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Pool connection when a server returns 4xx, 5xx responses.
  7862. * src/HttpNullDownloadCommand.cc
  7863. * src/HttpNullDownloadCommand.h
  7864. * src/HttpResponse.cc
  7865. * src/HttpResponse.h
  7866. * src/HttpResponseCommand.cc
  7867. * src/HttpResponseCommand.h
  7868. * test/HttpResponseTest.cc
  7869. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Print usage when no URL is specifed or bad command-line option is
  7871. specified.
  7872. * src/HelpItemFactory.cc
  7873. * src/help_tags.h
  7874. * src/option_processing.cc
  7875. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Removed duplicate log message.
  7877. * src/AbstractCommand.cc (asyncResolveHostname)
  7878. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7880. Changed -j option's default value from 5 to 1.
  7881. Added new examples using protocol auto detection feature.
  7882. Removed -T, -M usage where it can be omitted.
  7883. * doc/aria2c.1.txt
  7884. * doc/aria2c.1.html
  7885. * doc/aria2c.1.txt
  7886. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Updated command-line usage text, so that it tells users that they
  7888. can specify any number of torrent files and metalink files in
  7889. command-line.
  7890. * src/version_usage.cc
  7891. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Changed the default value of -j option to 1.
  7893. * src/HelpItemFactory.cc
  7894. * src/option_processing.cc
  7895. * src/usage_text.h
  7896. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. Added the ability to reuse connection in FTP and it is enabled by
  7898. default. It can be disabled by --ftp-reuse-connection=false option.
  7899. * src/Command.cc
  7900. * src/DownloadCommand.cc
  7901. * src/FtpDownloadCommand.cc
  7902. * src/FtpDownloadCommand.h
  7903. * src/FtpFinishDownloadCommand.cc
  7904. * src/FtpFinishDownloadCommand.h
  7905. * src/FtpInitiateConnectionCommand.cc
  7906. * src/FtpNegotiationCommand.cc
  7907. * src/FtpNegotiationCommand.h
  7908. * src/HelpItemFactory.cc
  7909. * src/Makefile.am
  7910. * src/Makefile.in
  7911. * src/OptionHandlerFactory.cc
  7912. * src/option_processing.cc
  7913. * src/prefs.h
  7914. * src/usage_text.h
  7915. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Call Command::transitStatus() before calling Command::execute(),
  7917. so that the status change made in execute() is not cleared.
  7918. * src/DownloadEngine.cc
  7919. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. Removed forward declaration of SocketCore class.
  7921. * src/HttpDownloadCommand.h
  7922. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7924. in InitiateConnectionCommandFactory. They should be set only when
  7925. the protocol is HTTP or HTTPS.
  7926. * src/InitiateConnectionCommandFactory.cc
  7927. * src/RequestGroup.cc
  7928. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Fixed infinite loop in checksum checking.
  7930. * src/IteratableChecksumValidator.cc
  7931. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Set _supportsPersistentConnection to true by default.
  7933. * src/Request.cc
  7934. * src/RequestGroup.cc
  7935. * test/HttpRequestTest.cc
  7936. * test/RequestTest.cc
  7937. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Added timeout to socket pool. The default timeout is 15 seconds,
  7939. which is the same value Apache uses.
  7940. * src/DownloadEngine.cc
  7941. * src/DownloadEngine.h
  7942. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7943. Fixed misuse of multimap::find()
  7944. * src/HttpHeader.cc
  7945. * test/HttpHeaderTest.cc
  7946. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7948. option.
  7949. The asynchronous DNS is not capable of IPv6 yet.
  7950. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7951. least for HTTP download.
  7952. * src/AbstractCommand.cc
  7953. * src/AbstractCommand.h
  7954. * src/AsyncNameResolver.cc
  7955. * src/AsyncNameResolver.h
  7956. * src/DHTEntryPointNameResolveCommand.cc
  7957. * src/DHTEntryPointNameResolveCommand.h
  7958. * src/DownloadEngine.cc
  7959. * src/DownloadEngine.h
  7960. * src/FtpInitiateConnectionCommand.cc
  7961. * src/FtpInitiateConnectionCommand.h
  7962. * src/HelpItemFactory.cc
  7963. * src/HttpInitiateConnectionCommand.cc
  7964. * src/HttpInitiateConnectionCommand.h
  7965. * src/InitiateConnectionCommand.cc
  7966. * src/InitiateConnectionCommand.h
  7967. * src/Makefile.am
  7968. * src/Makefile.in
  7969. * src/NameResolver.cc
  7970. * src/NameResolver.h
  7971. * src/OptionHandlerFactory.cc
  7972. * src/SocketCore.cc
  7973. * src/SocketCore.h
  7974. * src/Util.cc
  7975. * src/Util.h
  7976. * src/option_processing.cc
  7977. * src/prefs.h
  7978. * src/usage_text.h
  7979. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Updated man page: --quiet, --header were added.
  7981. --metalink-servers and --enable-http-keep-alive option were updated.
  7982. * doc/aria2c.1
  7983. * doc/aria2c.1.html
  7984. * doc/aria2c.1.txt
  7985. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Enable HTTP keep-alive by default.
  7987. * src/HelpItemFactory.cc
  7988. * src/option_processing.cc
  7989. * src/usage_text.h
  7990. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Disable http keep-alive if the remote server is not HTTP/1.1.
  7992. * src/HttpConnection.cc
  7993. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Receive content body of 302 response so that the connection can be
  7995. reused later when http keep-alive is enabled.
  7996. * src/HttpNullDownloadCommand.cc
  7997. * src/HttpNullDownloadCommand.h
  7998. * src/HttpResponseCommand.cc
  7999. * src/HttpResponseCommand.h
  8000. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. const SharedHandle<Request> -> const SharedHandle<Request>&
  8002. * src/FtpDowndloadCommand.cc
  8003. * src/FtpDowndloadCommand.h
  8004. * src/HttpDownloadCommand.cc
  8005. * src/HttpDownloadCommand.h
  8006. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Fixed the bug that the control file(.aria2 file) is not renamed
  8008. according to tryAutoFileRenaming().
  8009. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8010. its control file exist, use them and continue download.
  8011. The old implementation didn't take into account of control file's
  8012. existence, so basically you couldn't continue download of renamed file.
  8013. * src/BtProgressInfoFile.h
  8014. * src/DefaultBtProgressInfoFile.cc
  8015. * src/DefaultBtProgressInfoFile.h
  8016. * src/NullProgressInfoFile.h
  8017. * src/RequestGroup.cc
  8018. * test/DefaultBtProgressInfoFileTest.cc
  8019. * test/MockBtProgressInfoFile.h
  8020. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Change the default value of --metalink-servers option from `5' to `1'.
  8022. * src/HelpItemFactory.cc
  8023. * src/option_processing.cc
  8024. * src/usage_text.h
  8025. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Reimplemented transparent metalink using Accept request header.
  8027. * src/HttpRequest.cc
  8028. * src/HttpRequest.h
  8029. * src/HttpRequestCommand.cc
  8030. * src/Metalink2RequestGroup.cc
  8031. * src/RequestGroup.cc
  8032. * src/RequestGroup.h
  8033. * test/HttpRequestTest.cc
  8034. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Bump up version number to 0.13.2a
  8036. * configure.ac
  8037. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Updated configure.ac using the result of autoscan.
  8039. * configure.ac
  8040. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Fixed compilation error without gcrypt/openssl.
  8042. * src/DownloadCommand.cc
  8043. * src/DownloadCommand.h
  8044. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Reorganized version information so that it can be displayed in a
  8046. standard terminal screen without scrolling.
  8047. Removed http, ftp from Configuration section, because they are always
  8048. enabled.
  8049. * src/FeatureConfig.cc
  8050. * src/FeatureConfig.h
  8051. * src/main.cc
  8052. * src/messageDigest.cc
  8053. * src/messageDigest.h
  8054. * src/version_usage.cc
  8055. * test/FeatureConfigTest.cc
  8056. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Masked user ID in log.
  8058. * src/FtpConnection.cc (sendUser)
  8059. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Removed query part from filename in HTTP download. The query part means
  8061. the substring after "?" in URL. Firefox seems do the same thing.
  8062. A query part is sometimes very long and not suitable to filename,
  8063. so I think it is better to remove it from filename.
  8064. * src/HttpRequest.cc
  8065. * src/HttpRequest.h
  8066. * src/Request.cc
  8067. * src/Request.h
  8068. * test/HttpRequestTest.cc
  8069. * test/RequestTest.cc
  8070. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Rewritten Exception class. Throw exception object, not its pointer and
  8072. catch by reference, so that remove problematic delete operator for
  8073. catched exception.
  8074. * src/Exception.cc
  8075. * src/Exception.h
  8076. * test/ExceptionTest.cc
  8077. * src/*: All files throwing/catching exception.
  8078. * test/*: All files throwing/catching exception.
  8079. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Now auto protocol detection is enabled without -Z option.
  8081. But there is a important difference between with/without -Z optoin.
  8082. For example, if you type:
  8083. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8084. then, aria2 interprets there are 3 request groups:
  8085. (1) http://host/file, http://mirror/file <-- multi-source download
  8086. (2) file1.torrent
  8087. (3) file2.metalink
  8088. On the other hand, if you invoke above command with -Z option, it is
  8089. interpreted as 4 request groups:
  8090. (1) http://host/file
  8091. (2) file1.torrent
  8092. (3) file2.metalink
  8093. (4) http://mirror/file
  8094. I think usually user don't mix multi-source URLs and torrent files, so
  8095. there is no big problem here.
  8096. * src/main.cc
  8097. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Fixed the bug that causes segmentaion fault when reading XML containing
  8099. unescapsed character like '&'.
  8100. Also a modification was made which avoids adding unnecessary
  8101. characters stack and appending unused string.
  8102. * src/ExpatMetalinkProcessor.cc
  8103. * src/FileMetalinkParserState.h
  8104. * src/FilesMetalinkParserState.h
  8105. * src/FinMetalinkParserState.h
  8106. * src/HashMetalinkParserState.h
  8107. * src/InitialMetalinkParserState.h
  8108. * src/LanguageMetalinkParserState.h
  8109. * src/MetalinkMetalinkParserState.h
  8110. * src/MetalinkParserState.h
  8111. * src/MetalinkParserStateMachine.cc
  8112. * src/MetalinkParserStateMachine.h
  8113. * src/OSMetalinkParserState.h
  8114. * src/PieceHashMetalinkParserState.h
  8115. * src/PiecesMetalinkParserState.h
  8116. * src/ResourcesMetalinkParserState.h
  8117. * src/SizeMetalinkParserState.h
  8118. * src/SkipTagMetalinkParserState.h
  8119. * src/URLMetalinkParserState.h
  8120. * src/VerificationMetalinkParserState.h
  8121. * src/VersionMetalinkParserState.h
  8122. * src/XML2SAXMetalinkProcessor.cc
  8123. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Added StringFormat class, which internally calls vasprintf.
  8125. operator<< is defined for this class, so it can be used with iostream
  8126. classes nicely. SimpleLogger and following functions are rewritten
  8127. using StringFormat class.
  8128. Besides, now Logger class's methods are non-const, many classes
  8129. that has a const Logger* as a member variable are modified to remove
  8130. const qualifier from the variable declaration.
  8131. * src/HelpItemFactory.cc
  8132. * src/Request.cc
  8133. * src/SimpleLogger.cc
  8134. * src/StringFormat.cc
  8135. * src/StringFormat.h
  8136. * src/Util.cc
  8137. * src/option_processing.cc
  8138. * src/version_usage.cc
  8139. * test/StringFormatTest.cc
  8140. * src/*.h: The classes that has const Logger* as a member variable.
  8141. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8143. failed. Also fixed memory link when exception is thrown there.
  8144. * src/main.cc (AccRequestGroup)
  8145. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Added build-in "Accept-Features" support. For now only "metalink" is
  8147. used in this header field.
  8148. This "metalink" value is removed from the list when connecting URLs
  8149. fed by metalink file to avoid loop in "transparent" metlaink.
  8150. * src/HttpRequest.cc
  8151. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8152. header is also held in this variable. Also renamed setUserHeaders as
  8153. addHeader and it was rewritten to add header not just to clear the old
  8154. value.
  8155. * src/HttpRequestCommand.cc
  8156. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8157. from "Accept-Features" list.
  8158. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8159. default.
  8160. * src/RequestGroup.h
  8161. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8162. * src/a2functional.h: Included <string> because Concat class depends on
  8163. it.
  8164. * test/HttpRequestTest.cc
  8165. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Added comment
  8167. * src/RequestGroup.cc (createNextCommand)
  8168. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Capitalized METHOD_GET and METHOD_HEAD
  8170. * src/Request.cc
  8171. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Added getDownloadResults() method
  8173. * src/RequestGroupMan.cc
  8174. * src/RequestGroupMan.h
  8175. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Fixed the bug that aria2 exits when commands is empty() but
  8177. _routineCommands are not.
  8178. * src/DownloadEngine.cc
  8179. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Use the default value pulled from Option object in HelpItemFactory.
  8181. except options whose defualt value is embedded in a usage text.
  8182. * src/HelpItemFactory.cc
  8183. * src/HelpItemFactory.h
  8184. * src/option_processing.cc
  8185. * src/version_usage.cc
  8186. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Added --quiet option to make aria2 quiet (no console output).
  8188. --quiet option is tagged with ADVANCED.
  8189. * src/HelpItemFactory.cc
  8190. * src/LogFactory.cc
  8191. * src/LogFactory.h
  8192. * src/MultiUrlRequestInfo.cc
  8193. * src/MultiUrlRequestInfo.h
  8194. * src/NullStatCalc.h: New class. This class prints nothing.
  8195. * src/OptionHandlerFactory.cc
  8196. * src/main.cc
  8197. * src/option_processing.cc
  8198. * src/prefs.h
  8199. * src/usage_text.h
  8200. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8202. * src/HelpItemFactory.cc (createHelpItems):
  8203. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Fixed compilation error in ExpatMetalinkProcessor.cc
  8205. * src/ExpatMetalinkProcessor.cc
  8206. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Reuse socket if the origin server supports HTTP keep-alive and
  8208. --enable-http-keep-alive or --enable-http-pipelining is given.
  8209. The current implementation doesn't reuse the connections established
  8210. against proxy server.
  8211. * src/AbstractCommand.cc
  8212. * src/DownloadEngine.cc
  8213. * src/DownloadEngine.h
  8214. * src/HttpDownloadCommand.cc
  8215. * src/HttpInitiateConnectionCommand.cc
  8216. * src/HttpResponseCommand.cc
  8217. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Rewritten HTTP keep-alive and pipelining routine.
  8219. * src/AbstractCommand.cc
  8220. * src/HttpConnection.cc
  8221. * src/HttpDownloadCommand.cc
  8222. * src/HttpRequest.cc
  8223. * src/HttpRequestCommand.cc
  8224. * src/HttpResponseCommand.cc
  8225. * src/Request.cc
  8226. * src/Request.h
  8227. * src/RequestGroup.cc
  8228. * test/HttpRequestTest.cc
  8229. * test/HttpResponseTest.cc
  8230. * test/RequestTest.cc
  8231. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Added missing setUserHeaders call
  8233. * src/HttpRequestCommand.cc
  8234. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8236. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8237. waste of time because it is more likey false.
  8238. * src/FileAllocationDispatcherCommand.cc (execute)
  8239. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Now HTTP status and version are a member variable of HttpHeader.
  8241. HTTP status is processed as a string, not integer.
  8242. * src/AbstractProxyResponseCommand.cc
  8243. * src/HttpConnection.cc
  8244. * src/HttpHeader.cc
  8245. * src/HttpHeader.h
  8246. * src/HttpHeaderProcessor.cc
  8247. * src/HttpHeaderProcessor.h
  8248. * src/HttpResponse.cc
  8249. * src/HttpResponse.h
  8250. * test/HttpHeaderProcessorTest.cc
  8251. * test/HttpResponseTest.cc
  8252. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Added --header option. You can specify any number of additional HTTP headers
  8254. like:
  8255. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8256. Unlike other commad-line option, you can use --header option multiple times.
  8257. * src/HelpItemFactory.cc
  8258. * src/HttpRequest.{cc, h}
  8259. * src/HttpRequestCommand.cc
  8260. * src/OptionHandlerFactory.cc
  8261. * src/OptionHandlerImpl.h
  8262. * src/option_processing.cc
  8263. * src/prefs.h
  8264. * src/usage_text.h
  8265. * test/HttpRequestTest.cc (testUserHeaders)
  8266. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Eliminates the time lag between sequential downloads and commands in
  8268. the same RequestGroup.
  8269. In old implementation, aria2 occasionally waits 1 seconds before
  8270. executing next command or RequestGroup.
  8271. This is really a waste of time, and new implementation eliminates
  8272. this unnecessary time lag.
  8273. * src/AbstractCommand.cc
  8274. * src/AutoSaveCommand.cc
  8275. * src/CheckIntegrityCommand.cc
  8276. * src/Command.{cc, h}
  8277. * src/DownloadEngine.{cc, h}
  8278. * src/DownloadEngineFactory.cc
  8279. * src/FileAllocationCommand.cc
  8280. * src/FileAllocationDispatcherCommand.cc
  8281. * src/FillRequestGroupCommand.cc
  8282. * src/FtpInitiateConnectionCommand.cc
  8283. * src/HaveEraseCommand.cc
  8284. * src/HttpInitiateConnectionCommand.cc
  8285. * src/HttpResponseCommand.cc
  8286. * src/RealtimeCommand.cc
  8287. * src/RequestGroup.cc
  8288. * src/RequestGroupMan.cc
  8289. * src/StreamFileAllocationEntry.cc
  8290. * src/TimeBasedCommand.{cc, h}
  8291. * src/TimedHaltCommand.cc
  8292. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8294. keyword explicit and SharedHandle's default constructor initializes
  8295. its internal obj to null, old implementation initializes it using
  8296. obj's default constructor.
  8297. To assign null, write SharedHandle<T> x(...); x.reset();
  8298. TODO: test/SharedHandleTest.cc needs more tests.
  8299. * src/SharedHandle.h
  8300. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Fixed type in man page.
  8302. * doc/aria2c.1.txt
  8303. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8305. * src/SimpleLogger.{cc, h}
  8306. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Implemented auto protocol detection.
  8308. Now you can do:
  8309. aria2c -Z http://host/file file1.torrent file2.metalink
  8310. (Note: -Z option is required for auto protcol detection.)
  8311. Then aria2c downloads 3 files simultaneously:
  8312. 1. http://host/file
  8313. 2. file1.torrent <-- read local torrent file
  8314. 3. file2.metalink <-- read local Metalink file.
  8315. Same thing goes with -i option. Assume your uris.txt contans:
  8316. http://host/file
  8317. file1.torrent
  8318. file2.metalink
  8319. Then you can do: aria2c -i uris.txt
  8320. (Note: -Z option is not needed if -i option is given.)
  8321. * src/main.cc
  8322. * src/ProtocolDetector.{cc, h}
  8323. * test/ProtocolDetectorTest.cc
  8324. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8326. installed
  8327. * src/ARC4Encryptor.h
  8328. * src/ARC4Decryptor.h
  8329. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Renamed argument from 'errno' to 'err', since errno is confused with
  8331. errno defined in errno.h.
  8332. * src/LibgcryptARC4Decryptor.h
  8333. * src/LibgcryptARC4Context.h
  8334. * src/LibgcryptDHKeyExchange.h
  8335. * src/LibgcryptARC4Encryptor.h
  8336. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Rewritten choking algorithm.
  8338. * src/PeerChokeCommand.{cc, h}
  8339. * src/BtInterestedMessage.cc
  8340. * src/PeerSessionResource.{cc, h}
  8341. * src/DefaultPeerStorage.{cc, h}
  8342. * src/BtNotInterestedMessage.cc
  8343. * src/DefaultBtMessageDispatcher.{cc, h}
  8344. * src/BtMessageDispatcher.h
  8345. * src/Peer.{cc, h}
  8346. * src/BtLeecherStateChoke.{cc, h}
  8347. * src/BtSetup.cc
  8348. * src/BtSeederStateChoke.{cc, h}
  8349. * src/PeerStorage.h
  8350. * test/MockPeerStorage.h
  8351. * test/MockBtMessageDispatcher.h
  8352. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Fixed compilation error on x84-64 platform.
  8354. * src/AuthConfig.cc: Included ostream.
  8355. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Rewritten getBasename() and getDirname(), without standard library
  8357. basename(), dirname().
  8358. * src/File.cc
  8359. * test/FileTest.cc
  8360. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Added Simplified Chinese translation. Also updated the following
  8362. translations: Polish, Dutch, German. Great thanks to all translators.
  8363. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Suppress content-range error when 'Content-Range' response header
  8365. doesn't contains bytes-unit specifier 'bytes'
  8366. * src/HttpHeader.cc (getRange)
  8367. * test/HttpHeaderTest.cc
  8368. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Fixed compilation error with g++-4.3
  8370. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Added missing include files for MinGW
  8372. * test/HttpHeaderProcessorTest.cc
  8373. * test/DHTRoutingTableSerializerTest.cc
  8374. * test/DHTRoutingTableDeserializerTest.cc
  8375. * test/UriListParserTest.cc
  8376. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Now download line is printed nicely with no garbage at the end of
  8378. line. I use ioctl to get the columns of terminal.
  8379. If stdout is redirected to another device, instead of carriage return,
  8380. end of line '\n' character is used. This is feature request#1909659
  8381. * src/ConsoleStatCalc.cc (calculateStat)
  8382. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Included a2time.h
  8384. * src/DHTMessageDispatcher.h
  8385. * src/DHTMessageEntry.h
  8386. * src/DHTReplaceNodeTask.h
  8387. * src/DHTMessageTracker.h
  8388. * src/Util.h
  8389. * src/CookieBox.h
  8390. * src/SocketCore.h
  8391. * src/DefaultBtMessageDispatcher.h
  8392. * src/SocketCore.cc
  8393. * src/Util.cc
  8394. * src/DHTPingTask.h
  8395. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Fixed high memory footprint when DHT is enabled.
  8397. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8398. queued than it is processed and the queue is getting longer. As a
  8399. consequence, momory usage is increased.
  8400. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8401. replacement cache in DHTBucket which is described in Kademlia paper.
  8402. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8403. DHTReplaceNodeTask.
  8404. * src/DHTBucket.{h, cc}
  8405. (cacheNode): New function.
  8406. (getCachedNodes): New function.
  8407. (dropNode): Push back cached node to _nodes.
  8408. * test/DHTBucketTest.cc
  8409. (testCacheNode): New test
  8410. (testDropNode): New test
  8411. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8413. the unused 4KB memory when ssl is not used.
  8414. * src/SocketCore.cc
  8415. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Added summary log for peer announce storage.
  8417. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8418. Removed cast
  8419. * src/DefaultPeerStorage.cc (addPeer)
  8420. Log exception message
  8421. * src/DHTMessageTracker.cc (handleTimeout)
  8422. Fixed casting
  8423. * test/HttpRequestTest.cc
  8424. * test/MetalinkProcessorTest.cc
  8425. * test/PieceTest.cc
  8426. * test/MetalinkEntryTest.cc
  8427. * test/SequenceTest.cc
  8428. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. * src/ParameterizedStringParser.cc (createLoop):
  8430. Removed unused variable sstep.
  8431. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8432. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. * src/Util.{h, cc}
  8434. (parseUInt): New function.
  8435. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8436. The actual range is uint32_t.
  8437. * test/UtilTest.cc
  8438. * src/ParameterizedStringParser.cc:
  8439. Use Util::parseUInt() for loop variables.
  8440. * test/ParameterizedStringParserTest.cc
  8441. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8442. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Rewritten the functions for binding port.
  8444. * src/DHTConnectionImpl.{h, cc}
  8445. * src/PeerListenCommand.{h, cc}
  8446. * src/DHTSetup.cc
  8447. * src/BtSetup.cc
  8448. * test/DHTConnectionImplTest.cc
  8449. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. type cleanup for allmost all remaining files.
  8451. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Type clarification
  8453. * src/PeerSessionResource.{h, cc}
  8454. * src/DefaultPieceStorage.{h, cc}
  8455. * src/Peer.{h, cc}
  8456. * test/PeerSessionResourceTest.cc
  8457. Use div function
  8458. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8459. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Type clarification
  8461. * src/DefaultPeerStorage.{h, cc}
  8462. * test/DefaultPeerStorageTest.cc
  8463. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Type clarification: size_t for length or size, uint64_t for file
  8465. length, off_t for file offset.
  8466. * src/DefaultBtProgressInfoFile.cc
  8467. * src/DefaultBtContext.{h, cc}
  8468. * src/DefaultBtInteractive.cc
  8469. * src/DownloadCommand.{h, cc}
  8470. * src/IteratableChunkChecksumValidator.{h, cc}
  8471. * src/SegmentMan.{h, cc}
  8472. * src/SingleFileDownloadContext.{h, cc}
  8473. * src/IteratableChecksumValidator.{h, cc}
  8474. * src/BtContext.h
  8475. * src/IteratableValidator.h
  8476. * src/DownloadContext.h
  8477. * test/SingleFileDownloadContextTest.cc
  8478. * test/DefaultBtContextTest.cc
  8479. * test/MockBtContext.h
  8480. * test/Metalink2RequestGroupTest.cc
  8481. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Type clarification: size_t for length or size, uint64_t for file
  8483. length, off_t for file offset.
  8484. * src/PiecedSegment.cc
  8485. * src/GrowSegment.h
  8486. * src/DefaultBtRequestFactory.h
  8487. * src/DefaultBtProgressInfoFile.cc
  8488. * src/UnknownLengthPieceStorage.h
  8489. * src/DefaultPieceStorage.cc
  8490. * src/UnknownLengthPieceStorage.cc
  8491. * src/DefaultBtInteractive.cc
  8492. * src/GrowSegment.cc
  8493. * src/BitfieldMan.h
  8494. * src/DownloadCommand.cc
  8495. * src/BtRequestFactory.h
  8496. * src/PiecedSegment.h
  8497. * src/DefaultPieceStorage.h
  8498. * src/Piece.cc
  8499. * src/DefaultBtRequestFactory.cc
  8500. * src/PieceStorage.h
  8501. * src/Segment.h
  8502. * src/Piece.h
  8503. * src/BitfieldMan.cc
  8504. * src/Util.cc
  8505. * test/DefaultBtProgressInfoFileTest.cc
  8506. * test/DefaultPieceStorageTest.cc
  8507. * test/MockPieceStorage.h
  8508. * test/BtRequestMessageTest.cc
  8509. * test/DefaultBtMessageDispatcherTest.cc
  8510. * test/BitfieldManTest.cc
  8511. * test/GrowSegmentTest.cc
  8512. * test/PieceTest.cc
  8513. * test/SegmentTest.cc
  8514. * test/SegmentManTest.cc
  8515. * test/DefaultBtRequestFactoryTest.cc
  8516. * test/MockBtRequestFactory.h
  8517. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Fixed compilation error with --disable-nls
  8519. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8520. in gettext.h causes the problem.
  8521. * src/common.h
  8522. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Removed subPiece related functions.
  8524. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8525. * src/DefaultPieceStorage.{h, cc}
  8526. * test/PieceTest.cc
  8527. * test/DefaultPieceStorageTest.cc
  8528. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Use unsigned char for data store.
  8530. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Bump up version number to 0.13.0+1
  8532. * configure.ac
  8533. * Release 0.13.0+1
  8534. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Changed inactive connection timeout to 120.
  8536. To accept more mulually interested peers, disconnect peer when there
  8537. is no interest between us after certain time passed.
  8538. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8539. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8541. when compiled with async DNS support.
  8542. * src/DownloadEngine.cc
  8543. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8544. value '10' will be a little bit short when some DNS servers are
  8545. offline and several DNS servers are tried. It should be configured
  8546. by command-line option.
  8547. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Merged Ross's mingw patch.
  8549. * src/DHTRoutingTableDeserializer.cc
  8550. * src/DHTRoutingTableSerializer.cc
  8551. * src/Platform.{h, cc}
  8552. * src/timegm.h
  8553. * src/gettimeofday.h
  8554. * src/getaddrinfo.h
  8555. * src/SocketCore.h
  8556. * src/common.h
  8557. * src/inet_aton.h
  8558. * src/DownloadEngine.h
  8559. * src/gai_strerror.h
  8560. * src/a2netcompat.h
  8561. * configure.ac
  8562. * configure
  8563. * aclocal.m4
  8564. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Included missing iostream.
  8566. * test/AllTest.cc
  8567. * test/BtDependencyTest.cc
  8568. * test/BtExtendedMessageTest.cc
  8569. * test/DHTConnectionImplTest.cc
  8570. * test/DHTMessageFactoryImplTest.cc
  8571. * test/DHTMessageTrackerEntryTest.cc
  8572. * test/DHTNodeTest.cc
  8573. * test/DHTRoutingTableSerializerTest.cc
  8574. * test/DefaultBtAnnounceTest.cc
  8575. * test/DefaultBtContextTest.cc
  8576. * test/DefaultBtMessageFactoryTest.cc
  8577. * test/DefaultExtensionMessageFactoryTest.cc
  8578. * test/HandshakeExtensionMessageTest.cc
  8579. * test/HttpResponseTest.cc
  8580. * test/MetalinkProcessorTest.cc
  8581. * test/MultiFileAllocationIteratorTest.cc
  8582. * test/SocketCoreTest.cc
  8583. * test/UTPexExtensionMessageTest.cc
  8584. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Reorganized includes.
  8586. * src/NameResolver.cc
  8587. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Fixed compilation error without ares/c-ares
  8589. * src/NameResolver.h:
  8590. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Added a test for large file.
  8592. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8593. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Fixed the bug that file size is ignored if size > INT32_MAX
  8595. * src/SizeMetalinkParserState.cc (endElement):
  8596. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Bump up version number to 0.13.0
  8598. * configure.ac
  8599. * Release 0.13.0
  8600. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Updated Makfefile.am to make 'make dist' work.
  8602. Now packaged filename is aria2c-VERSION.tar.bz2.
  8603. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8604. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8605. Large file support is now configured by configure script.
  8606. * configure.ac
  8607. Removed unsused source files
  8608. * src/
  8609. * test/
  8610. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8611. Peer.h and BtContext.h respectively.
  8612. * src/Peer.h
  8613. * src/BtContext.h
  8614. Updated translations.
  8615. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8616. translations. Great thanks to all translators!;)
  8617. * po/*.{po, gmo}
  8618. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8620. statically declared sha1 MessageDigestContext.
  8621. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8622. initialization of short-lived MessageDigestContext.
  8623. * src/MessageDigestHelper.{h, cc}
  8624. * src/main.cc
  8625. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8626. the initialization of MessageDigestContext every time in validating
  8627. chunk checksum.
  8628. * src/DownloadCommand.{h, cc}
  8629. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Add a file descriptor which connected to fast peer(latency<1500) to
  8631. select(). This change reduced CPU load.
  8632. * src/PeerInteractionCommand.cc
  8633. * src/DefaultBtInteractive.{h, cc}
  8634. * src/BtInteractive.h
  8635. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Fixed the previous insufficient fix for possible busy loop.
  8637. * src/MSEHandshake.cc (identifyHandshakeType)
  8638. Removed unused functions.
  8639. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8640. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Fixed possible busy loop if first 20 bytes are not received for a few
  8642. minutes.
  8643. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8644. * src/ReceiverMSEHandshakeCommand.cc
  8645. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Fixed compilation error
  8647. * src/ExpatMetalinkProcessor.cc
  8648. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8650. * src/DHTBucket.cc
  8651. Removed unnecessary cast.
  8652. * src/HandshakeExtensionMessage.cc
  8653. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8655. is missing.
  8656. * src/OptionHandlerFactory.cc
  8657. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Fixed the bug that HAVE message is not sent for a piece they are
  8659. downloaded fom http/ftp server before any BitTorrent handshake is done
  8660. with peers.
  8661. * src/DefaultBtInteractive.cc
  8662. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8664. * src/Makefile.am
  8665. * src/Makefile.in
  8666. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Updated README. Added html version of README and man page.
  8668. * README
  8669. * README.html
  8670. * readme2html: Shell script to generate README.html from README using
  8671. asciidoc.
  8672. * doc/aria2c.1.html
  8673. * doc/makeman: Added the line to generate aria2c.1.html
  8674. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Fixed offset calculation.
  8676. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8677. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Rewritten itos and uitos using template. llitos and ullitos are
  8679. replaced with itos and uitos respectively.
  8680. * src/Util.{h, cc}
  8681. * test/UtilTest.cc
  8682. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8684. of the number of bytes required for storing public key and shared
  8685. secret.
  8686. * src/LibgcryptDHKeyExchange.h
  8687. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8688. * src/MSEHandshake.cc
  8689. * test/DHKeyExchangeTest.cc
  8690. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Removed since they are not used.
  8692. * src/Xml2MetalinkProcessor.{h, cc}
  8693. * src/Socket.cc
  8694. * src/SegmentSplitter.{h, cc}
  8695. * test/Xml2MetalinkProcessorTest.cc
  8696. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Fixed the bug that prevents aria2 from stopping other than by pressing
  8698. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8699. option. aria2 doesn't stop even after --seed-time is satisfied and
  8700. continues to output blank lines in the console.
  8701. * src/ReceiverMSEHandshakeCommand.cc
  8702. * src/PeerReceiveHandshakeCommand.cc
  8703. * src/PeerListenCommand.cc
  8704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Bump up version number to 0.13.0rc
  8706. * configure.ac
  8707. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Updated man page and some usage text.
  8709. * doc/aria2c.1.txt
  8710. * src/usage_text.h
  8711. * po/*.{po, gmo}
  8712. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Updated translations. Added Finnish and Hebrew translations.
  8714. Great thanks to all translators!
  8715. * po/*.{po, gmo}
  8716. * po/LINGUAS
  8717. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Log more detailed information about each message.
  8719. * src/DHTQueryMessage.{h, cc}
  8720. * src/DHTGetPeersMessage.{h, cc}
  8721. * src/DHTFindNodeReplyMessage.{h, cc}
  8722. * src/DHTGetPeersReplyMessage.{h, cc}
  8723. * src/DHTAnnouncePeerMessage.{h, cc}
  8724. * src/DHTResponseMessage.{h, cc}
  8725. * src/DHTFindNodeMessage.{h, cc}
  8726. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Use constants defined in prefs.h
  8728. * src/option_processing.cc
  8729. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8731. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Make room for future enchancements for IPv6 addresses.
  8733. Bump up version number of dht.dat file format to 2.
  8734. Not compatible with previous version.
  8735. * src/DHTRoutingTableSerializer.cc
  8736. * src/DHTRoutingTableDeserializer.cc
  8737. * test/DHTRoutingTableSerializerTest.cc
  8738. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Added handling for the return values from
  8740. PeerMessageUtil::createcompact().
  8741. * src/DefaultBtContext.cc (computeFastSet):
  8742. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Fixed abort when peer's ip address is IPv4-mapped address.
  8744. * src/DefaultBtContext.cc (computeFastSet)
  8745. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8746. cannot handle IPv4-mapped addresses.
  8747. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8748. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Proper return value handling for OpenSSL functions.
  8750. * src/LibsslDHKeyExchange.h
  8751. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Random bytes generation using libgcrypt and OpenSSL.
  8753. * src/DHTUtil.{h, cc}
  8754. * test/DHTUtilTest.cc
  8755. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8757. received.
  8758. * src/DHTMessageReceiver.cc (receiveMessage)
  8759. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Fixed the bug that a return code is always 0. BUG#1897704
  8761. If error occurred during the download or there exist unfinished
  8762. downloads, aria2 returns with code 1.
  8763. * src/RequestGroupMan.{h, cc}
  8764. * src/MultiUrlRequestInfo.{h, cc}
  8765. * src/main.cc
  8766. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. IPv6 support for SocketCore class.
  8768. TODO: In SocketCore::establishConnection(), this is insufficient to
  8769. determin the failure of connect() here because the socket is
  8770. non-blocking state. The next addresses should be tried after select().
  8771. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8772. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8773. instead which address family independent.
  8774. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8775. information in a compact peer format which is for IPv4 only.
  8776. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8777. this is a spec of BitTorrent protocol.
  8778. * src/SocketCore.{h, cc}
  8779. * src/PeerMessageUtil.cc
  8780. * test/SocketCoreTest.cc
  8781. * test/PeerMessageUtilTest.cc
  8782. * test/DHTConnectionImplTest.cc
  8783. Handle IPv4-mapped addresses.
  8784. * src/DHTNode.cc: Now identity is determined by node id.
  8785. * src/DHTMessageTrackerEntry.cc
  8786. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8787. should handle it.
  8788. * src/DHTRoutingTableDeserializer.cc
  8789. * src/DHTMessageFactoryImpl.cc
  8790. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Change the unit of --stop option from a minute to a second.
  8792. * src/usage_text.h
  8793. * src/DownloadEngineFactory.cc
  8794. * src/OptionHandlerFactory.cc
  8795. * src/message.h
  8796. * src/TimedHaltCommand.cc
  8797. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Make listening socket non-block mode.
  8799. * src/FtpConnection.cc
  8800. * src/FtpNegotiationCommand.{h, cc}
  8801. * src/PeerListenCommand.cc
  8802. Fixed the bug that cause slow ftp negotiation.
  8803. * src/FtpNegotiationCommand.{h, cc}
  8804. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Added basic tag to --enable-dht, --dht-listen-port option.
  8806. * src/HelpItemFactory.cc (createHelpItems)
  8807. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Updated text.
  8809. * src/usage_text.h
  8810. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8812. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Determin _threadtholdSpeed in each constructor for
  8814. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8815. * src/ActivePeerConnectionCommand.{h, cc}
  8816. * src/PeerReceiveHandshakeCommand.{h, cc}
  8817. * src/BtSetup.cc
  8818. * src/BtConstants.h
  8819. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Added --bt-min-crypto-level and --bt-require-crypto options.
  8821. * src/OptionHandlerFactory.cc
  8822. * src/MSEHandshake.cc
  8823. * src/HelpItemFactory.cc
  8824. * src/option_processing.cc
  8825. * src/ReceiverMSEHandshakeCommand.cc
  8826. * src/prefs.h
  8827. * src/DefaultBtAnnounce.cc
  8828. * src/InitiatorMSEHandshakeCommand.cc
  8829. * src/usage_text.h
  8830. * test/MSEHandshakeTest.cc
  8831. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Bump version number to 0.13.0b
  8833. * configure.ac
  8834. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Updated doc.
  8836. * src/MessageDigestHelper.h:
  8837. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Use raw message digest as a token instead of its hexadecimal
  8839. representation.
  8840. * src/DHTTokenTracker.cc (generateToken)
  8841. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Added Message Stream Encryption(MSE) support.
  8843. Currently, aria2 accepts incoming connections with Obfuscation Header
  8844. and legacy BitTorrent Header and establishes connections with
  8845. Obfuscation Header first and if failed then retry with legacy
  8846. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8847. choose ARC4. The new option to change the default behavior is planned.
  8848. For tracker extension, "supportcrypto=1" is added statically.
  8849. * src/PeerInitiateConnectionCommand.{h, cc}
  8850. * src/PeerConnection.{h, cc}
  8851. * src/HandleRegistry.h
  8852. * src/SocketCore.h
  8853. * src/PeerReceiveHandshakeCommand.{h, cc}
  8854. * src/BtRegistry.{h, cc}
  8855. * src/PeerListenCommand.cc
  8856. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8857. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8858. * src/MSEHandshake.{h, cc}
  8859. * src/ARC4Encryptor.h
  8860. * src/ARC4Decryptor.h
  8861. * src/LibgcryptARC4Encryptor.h
  8862. * src/LibgcryptARC4Decryptor.h
  8863. * src/LibgcryptARC4Context.h
  8864. * src/LibsslARC4Encryptor.h
  8865. * src/LibsslARC4Decryptor.h
  8866. * src/LibsslARC4Context.h
  8867. * src/DHKeyExchange.h
  8868. * src/LibgcryptDHKeyExchange.h
  8869. * src/LibsslDHKeyExchange.h
  8870. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8871. * test/DefaultBtAnnounceTest.cc
  8872. * test/ARC4Test.cc
  8873. * test/DHKeyExchangeTest.cc
  8874. Removed prepareForRetry() because it is not used.
  8875. * src/PeerAbstractCommand.{h, cc}
  8876. * src/PeerInteractionCommand.{h, cc}
  8877. * src/PeerInitiateConnectionCommand.{h, cc}
  8878. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Added the ability to load nodes from torrent file. These nodes are
  8880. added to the routing table when downloading that torrent.
  8881. * src/BtContext.h
  8882. * src/DefaultBtContext.{h, cc}
  8883. * src/DHTSetup.cc
  8884. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8885. hostname and port pair, and resolves all of them.
  8886. * src/NameResolver.{h, cc}: Added reset().
  8887. * src/RequestGroup.cc
  8888. * test/DefaultBtContextTest.cc
  8889. * test/MockBtContext.h
  8890. Removed assert() from DefaultBtContext and throw exception instead.
  8891. * src/DefaultBtContext.cc
  8892. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Fixed segmentation fault bug when exiting if dht is disabled.
  8894. * src/RequestGroup.cc
  8895. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Fixed typo in log message and define the message in message.h
  8897. * src/TimedHaltCommand.cc
  8898. * src/message.h
  8899. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Included RecoverableException.h to fix compilation error.
  8901. * test/DHTMessageFactoryImplTest.cc
  8902. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8904. * test/DHTPingMessageTest.cc
  8905. * test/DHTGetPeersMessageTest.cc
  8906. * test/DHTFindNodeMessageTest.cc
  8907. * test/DHTAnnouncePeerMessageTest.cc
  8908. * test/MockDHTMessage.h
  8909. * test/MockDHTMessageFactory.h
  8910. * test/MockDHTMessageDispatcher.h: New class.
  8911. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8913. virtual.
  8914. * src/DHTMessageDispatcher.h
  8915. * src/DHTMessageDispatcherImpl.{h, cc}
  8916. * src/DHTSetup.cc
  8917. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Adding handling of DHT error message. Just log error message and
  8919. throw exception.
  8920. * src/DHTMessageFactoryImpl.cc
  8921. * test/DHTMessageFactoryImplTest.cc
  8922. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Added handling of dynamic cast failure.
  8924. * src/DHTNodeLookupTask.cc
  8925. * src/DHTPeerLookupTask.cc
  8926. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Added the ability to stop aria2 itself when given time has passed
  8928. from start. Use --stop option to specify time in minutes.
  8929. When 0 is given, this feature is disabled.
  8930. * src/OptionHandlerFactory.cc
  8931. * src/TimeBasedCommand.h: Make _interval protected scope.
  8932. * src/HelpItemFactory.cc
  8933. * src/option_processing.cc
  8934. * src/prefs.h
  8935. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8936. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8937. Without this modification, the result list shows "ERR" when aria2 is
  8938. stopped by --stop option. It should be "INPR".
  8939. * src/DownloadEngine.{h, cc}
  8940. * src/DownloadEngineFactory.cc
  8941. * src/usage_text.h
  8942. * src/TimedHaltCommand.{h, cc}: New class.
  8943. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Bootstrap through node added by port message.
  8945. Currently bootstrap is executed if the number of buckets in routing
  8946. table is 1.
  8947. * src/BtPortMessage.{h, cc}
  8948. * src/DefaultBtMessageFactory.{h, cc}
  8949. * src/PeerInteractionCommand.cc
  8950. * test/BtPortMessageTest.cc
  8951. * test/MockDHTTask.h
  8952. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Extract the Peer class's member variables, which are only needed after
  8954. PeerInteractionCommand, into PeerSessionResource class.
  8955. This class is instantiated in PeerInteractionCommand class's ctor and
  8956. released in its dtor.
  8957. This will make Peer class lightweight and uses less memory for peers
  8958. which are not connected and wait in the queue.
  8959. * src/PeerChokeCommand.cc
  8960. * src/PeerSessionResource.{h, cc}
  8961. * src/PeerInteractionCommand.cc
  8962. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8963. * src/DefaultBtInteractive.cc
  8964. * src/BtPieceMessage.cc
  8965. * src/BtInterestedMessage.cc
  8966. * src/BtUnchokeMessage.cc
  8967. * src/DefaultPeerStorage.{h, cc}
  8968. * src/PeerInitiateConnectionCommand.cc
  8969. * src/ActivePeerConnectionCommand.cc
  8970. * src/BtNotInterestedMessage.cc
  8971. * src/DefaultBtMessageDispatcher.cc
  8972. * src/BtChokeMessage.cc
  8973. * src/BtRequestMessage.cc
  8974. * src/Peer.{h, cc}
  8975. * src/BtRegistry.h
  8976. * src/TrackerWatcherCommand.cc
  8977. * src/PeerReceiveHandshakeCommand.cc
  8978. * test/BtExtendedMessageTest.cc
  8979. * test/BtAllowedFastMessageTest.cc
  8980. * test/BtCancelMessageTest.cc
  8981. * test/DefaultPieceStorageTest.cc
  8982. * test/BtBitfieldMessageTest.cc
  8983. * test/BtHaveMessageTest.cc
  8984. * test/BtNotInterestedMessageTest.cc
  8985. * test/BtRequestMessageTest.cc
  8986. * test/PeerSessionResourceTest.cc
  8987. * test/DefaultBtMessageDispatcherTest.cc
  8988. * test/PeerTest.cc
  8989. * test/BtInterestedMessageTest.cc
  8990. * test/BtRejectMessageTest.cc
  8991. * test/BtChokeMessageTest.cc
  8992. * test/DefaultPeerStorageTest.cc
  8993. * test/BtHaveNoneMessageTest.cc
  8994. * test/BtHaveAllMessageTest.cc
  8995. * test/DefaultExtensionMessageFactoryTest.cc
  8996. * test/BtUnchokeMessageTest.cc
  8997. * test/DefaultBtMessageFactoryTest.cc
  8998. * test/HandshakeExtensionMessageTest.cc
  8999. * test/UTPexExtensionMessageTest.cc
  9000. * test/DefaultBtRequestFactoryTest.cc
  9001. * test/BtPieceMessageTest.cc
  9002. Removed typedef PeerStats.
  9003. * src/PeerStat.h
  9004. * src/SegmentMan.cc
  9005. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Added std namespace to copy, remove_copy, back_inserter,
  9007. front_inserter.
  9008. * src/RequestGroupMan.cc
  9009. * src/DefaultPieceStorage.cc
  9010. * src/StreamFileAllocationEntry.cc
  9011. * src/BtFileAllocationEntry.cc
  9012. * src/RequestGroup.cc
  9013. * src/MetalinkEntry.cc
  9014. * src/DelegatingPeerListProcessor.cc
  9015. * src/DefaultBtRequestFactory.cc
  9016. * src/DefaultBtMessageDispatcher.cc
  9017. * src/version_usage.cc: Included <algorithm>
  9018. * src/main.cc
  9019. * src/MetalinkParserController.cc
  9020. * src/DefaultBtContext.cc
  9021. * src/DownloadEngineFactory.cc
  9022. * src/a2algo.h
  9023. Removed.
  9024. * test/StreamUriListParserTest.cc
  9025. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9027. ActivePeerConnectionCommand when it is given and
  9028. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9029. * src/ActivePeerConnectionCommand.{h, cc}
  9030. * src/BtSetup.cc
  9031. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Only add socket to DownloadEngine's select routine when peer or
  9033. localhost is unchoked and interested. This lowers CPU usage a
  9034. little bit.
  9035. * src/PeerInteractionCommand.cc
  9036. * src/PeerAbstractCommand.{h, cc}
  9037. * src/BtInteractive.h
  9038. * src/DefaultBtInteractive.{h, cc}
  9039. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Revert previous change because get_peers message is needed for
  9041. announce_peer anyway.
  9042. * src/DHTGetPeersCommand.cc
  9043. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Request peers thought DHT only when download hasn't finished.
  9045. * src/DHTGetPeersCommand.cc
  9046. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9048. * src/DHTBucketRefreshTask.{h, cc}
  9049. * src/DHTSetup.cc
  9050. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9052. standard classes.
  9053. Included string.h where mem* function are used.
  9054. Added namespace aria2.
  9055. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Create directory before saving DHT routing table.
  9057. Now ios::failure is now handled properly.
  9058. * src/DHTAutoSaveCommand.cc
  9059. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Removed unnecessary cerr.
  9061. * src/DownloadEngine.cc
  9062. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Catch exception inside DHTMessageReceiver::receiveMessage().
  9064. Log unknown message.
  9065. * src/DHTMessageReceiver.{h, cc}
  9066. * src/DHTMessageFactory.h
  9067. * src/DHTMessageFactoryImpl.{h, cc}
  9068. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9069. * src/DHTInteractionCommand.cc
  9070. * src/DHTUnknownMessage.{h, cc}
  9071. * test/DHTUnknownMessageTest.cc
  9072. * test/MockDHTMessageFactory.h
  9073. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Commented out ip address comparison because a host can have multiple
  9075. ip addresses and it is hard to predict the hostname is resolved into
  9076. which one.
  9077. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9078. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. * po/Makefile.in: Removed since this is generated by configure.
  9080. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Fixed compiler warning about redefinition of SIZE_MAX.
  9082. Use common.h instead of config.h directly here.
  9083. * src/Platform.{h, cc}
  9084. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9085. here.
  9086. * common.h
  9087. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9088. Updated gettext related files.
  9089. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9090. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9091. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Added DHT functionality, compatible with mainline.
  9093. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9094. You may need to specify entry point to DHT network using
  9095. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9096. Use --dht-listen-port to specify port number. Make sure that your
  9097. firewall configuration can pass through UDP traffic to the port.
  9098. The routing table is saved in $HOME/.aria2/dht.dat.
  9099. * src/DHT*
  9100. * src/BNode.{h, cc}
  9101. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9102. particular torrent.
  9103. * src/Data.cc: Rewritten ctor.
  9104. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9105. --dht-entry-point.
  9106. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9107. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9108. ends, remove BtContext from DHTPeerAnnounceStorage.
  9109. * src/BtPortMessage.{h, cc}: Rewritten.
  9110. * src/message.h
  9111. * src/OptionHandlerImpl.cc
  9112. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9113. --dht-entry-point.
  9114. * src/Dictionary.{h, cc} (remove): New function.
  9115. * src/prefs.h
  9116. * src/DefaultBtMessageFactory.h
  9117. * src/BtHandshakeMessage.cc
  9118. * src/ActivePeerConnectionCommand.cc
  9119. * src/SocketCore.{h, cc}: Added datagram socket support.
  9120. * src/DefaultBtMessageFactory.cc
  9121. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9122. Create DHT commands.
  9123. * src/BtMessageFactory.h
  9124. * src/PeerMessageUtil.{h, cc}
  9125. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Fixed the bug that log file is not written when configuration file doesn't exist.
  9127. This is caused by using Logger class before LogFactory is not configured.
  9128. BUG #1875079
  9129. * src/option_processing.cc
  9130. Warning message "configuration doesn't exist" is only printed when --conf is
  9131. given.
  9132. * src/option_processing.cc
  9133. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9135. ShaVisitor is now deprecated and slated to be removed.
  9136. * src/DefaultBtContext.cc
  9137. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Externalize message to message.h
  9139. * src/Platform.cc
  9140. * src/message.h
  9141. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Set default domain and default path to cookie.
  9143. * src/HttpResponse.cc
  9144. * src/CookieBox.{h, cc}
  9145. * src/CookieParser.{h, cc}
  9146. * test/CookieParserTest.cc
  9147. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9148. Added --no-conf and --conf-path command-line option.
  9149. --no-conf option disables loading aria2.conf file.
  9150. --conf-path option changes the configuration file path. The default
  9151. file path is $HOME/.aria2/aria2.conf
  9152. Added a warning message when the configuration file is not found.
  9153. * src/HelpItemFactory.cc
  9154. * src/option_processing.cc
  9155. * src/prefs.h
  9156. * src/usage_text.h
  9157. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Added the message to inform users that other help categories are
  9159. available in -h option.
  9160. * src/version_usage.cc
  9161. * src/TagContainer.{h, cc}
  9162. * test/TagContainerTest.cc
  9163. * src/TaggedItem.{h, cc}
  9164. * test/TaggedItemTest.cc
  9165. * src/HelpItem.h
  9166. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9168. from PiecedSegment's ctor.
  9169. Previously Piece::getAllMissingBlockIndexes() is called from
  9170. PiecedSegment() but it is rather expensive since only first element is
  9171. used.
  9172. * src/PiecedSegment.cc
  9173. * src/Piece.{h, cc}
  9174. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9176. each time these functions are called.
  9177. * src/BitfieldMan.{h, cc}
  9178. * test/BitfieldManTest.cc
  9179. * src/array_fun.h
  9180. * test/array_funTest.cc
  9181. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9182. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9183. filtered. Removed unnecessary cast to int32_t.
  9184. * src/BitfieldMan.{h, cc}
  9185. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9186. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9187. payload length(4bytes) are received. This happens because lenbufLength
  9188. is not updated in this particular case and successive call of
  9189. receiveMessage() overwrites payload length with bytes recieved which
  9190. are payload body.
  9191. * src/PeerConnection.{h, cc}
  9192. * src/message.h
  9193. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9195. peer if there are peers that have same ipaddr and port.
  9196. I've experiened segmentation fault and "pure virtual function was
  9197. called" error.
  9198. * src/Peer.h
  9199. * test/PeerTest.cc
  9200. * src/DefaultPeerStorage.cc
  9201. * test/DefaultPeerStorageTest.cc
  9202. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Removed a call to isPowerOf() because it is no longer necessary here
  9204. and a request block is not always power of 2.
  9205. BUG#1866924
  9206. * src/PeerMessageUtil.cc (checkLength)
  9207. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Fixed the bug that always first found Segment is removed from
  9209. usedSegmentEntries. Removed unused functions.
  9210. * src/SegmentMan.{h, cc}
  9211. * test/SegmentManTest.cc
  9212. Fixed the bug that ServerHost is not removed.
  9213. * src/RequestGroup.cc
  9214. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Fixed the bug that SegmentMan::completeSegment() is not called
  9216. even if Segment is complete when --lowest-speed-limit is enabled.
  9217. BUG#1864525
  9218. * src/DownloadCommand.{h, cc}
  9219. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Fixed: hash algorithm 'sha1' is always used.
  9221. * src/DownloadCommand.cc (validatePieceHash)
  9222. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Added --enable-peer-exchange command-line option.
  9224. * src/OptionHandlerFactory.cc
  9225. * src/HelpItemFactory.cc
  9226. * src/option_processing.cc
  9227. * src/usage_text.h
  9228. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. Move extension from BtRuntime to ExtensionMessageFactory, because
  9230. extension can be specified per peer, not per torrent.
  9231. * src/DefaultBtInteractive.cc
  9232. * src/BtRuntime.h
  9233. * src/ExtendedMessagingAware.h
  9234. * src/ExtensionMessageFactory.h
  9235. * src/DefaultExtensionMessageFactory.cc
  9236. * test/DefaultExtensionMessageFactoryTest.cc
  9237. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Added categorized option help. Specify category using --help option.
  9239. Also added the ability to search options in forward match.
  9240. * src/HelpItem.{h, cc}
  9241. * test/HelpItemTest.cc
  9242. * src/HelpItemFactory.{h, cc}
  9243. * src/TagContainer.{h, cc}
  9244. * test/TagContainerTest.cc
  9245. * src/option_processing.cc
  9246. * src/prefs.h
  9247. * src/TaggedItem.{h, cc}
  9248. * test/TaggedItemTest.cc
  9249. * src/version_usage.cc
  9250. * src/help_tags.h
  9251. * src/usage_text.h
  9252. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Fixed segmentation fault when bad torrent metainfo is parsed.
  9254. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9255. and then throw exception or skip it.
  9256. * src/DefaultBtContext.{h, cc}
  9257. * test/DefaultBtContextTest.cc
  9258. * src/AnnounceList.cc
  9259. * src/CompactPeerListProcessor.cc
  9260. * src/message.h
  9261. * src/DefaultBtAnnounce.{h, cc}
  9262. * test/DefaultBtAnnounceTest.cc
  9263. * src/BencodeVisitor.cc
  9264. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Added missing "B"(=Byte). So now the message looks like this:
  9266. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9267. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9268. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Show the seed ratio after torrent downloads.
  9270. For example, after torrent download completed and --seed-time and
  9271. --seed-ratio conditions are fulfilled, following message is printed
  9272. right after "Download complete: .....":
  9273. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9274. * src/RequestGroupMan.cc
  9275. * src/RequestGroup.{h, cc}
  9276. * src/message.h
  9277. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Remove a defunct control file. A defunct control file means that while
  9279. it exists, but the corresponding download file is missing.
  9280. After its removal, a download restarts from the beginning.
  9281. * src/RequestGroup.cc
  9282. * src/message.h
  9283. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Allocate bitfield in Peer when it is really used. More specifically,
  9285. bitfield in Peer is allocated after the connection is established and
  9286. deallocated when the connection is dropped.
  9287. Since 2 parameters(piece length and total length) was removed from the
  9288. constructor of Peer class, many test classes were modified accordingly.
  9289. See svn log for more detailed information.
  9290. * src/PeerInteractionCommand.cc
  9291. * src/CompactPeerListProcessor.cc
  9292. * src/Peer.cc
  9293. * src/DefaultPeerListProcessor.cc
  9294. * src/PeerListenCommand.cc
  9295. * src/PeerReceiveHandshakeCommand.cc
  9296. Fixed memory leak
  9297. * src/Piece.cc
  9298. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9300. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9301. command-line options.
  9302. * src/option_processing.cc
  9303. * src/ActivePeerConnectionCommand.cc
  9304. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Send have message to peer if it already has the piece.
  9306. * src/BtHaveMessage.{h, cc}
  9307. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9309. port.
  9310. * src/DefaultPeerStorage.{h, cc}
  9311. * test/DefaultPeerStorageTest.cc
  9312. * src/HandshakeExtensionMessage.cc
  9313. * test/HandshakeExtensionMessageTest.cc
  9314. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9315. * src/PeerStorage.h
  9316. * test/MockPeerStorage.h
  9317. * src/PeerListenCommand.cc
  9318. * src/PeerReceiveHandshakeCommand.cc
  9319. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Added --metalink-enable-unique-protocol option.
  9321. * src/Metalink2RequestGroup.cc
  9322. * src/option_processing.cc
  9323. * src/prefs.h
  9324. * src/version_usage.cc
  9325. * doc/aria2c.1.txt
  9326. * doc/aria2c.1
  9327. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Allow a peer in incomingPeer to be added peers.
  9329. * src/DefaultPeerStorage.cc
  9330. * test/DefaultPeerStorageTest.cc
  9331. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9333. I could reproduce this bug in following procedure:
  9334. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9335. 2. Restart aria2.
  9336. 3. You see the download stopped around 99%.
  9337. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9338. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9339. If timeout is reached, then _nextCommand is unused and it may contains
  9340. segments and they won't be canceled. Actually, timeout is not needed
  9341. here because if the server dropped connection, then retry is made.
  9342. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Added uTorrent compatible Peer Exchange.
  9344. * src/BencodeVisitor.{h, cc}
  9345. * test/BencodeVisitorTest.cc
  9346. * src/BtConstants.h
  9347. * src/BtContext.h: Added 'private' flag.
  9348. * src/BtExtendedMessage.{h, cc}
  9349. * test/BtExtendedMessageTest.cc
  9350. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9351. reserved field.
  9352. * test/BtHandshakeMessageTest.cc
  9353. * src/BtMessageFactory.h
  9354. * src/BtRegistry.h
  9355. * src/BtRuntime.h: This class holds default extension message IDs for
  9356. aria2. By default, aria2 uses ID 8 for ut_pex.
  9357. * src/DefaultBtContext.cc
  9358. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9359. When it is true, aria2 enables ut_pex. This value is set by
  9360. PeerInteractionCommand.
  9361. * src/DefaultBtMessageFactory.{h, cc}
  9362. * test/DefaultBtMessageFactoryTest.cc
  9363. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9364. handling to DefaultBtInteractive class.
  9365. * src/DefaultExtensionMessageFactory.{h, cc}
  9366. * test/DefaultExtensionMessageFactoryTest.cc
  9367. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9368. the container(peers and incomingPeers. The equality is determined by
  9369. Peer::id).
  9370. * test/DefaultPeerStorageTest.cc
  9371. * src/ExtensionMessage.h
  9372. * test/MockExtensionMessage.h
  9373. * src/ExtensionMessageFactory.h
  9374. * test/MockExtensionMessageFactory.h
  9375. * src/HandshakeExtensionMessage.{h, cc}
  9376. * test/HandshakeExtensionMessageTest.cc
  9377. * src/MetaEntry.h
  9378. * src/Peer.{h, cc}
  9379. * src/PeerInteractionCommand.cc
  9380. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9381. addIncomingPeer.
  9382. * src/PeerMessageUtil.{h, cc}
  9383. * src/PeerObject.h
  9384. * src/UTPexExtensionMessage.{h, cc}
  9385. * test/UTPexExtensionMessageTest.cc
  9386. * src/message.h
  9387. * src/prefs.h
  9388. Fixed the bug that returns incomplete data when it contains null
  9389. character. A convenient constructor was also added.
  9390. * src/Data.{h, cc}
  9391. Rewritten.
  9392. * src/CompactPeerListProcessor.cc
  9393. Fixed typos.
  9394. * src/message.h
  9395. * src/MetaFileUtil.cc
  9396. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Added "Status Legend" label to the explanation text of 'stat' in
  9398. download result and moved it to the last. BUG#1848214
  9399. * src/RequestGroupMan.cc
  9400. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9402. * src/Makefie.am
  9403. * test/Makefile.am
  9404. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Fixed the bug that prevents aria2 from loading cookie file when expire
  9406. value is greater than 2^31-1. BUG#1851066
  9407. * src/CookieBoxFactory.cc
  9408. * test/CookieBoxFactoryTest.cc
  9409. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Fixed possible memory leak when an exception is thrown.
  9411. * src/XML2SAXMetalinkProcessor.cc
  9412. Added Expat support. If both libxml2 and Expat are installed, then
  9413. libxml2 is used by default.
  9414. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9415. ExpatMetalinkProcessor according to the configuration.
  9416. * src/ExpatMetalinkProcessor.{h, cc}
  9417. * src/main.cc: Removed libxml2 specific header and init/free function.
  9418. * src/MetalinkProcessorFactory.{h, cc}
  9419. * src/MetalinkHelper.cc
  9420. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9421. * src/MetalinkProcessor.h
  9422. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9423. MetalinkProcessorTest is used instead.
  9424. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9425. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9426. MetalinkProcessorFactory::newInstance().
  9427. * m4/libexpat.m4
  9428. * configure.ac: Added configuration options for libexpat.
  9429. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Disabled -s option in metalink download.
  9431. * src/Metalink2RequestGroup.cc
  9432. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. If several protocols are available for a mirror in metalink file,
  9434. aria2 now use one of them. --metalink-preferred-protocol option was
  9435. added to specify the preference of protocol.
  9436. * src/AbstractCommand.cc
  9437. * src/OptionHandlerFactory.cc
  9438. * src/ServerHost.{h, cc}
  9439. * src/Metalink2RequestGroup.cc
  9440. * src/RequestGroup.{h, cc}
  9441. * test/RequestGroupTest.cc
  9442. * src/option_processing.cc
  9443. * src/prefs.h
  9444. * src/HttpResponseCommand.cc
  9445. * src/MetalinkResource.{h, cc}
  9446. * src/FtpNegotiationCommand.cc
  9447. * src/MetalinkEntry.{h, cc}
  9448. * src/MetalinkEntryTest.cc
  9449. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Code cleanup and added debug log.
  9451. * src/PeerConnection.cc
  9452. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Compiler error fix: applied the patch by Tiziano Mueller
  9454. * src/RequestGroup.cc
  9455. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9457. in stopped and completed event.
  9458. * src/AnnounceList.{h, cc}
  9459. * test/AnnounceListTest.cc
  9460. * src/DefaultBtAnnounce.cc
  9461. * test/DefaultBtAnnounceTest.cc
  9462. Sorted URLs.
  9463. * test/Metalink2RequestGroupTest.cc
  9464. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Removed unnecessary string copy. Updated doc and corrected indentation.
  9466. * src/Base64.cc
  9467. Fixed compilation warnings
  9468. * test/DataTest.cc
  9469. * test/HttpRequestTest.cc
  9470. * test/MetaFileUtilTest.cc
  9471. * test/RequestTest.cc
  9472. * Release 0.12.0
  9473. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Updated translations
  9475. * po/{de,fr,ja,nl,ru}.po
  9476. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9477. translations. Many thanks to translators.
  9478. * po/{ca,es,it,pt_BR,sv}.po
  9479. * po/LINGUAS
  9480. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Added a notice about URL
  9482. * src/version_usage.cc
  9483. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9484. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9485. aria2 repeatedly sends stopped request when tracker returns error code.
  9486. * src/AnnounceList.cc
  9487. * test/AnnounceListTest.cc
  9488. * src/AnnounceTier.h
  9489. Added a message when ctrl-c is hit.
  9490. Now second ctrl-c is also handled in signal handler.
  9491. * src/RequestGroupMan.{h, cc}
  9492. * src/RequestGroup.{h, cc}
  9493. * src/MultiUrlRequestInfo.cc
  9494. * src/DownloadEngine.cc
  9495. * src/TrackerWatcherCommand.cc
  9496. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Code cleanup
  9498. * src/Base64.cc (encode)
  9499. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. Changed Direct/IO enable/disable procesure in file allocation routine.
  9501. * src/SingleFileAllocationIterator.cc
  9502. (SingleFileAllocationIterator):
  9503. Disable directIO if offset is not multiple of 512.
  9504. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9505. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9506. Enable created SingleFileAllocationIterator's directIO.
  9507. * src/FileAllocationEntry.cc
  9508. (FileAllocationEntry): Enable directIO here.
  9509. (~FileAllocationEntry): Disable directIO here.
  9510. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9512. * src/Peer.{h, cc}
  9513. * src/DefaultPieceStorage.cc
  9514. * test/DefaultPieceStorageTest.cc
  9515. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Rewritten direct I/O support routine
  9517. * src/SingleFileAllocationIterator.cc
  9518. * src/MultiDiskAdaptor.{h, cc}
  9519. * src/ByteArrayDiskWriter.h
  9520. * src/AbstractSingleDiskAdaptor.h
  9521. * src/AbstractDiskWriter.cc
  9522. * src/DefaultPieceStorage.cc
  9523. * src/DiskWriter.h
  9524. * src/BinaryStream.h
  9525. * src/IteratableChunkChecksumValidator.cc
  9526. * src/IteratableChecksumValidator.cc
  9527. * src/CheckIntegrityEntry.cc
  9528. * src/FileAllocationEntry.cc
  9529. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Fixed typo
  9531. * src/version_usage.cc
  9532. Updated doc
  9533. * doc/aria2c.1.txt
  9534. * doc/aria2c.1
  9535. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Fixed compile error without message digest support.
  9537. * src/FileMetalinkParserState.cc
  9538. * src/MetalinkParserController.{h, cc}
  9539. * test/XML2SAXMetalinkProcessorTest.cc
  9540. * test/MetalinkParserControllerTest.cc
  9541. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Enable direct I/O support in checksum checking.
  9543. * src/IteratableChunkChecksumValidator.{h, cc}
  9544. * test/IteratableChunkChecksumValidatorTest.cc
  9545. * src/CheckIntegrityEntry.cc
  9546. * src/PieceHashCheckIntegrityEntry.cc
  9547. * src/IteratableChecksumValidator.{h, cc}
  9548. * src/BtCheckIntegrityEntry.cc: Added doc.
  9549. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Added --allow-piece-length-change option.
  9551. * src/DefaultBtProgressInfoFile.cc
  9552. * test/DefaultBtProgressInfoFileTest.cc
  9553. * src/OptionHandlerFactory.cc
  9554. * src/option_processing.cc
  9555. * src/prefs.h
  9556. * src/version_usage.cc
  9557. * doc/aria2c.1.txt
  9558. * doc/aria2c.1
  9559. Fixed: duplicated result entry appears when exception is thrown in
  9560. RequestGroup::createInitiateConnectionCommand().
  9561. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9562. Add RequestGroup to _requestGroup after RequetGroup::
  9563. createInitiateConnectionCommand() succeeds.
  9564. Externalized message
  9565. * src/XML2SAXMetalinkProcessor.cc
  9566. * src/message.h
  9567. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Forced download abort when received negative response from http/ftp
  9569. server.
  9570. * src/HttpResponseCommand.cc
  9571. * src/FtpNegotiationCommand.cc
  9572. * src/HttpResponse.cc
  9573. * src/FtpConnection.cc
  9574. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9576. the predecessor, Xml2MetalinkParser class.
  9577. I tested them against 94KB metalink file with 1234 chunk checksums.
  9578. The new one parsed it in 22msec, while it took 6000msec with old one.
  9579. * src/XML2SAXMetalinkProcessor.{h, cc}
  9580. * test/XML2SAXMetalinkProcessorTest.cc
  9581. * src/MetalinkParserController.{h, cc}
  9582. * test/MetalinkParserControllerTest.cc
  9583. * src/MetalinkParserState.h: Also added 16 subclasses.
  9584. * src/main.cc
  9585. * src/Metalink2RequestGroup.cc
  9586. * src/MetalinkHelper.cc
  9587. * src/MetalinkEntry.cc
  9588. * src/ChunkChecksum.h
  9589. Rewritten Base64 class for better performance.
  9590. * src/Base64.{h, cc}
  9591. * test/Base64Test.cc
  9592. * src/HttpRequest.cc
  9593. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Fixed the bug#1841757: aria2 will connect to server to only get
  9595. file size.
  9596. * src/StreamFileAllocationEntry.cc
  9597. * src/option_processing.cc
  9598. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9599. downloads.
  9600. * src/FtpNegotiationCommand.cc
  9601. Suppressed wrong message when finding PreDownloadHandler
  9602. * src/RequestGroup.cc
  9603. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Updated usage
  9605. * src/version_usage.cc
  9606. Updated man page
  9607. * doc/aria2c.1.txt
  9608. * doc/aria2c.1
  9609. Updated po files
  9610. * po/aria2c.pot
  9611. * po/*.po
  9612. * po/*.gmo
  9613. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Eliminated g++-4.2 warning
  9615. * src/DownloadHandlerConstants.{h, cc}
  9616. * src/Util.cc
  9617. * test/MetaFileUtilTest.cc
  9618. * test/PStringBuildVisitorTest.cc
  9619. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9620. * src/RequestGroup.cc
  9621. * src/BtCheckIntegrityEntry.cc
  9622. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Fixed a2io.h
  9624. * src/a2io.h
  9625. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Added direct I/O support. The current implementation uses O_DIRECT,
  9627. which is not posix standard and is tested on linux 2.6.21.
  9628. Currently only file allocation uses direct I/O.
  9629. * src/SingleFileAllocationIterator.{h, cc}
  9630. * test/SingleFileAllocationIteratorTest.cc
  9631. * src/MultiFileAllocationIterator.{h, cc}
  9632. * test/MultiFileAllocationIteratorTest.cc
  9633. * src/BinaryStream.h
  9634. * src/DiskWriter.h
  9635. * src/AbstractDiskWriter.{h, cc}
  9636. * src/ByteArrayDiskWriter.h
  9637. * src/DiskAdaptor.h
  9638. * src/AbstractSingleDiskAdaptor.{h, cc}
  9639. * src/MultiDiskAdaptor.{h, cc}
  9640. * src/FileAllocationEntry.cc
  9641. * src/Util.{h, cc}
  9642. * src/OptionHandlerFactory.cc
  9643. * src/prefs.h
  9644. * src/version_usage.cc
  9645. * src/option_processing.cc
  9646. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9647. handleException.
  9648. * src/MultiFileAllocationIterator.cc
  9649. Added EINTR handling
  9650. * src/SocketCore.cc
  9651. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Updated usage
  9653. * src/version_usage.cc
  9654. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Applied Ross's patch for MinGW port.
  9656. * src/DownloadEngine.h
  9657. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Set Content-Type to SingleFileDownloadContext when http response is
  9659. received.
  9660. * src/HttpResponseCommand.cc
  9661. * src/HttpResponse.{h, cc}
  9662. * test/HttpResponseTest.cc
  9663. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Rewritten to add content-type support.
  9665. * src/DownloadHandler.{h, cc}
  9666. * src/BtPostDownloadHandler.{h, cc}
  9667. * test/BtPostDownloadHandlerTest.cc
  9668. * src/MetalinkPostDownloadHandler.{h, cc}
  9669. * test/MetalinkPostDownloadHandlerTest.cc
  9670. * src/PostDownloadHandler.{h, cc}
  9671. * src/DownloadHandlerConstants.{h, cc}
  9672. * src/RequestGroup.cc
  9673. * src/HttpResponseCommand.cc
  9674. * src/FtpNegotiationCommand.cc
  9675. * src/SingleFileDownloadContext.{h, cc}
  9676. * src/RequestGroup.h
  9677. * src/RequestGroupCriteria.h
  9678. * src/ContentTypeRequestGroupCriteria.h
  9679. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9680. If it is give, metalink/torrent file is not written to the disk, but
  9681. just is kept in memory. Parsing is occurred on memory.
  9682. * src/MetalinkHelper.{h, cc}
  9683. * src/MetalinkProcessor.h
  9684. * src/Xml2MetalinkProcessor.{h, cc}
  9685. * test/Xml2MetalinkProcessorTest.cc
  9686. * src/DownloadHandlerFactory.{h, cc}
  9687. * test/DownloadHandlerFactoryTest.cc
  9688. * src/PreDownloadHandler.{h, cc}
  9689. * src/OptionHandlerFactory.cc
  9690. * src/DefaultBtContext.{h, cc}
  9691. * test/DefaultBtContextTest.cc
  9692. * src/version_usage.cc
  9693. * src/Metalink2RequestGroup.{h, cc}
  9694. * src/RequestGroup.{h, cc}
  9695. * src/a2functional.h
  9696. * test/a2functionalTest.cc
  9697. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9698. * src/OptionHandlerImpl.h
  9699. * src/prefs.h
  9700. * src/Util.{h, cc}
  9701. * test/UtilTest.cc
  9702. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9703. memory usage.
  9704. * src/RequestGroupMan.{h, cc}
  9705. * src/DownloadEngine.cc
  9706. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9707. WeakHandle to SharedHandle because WeakHandle could be null.
  9708. * src/RequestGroup.{h, cc}
  9709. * src/DownloadEngineFactory.cc
  9710. * src/DownloadResult.h
  9711. Set totalLength after download finished
  9712. * src/UnknownLengthPieceStorage.{h, cc}
  9713. Keep torrent file specified in metalink in memory.
  9714. * src/Metalink2RequestGroup.cc
  9715. * src/BtDependency.cc
  9716. * src/TrueRequestGroupCriteria.h
  9717. Fixed the bug: seekg is used where seekp should be used.
  9718. * src/ByteArrayDiskWriter.cc
  9719. * test/ByteArraydiskWriterTest.cc
  9720. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Fixed syntax error
  9722. * test/SequenceTest.cc
  9723. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9725. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9726. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9727. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9728. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Added the check to see whether ares_host_callback accepts timeouts
  9730. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9731. * src/NameResolver.{h, cc}
  9732. * m4/libcares.m4
  9733. * configure.ac: Set C++ for language choice.
  9734. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Fixed: compilation fails without c-ares/ares
  9736. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9737. Generate http/ftp commands only when download is incomplete.
  9738. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9739. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Corrected typo. Examples are removed since they are available in man
  9741. page.
  9742. * src/version_usage.cc
  9743. Updated man page.
  9744. * doc/aria2c.1
  9745. * doc/aria2c.1.txt
  9746. * doc/makeman: Commented out sed command.
  9747. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Throw DlAbortEx when a remote file is not found.
  9749. * src/HttpResponse.cc
  9750. * src/FtpNegotiationCommand.cc
  9751. * src/message.h
  9752. Overwrite an existing file if --allow-overwrite=true is given.
  9753. * src/RequestGroup.cc
  9754. Removed unused functions
  9755. * src/AbstractCommand.h
  9756. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Removed 'extern' from 'extern typedef ...' in src/*.h
  9758. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Updated usage
  9760. * src/version_usage.cc
  9761. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Trim announce URL
  9763. * src/DefaultBtContext.cc
  9764. * test/ShaVisitorTest.cc
  9765. Trim argument s. Give trimed s to exception constructor.
  9766. * src/Util.cc (parseInt)(parseLLInt)
  9767. * test/UtilTest.cc
  9768. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Set precision back to 1.
  9770. * src/ConsoleStatCalc.cc (calculateStat)
  9771. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Replaced strtol with Util::parseInt
  9773. * src/ChunkedEncoding.cc
  9774. * src/HttpConnection.cc
  9775. * src/CookieBoxFactory.cc
  9776. * src/ParameterizedStringParser.cc
  9777. * src/Util.cc
  9778. * test/UtilTest.cc
  9779. * test/OptionHandlerTest.cc
  9780. * src/Request.cc
  9781. Throw exception when empty string is given. The message for exception
  9782. changed.
  9783. * src/Util.cc (parseInt)(parseLLInt)
  9784. * src/message.h
  9785. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9787. set to 1.
  9788. * src/ConsoleStatCalc.cc (calculateStat)
  9789. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Preallocate non-requested file which is adjacent forward to requested
  9791. file('requested' files means the files given in --select-file option)
  9792. if they share a same piece.
  9793. This fixes long pause in the file system which doesn't support sparse
  9794. files like FAT32 while downloading.
  9795. * src/MultiFileAllocationIterator.{h, cc}
  9796. * test/MultiFileAllocationIteratorTest.cc
  9797. * src/FileEntry.{h, cc}
  9798. Removed unused _option.
  9799. * src/MultiDiskAdaptor.h
  9800. * test/MultiDiskAdaptorTest.cc
  9801. * src/DefaultPieceStorage.cc
  9802. Set the default value of --seed-ratio to 1.0.
  9803. If 0.0 is given, then seeding continues regardless of share ratio.
  9804. * src/version_usage.cc
  9805. * src/option_processing.cc
  9806. * src/BtSetup.cc
  9807. * doc/aria2c.1.txt
  9808. * doc/aria2c.1
  9809. Fixed: Selective download is not working in BitTorrent
  9810. * src/RequestGroup.cc
  9811. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9812. * src/PieceStorage.h
  9813. * test/MockPieceStorage.h
  9814. * src/UnknownLengthPieceStorage.h
  9815. * src/DefaultPieceStorage.{h, cc}
  9816. * src/Metalink2RequestGroup.cc
  9817. * src/RequestGroup.cc
  9818. * src/Sequence.h
  9819. * test/SequenceTest.cc
  9820. * src/IntSequence.h
  9821. * src/message.h
  9822. * src/Util.{h, cc}
  9823. * test/UtilTest.cc
  9824. Added new function 'parse' to catch exception thrown by subclass's
  9825. parseArg
  9826. * src/OptionHandler.h
  9827. * src/OptionParser.cc
  9828. * src/NameMatchOptionHandler.h
  9829. * src/OptionHandlerImpl.h
  9830. * test/OptionHandlerTest.cc
  9831. Added IntegerRangeOptionHandler. Used for --listen-port and
  9832. --select-file. Now --listen-port accepts range of port.
  9833. * src/OptionHandlerFactory.cc
  9834. * src/version_usage.cc
  9835. * src/OptionHandlerImpl.h
  9836. * src/option_processing.cc
  9837. * src/BtSetup.cc
  9838. * src/PeerListenCommand.{h, cc}
  9839. * doc/aria2c.1.txt
  9840. * doc/aria2c.1
  9841. Implemented operator< for Exception class to provide easy way to print
  9842. exception stack trace.
  9843. * src/Exception.{h, cc}
  9844. * src/main.cc
  9845. * src/option_processing.cc
  9846. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. * src/version_usage.cc
  9848. (showVersion): Reworked.
  9849. (showUsage): Added examples.
  9850. Removed Hint for total length and file name.
  9851. * src/Metalink2RequestGroup.cc
  9852. * src/RequestGroup.{h, cc}
  9853. * src/HttpResponseCommand.cc
  9854. * src/FtpNegotiationCommand.cc
  9855. Now --follow-torrent and --follow-metalink option work properly.
  9856. * src/RequestGroup.cc
  9857. Updated man page
  9858. * doc/aria2c.1.txt
  9859. * doc/aria2c.1
  9860. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Removed.
  9862. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9863. Use Segment::operator==()
  9864. * src/HttpConnection.cc
  9865. * src/Segment.h
  9866. Updated usage
  9867. * src/version_usage.cc
  9868. Added EINTR treatment.
  9869. * src/SocketCore.cc
  9870. * src/AbstractDiskWriter.cc
  9871. Rewritten.
  9872. * src/Util.cc (rangedFileCopy)
  9873. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9874. Fixed typo.
  9875. * src/version_usage.cc
  9876. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Implemented. Now -c option works fine.
  9878. * src/DefaultPieceStorage.cc (markPiecesDone)
  9879. * test/DefaultPieceStorageTest.cc
  9880. Removed.
  9881. * src/SegmentMan.{h, cc}
  9882. (markAllPiecesDone)
  9883. (markPieceDone)
  9884. Synchronized po files with
  9885. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9886. * src/fr.po
  9887. * src/ru.po
  9888. * src/de.po
  9889. * src/ja.po
  9890. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Added ifdef and some modifications to compile without BitTorrent,
  9892. Metalink, MessageDigest
  9893. support.
  9894. * src/PieceHashCheckIntegrityEntry.cc
  9895. * src/MetalinkEntry.h
  9896. * src/version_usage.cc
  9897. * src/main.cc
  9898. * src/DownloadEngine.{h, cc}
  9899. * src/Metalink2RequestGroup.cc
  9900. * src/Peer.cc
  9901. * src/RequestGroup.cc
  9902. * src/MetalinkHelper.cc
  9903. * test/DefaultPieceStorageTest.cc
  9904. * test/MetalinkPostDownloadHandlerTest.cc
  9905. * test/Metalink2RequestGroupTest.cc
  9906. Hide TOTAL SPD when all downloads complete.
  9907. * src/ConsoleStatCalc.cc
  9908. Log target system information.
  9909. * src/main.cc
  9910. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Now --metalink-location accepts a comma-deliminated list of locations.
  9912. * src/MetalinkEntry.{h, cc}
  9913. * test/MetalinkEntryTest.cc
  9914. * src/version_usage.cc
  9915. * src/Metalink2RequestGroup.cc
  9916. * src/Xml2MetalinkProcessor.cc
  9917. * test/Xml2MetalinkProcessorTest.cc
  9918. * doc/aria2c.1.txt
  9919. * doc/aria2c.1
  9920. * src/Util.cc (toUpper)(toLower): Rewritten.
  9921. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. Added the ability to detect duplicate download entry which is about to
  9923. download the same file other RequestGroup is downloading.
  9924. * src/RequestGroup.cc
  9925. * src/HttpResponseCommand.cc
  9926. * src/FtpNegotiationCommand.cc
  9927. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. Recalculates download progress when loading a control file,
  9929. if the piece length of DownloadContext is different from the one saved
  9930. in the control file. Currently in-flight pieces are ignored.
  9931. * src/DefaultBtProgressInfoFile.cc
  9932. * test/DefaultBtProgressInfoFileTest.cc
  9933. * src/Util.{h, cc}
  9934. * test/UtilTest.cc
  9935. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Do not rotate tiers in announce-list.
  9937. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9938. AnnounceList::allTiersFailed() used instead to detect whether all
  9939. tiers are tried and failed.
  9940. * test/DefaultBtAnnounceTest.cc
  9941. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9942. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9943. * test/AnnounceListTest.cc
  9944. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9945. clause. Catch RecoverableException instead of DlRetryEx instead.
  9946. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Implemented checksum validation feature(1 checksum for each file)
  9948. The validation takes place after the download.
  9949. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9950. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9951. * src/CheckIntegrityCommand.cc: Changed log message.
  9952. * src/Metalink2RequestGroup.cc: Set checksum to
  9953. SingleFileDownloadContext.
  9954. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9955. PieceHashCheckIntegrity class.
  9956. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9957. PieceHashCheckIntegrity class.
  9958. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9959. * src/IteratableValidator.h: New class.
  9960. * src/message.h
  9961. * src/CheckIntegrityEntry.{h, cc}
  9962. * src/IteratableChunkChecksumValidator.{h, cc}
  9963. * src/SingleFileDownloadContext.h
  9964. * src/DownloadCommand.cc
  9965. --allow-overwrite=true is no longer needed to check file integrity
  9966. before download in BitTorrent download.
  9967. * src/RequestGroup.cc (getInitialCommand)
  9968. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9969. throws exception.
  9970. * src/RequestGroupMan.cc (getInitialCommands)
  9971. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. urlencode the given url inside Request::parseUrl(...)
  9973. * src/Request.{h, cc}
  9974. * src/Util.{h, cc}
  9975. * test/RequestTest.cc
  9976. Removed #!metalink3! notation support because it is deleted from
  9977. the metalink specification.
  9978. * src/Request.{h, cc}
  9979. * test/RequestTest.cc
  9980. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Don't connect server before checking file integrity at startup, if
  9982. filesize and output file path are known.
  9983. * src/AbstractCommand.cc
  9984. * src/StreamFileAllocationEntry.cc
  9985. * src/Metalink2RequestGroup.cc
  9986. * src/RequestGroup.{h, cc}
  9987. * src/HttpResponseCommand.cc
  9988. * src/FtpNegotiationCommand.cc
  9989. Added DownloadFailureException. If it is thrown, RequestGroup should
  9990. halt.
  9991. * src/AbstractCommand.cc
  9992. * src/DownloadFailureException.h
  9993. * src/RequestGroup.cc
  9994. Catch RecoverableException, instead of DlAbortEx.
  9995. * src/RequestGroupMan.cc
  9996. * src/FillRequestGroupCommand.cc
  9997. * src/MetaFileUtil.cc
  9998. * src/IteratableChunkChecksumValidator.cc
  9999. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10000. getGID())
  10001. * src/CheckIntegrityCommand.cc
  10002. * src/message.h
  10003. Print gid instead of idx.
  10004. * src/RequestGroupMan.cc
  10005. Removed exception throwers declaration.
  10006. * src/DirectDiskAdaptor.{h, cc}
  10007. * src/SocketCore.{h, cc}
  10008. * src/MultiDiskAdaptor.{h, cc}
  10009. * src/HttpConnection.{h, cc}
  10010. * src/HttpResponse.{h, cc}
  10011. * src/DiskAdaptor.{h, cc}
  10012. * src/CopyDiskAdaptor.{h, cc}
  10013. * src/MultiDiskAdaptor.{h, cc}
  10014. * src/HttpHeaderProcessor.{h, cc}
  10015. * src/AbstractSingleDiskAdaptor.{h, cc}
  10016. * src/Util.{h, cc}
  10017. * test/UtilTest.cc
  10018. * src/DefaultDiskWriter.{h, cc}
  10019. * src/FtpConnection.{h, cc}
  10020. * src/AbstractDiskWriter.{h, cc}
  10021. Removed duplicate code.
  10022. * src/StreamCheckIntegrityEntry.cc
  10023. Removed unnecessary include.
  10024. * src/DiskWriter.h
  10025. Included Exception.h
  10026. * src/option_processing.cc
  10027. Included 2 files and added doc
  10028. * src/TrackerWatcherCommand.cc
  10029. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10030. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Changed CheckIntegrityEntry interface so that it can define
  10032. the action when all the chunk checksums are valid.
  10033. * src/CheckIntegrityEntry.h
  10034. * src/StreamCheckIntegrityEntry.{h, cc}
  10035. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10036. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10037. to exit rather than doing seeding. So, it would be good to toggle this
  10038. behavior.
  10039. * src/CheckIntegrityCommand.cc
  10040. * src/AbstractCommand.cc
  10041. * src/RequestGroup.cc
  10042. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Reflect the download length of in-flight pieces.
  10044. It makes the download length readout more precise.
  10045. * src/DefaultPieceStorage.{h, cc}
  10046. * test/DefaultPieceStorageTest.cc
  10047. * src/a2functional.h
  10048. * test/a2functionalTest.cc
  10049. Lower CPU load when --max-download-limit is used.
  10050. There is up and down in speed indicator when enabling
  10051. http-pipelining but a download goes well. I think the problem is that
  10052. because http-pipelining is enabled, DownloadCommand is created for
  10053. each segment and in its constructor, PeerStat::downloadStart() is
  10054. called. In PeerStat::downloadStart(), speed calculation object is
  10055. reseted, which makes download speed zero.
  10056. * src/DownloadCommand.cc
  10057. Rewritten using accumulate.
  10058. * src/RequestGroupMan.cc (calculateStat)
  10059. Code clearnup.
  10060. * src/FtpNegotiationCommand.cc
  10061. * src/HttpResponseCommand.cc
  10062. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Fixed: Can not resume: aria2 reports download already finished.
  10064. * src/AbstractCommand.{h, cc}
  10065. * src/HttpResponseCommand.cc
  10066. * src/FtpNegotiateCommand.cc
  10067. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Now a file is stored in the directory specified in .metalnk file
  10069. (file[@name]).
  10070. * src/Metalink2RequestGroup.cc
  10071. Create the directory structure when opening the file if it doesn't
  10072. exist.
  10073. * src/AbstractDiskWriter.cc
  10074. * src/Util.{h, cc}
  10075. * src/File.h
  10076. * test/UtilTest.cc
  10077. Removed file name comparison
  10078. * src/Metalink2RequestGroup.cc
  10079. * src/HttpResponseCommand.cc
  10080. Rewritten using Util::mkdirs()
  10081. * src/FileEntry.cc (setupDir)
  10082. * test/FileEntryTest.cc
  10083. Updated doc
  10084. * src/SingleFileDownloadContext.h
  10085. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10086. Now SleepCommand dispatches nextCommand when halt is requested.
  10087. It avoids a possible long wait after hitting CTRL-C.
  10088. * src/SleepCommand.{h, cc}
  10089. * src/RequestGroupAware.{h, cc}
  10090. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10092. to open listen port, then remove the port number from the tracker
  10093. request.
  10094. * src/DefaultBtAnnounce.cc
  10095. * test/DefaultBtAnnounceTest.cc
  10096. * test/MockPieceStorage.h
  10097. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10098. them more testable.
  10099. * src/DefaultBtAnnounce.{h, cc}
  10100. * src/DefaultBtContext.{h, cc}
  10101. * src/Util.{h, cc}
  10102. * test/DefaultBtAnnounceTest.cc
  10103. * test/DefaultBtContextTest.cc
  10104. * test/UtilTest.cc
  10105. Added 'B' to upload bytes readout.
  10106. * src/ConsoleStatCalc.cc
  10107. Now the listen port for BitTorrent download is opened when it is
  10108. needed.
  10109. * src/DownloadEngineFactory.cc
  10110. * src/BtSetup.{h, cc}
  10111. * src/PeerListenCommand.{h, cc}
  10112. Now an exception thrown while parsing tracker response is now logged.
  10113. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10114. called, which means no retry is made in this case, assuming a tracker
  10115. has a problem.
  10116. * src/TrackerWatcherCommand.cc
  10117. Fixed: downloading a file whose length is unkown fails.
  10118. * src/DownloadCommand.cc
  10119. Simplified prepareForNextSegment()
  10120. * src/DownloadCommand.cc
  10121. Updated
  10122. * po/POTFILES.in
  10123. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Re-implemented a file listing for Metalink, which was dropped while
  10125. http/ftp/torrent integration was being implemented.
  10126. * src/MetalinkHelper.{h, cc}: New class.
  10127. * test/MetalinkHelperTest.cc
  10128. * src/main.cc
  10129. * src/Metalink2RequestGroup.cc
  10130. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Added the ability to display the detailed torrent file information.
  10132. Now -S option gives not only a file listing, but also total download
  10133. length, info hash, announce URI, piece length, the number of pieces,
  10134. and mode(single or multi-torrent).
  10135. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10136. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10137. KiB)
  10138. * test/UtilTest.cc
  10139. * src/main.cc
  10140. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10141. Added ftp://USER:PASSWD@Servername automatic parsing.
  10142. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10143. _password. Recognize username and password in URI.
  10144. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10145. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10146. * src/RequestFactory.{h, cc}: Removed.
  10147. * src/AuthConfigFactory.{h, cc}: New class.
  10148. * src/FtpConnection.cc: Use AuthConfigFactory.
  10149. * src/HttpRequest.cc: Use AuthConfigFactory.
  10150. * test/HttpRequestTest.cc: Updated.
  10151. * test/RequestTest.cc: Updated.
  10152. * test/AuthConfigFactoryTest.cc: New class.
  10153. * test/RequestFactoryTest.cc: Removed.
  10154. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Use RequestGroup::allDownloadFinished() to decide whether the control
  10156. file should be removed or saved.
  10157. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10158. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10159. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Use File::renameTo()
  10161. * src/DefaultBtProgressInfoFile.cc
  10162. Added --no-file-allocation-limit command-line option.
  10163. * src/version_usage.cc
  10164. * src/option_processing.cc
  10165. * src/OptionHandlerFactory.cc
  10166. * src/RequestGroup.{h, cc}
  10167. * src/BtCheckIntegrityEntry.cc
  10168. * src/StreamCheckIntegrityEntry.cc
  10169. * src/prefs.h
  10170. * doc/aria2c.1.txt
  10171. * doc/aria2c.1
  10172. Now prealloc is the default value for --file-allocation option.
  10173. * src/version_usage.cc
  10174. * src/option_processing.cc
  10175. * doc/aria2c.1.txt
  10176. * doc/aria2c.1
  10177. Don't URL-encode user-agent.
  10178. * src/HttpRequest.cc
  10179. Updated translations
  10180. * po/LINGUAS: Added nl for Dutch translation.
  10181. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10182. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10183. * po/POTFILES.in: Updated.
  10184. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Added the ability to recognize url-list in a torrent file.
  10186. The retrieved URLs are attached to the corresponding FileEntry.
  10187. * src/DefaultBtContext.{h, cc}
  10188. * src/FileEntry.{h, cc}
  10189. * test/DefaultBtContextTest.cc
  10190. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10192. after the download finishes.
  10193. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10195. the data smaller than block length.
  10196. A block length can be specified by constructor's argument.
  10197. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10198. Get a missing piece in the range of given FileEntry. This function is
  10199. not used in the program yet.
  10200. * src/Util.h: Added some macros.
  10201. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Added HTTP/1.1 keep alive and pipelining support.
  10203. See --enable-http-keep-alive and --enable-http-pipelining option.
  10204. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10205. Segment.
  10206. * src/HttpDownloadCommand.{h, cc}
  10207. * src/OptionHandlerFactory.cc
  10208. * src/HttpConnection.{h, cc}
  10209. * src/version_usage.cc
  10210. * src/HttpInitiateConnectionCommand.cc
  10211. * src/FtpInitiateConnectionCommand.cc
  10212. * src/Segment.h
  10213. * src/HttpRequestCommand.{h, cc}
  10214. * src/option_processing.cc
  10215. * src/prefs.h
  10216. * src/HttpResponseCommand.cc
  10217. * src/SegmentMan.{h, cc}
  10218. * src/FtpNegotiateCommand.cc
  10219. * src/HttpProxyResponseCommand.cc
  10220. * src/Request.cc
  10221. * src/HttpRequest.cc
  10222. * src/DownloadCommand.cc
  10223. * test/HttpRequestTest.cc
  10224. * test/RequestTest.cc
  10225. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10227. finished.
  10228. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10230. catching it inside the method.
  10231. When no file entry is found in a metalink without querying user
  10232. preferences, throw the exception with the error message that suggests
  10233. metalink file is probably broken.
  10234. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10235. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10237. processed.
  10238. * src/RequestGroupMan.cc (removeStoppedGroup)
  10239. Added debug message.
  10240. * src/BtPostDownloadHandler.cc
  10241. * src/MetalinkPostDownloadHandler.cc
  10242. * src/PostDownloadHandler.{h, cc}
  10243. * src/RequestGroup.cc
  10244. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10246. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10248. stops and there are any unfinished or in-progress downloads.
  10249. Added the legend of "stat".
  10250. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Throw exception when chunck checksum verification fails.
  10252. * src/DownloadCommand.cc (validatePieceHash): New function.
  10253. * src/PiecedSegment.{h, cc} (clear): New function.
  10254. * src/GrowSegment.{h, cc} (clear): New function.
  10255. * src/Segment.h (clear): New function.
  10256. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10257. * test/SegmentTest.cc
  10258. * test/GrowSegmentTest.cc
  10259. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Do not send referer when redirected.
  10261. * src/Request.cc (redirectUrl)
  10262. * test/RequestTest.cc
  10263. * test/HttpRequestTest.cc
  10264. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Implemented BitTorrent/http/ftp integrated download.
  10266. I've rewritten lots of files and now some headers have forward
  10267. class declarations to reduce compile time.
  10268. The implementation is extremely alpha stage, I recommend to use this
  10269. for testing purpose only.
  10270. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Fixed the compilation error on 64bit platform.
  10272. * test/HttpHeaderProcessorTest.cc
  10273. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Merged Ross's patch that fixes compilation problem in MinGW
  10275. * test/DefaultBtProgressInfoFileTest.cc
  10276. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Updated fr.po by sebone
  10278. * po/fr.po
  10279. Updated man page.
  10280. * doc/aria2c.1.txt
  10281. * Release 0.11.3
  10282. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10284. failure in Metalink.
  10285. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Automatically save *.aria2 control file of http/ftp download in every
  10287. 60 seconds.
  10288. * src/AutoSaveCommand.{h, cc}: New class.
  10289. * src/TimeBasedCommand.{h, cc}: New class.
  10290. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10291. Disable parameterized URI support by default. Added -P option to
  10292. enable the feature.
  10293. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10294. * src/OptionHandlerFactory.cc
  10295. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10296. Updated Japanese translation.
  10297. * po/ja.po
  10298. Updated man page.
  10299. * doc/aria2c.1.txt
  10300. * Release 0.11.3-rc
  10301. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10303. it is successful, then renamed to *.aria2.
  10304. This prevents *.aria2 file from being truncated or corrupted when
  10305. file system becomes out of space.
  10306. * src/DefaultBtProgressInfoFile.cc (save)
  10307. * src/SegmentMan.cc (save)
  10308. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10309. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10310. Reduced the fragmentation of bitfield in http/ftp download.
  10311. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10312. * test/BitfieldManTest.cc
  10313. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Added the ability to disable segmented download in .metalink.
  10315. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10316. 'url' tag.
  10317. * src/MetalinkEntry.{h, cc}
  10318. * src/RequestResource.{h, cc}
  10319. * src/MetalinkRequestInfo.cc
  10320. * src/Xml2MetalinkProcessor.cc
  10321. * test/Xml2MetalinkProcessorTest.cc
  10322. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Added parameterized URI support.
  10324. * src/main.cc: -Z option added.
  10325. * src/OptionHandlerFactory.cc
  10326. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10327. * src/PStringDatum.h: New class.
  10328. * src/PStringSegment.{h,cc}: New class.
  10329. * src/PStringNumLoop.h: New class.
  10330. * src/PStringSelect.h: New class.
  10331. * src/NumberDecorator.h: New class.
  10332. * src/FixedWidthNumberDecorator.h: New class.
  10333. * src/AlphaNumberDecorator.h: New class.
  10334. * src/PStringVisitor.h: New class.
  10335. * src/PStringBuildVisitor.{h,cc}: New class.
  10336. * src/ParameterizedStringParser.{h,cc}: New class.
  10337. * src/Util.{h,cc}
  10338. (isNumber): New function.
  10339. (isLowercase): New function.
  10340. (isUppercase): New function.
  10341. (alphaToNum): New function.
  10342. * test/ParameterizedStringParserTest.cc: New class.
  10343. * test/AlphaNumberDecoratorTest.cc: New class.
  10344. * test/PStringBuildVisitorTest.cc: New class.
  10345. * test/UtilTest.cc
  10346. (testIsNumber): New function.
  10347. (testIsLowercase): New function.
  10348. (testIsUppercase): New function.
  10349. (testAlphaToNum): New function.
  10350. Added '\n' after the error message
  10351. * src/RequestInfo.h (printDownloadAbortMessage)
  10352. Added auto file renaming feature in http(s)/ftp download.
  10353. * src/main.cc: Added --auto-file-renaming command-line option.
  10354. * src/OptionHandlerFactory.cc
  10355. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10356. * src/RequestGroup.{h, cc}
  10357. (shouldCancelDownloadForSafety): Rewritten
  10358. (tryAutoFileRenaming): New function.
  10359. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10360. * src/HttpResponseCommand.cc
  10361. (executeInternal): Removed the call to RequestGroupMan::
  10362. isSameFileBeingDownloaded()
  10363. * src/FtpNegotiateCommand.cc
  10364. (recvSize): Removed the call to RequestGroupMan::
  10365. isSameFileBeingDownloaded()
  10366. * test/RequestGroupTest.cc: New class.
  10367. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10369. IO.
  10370. * src/DefaultBtProgressInfoFile.cc
  10371. * src/MetaFileUtil.cc
  10372. * src/SimpleLogger.cc
  10373. * src/SegmentMan.cc
  10374. * src/Util.cc
  10375. * src/Platform.cc
  10376. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10378. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10380. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10381. Fixed the bug that prevents file allocation is not done when
  10382. dowloading multi-torrent file.
  10383. * src/AbstractDiskWriter.cc (openFile)
  10384. Increase the maximum number of -j option from 15 to 45.
  10385. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10386. Added fr.po, thanks to Charles Landemaine.
  10387. * po/fr.po
  10388. * po/LINGUAS
  10389. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10390. gcc 3.4.4 support:
  10391. * src/DefaultBtContext.cc: int32_t -> int
  10392. * src/main.cc: int -> int32_t, int32_t -> int
  10393. * src/messageDigest.h: uint32_t -> unsigned int
  10394. * src/NameResolver.h: int32_t -> int
  10395. * src/PeerConnection.cc: int -> int32_t
  10396. * src/SpeedCalc.cc: int32_t -> int
  10397. * src/TrackerUpdateCommand.h: int -> int32_t
  10398. * src/Util.cc: int32_t -> int
  10399. * src/Util.h: int32_t -> int
  10400. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10401. * test/AnnounceListTest.cc: int -> int32_t
  10402. * test/ChunkedEncodingTest.cc: int -> int32_t
  10403. * test/DataTest.cc: int -> int32_t
  10404. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10405. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10406. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10407. * test/FeatureConfigTest.cc: int -> int32_t
  10408. * test/MetalinkEntryTest.cc: int -> int32_t
  10409. * test/MockBtRequestFactory.h: int -> int32_t
  10410. * test/MockPieceStorage.h: int -> int32_t
  10411. * test/OptionTest.cc: int -> int32_t
  10412. * test/RequestTest.cc: int -> int32_t
  10413. * test/SegmentManTest.cc: int -> int32_t
  10414. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10415. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10416. Move sleep functions to Util class:
  10417. * src/Util.cc
  10418. (sleep): New function.
  10419. (usleep): New function.
  10420. * src/DownloadCommand.cc: sleep -> Util::sleep
  10421. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10422. MinGW build enhancements. The following files are added:
  10423. * src/timegm.{c,h}
  10424. Changes to support the above new files:
  10425. * configure.ac
  10426. * src/Makefile.am
  10427. * src/a2time.h
  10428. * src/Util.cc:
  10429. * src/strptime.c: Added support for %Z option.
  10430. Fixed MinGW non-blocking bug.
  10431. * src/SocketCore.cc
  10432. * src/HttpRequestCommand.cc
  10433. Miscellenous build fixes/enhancements.
  10434. * configure.ac: Added summary report.
  10435. * src/Platform.h: Tweaked #include's.
  10436. * src/a2netcompat.h: Tweaked #include's.
  10437. * src/strptime.h: Tweaked #include's.
  10438. * src/gai_strerror.c: Tweaked #include's.
  10439. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10440. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10441. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10442. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Increased the initial connection size in BitTorrent download to 40.
  10444. * src/BtRuntime.h
  10445. Added the usage message of --peer-id-prefix option.
  10446. * src/main.cc
  10447. * Release 0.11.2
  10448. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. MessageDigestHelper is introduced in order to simplify the use
  10450. of message digest. Removed repeated code.
  10451. The message digest algorithm is now specified by string, like "sha1",
  10452. "md5".
  10453. * src/messageDigest.{h, cc}
  10454. * src/MessageDigestHelper.{h, cc}: New class.
  10455. * src/DefaultPieceStorage.cc
  10456. * src/DefaultBtContext.{h, cc}
  10457. (computeFastSet): New function.
  10458. (setInfoHash): Added for unit testing.
  10459. (setNumPieces): Added for unit testing.
  10460. * src/DefaultBtInteractive.cc
  10461. * src/BtPieceMessage.cc
  10462. * src/Peer.cc
  10463. * src/Checksum.h
  10464. * src/message.h
  10465. * src/IteratableChecksumValidator.h
  10466. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10467. inside it.
  10468. * src/SegmentMan.{h, cc}
  10469. (checkIntegrity): Removed.
  10470. * src/IteratableChunkChecksumValidator.{h, cc}
  10471. * src/Util.h
  10472. (sha1Sum): Removed.
  10473. (simpleMessageDigest): Removed.
  10474. (fileChecksum): Removed.
  10475. (computeFastSet): Removed.
  10476. * src/ShaVisitor.cc
  10477. * src/ChunkChecksum.h
  10478. * src/DownloadCommand.cc
  10479. Removed messageDigest virtual functions.
  10480. * src/MultiDiskAdaptor.{h, cc}
  10481. * src/DiskAdaptor.h
  10482. * src/ByteArrayDiskWriter.h
  10483. * src/DiskWriter.h
  10484. * src/DiskAdaptorWriter.h
  10485. * src/AbstractSingleDiskAdaptor.{h, cc}
  10486. * src/AbstractDiskWriter.{h, cc}
  10487. Fixed comilation error when message digest is disabled.
  10488. * src/MetalinkEntry.{h, cc}
  10489. * src/MetalinkRequestInfo.cc
  10490. Removed srandom and random.
  10491. * src/SimpleRandomizer.h
  10492. Added size() virtual function to DiskAdaptor
  10493. * src/MultiDiskAdaptor.h
  10494. Fixed the bug that causes that files are not opened correctly in
  10495. multi-file torrent.
  10496. * src/TorrentRequestInfo.cc
  10497. * src/MultiDiskAdaptor.cc
  10498. Added SHA256 support
  10499. * src/messageDigest.cc
  10500. * src/Xml2MetalinkProcessor.cc
  10501. Show supported message digest algorithms
  10502. * src/main.cc
  10503. Updated contact info.
  10504. * src/main.cc
  10505. Applied Ross's patch
  10506. * src/a2netcompat.h
  10507. * src/main.cc
  10508. Fixed the bug that prevents a remote metalink from not being processed
  10509. even if '-o foo.metalink' is specified.
  10510. * src/MetalinkRequestInfo.cc
  10511. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Merged Dan's patch:
  10513. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10514. Use va_copy to avoid core dump on amd64:
  10515. * src/SimpleLogger.cc
  10516. Updated contact info.
  10517. * src/main.cc
  10518. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10519. digest is not available.
  10520. * src/MetalinkEntry.h
  10521. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Make a2netcompat.h include a2io.h to fix compilation error:
  10523. * src/a2netcompat.h
  10524. * src/SocketCore.cc: Removed include of a2io.h
  10525. * src/Util.cc: Removed include of a2io.h
  10526. Gather time related functions to a2time.h:
  10527. * src/a2time.h: New file.
  10528. * src/DefaultPeerStorage.cc
  10529. * src/SimpleLogger.cc
  10530. * src/Util.{h, cc}
  10531. * src/SimpleRandomizer.h
  10532. * src/TimeA2.{h,cc}
  10533. * src/DownloadCommand.cc
  10534. * src/main.cc
  10535. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10536. a2netcompat.h:
  10537. * src/NameResolver.cc
  10538. Fixed compilation error without openssl:
  10539. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10540. Added default block to suppress compiler warnings:
  10541. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10542. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10543. MinGW build enhancements. The following files are added:
  10544. * src/gai_strerror.{c,h}
  10545. * src/gettimeofday.{c,h}
  10546. Changes to support the above new files:
  10547. * configure.ac
  10548. * src/Makefile.am
  10549. * src/a2netcompat.h
  10550. * src/TimeA2.cc
  10551. * src/DefaultPeerStorage.cc
  10552. * src/NameResolver.cc: removed mingw_strerror() function.
  10553. * src/SocketCore.cc: removed mingw_strerror() function.
  10554. Miscellaneous MinGW build fixes.
  10555. * src/a2io.h: Use _lseeki64() instead of lseek()
  10556. * src/common.h
  10557. * src/DefaultFileAllocator.cc
  10558. * src/GlowFileAllocator.cc
  10559. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10560. * src/NameResolver.cc
  10561. (callback): Changed int32_t to int.
  10562. (resolve): Changed int32_t to int.
  10563. * src/Platform.cc
  10564. * src/Platform.h
  10565. * test/MultiDiskWriterTest.cc
  10566. * test/PeerMessageUtilTest.cc
  10567. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10568. Other enhancements and fixes.
  10569. * src/HttpRequestCommand.cc
  10570. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10571. * src/SocketCore.cc:
  10572. (error): New function to abstract errno/WSAGetLastError().
  10573. (errorMsg): New function to abstract errno/WSAGetLastError().
  10574. (initiateSecureConnection): Added more detailed error reporting.
  10575. * src/SocketCore.h: Added private variable blocking, to allow
  10576. proper handling of OpenSSL psuedo-errors.
  10577. * src/message.h
  10578. (EX_SSL_INIT_FAILURE)
  10579. (EX_SSL_IO_ERROR)
  10580. (EX_SSL_PROTOCOL_ERROR)
  10581. (EX_SSL_UNKNOWN_ERROR)
  10582. (EX_SSL_CONNECT_ERROR)
  10583. (EX_SOCKET_BLOCKING)
  10584. (EX_SOCKET_NONBLOCKING)
  10585. (EX_SOCKET_UNKNOWN_ERROR)
  10586. * src/Util.cc
  10587. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10588. reserved name.
  10589. (httpGMT): Fixed typo.
  10590. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Merged Ross's win32 patch(manually)
  10592. In the course of merging, following files are added.
  10593. * src/strptime.{h,c}
  10594. * src/libgen.{h,c}
  10595. * src/inet_aton.{h,c}
  10596. * src/Platform.{h,cc}
  10597. * src/localtime_r.{h,c}
  10598. * src/getaddrinfo.{h,c}
  10599. I've gethered network related things, and put them to following file:
  10600. * src/a2netcompat.h
  10601. Also io related things are put to following file:
  10602. * src/a2io.h
  10603. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10604. * src/message.h
  10605. (MSG_ALLOCATION_COMPLETED)
  10606. (EX_TOO_LARGE_FILE)
  10607. (EX_SIZE_MISMATCH)
  10608. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10609. (EX_INVALID_CHUNK_CHECKSUM)
  10610. (EX_INVALID_RANGE_HEADER)
  10611. * src/FileAllocationCommand.cc
  10612. * src/HttpResponse.cc
  10613. * src/RequestGroup.cc
  10614. * src/MultiDiskAdaptor.cc
  10615. * src/OptionHandlerImpl.h
  10616. * src/HttpResponseCommand.cc
  10617. * src/FtpNegotiateCommand.cc
  10618. * src/IteratableChecksumValidator.cc
  10619. * src/SegmentMan.cc
  10620. * src/ChunkChecksumValidator.cc
  10621. Added Randomizer::getRandomNumber(long int)
  10622. * src/Randomizer.h (getRandomNumber)
  10623. * src/SimpleRandomizer.h (getRandomNumber)
  10624. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10625. * src/Util.cc (randomAlpha): Use this new function.
  10626. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10627. Converted int's to in32_t. long long int's are also converted to
  10628. int64_t
  10629. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Fixed the bug that prevents cookies from being sent to the server
  10631. if the domain of cookie is FQDN and starts with ".".
  10632. * src/Cookie.cc (match)
  10633. To add the ability to change peer id.
  10634. * src/DefaultBtContext.h
  10635. (_peerIdPrefix): New variable
  10636. (setPeerIdPrefix): New function.
  10637. * src/torrentRequestInfo.cc
  10638. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10639. DefaultBtContext.
  10640. * src/main.cc (main): Added peer-id-prefix command-line option.
  10641. The usage message is not added yet.
  10642. * src/DefaultBtContext.cc
  10643. (generatePeerId): Use _peerIdPrefix.
  10644. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10645. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Fixed the bug that prevents filename in content-disposition from
  10647. being retrieved when filename is not quoted.
  10648. * src/Util.cc (getContentDispositionFilename)
  10649. Fixed the bug that causes infinate loop and memory leak when file open
  10650. operation failed.
  10651. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10652. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. Fixed the bug that causes segfault when all URIs specified are
  10654. unsupported.
  10655. * src/RequestGroupMan.cc (getInitialCommands)
  10656. Check if RequestGroup::createNextCommand() returns empty list of
  10657. commands.
  10658. * src/RequestGroup.cc (createNextCommand)
  10659. Change log level from info to error so that users can notice that
  10660. an error occurred.
  10661. Fixed the bug that causes segfault when a zero-sized file is
  10662. downloaded.
  10663. * src/BitfieldMan.cc (isAllBitSet)
  10664. Return true if bitfieldLength is 0.
  10665. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. * src/main.cc
  10667. (showUsage): Added 3 usage examples for metalink download.
  10668. Replace MetalinkChunkChecksum with ChunkChecksum.
  10669. * src/MetalinkChunkChecksum.h: Removed.
  10670. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10671. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10672. * src/Xml2MetalinkProcessor.cc
  10673. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10674. * src/MetalinkRequestInfo.cc (execute)
  10675. * Release 0.11.1
  10676. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. Reads URIs from stdin when "-i -" is specified.
  10678. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10679. * src/UriListParser.h, src/UriListParser.cc: New class.
  10680. * src/StreamUriListParser.h: New class.
  10681. * src/FileUriListParser.h: New class.
  10682. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10683. instead of UriFileListParser.
  10684. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Made console readout more readable.
  10686. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10687. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10688. Fix the bug that causes -s option not to work.
  10689. * src/main.cc (main)
  10690. * src/a2algo.h: New file.
  10691. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Create directory structure specified in metalink file.
  10693. * src/RequestGroup.h, src/RequestGroup.cc
  10694. (initAndOpenFile): Create a directory to store files if it does not
  10695. exist.
  10696. (getDir): New function.
  10697. Added ETA and download speed for an individual file to readout.
  10698. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10699. * src/RequestGroup.h
  10700. (calculateDownloadSpeed): New function.
  10701. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Made -S option work with metalink file and provided selective download
  10703. to metalink.
  10704. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10705. (filename): Removed.
  10706. (file): New variable.
  10707. (size): Removed.
  10708. (operator=): Updated.
  10709. (getPath): New function.
  10710. (getLength): New function.
  10711. (toFileEntry): New function.
  10712. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10713. (execute): Use toStream.
  10714. (showFileEntry): Removed.
  10715. * src/MetalinkRequestInfo.h
  10716. (targetFiles): New variable.
  10717. (setTargetFiles): New variable.
  10718. * src/MetalinkRequestInfo.cc
  10719. (execute): Added the ability to print file information included in
  10720. a metalink file.
  10721. Added selective download mode to metalink.
  10722. * src/main.cc
  10723. (showUsage): Updated to denote that -S and --select-file options are
  10724. applicable to metalink.
  10725. * src/FileEntry.h
  10726. (operator=): New function.
  10727. (getBasename): New function.
  10728. (getDirname): New function.
  10729. * src/Util.h, src/Util.cc
  10730. (toStream): New function.
  10731. * src/Xml2MetalinkProcessor.cc: Updated.
  10732. Made aria2 work with metalink with directory structure.
  10733. * src/File.h, src/File.cc
  10734. (getBasename): New function.
  10735. (getDirname): New function.
  10736. * src/RequestGroup.h, src/RequestGroup.cc
  10737. (_topDir): New variable.
  10738. (setTopDir): New function.
  10739. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10740. Rewrote HTTP header parsing with stringstream.
  10741. * src/HttpConnection.h, src/HttpConnection.cc
  10742. (HttpRequestEntry): New class.
  10743. (headerBuf): Removed.
  10744. (headerBufLength): Removed.
  10745. (outstandingHttpRequests): Now its element type is
  10746. HttpRequestEntryHandle.
  10747. (findEndOfHeader): Removed.
  10748. (receiveResponse): Rewritten.
  10749. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10750. Updated doc for -j option to notice that it should be used with -i
  10751. option.
  10752. * src/main.cc (showUsage)
  10753. Removed unused classes.
  10754. * src/RequestInfo.h
  10755. (FileInfo): Removed.
  10756. (checksum): Removed.
  10757. (fileInfo): Removed.
  10758. (setChecksum): Removed.
  10759. (getChecksum): Removed.
  10760. (getFileInfo): Removed.
  10761. Use ISO units.
  10762. * src/ConsoleDownloadEngine.cc
  10763. * src/TorrentConsoleDownloadEngine.cc
  10764. * src/Util.cc (abbrevSize)
  10765. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Added the default listening ports to the help message.
  10767. * src/main.cc (showUsage)
  10768. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Reduce the number of calls to gettimeofday to lower CPU load.
  10770. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10771. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10772. * src/Peer.h (calculateUploadSpeed): New function.
  10773. (calculateDownloadSpeed): New function.
  10774. * src/DefaultPeerStorage.cc
  10775. (CalculateStat): Added _now variable.
  10776. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10777. and Peer::calculateUploadSpeed(const struct timeval&)
  10778. Drop connection if no request or piece message is exchanged in
  10779. a certain interval.
  10780. * src/DefaultBtInteractive.h
  10781. (btRuntime): New variable.
  10782. (inactiveCheckPoint): New variable.
  10783. (checkActiveInteraction): New function.
  10784. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10785. request or piece message is received.
  10786. (checkActiveInteraction): New function.
  10787. (doInteractionProcessing): Call checkActiveInteraction.
  10788. Fixed the bug that causes remote Metalink and Torrent files are not
  10789. processed.
  10790. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10791. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. Changed format of log file.
  10793. * src/SimpleLogger.cc
  10794. * Release 0.11.0
  10795. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10796. * src/AbstractCommand.cc
  10797. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10798. MSG_MAX_TRY from error to info.
  10799. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10800. * src/message.h
  10801. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10802. (MSG_DOWNLOAD_ABORTED): Added %s.
  10803. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10804. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10805. * src/PeerAbstractCommand.cc
  10806. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10807. * src/Request.h
  10808. (cookieBox): Made ShardHandle.
  10809. * src/RequestGroup.h, src/RequestGroup.cc
  10810. (createNextCommandWithAdj): New function.
  10811. * src/FileAllocationCommand.cc
  10812. (executeInternal): Use createNextCommandWithAdj().
  10813. * src/CheckIntegrityCommand.cc
  10814. (executeInternal): Use createNextCommandWithAdj().
  10815. Added --load-cookies command-option.
  10816. * src/OptionHandlerFactory.cc
  10817. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10818. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10819. Now aria2 can handle cookie's expiration date.
  10820. * src/Cookie.h (expires): Changed its type to time_t.
  10821. * src/main.cc: Added --load-cookies command-line option.
  10822. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10823. * src/Util.h, src/Util.cc (httpGMT): New function.
  10824. * src/Request.cc (Request): Initialize cookieBox using
  10825. CookieBoxFactory.
  10826. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10827. * src/CookieParser.h, src/CookieParser.cc: New class.
  10828. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10829. * src/HttpResponseCommand.cc
  10830. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10831. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10832. download.
  10833. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Added -j command-line option.
  10835. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10836. * src/main.cc
  10837. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10838. Rewritten using stringstream.
  10839. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10840. Rewritten using stringstream.
  10841. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. Make download size shown in MB, KB.
  10843. * src/ConsoleDownloadEngine.h (sendStatistics)
  10844. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10845. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Accept incoming connections if download rate is low.
  10847. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10848. (_lowestSpeedLimit): New variable.
  10849. (setLowestSpeedLimit): New function.
  10850. (execute): Accept incoming connections if download rate is low.
  10851. MAX_PEERS is ignored in this case.
  10852. Disable PREF_OUT in multiple concurrent download:
  10853. * src/RequestGroup.h, src/RequestGroup.cc
  10854. (setUserDefinedFilename): New function.
  10855. * src/DownloadEngineFactory.cc
  10856. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10857. concurrent download.
  10858. * src/DefaultSegmentManFactory.cc
  10859. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10860. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10862. Added its overloaded method.
  10863. * src/RequestGroup.h
  10864. (_numConcurrentCommand): New variable.
  10865. (setNumConcurrentCommand): New function.
  10866. * src/RequestGroup.cc
  10867. Abort download if same file is being downloaded concurrently.
  10868. * src/RequestGroup.h, src/RequestGroupMan.cc
  10869. (isSameFileBeingDownloaded): New function.
  10870. * src/HttpResponseCommand.cc (executeInternal)
  10871. * src/FtpNegotiateCommand.cc (recvSize)
  10872. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10873. * main.cc: Added help message for -i option.
  10874. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10876. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10877. * src/MetalinkEntry.h
  10878. (checksum): Changed to ChecksumHandle
  10879. * src/MetalinkRequestInfo.cc
  10880. (checksum): Changed to ChecksumHandle
  10881. * src/File.cc
  10882. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10883. * src/common.h
  10884. (DIR_OPEN_MODE): New definition
  10885. * src/RequestGroup.cc
  10886. (prepareForNextAction): Added an argument.
  10887. * src/message.h
  10888. (MSG_GOOD_CHECKSUM): New definition
  10889. (MSG_BAD_CHECKSUM): New definition
  10890. * src/HttpResponseCommand.cc
  10891. (handleDefaultEncoding): Continue download sequence in new
  10892. non-segmented download.
  10893. * src/FileAllocationEntry.h
  10894. (_nextDownloadCommand): New variable.
  10895. * src/DownloadCommand.cc
  10896. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10897. available.
  10898. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10899. * src/IteratableChecksumValidator.h,
  10900. src/IteratableChecksumValidator.cc: New class.
  10901. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10902. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. Change file mode to 666:
  10904. * src/common.h (OPEN_MODE): New definition.
  10905. * src/File.cc
  10906. * src/Util.cc
  10907. * src/Directry.cc
  10908. * src/AbstractDiskWriter.cc
  10909. Change the level of log message "download aborted" to debug:
  10910. * src/PeerAbstractCommand.cc (execute)
  10911. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10912. * src/TrackerWatcherCommand.cc
  10913. (createCommand): Sleep some seconds after request failed.
  10914. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10915. then abort tracker request.
  10916. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. * Added the simultaneous download feature.
  10918. * src/main.cc: Print "Exception caught: " when exception is caught.
  10919. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10920. * src/ActivePeerConnectionCommand.cc
  10921. * src/PeerInteractionCommand.cc
  10922. * src/BtRuntime.h
  10923. (cuidCounter): Removed.
  10924. (getNewCuid): Removed.
  10925. * src/DownloadEngineFactory.cc
  10926. * src/PeerListenCommand.cc
  10927. * src/TrackerUpdateCommand.cc
  10928. * src/PeerInitiateConnectionCommand.cc
  10929. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. * src/PeerAbstractCommand.cc
  10931. (onAbort): Call PeerStorage::returnPeer()
  10932. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10933. (incomingPeers): New variable.
  10934. (addIncomingPeer): New function.
  10935. (returnPeer): New function.
  10936. (onErasingPeer): New function.
  10937. (addPeer): push_back -> push_front
  10938. (getActivePeers): Rewritten.
  10939. (calculateStat): Rewritten.
  10940. * src/PeerStorage.h
  10941. (TransferStat::copy): New function.
  10942. (TransferStat::TransferStat): New function.
  10943. (TransferStat::operator=): New function.
  10944. (addIncomingPeer): New function.
  10945. (returnPeer): New function.
  10946. * src/PeerListenCommand.cc
  10947. (execute): Use PeerStorage::addIncomingPeer() instead of
  10948. Peer::addPeer().
  10949. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. Connect to a peer actively when download speed is lower than specified
  10951. speed in torrent download:
  10952. * src/ActivePeerConnectionCommand.h: New class.
  10953. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10954. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10955. * src/main.cc: Fixed the bug that prevents download if .netrc
  10956. doesn't exist.
  10957. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. To cache resolved hostname:
  10959. * src/AbstractCommand.h, src/AbstractCommand.cc
  10960. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10961. Added dns cache.
  10962. * src/FtpInitiateConnectionCommand.cc
  10963. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10964. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10965. NameResolver working without ares.
  10966. * src/TorrentRequestInfo.cc
  10967. (execute): Don't cache dns in torrent download.
  10968. * src/HttpInitiateConnectionCommand.cc
  10969. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10970. * src/DNSCache.h: New class.
  10971. * src/UrlRequestInfo.cc
  10972. (execute): Use dns cache.
  10973. In http request, suppress port number in http request header if port
  10974. is 80 or 443:
  10975. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10976. request header if port is 80 or 443.
  10977. (createProxyRequest): Allways send port number.
  10978. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. To add the command-line option which disables netrc support:
  10980. * src/OptionHandlerFactory.cc
  10981. (createOptionHandlers): Added PREF_NO_NETRC.
  10982. * src/main.cc: Added -n option.
  10983. * src/prefs.h (PREF_NO_NETRC): New definition.
  10984. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10985. V_TRUE.
  10986. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10987. is V_FALSE. This may get configurable in the future release.
  10988. To clear peer's error status by time basis:
  10989. * src/PeerAbstractCommand.cc
  10990. (onAbort): Call Peer::startBadCondition().
  10991. * src/Peer.h, src/Peer.cc
  10992. (error): Removed.
  10993. (_badConditionStartTime): New variable.
  10994. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10995. (startBadCondition): New function.
  10996. (isGood): New function.
  10997. * src/DefaultPeerStorage.cc
  10998. (addPeer): Use Peer::isGood().
  10999. (FindFinePeer): Use Peer::isGood().
  11000. Always include port number in http request header:
  11001. * src/HttpRequest.cc (getHostText): Always include port number in
  11002. http request header.
  11003. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. To the ability to read options from a config file:
  11005. * src/main.cc: Command-line parameter validation is delegated to
  11006. OptionHandler class.
  11007. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11008. * src/Option.h, src/Option.cc (clear): New function.
  11009. * src/OptionParser.h, src/OptionParser.cc: New class.
  11010. * src/OptionHandler.h: New class.
  11011. * src/NameMatchOptionHandler.h: New class.
  11012. * src/OptionHandlerImpl.h: New classes.
  11013. * src/prefs.h: '_' -> '-'
  11014. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11015. (FTP_PASV): New definition.
  11016. * src/Util.h, src/Util.cc (getRealSize): New function.
  11017. To disable netrc support if .netrc file does not have correct
  11018. permissions:
  11019. * src/File.h, src/File.cc (mode): New function.
  11020. To prevent confidential information to be logged:
  11021. * src/HttpConnection.h, src/HttpConnection.cc
  11022. (eraseConfidentialInfo): New function.
  11023. (sendRequest): Call eraseConfidentialInfo().
  11024. (sendProxyRequest): Call eraseConfidentialInfo().
  11025. * src/main.cc: Validate permissions of .netrc file.
  11026. To add --user-agent command-line option:
  11027. * src/main.cc: Added new command line option: --user-agent
  11028. * src/prefs.h (PREF_USER_AGENT): New definition.
  11029. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11030. parameter to HttpRequest object.
  11031. * src/AbstractProxyRequestCommand.cc
  11032. (executeInternal): Set user-agent option parameter to HttpRequest
  11033. object.
  11034. Marged the patches from Dan Fandrich.
  11035. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11036. Use filename and size from Metalink file instead of sending HEAD
  11037. request:
  11038. * src/UrlRequestInfo.h
  11039. (_filename): New variable.
  11040. (_totalLength): New variable.
  11041. (setTotalLength): New variable.
  11042. (setFilename): New variable.
  11043. * src/MetalinkRequestInfo.cc
  11044. (execute): Set filename and size to UrlRequestInfo
  11045. * src/UrlRequestInfo.cc
  11046. (execute): Use filename and size from Metalink instead of seding
  11047. HEAD request to servers.
  11048. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11049. To add the ability to resume downloading a partially downloaded file
  11050. which is downloaded from the beginning:
  11051. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11052. takes this role.
  11053. * src/main.cc: Added -c option.
  11054. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11055. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11056. * src/prefs.h (PREF_CONTINUE): New definition.
  11057. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11058. * src/DefaultDiskWriter.cc
  11059. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11060. * src/AbstractDiskWriter.h
  11061. (glowFileAllocator): New variable.
  11062. * src/AbstractDiskWriter.cc
  11063. (openExistingFile): Now preallocate file space from the end of the
  11064. existing file if totalLength argument is specified and grater than 0.
  11065. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11066. to download exists in local, continue the download of the file.
  11067. --allow-overwrite=true is assumed in this context.
  11068. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11069. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11070. Throw exception if --check-integrity=true is specified but chunk
  11071. checksums are not provided:
  11072. * src/UrlRequestInfo.cc
  11073. Do not print URLs to stdout:
  11074. * src/UrlRequestInfo.cc
  11075. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. * src/Request.h: Use AuthResolver to get authentication information.
  11077. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11078. set to RequestFactory object.
  11079. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11080. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11081. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11082. create Request object.
  11083. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11084. To integrate Netrc into exsiting classes:
  11085. * src/Request.h
  11086. (_userDefinedAuthConfig): New variable.
  11087. (findNetrcAuthenticator): New function.
  11088. (segment): Removed.
  11089. (setUserDefinedAuthConfig): New function.
  11090. (resolveHttpAuthConfigItem): New function.
  11091. (resolveFtpAuthConfigItem): New function.
  11092. (resolveHttpProxyAuthConfigItem): New function.
  11093. * src/HttpRequest.h
  11094. (authConfig): Removed.
  11095. (proxyAuthConfig): Removed.
  11096. (setAuthConfig): Removed.
  11097. (setProxyAuthConfig): Removed.
  11098. * src/UrlRequest.h
  11099. (getHeadResult): Added a parameter: authConfigHandle
  11100. * src/common.h
  11101. (SingletonHolder.h): New include.
  11102. * src/main.cc
  11103. (Netrc.h): New include.
  11104. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11105. Added initial value of PREF_NETRC_PATH.
  11106. Added the initialization of netrc.
  11107. * src/AuthConfig.h: New class.
  11108. * src/prefs.h
  11109. (PREF_NETRC_PATH): New definition.
  11110. * src/HttpAuthConfig.h: Removed.
  11111. * src/Netrc.cc
  11112. (getRequiredNextToken): New function.
  11113. (skipMacdef): New function.
  11114. (parse): Rewritten.
  11115. * src/Netrc.h
  11116. (getRequiredNextToken): New function.
  11117. (skipMacdef): New function.
  11118. * src/Util.h, src/Util.cc
  11119. (getHomeDir): New function.
  11120. * src/TrackerWatcherComand.cc
  11121. (createRequestCommand): Use AuthConfig.
  11122. * src/FtpConnection.cc
  11123. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11124. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11125. * src/Request.cc
  11126. (findNetrcAuthenticator): New function.
  11127. (resolveHttpAuthConfigItem): New function.
  11128. (resolveFtpAuthConfigItem): New function.
  11129. (resolveHttpProxyAuthConfigItem): New function.
  11130. * src/UrlRequestInfo.cc: Use AuthConfig.
  11131. * src/HttpRequest.cc
  11132. (createRequest): Use authConfig.
  11133. (getProxyAuthString): Use authConfig.
  11134. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11135. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11136. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11137. To reduce overhead to find commands whose socket is either
  11138. readable or writable in the download engine loop:
  11139. * src/Command.h, src/Command.cc
  11140. (STATUS): New enum.
  11141. (status): New variable.
  11142. (statusMatch): New function.
  11143. (setStatusActive): New function.
  11144. (setStatusInactive): New function.
  11145. * src/DownloadEngine.h, src/DownloadEngine.cc
  11146. (executeCommand): New function.
  11147. (run): Simplified.
  11148. (waitData): Call Command::setStatusActive() when command's socket is
  11149. readable or writable.
  11150. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. To handle Segment as SegmentHandle:
  11152. * src/AbstractCommand.cc (execute): Rewritten.
  11153. * src/SegmentMan.h: Segment -> SegmentHandle
  11154. Introducded HttpResponse class, HttpRequest class to improve code
  11155. extensiveness and make it clear:
  11156. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11157. HttpResponse class.
  11158. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11159. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11160. * src/HttpConnection.cc: Contruction of http request were moved to
  11161. HttpRequest class.
  11162. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11163. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11164. * src/HttpAuthConfig.h: New class.
  11165. * src/Range.h: New class.
  11166. To make FtpTunnel{Request, Response}Command and
  11167. HttpProxy{Request, Response}Command derived from
  11168. AbstractProxy{Request, Response}Command:
  11169. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11170. Derived from AbstractProxyRequestCommand class.
  11171. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11172. Derived from AbstractProxyResponseCommand class.
  11173. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11174. Derived from AbstractProxyRequestCommand class.
  11175. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11176. Derived from AbstractProxyResponseCommand class.
  11177. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11178. : New class.
  11179. * src/AbstractProxyResponseCommand.h,
  11180. src/AbstractProxyResponseCommand.cc: New class.
  11181. To add netrc support:
  11182. * src/Netrc.h, src/Netrc.cc: New class.
  11183. * src/Util.h, src/Util.cc (split): New function.
  11184. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11185. "Content-Range" header instead of "Range" header.
  11186. * src/HttpHeader.h
  11187. (getStatus): Removed.
  11188. (setStatus): Removed.
  11189. * src/Segment.h
  11190. (getPositionToWrite): New function.
  11191. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. * src/HttpHeader.h
  11193. (Range.h): New include.
  11194. (status): New variable.
  11195. (HttpHeader): Initialized status with 0.
  11196. (getStatus): New function.
  11197. (setStatus): New function.
  11198. (getRange): New function.
  11199. (HttpHeaderHandle): New function.
  11200. * src/HttpHeader.cc
  11201. (getRange): New function.
  11202. * src/Request.h
  11203. (RequestWeakHandle): New definition.
  11204. * src/HttpConnection.h
  11205. (HttpConnectionHandle): New type definition.
  11206. * src/HttpConnection.cc
  11207. (receiveResponse): Set HTTP status to headers.
  11208. * src/main.cc
  11209. (showUsage): Fixed typo.
  11210. * src/Segment.h
  11211. (SegmentHandle): New type definition.
  11212. * src/BitfieldMan.h
  11213. (getMissingUnusedLength): New function.
  11214. * src/BitfieldMan.cc
  11215. (getMissingUnusedLength): New function.
  11216. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. To fix static initialization order problem:
  11218. * src/BitfieldManFactory.h
  11219. (defaultRandomizer): Removed.
  11220. (factory): New variable.
  11221. (getNewFactory): Removed.
  11222. (getFactoryInstance): New function.
  11223. (setDefaultRandomizer): Rewritten.
  11224. (getDefaultRandomizer): Rewritten.
  11225. * src/BitfieldManFactory.cc
  11226. (defaultRandomizer): Removed.
  11227. (factory): Initialized to 0.
  11228. (BitfieldManFactory): Initialized randomizer to 0.
  11229. * src/DefaultPieceStorage.cc
  11230. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11231. * src/Peer.cc
  11232. (Peer): getNewFactory() -> getFactoryInstance()
  11233. * src/SegmentMan.cc
  11234. (initBitfield): getNewFactory() -> getFactoryInstance()
  11235. * src/Piece.cc
  11236. (Piece): getNewFactory() -> getFactoryInstance()
  11237. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. To fix the bug that causes crash on Max OS X:
  11239. * src/SimpleRandomizer.h
  11240. (getInstance): Create new instance if the static variable is null.
  11241. * src/SimpleRandomizer.cc
  11242. (randomizer): Initialized to 0.
  11243. * src/BitfieldManFactory.h
  11244. (getNewFactory): Removed the call to setRandomizer().
  11245. To fix the miscalculation of the range of checksum:
  11246. * src/BitfieldMan.h
  11247. (isBitSetOffsetRange): New function.
  11248. * src/BitfieldMan.cc
  11249. (isBitSetOffsetRange): New function.
  11250. * src/SegmentMan.cc
  11251. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11252. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11253. * Release 0.10.1
  11254. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. To lower CPU usage in BitTorrent download when --max-upload-limit
  11256. command-line option specified:
  11257. * src/DefaultBtMessageDispatcher.cc
  11258. (sendMessages): Calculate uploading speed only when current message
  11259. is uploading data and is not sent yet.
  11260. * src/DefaultPeerStorage.h
  11261. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11262. * src/HttpResponseCommand.cc
  11263. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11264. This fixes compile error in Soralis 10.
  11265. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11266. To fix segfault in Metalink download:
  11267. * src/UrlRequestInfo.h
  11268. (filename): Removed.
  11269. (totalLength): Removed.
  11270. (setTotalLength): Removed.
  11271. (setFilename): Removed.
  11272. * src/MetalinkRequestInfo.cc
  11273. (execute): Do not set filename and totalLength to reqInfo.
  11274. Set chunk checksum to reqInfo if it is not null.
  11275. * src/HttpResponseCommand.cc
  11276. (executeInternal): Fixed filename in log.
  11277. (handleDefaultEncoding): Removed the call to initBitfield() and
  11278. markAllPiecesDone().
  11279. (handleOtherEncoding): Added HEAD method handling.
  11280. * src/FtpNegotiateCommand.cc
  11281. (executeInternal): Added SEQ_HEAD_OK handling.
  11282. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11283. return false.
  11284. * src/FtpNegotiateCommand.h
  11285. (SEQ_HEAD_OK): New definition.
  11286. * src/SegmentMan.cc
  11287. (initBitfield): Delete bitfield.
  11288. (isChunkChecksumValidationReady): Fixed the condition.
  11289. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11290. works fine.
  11291. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. * src/Xml2MetalinkProcessor.h
  11293. (xpathExists): New function.
  11294. * src/Xml2MetalinkProcessor.cc
  11295. (xpathExists): New function.
  11296. Not to send HEAD request if filename and size are available in Metalink
  11297. file:
  11298. * src/UrlRequestInfo.h
  11299. (filename): New variable.
  11300. (totalLength): New variable.
  11301. (setTotalLength): New function.
  11302. (setFilename): New function.
  11303. * src/MetalinkRequestInfo.cc
  11304. (execute): Set filename and size to UrlRequestInfo.
  11305. * src/MetalinkEntry.cc
  11306. (MetalinkEntry): Initialize size with 0.
  11307. * src/UrlRequestInfo.cc
  11308. (execute): Set filename and size to SegmentMan.
  11309. Not to download rest of the files after selected files are downloaded
  11310. in BitTorrent:
  11311. * src/PieceStorage.h
  11312. (allDownloadFinished): New function.
  11313. * src/DefaultBtAnnounce.cc
  11314. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11315. downloadFinished.
  11316. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11317. * src/DefaultPieceStorage.cc
  11318. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11319. Commented out the call to finishSelectiveDownloadingMode().
  11320. (downloadFinished): Call isFilteredAllBitSet() instead of
  11321. isAllBitSet().
  11322. (allDownloadFinished): New function.
  11323. * src/DefaultBtInteractive.cc
  11324. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11325. downloadFinished().
  11326. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11327. * src/TorrentDownloadEngine.cc
  11328. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11329. * src/BitfieldMan.h
  11330. (isFilteredAllBitSet): New function.
  11331. * src/ShareRatioSeedCriteria.h
  11332. (PieceStorage.h): New include.
  11333. (pieceStorage): New variable.
  11334. (evaluate):
  11335. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11336. * src/BitfieldMan.cc
  11337. (isFilteredAllBitSet): New function.
  11338. (isAllBitSet): Filter is not took into account.
  11339. Rename --force-truncate as --allow-overwrite:
  11340. * src/TorrentRequestInfo.cc
  11341. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11342. * src/main.cc
  11343. (showUsage): --force-truncate -> --allow-overwrite
  11344. * src/message.h
  11345. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11346. * src/prefs.h
  11347. (PREF_FORCE_TRUNCATE): Removed.
  11348. (PREF_ALLOW_OVERWRITE): New definition.
  11349. * src/SegmentMan.cc
  11350. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11351. * src/MetalinkRequestInfo.cc
  11352. (execute): Queueing message are now logged in info level.
  11353. * src/common.h
  11354. (LONG_LONG_MAX): Removed.
  11355. (LONG_LONG_MIN): Removed.
  11356. * src/HttpResponseCommand.cc
  11357. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11358. * src/FtpNegotiateCommand.cc
  11359. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11360. * src/main.cc
  11361. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11362. command-line option.
  11363. (main): Added --check-integriy and --realtime-chunk-checksum
  11364. command-line option.
  11365. --force-truncate -> --allow-overwrite
  11366. Set initial value of --check-integrity option to false.
  11367. Don't show usage when error occurs while persing command-line options.
  11368. Removed deprecated --upload-limit option.
  11369. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11371. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11372. * src/BtAllowedFastMessage.cc:
  11373. * src/BtBitfieldMessage.cc
  11374. * src/BtCancelMessage.cc
  11375. * src/BtChokeMessage.cc
  11376. * src/BtHaveAllMessage.cc
  11377. * src/BtHaveMessage.cc
  11378. * src/BtHaveNoneMessage.cc
  11379. * src/BtInterestedMessage.cc
  11380. * src/BtNotInterestedMessage.cc
  11381. * src/BtPieceMessage.cc
  11382. * src/BtPortMessage.cc
  11383. * src/BtRejectMessage.cc
  11384. * src/BtRequestMessage.cc
  11385. * src/BtSuggestPieceMessage.cc
  11386. * src/BtUnchokeMessage.cc
  11387. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11388. files are affected.
  11389. * src/ChunkChecksumValidator.cc
  11390. * src/SegmentMan.cc
  11391. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11392. To add chunk checksum validation:
  11393. * src/MetalinkEntry.h
  11394. (MetalinkChunkChecksum.h): New include.
  11395. (chunkChecksum): New variable.
  11396. * src/Request.h
  11397. (method): New variable.
  11398. (setMethod): New function.
  11399. (getMethod): New function.
  11400. (METHOD_GET): New static constant.
  11401. (METHOD_HEAD): New static constant.
  11402. * src/Xml2MetalinkProcessor.h
  11403. (getPieceHash): New function.
  11404. * src/PieceStorage.h
  11405. (markAllPiecesDone): New function.
  11406. (checkIntegrity): New function.
  11407. * src/FileAllocator.h
  11408. (NullFileAllocationMonitor.h): New include.
  11409. (FileAllocator): Initialize fileAllocationMonitor with new
  11410. NullFileAllocationMonitor().
  11411. * src/MultiDiskAdaptor.h
  11412. (messageDigest.h): Remove include.
  11413. (ctx): Removed.
  11414. (hashUpdate): Added ctx.
  11415. (MultiDiskAdaptor): Removed ctx.
  11416. (sha1Sum): Renamed as messageDigest.
  11417. (messageDigest): New function.
  11418. * src/UrlRequestInfo.h
  11419. (HeadResult): New class.
  11420. (digestAlgo): New variable.
  11421. (chunkChecksumLength): New variable.
  11422. (chunkChecksums): New variable.
  11423. (getHeadResult): New function.
  11424. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11425. (setDigestAlgo): New function.
  11426. (setChunkChecksumLength): New function.
  11427. (setChunkChecksums): New function.
  11428. * src/DefaultPieceStorage.cc
  11429. (DiskAdaptorWriter.h): New include.
  11430. (ChunkChecksumValidator.h): New include.
  11431. (markAllPiecesDone): New function.
  11432. (checkIntegrity): New function.
  11433. * src/DefaultBtContext.h
  11434. (getPieceHashes): New function.
  11435. * src/TorrentRequestInfo.cc
  11436. (execute): Try to validate chunk checksum if file already exists and
  11437. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11438. * src/messageDigest.h
  11439. (~MessageDigestContext): Added digestFree().
  11440. * src/MetalinkRequestInfo.cc
  11441. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11442. * src/DiskAdaptor.h
  11443. (messageDigest.h): New include.
  11444. (sha1Sum): Renamed as messageDigest.
  11445. (messageDigest): New function.
  11446. * src/DownloadCommand.h
  11447. (PeerStat.h): New include.
  11448. (maxDownloadSpeedLimit): New variable.
  11449. (startupIdleTime): New variable.
  11450. (lowestDownloadSpeedLimit): New variable.
  11451. (peerStat): New variable.
  11452. (setMaxDownloadSpeedLimit): New function.
  11453. (setStartupIdleTime): New function.
  11454. (setLowestDownloadSPeedLimit): New function.
  11455. * src/BtContext.h
  11456. (getPieceHashes): New function.
  11457. * src/main.cc
  11458. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11459. option to true for testing purpose.
  11460. * src/BtPieceMessage.cc
  11461. (checkPieceHash): Use messageDigest
  11462. * src/DownloadEngine.cc
  11463. (SetDescriptor): Removed.
  11464. (AccumulateActiveCommand): Removed.
  11465. (waitData): Rewritten.
  11466. (updateFdSet): Rewritten.
  11467. * src/MultiDiskAdaptor.cc
  11468. (hashUpdate): Added ctx.
  11469. (sha1Sum): Renamed as messageDigest.
  11470. (messageDigest): New function.
  11471. * src/BitfieldMan.h
  11472. (isBitRangeSet): New function.
  11473. (unsetBitRange): New function.
  11474. * src/ByteArrayDiskWriter.h
  11475. (sha1Sum): Renamed as messageDigest.
  11476. (messageDigest): New function.
  11477. * src/ConsoleDownloadEngine.cc
  11478. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11479. * src/DiskWriter.h
  11480. (messageDigest.h): New include.
  11481. (sha1Sum): Renamed as messageDigest.
  11482. (messageDigest): New function.
  11483. * src/ChunkChecksumValidator.h: New class.
  11484. * src/DiskAdaptorWriter.h: New class.
  11485. * src/prefs.h
  11486. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11487. (PREF_CHECK_INTEGRITY): New definition.
  11488. * src/HttpResponseCommand.cc
  11489. (handleDefaultEncoding): Added method "HEAD" handling.
  11490. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11491. (handleOtherEncoding):
  11492. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11493. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11494. startupIdleTime, lowestDownloadSpeedLimit to command.
  11495. * src/SegmentMan.h
  11496. (getSegmentEntryByIndex): New function.
  11497. (getSegmentEntryByCuid): New function.
  11498. (getSegmentEntryIteratorByCuid): New function.
  11499. (diskWriter): DiskWriter -> DiskWriterHandle
  11500. (pieceHashes): New variable.
  11501. (chunkHashLength): New variable.
  11502. (digestAlgo): New variable.
  11503. (FindPeerStat): Removed.
  11504. (getPeerStat): Rewritten.
  11505. (markAllPiecesDone): New function.
  11506. (checkIntegrity): New function.
  11507. (tryChunkChecksumValidation): New function.
  11508. (isChunkChecksumValidationReady): New function.
  11509. * src/BitfieldMan.cc
  11510. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11511. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11512. blocks to 0.
  11513. (isBitRangeSet): New function.
  11514. (unsetBitRange): New function.
  11515. * src/FtpNegotiateCommand.cc
  11516. (executeInternal): Set maxDownloadSpeedLimit,
  11517. startupIdleTime, lowestDownloadSpeedLimit to command.
  11518. (recvSize): Added method "HEAD" handling.
  11519. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11520. * src/AbstractSingleDiskAdaptor.cc
  11521. (sha1Sum): Renamed as messageDigest.
  11522. (messageDigest): New function.
  11523. * src/AbstractSingleDiskAdaptor.h
  11524. (sha1Sum): Renamed as messageDigest.
  11525. (messageDigest): New function.
  11526. * src/Util.h
  11527. (indexRange): New function.
  11528. * src/MetalinkEntry.cc
  11529. (MetalinkEntry): Initialized chunkChecksum to 0.
  11530. * src/ShaVisitor.cc
  11531. (~ShaVisitor): Removed the call to ctx.digestFree().
  11532. * src/SegmentMan.cc
  11533. (ChunkChecksumValidator.h): New include.
  11534. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11535. to DIGEST_ALGO_SHA1.
  11536. (~SegmentMan): Removed diskWriter.
  11537. (FindSegmentEntryByIndex): Removed.
  11538. (FindSegmentEntryByCuid): Removed.
  11539. (checkoutSegment): Rewritten.
  11540. (findSlowerSegmentEntry): Rewritten.
  11541. (getSegment): Rewritten.
  11542. (updateSegment): Rewritten.
  11543. (completeSegment): Rewritten.
  11544. (markAllPiecesDone): New function.
  11545. (checkIntegrity): New function.
  11546. (isChunkChecksumValidationReady): New function.
  11547. (tryChunkChecksumValidation): New function.
  11548. * src/Xml2MetalinkProcessor.cc
  11549. (getEntry): Get size and set it to entry.
  11550. Get chunk checksum and set it to entry.
  11551. (getPieceHash): New function.
  11552. * src/Util.cc
  11553. (sha1Sum): Removed ctx.digestFree()
  11554. (fileChecksum): Removed ctx.digestFree()
  11555. (indexRange): New function.
  11556. * src/Request.cc
  11557. (METHOD_GET): New variable.
  11558. (METHOD_HEAD): New variable.
  11559. (Request): Added method.
  11560. * src/UrlRequestInfo.cc
  11561. (FatalException.h): New include.
  11562. (message.h): New include.
  11563. (operator<<): Added operator<< for class HeadResult.
  11564. (getHeadResult): New function.
  11565. (execute): Get filename and size in separate download engine.
  11566. * src/ChunkChecksumValidator.cc: New class.
  11567. * src/DownloadCommand.cc:
  11568. (DownloadCommand): Added peerStat.
  11569. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11570. the value from Option.
  11571. The buffer size is now 16KB.
  11572. Use peerStat member instead of getting it from SegmentMan.
  11573. Use startupIdleTime member instead of gettingit from Option.
  11574. Added chunk checksum validation.
  11575. * src/AbstractDiskWriter.cc
  11576. (AbstractDiskWriter): Removed ctx.
  11577. (~AbstractDiskWriter): Removed ctx.digestFree()
  11578. (writeDataInternal): Returns the return value of write.
  11579. (readDataInternal): Returns the return value of read.
  11580. (sha1Sum): Renamed as messageDigest
  11581. (messageDigest): New function.
  11582. * src/AbstractDiwkWriter.h
  11583. (messageDigest.h): Removed include.
  11584. (ctx): Removed.
  11585. (sha1Sum): Renamed as messageDigest
  11586. (messageDigest): New function.
  11587. * src/DefaultPieceStorage.h
  11588. (markAllPiecesDone): New function.
  11589. (checkIntegrity): New function.
  11590. * src/NullFileAllocationMonitor.h: New class.
  11591. * src/MetalinkChunkChecksum.h: New class.
  11592. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11593. To decrease CPU usage in bittorrent download, calculation results in
  11594. BitfieldMan were cached and realtime fetching PeerObject was removed
  11595. with WeakHandle introduced. Option values are set to the objects
  11596. by setter before download begins.
  11597. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11598. * src/DefaultBtRequestFactory.h
  11599. (dispatcher): BtMessageDispatcherHandle ->
  11600. BtMessageDispatcherWeakHandle.
  11601. (messageFactory): New variable.
  11602. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11603. BtMessageDispatcherWeakHandle.
  11604. (setBtMessageFactory): New function.
  11605. * src/DefaultBtMessageDispatcher.cc:
  11606. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11607. from Option.
  11608. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11609. feating the value from Option.
  11610. Use messageFactory member.
  11611. * src/PeerInteractionCommand.cc
  11612. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11613. Add reverse dependencies to factory object.
  11614. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11615. dispatcher.
  11616. Set messageFactory to receiver.
  11617. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11618. btInteractive.
  11619. Set receiver to peerObject.
  11620. Set maxDownloadSpeedLimit to this.
  11621. (executeInternal): Use maxDownloadSpeedLimit member.
  11622. * src/BtChokeMessage.cc
  11623. (doReceivedAction): Use dispatcher, requestFactory member.
  11624. (onSendComplete): Use dispatcher member.
  11625. * src/PeerInteractionCommand.h
  11626. (maxDownloadSpeedLimit): New variable.
  11627. * src/DefaultBtMessageReceiver.h
  11628. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11629. (dispatcher):
  11630. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11631. (messageFactory): New variable.
  11632. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11633. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11634. (setDispatcher):
  11635. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11636. (setBtMessageFactory): New function.
  11637. * src/DefaultBtInteractive.cc
  11638. (initiateHandshake): Use messageFactory member.
  11639. (addBitfieldMessageToQueue): Use messageFactory member.
  11640. (addAllowedFastMessageToQueue): Use messageFactory member.
  11641. (decideChoking): Use messageFactory member.
  11642. (checkHave): Use messageFactory member.
  11643. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11644. (receiveMessages): Use maxDownloadSpeedLimit member.
  11645. (decideInterest): Use messageFactory member.
  11646. * src/BtRequestMessage.cc
  11647. (doReceivedAction): Use messageFactory, dispatcher member.
  11648. (onQueued): Use dispatcher member.
  11649. * src/BtPieceMessage.cc
  11650. (doReceivedAction): Use dispatcher member.
  11651. (send): Use peerConnection member.
  11652. (onWrongPiece): Use requestFactory member.
  11653. (handleChokingEvent): Use messageFactory, dispatcher member.
  11654. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11655. * src/BtMessageDispatcher.h
  11656. (BtMessageDispatcherWeakHandle): New type definition.
  11657. * src/SimpleBtMessage.cc
  11658. (send): Use peerConnection member.
  11659. * src/BtRejectMessage.cc
  11660. (doReceivedAction): Use dispatcher member.
  11661. * src/DefaultBtMessageDispatcher.h
  11662. (Option.h): Removed include.
  11663. (messageFactory): New variable.
  11664. (option): Removed.
  11665. (maxUploadSpeedLimit): New variable.
  11666. (requestTimeout): New variable.
  11667. (DefaultBtMessageDispatcher): Removed option.
  11668. Added maxUploadSpeedLimit, requestTimeout.
  11669. (setOption): Removed.
  11670. (getOption): Removed.
  11671. (setMaxUploadSpeedLimit): New function.
  11672. (setRequestTimeout): New function.
  11673. (setBtMessageFactory): New function.
  11674. * src/DefaultBtInteractive.h
  11675. (btMessageReceiver):
  11676. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11677. (dispatcher):
  11678. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11679. (btRequestFactory):
  11680. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11681. (peerConnection):
  11682. PeerConnectionHandle -> PeerConnectionWeakHandle
  11683. (messageFactory): New variable.
  11684. (option): Removed.
  11685. (keepAliveInterval): New variable.
  11686. (maxDownloadSpeedLimit): New variable.
  11687. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11688. (setBtMessageReceiver):
  11689. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11690. (setDispatcher):
  11691. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11692. (setBtRequestFactory):
  11693. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11694. (setPeerConnection):
  11695. PeerConnectionHandle -> PeerConnectionWeakHandle
  11696. (setOption): Removed.
  11697. (setKeepAliveInterval): New function.
  11698. (setMaxDownloadSpeedLimit): New function.
  11699. (setBtMessageFactory): New function.
  11700. * src/BitfieldMan.h
  11701. (cachedNumMissingBlock): New variable.
  11702. (cachedNumFilteredBlock): New variable.
  11703. (cachedCompletedLength): New variable.
  11704. (cachedFilteredComletedLength): New variable.
  11705. (cachedFilteredTotalLength): New variable.
  11706. (countMissingBlockNow): New function.
  11707. (countFilteredBlockNow): New function.
  11708. (getFilteredTotalLengthNow): New function.
  11709. (getCompletedLengthNow): New function.
  11710. (getFilteredCompletedLengthNow): New function.
  11711. (updateCache): New function.
  11712. * src/AbstractBtMessage.h
  11713. (BtMessageDispatcher.h): New include.
  11714. (PeerConnection.h): New include.
  11715. (BtRequestFactory.h): New include
  11716. (BtMessageFactory.h): New include.
  11717. (dispatcher): New variable.
  11718. (messageFactory): New variable.
  11719. (peerConnection: New variable.
  11720. (setBtMessageDispatcher): New function.
  11721. (setPeerConnection): New function.
  11722. (setBtMessageFactory): New function.
  11723. (setBtRequestFactory): New function.
  11724. * src/DefaultBtMessageFactory.cc
  11725. (setCommonProperty): Set dispatcher, requestFactory, this,
  11726. peerConnection to msg.
  11727. * src/BtRegistry.h
  11728. (BT_MESSAGE_RECEIVER): New macro.
  11729. * src/PeerConnection.h
  11730. (PeerConnectionWeakHandle): New type definition.
  11731. * src/BtMessageFactory.h
  11732. (BtMessageFactoryWeakHandle): New type definition.
  11733. * src/BitfieldMan.cc
  11734. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11735. cachedCompletedLength, cachedFilteredComletedLength,
  11736. cachedFilteredTotalLength.
  11737. Call updateCache().
  11738. (countMissingBlock): Return cachedNumMissingBlock.
  11739. (countMissingBlockNow): New function.
  11740. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11741. (countFilteredBlockNow): New function.
  11742. (setBit): Call updateCache().
  11743. (unsetBit): Call updateCache().
  11744. (setBitfield): Call updateCache().
  11745. (clearAllBit): Call updateCache().
  11746. (setAllBit): Use setBitInternal instead of setBit.
  11747. Call updateCache().
  11748. (addFilter): Call updateCache().
  11749. (enableFilter): Call updateCache().
  11750. (disableFilter): Call updateCache().
  11751. (clearFilter): Call updateCache().
  11752. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11753. (getFilteredTotalLengthNow): New function.
  11754. (getCompletedLength): Return cachedCompletedLength.
  11755. (getCompletedLengthNow): New function.
  11756. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11757. (getFilteredCompletedLengthNow): New function.
  11758. (updateCache): New function.
  11759. * src/BtMessageReceiver.h
  11760. (BtMessageReceiverWeakHandle): New type definition.
  11761. * src/DefaultBtMessageReceiver.cc
  11762. (receiveHandshake): Use messageFactory member.
  11763. (sendHandshake): Use messageFactory member.
  11764. (receiveMessage): Use messageFactory member.
  11765. * src/DefaultBtMessageFactory.h
  11766. (dispatcher): New variable.
  11767. (requestFactory): New variable.
  11768. (peerConnection): New variablle.
  11769. (setBtMessageDispatcher): New function.
  11770. (setBtRequestFactory): New function.
  11771. (setPeerConnection): New function.
  11772. * src/SharedHandle.h
  11773. (RefCount): New class.
  11774. (WeakHandle): New class.
  11775. * src/PeerObject.h
  11776. (BtMessageReceiver.h): New include.
  11777. (PeerObject): Added btMessageReceiver.
  11778. (btMessageReceiver): New variable.
  11779. * src/Util.cc
  11780. (countBit): Simplified.
  11781. * src/BtCancelMessage.cc
  11782. (doReceivedAction): Use dispatcher member.
  11783. * src/BtRequestFactory.h
  11784. (BtRequestFactoryWeakHandle): New type definition.
  11785. * src/PeerStorage.h
  11786. (downloadSpeed): int -> uint32_t
  11787. (uploadSpeed): int -> uint32_t
  11788. (sessionDownloadLength): long long int -> uint64_t
  11789. (sessionUploadLength): long long int -> uint64_t
  11790. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11791. To add RecoverableException, FatalException:
  11792. * src/AbstractCommand.cc
  11793. (onAbort): Exception -> RecoverableException
  11794. * src/PeerAbstractCommand.h
  11795. (RecoverableException.h): New include.
  11796. (onAbort): Exception -> RecoverableException.
  11797. * src/PeerInteractionCommand.cc
  11798. (onAbort): Exception -> RecoverableException.
  11799. * src/PeerAbstractCommand.cc
  11800. (execute): Exception -> RecoverableException.
  11801. (onAbort): Exception -> RecoverableException.
  11802. * src/TorrentRequestInfo.cc
  11803. (execute): Exception -> RecoverableException.
  11804. * src/MetalinkRequestInfo.cc
  11805. (execute): Exception -> RecoverableException.
  11806. * src/MetaFileUtil.cc: RecoverableException.
  11807. * src/AbstractCommand.h
  11808. (onAbort): Exception -> RecoverableException.
  11809. * src/DlRetryEx.h: Exception -> RecoverableException.
  11810. * src/DlAbortEx.h: Exception -> RecoverableException.
  11811. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11812. * src/Util.cc: Exception -> RecoverableException.
  11813. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11814. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11815. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11816. To make ID static const int
  11817. * src/BtInterestedMessage.h
  11818. (ID_t): Removed.
  11819. (ID): New variable.
  11820. (getId): Made non-const.
  11821. * src/BtPieceMessage.h
  11822. (ID_t): Removed.
  11823. (ID): New variable.
  11824. (getId): Made non-const.
  11825. * src/BtChokeMessage.h
  11826. (ID_t): Removed.
  11827. (ID): New variable.
  11828. (getId): Made non-const.
  11829. * src/BtHaveAllMessage.h
  11830. (ID_t): Removed.
  11831. (ID): New variable.
  11832. (getId): Made non-const.
  11833. * src/BtKeepAliveMessage.h
  11834. (ID_t): Removed.
  11835. (ID): New variable.
  11836. (getId): Made non-const.
  11837. * src/BtHandshakeMessage.h
  11838. (ID): New variable.
  11839. (getId): Made non-const.
  11840. * src/BtSuggestPieceMessage.h
  11841. (ID_t): Removed.
  11842. (ID): New variable.
  11843. (getId): Made non-const.
  11844. * src/BtPortMessage.h
  11845. (ID_t): Removed.
  11846. (ID): New variable.
  11847. (getId): Made non-const.
  11848. * src/AbstractBtMessage.h
  11849. (id): Removed.
  11850. (AbstractBtMessage): Removed id.
  11851. (getId): Removed.
  11852. * src/BtHaveMessage.h
  11853. (ID_t): Removed.
  11854. (ID): New variable.
  11855. (getId): Made non-const.
  11856. * src/BtAllowedFastMessage.h
  11857. (ID_t): Removed.
  11858. (ID): New variable.
  11859. (getId): Made non-const.
  11860. * src/BtCancelMessage.h
  11861. (ID_t): Removed.
  11862. (ID): New variable.
  11863. (getId): Made non-const.
  11864. * src/BtNotInterestedMessage.h
  11865. (ID_t): Removed.
  11866. (ID): New variable.
  11867. (getId): Made non-const.
  11868. * src/BtChokeMessage.h
  11869. (ID_t): Removed.
  11870. (ID): New variable.
  11871. (getId): Made non-const.
  11872. * src/BtRejectMessage.h
  11873. (ID_t): Removed.
  11874. (ID): New variable.
  11875. (getId): Made non-const.
  11876. * src/BtBitfieldMessage.h
  11877. (ID_t): Removed.
  11878. (ID): New variable.
  11879. (getId): Made non-const.
  11880. * src/BtUnchokeMessage.h
  11881. (ID_t): Removed.
  11882. (ID): New variable.
  11883. (getId): Made non-const.
  11884. * src/BtRequestMessage.h
  11885. (ID_t): Removed.
  11886. (ID): New variable.
  11887. (getId): Made non-const.
  11888. * src/BtHaveMessage.h
  11889. (ID_t): Removed.
  11890. (ID): New variable.
  11891. (getId): Made non-const.
  11892. To add --force-truncate command-line option and a check whether
  11893. the file already exists:
  11894. * src/DirectDiskAdaptor.h
  11895. (getFilePath): Made virtual public.
  11896. * src/MultiDiskAdaptor.h
  11897. (File.h): New include.
  11898. (DiskWriterEntry::fileEntry): Made private.
  11899. (DiskWriterEntry::fileExists): New function.
  11900. (DiskWriterEntry::getFileEntry): New function.
  11901. (fileExists): New function.
  11902. (getFilePath): New function.
  11903. * src/TorrentRequestInfo.cc
  11904. (FatalException.h): New include.
  11905. (message.h): New include.
  11906. (RecoverableException.h): New include.
  11907. (execute): Added a check whether file is already exists or not.
  11908. * src/DiskAdaptor.h
  11909. (fileExists): New function.
  11910. (getFilePath): New function.
  11911. * src/main.cc
  11912. (showUsage): Added an explanation of --force-truncate command-line
  11913. option.
  11914. (main): Added --force-truncate command-line option.
  11915. * src/Exception.h
  11916. (setMsg): buf[256] -> buf[1024]
  11917. * src/CopyDiskWriter.h
  11918. (getFilePath): Made public virtual.
  11919. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11920. (fileExists): New function.
  11921. * src/DownloadEngineFactory.cc
  11922. (newTorrentConsoleEngine): Don't open file here.
  11923. * src/message.h
  11924. (EX_FILE_ALREADY_EXISTS): New definition.
  11925. * src/prefs.h
  11926. (PREF_FOECE_TRUNCATE): New definition.
  11927. * src/HttpResponseCommand.cc
  11928. (handleDefaultEncoding): Added a check whether the file already exists.
  11929. * src/SegmentMan.h
  11930. (fileExists): New function.
  11931. (shouldCancelDownloadForSafety): New function.
  11932. * src/FtpNegotiateCommand.cc
  11933. (recvSize): Added a check whether the file already exists.
  11934. * src/AbstractSingleDiskAdaptor.cc
  11935. (File.h): New include.
  11936. (fileExists): New function.
  11937. * src/AbstractSingleDiskAdaptor.h
  11938. (getFilePath): Removed.
  11939. (fileExists): New function.
  11940. * src/SegmentMan.cc
  11941. (fileExists): New function.
  11942. (shouldCancelDownloadForSafety): New function.
  11943. To fix regression bug in torrent downloading:
  11944. * src/DefaultBtRequestFactory.cc
  11945. (doChokedAction): New function.
  11946. * src/DefaultBtRequestFactory.h
  11947. (doChokedAction): New function.
  11948. * src/DefaultBtMessageDispatcher.cc
  11949. (doChokedAction): Do not delete request if its target is in allowed
  11950. fast set.
  11951. * src/DefaultBtInteractive.cc
  11952. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11953. (sendKeepAlive): Send keep alive message even if the outgoing message
  11954. queue is not empty.
  11955. (decideInterest): Simplified the code.
  11956. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11957. it is already called when BtChokeMessage is received from a peer.
  11958. * src/BtRequestFactory.h
  11959. (doChokedAction): New function.
  11960. To clean up code:
  11961. * src/PeerInteractionCommand.h
  11962. (executeInternal): Added virtual keyword explicitly.
  11963. (prepareForRetry): Added virtual keyword explicitly.
  11964. (prepareForNextPeer): Added virtual keyword explicitly.
  11965. (onAbort): Added virtual keyword explicitly.
  11966. * src/RequestSlot.cc
  11967. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11968. * src/BtPieceMessage.cc
  11969. (doReceivedAction): Added a debug log of piece's bitfield.
  11970. * src/Piece.h
  11971. (getBitfieldLength): New function.
  11972. * src/ByteArrayDiskWriter.cc
  11973. (clear): Added buf = 0 to avoid double free corruption.
  11974. * src/FileAllocator.cc
  11975. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11976. Added cp.reset().
  11977. * src/BitfieldMan.h
  11978. (operator=): Rewritten.
  11979. * src/BitfieldMan.cc
  11980. (BitfieldMan): Initialized bitfield, useBitfield.
  11981. * src/PeerConnection.cc
  11982. (receiveMessage): Added a call to socket->readable() after getting
  11983. message length to avoid possible EOF.
  11984. * src/Util.cc
  11985. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11986. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. To add an ability to pre-allocate file space:
  11988. * src/DirectDiskAdaptor.h: Rewritten.
  11989. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11990. * src/MultiDiskAdaptor.h: Rewritten.
  11991. * src/DefaultPieceStorage.cc
  11992. (MultiDiskWriter.h): Removed include.
  11993. (PreAllocationDiskWriter.h): Removed include.
  11994. (FileAllocationMonitor.h): New include.
  11995. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11996. (initStorage): Rewritten.
  11997. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11998. * src/FileAllocator.h: New class.
  11999. * src/FileAllocator.cc: New class.
  12000. * src/FileAllocationMonitor.h: New class.
  12001. * src/FileAllocationMonitor.cc: New class.
  12002. * src/ConsoleFileAllocationMonitor.h: New class.
  12003. * src/ConsoleFileAllocationMonitor.cc: New class.
  12004. * src/AbstractSingleDiskAdaptor.h: New class.
  12005. * src/AbstractSingleDiskAdaptor.cc: New class.
  12006. * src/DiskAdaptor.h
  12007. (Directory.h): Removed include.
  12008. (DiskWriter.h): Removed include.
  12009. (FileEntry.h): Removed include.
  12010. (diskWriter): Removed.
  12011. (DiskAdaptor): Removed diskWriter.
  12012. (openFile): Made pure virtual.
  12013. (closeFile): Made pure virtual.
  12014. (openExistingFile): Made pure virtual.
  12015. (initAndOpenFile): Made pure virtual.
  12016. (writeData): Made pure virtual.
  12017. (readData): Made pure virtual.
  12018. (sha1Sum): Made pure virtual.
  12019. (getStoreDir): Returns const reference of storeDir.
  12020. (DiskAdaptorHandle): New type definition.
  12021. * src/main.cc
  12022. (ConsoleFileAllocationMonitor.h): New include.
  12023. (showUsage): Added default value description of -s option.
  12024. Added the description of --file-allocation option.
  12025. (main): Set default value of --file-allocation option to 'none'.
  12026. Added --file-allocation command-line option.
  12027. Setup FileAllocationMonitorFactory.
  12028. * src/FtpInitiateConnectionCommand.cc
  12029. (executeInternal): Removed diskWriter related processing, which was
  12030. moved to FtpNegotiationCommand.cc.
  12031. * src/DirectDiskAdaptor.cc
  12032. (getFilePath): Made non-const.
  12033. * src/CopyDiskAdaptor.h
  12034. (DiskAdaptor.h): Removed include.
  12035. (DiskWriter.h): Removed include.
  12036. (AbstractSingleDiskAdaptor.h): New include.
  12037. (getFilePath): Made non-const. Added virtual keyword.
  12038. (CopyDiskAdaptor): Removed diskWriter.
  12039. (getTempFile): Returns const reference.
  12040. (CopyDiskAdaptorHandle): New type definition.
  12041. * src/ByteArrayDiskWriter.cc
  12042. (clear): Simplified.
  12043. (initAndOpenFile): Rewritten.
  12044. (openFile): Call initAndOpenFile()
  12045. * src/MultiDiskAdaptor.cc: Rewritten.
  12046. * src/DownloadEngineFactory.cc
  12047. (FileAllocator.h): New include.
  12048. (FileAllocationMonitor.h): New include.
  12049. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12050. create DefaultDiskWriter with file allocator.
  12051. * src/DiskWriter.h
  12052. (initAndOpenFile): Added totalLength argument.
  12053. (openFile): Added totalLength argument.
  12054. * src/prefs.h
  12055. (PREF_FILE_ALLOCATION): New definition.
  12056. (V_PREALLOC): New definition.
  12057. (V_NONE): New definition.
  12058. * src/HttpResponseCommand.cc
  12059. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12060. size.
  12061. * src/FtpNegotiateCommand.cc
  12062. (Util.h): New include.
  12063. (recvSize): Open file here.
  12064. * src/Util.h
  12065. (ullitos): New function.
  12066. * src/CopyDiskWriter.h
  12067. (getFilePath): Made non-const.
  12068. * src/DefaultDiskWriter.h
  12069. (Option.h): New include.
  12070. (totalLength): Removed.
  12071. (DefaultDiskWriter): Removed totalLength.
  12072. (initAndOpenFile): Added totalLength argument.
  12073. (DefaultDiskWriterHandle): New type definition.
  12074. (createNewDiskWriter): New function.
  12075. * src/Util.cc
  12076. (ullitos): New function.
  12077. * src/DefaultDiskWriter.cc
  12078. (message.h): New include.
  12079. (FileAllocator.h): New include.
  12080. (prefs.h): New include.
  12081. (Util.h): New include.
  12082. (DefaultDiskWriter): Removed totalLength.
  12083. (initAndOpenFile): Added file allocation.
  12084. (createNewDiskWriter): New function. Just for temporary solution.
  12085. It will be rewritten later.
  12086. * src/DiskAdaptor.cc
  12087. (DiskAdaptor): Removed diskWriter.
  12088. * src/AbstractDiskWriter.cc
  12089. (LogFactory.h): New include.
  12090. (AbstractDiskWriter): Added fileAllocator, logger.
  12091. (openFile): Added totalLength argument.
  12092. * src/AbstractDiskWriter.h
  12093. (FileAllocator.h): New include.
  12094. (Logger.h): New include.
  12095. (fileAllocator): New variable.
  12096. (logger): New variable.
  12097. (openFile): Added totalLength argument. Added virtual keyword
  12098. explicitly.
  12099. (openExistingFile): Added totalLength argument. Added virtual keyword
  12100. explicitly.
  12101. (closeFile): Added virtual keyword explicitly.
  12102. (sha1Sum): Added virtual keyword explicitly.
  12103. (writeData): Added virtual keyword explicitly.
  12104. (readData): Added virtual keyword explicitly.
  12105. (setFileAllocator): New function.
  12106. * src/DefaultPieceStorage.h
  12107. (FileAllocator.h): New include.
  12108. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12109. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12110. * src/FileProgressMonitor.h: New class.
  12111. To compile aria2 on PC-BSD:
  12112. * src/DefaultBtContext.cc
  12113. (libgen.h): New include.
  12114. To fix memory leak:
  12115. * src/Exception.h
  12116. (~Exception): Delete cause. Fixed memory leak.
  12117. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12118. Rewritten a portion of bittorrent implementation:
  12119. * src/BtMessageValidator.h: New class.
  12120. * src/BtBitfieldMessageValidator.h: New class.
  12121. * src/BtHandshakeMessageValidator.h: New class.
  12122. * src/BtRequestMessageValidator.h: New class.
  12123. * src/BtSuggestPieceMessageValidator.h: New class.
  12124. * src/BtAllowedFastMessageValidator.h: New class.
  12125. * src/BtRejectMessageValidator.h: New class.
  12126. * src/BtCancelMessageValidator.h: New class.
  12127. * src/BtPieceMessageValidator.h: New class.
  12128. * src/BtHaveMessageValidator.h: New class.
  12129. * src/BtEventListener.h: New class.
  12130. * src/AbstractBtEventListener.h: New class.
  12131. * src/BtEvent.h: New class.
  12132. * src/BtChokingEvent.h: New class.
  12133. * src/BtChokedEvent.h: New class.
  12134. * src/BtCancelSendingPieceEvent.h: New class.
  12135. * src/BtAbortOutstandingRequestEvent.h: New class.
  12136. * src/Randomizer.h: New class.
  12137. * src/SimpleRandomizer.h: New class.
  12138. * src/BtMessage.h: New class.
  12139. * src/AbstractBtMessage.h: New class.
  12140. * src/SimpleBtMessage.h: New class.
  12141. * src/BtHaveMessage.h: New class.
  12142. * src/BtInterestedMessage.h: New class.
  12143. * src/BtAllowedFastMessage.h: New class.
  12144. * src/BtUnchokeMessage.h: New class.
  12145. * src/BtCancelMessage.h: New class.
  12146. * src/BtNotInterestedMessage.h: New class.
  12147. * src/BtChokeMessage.h: New class.
  12148. * src/BtHaveNoneMessage.h: New class.
  12149. * src/BtHandshakeMessage.h: New class.
  12150. * src/BtSuggestPieceMessage.h: New class.
  12151. * src/BtHaveMessage.h: New class.
  12152. * src/BtPieceMessage.h: New class.
  12153. * src/BtHaveAllMessage.h: New class.
  12154. * src/BtKeepAliveMessage.h: New class.
  12155. * src/BtPortMessage.h: New class.
  12156. * src/BtRejectMessage.h: New class.
  12157. * src/BtBitfieldMessage.h: New class.
  12158. * src/BtRequestMessage.h: New class.
  12159. * src/DefaultBtRequestFactory.h: New class.
  12160. * src/DefaultBtMessageReceiver.h: New class.
  12161. * src/BtInteractive.h: New class.
  12162. * src/BtMessageDispatcher.h: New class.
  12163. * src/DefaultBtMessageDispatcher.h: New class.
  12164. * src/DefaultBtInteractive.h: New class.
  12165. * src/BitfieldManFactory.h: New class.
  12166. * src/HandleRegistry.h: New class.
  12167. * src/BtMessageFactory.h: New class.
  12168. * src/BtMessageReceiver.h: New class.
  12169. * src/DefaultBtMessageFactory.h: New class.
  12170. * src/PeerObject.h: New class.
  12171. * src/BtRequestFactory.h: New class.
  12172. * src/SuggestPieceMessage.h: Removed.
  12173. * src/PortMessage.h: Removed.
  12174. * src/SuggestPieceMessage.h: Removed.
  12175. * src/KeepAliveMessage.h: Removed.
  12176. * src/HandshakeMessage.h: Removed.
  12177. * src/PeerInteraction.h: Removed.
  12178. * src/UnchokeMessage.h: Removed.
  12179. * src/PieceMessage.h: Removed.
  12180. * src/RequestMessage.h: Removed.
  12181. * src/InterestedMessage.h: Removed.
  12182. * src/HaveMessage.h: Removed.
  12183. * src/CancelMessage.h: Removed.
  12184. * src/RejectMessage.h: Removed.
  12185. * src/AllowedFastMessage.h: Removed.
  12186. * src/HaveNoneMessage.h: Removed.
  12187. * src/SimplePeerMessage.h: Removed.
  12188. * src/HaveAllMessage.h: Removed.
  12189. * src/BitfieldMessage.h: Removed.
  12190. * src/PeerMessageFactory.h: Removed.
  12191. * src/NotInterestedMessage.h: Removed.
  12192. * src/ChokeMessage.h: Removed.
  12193. * src/PeerMessage.h: Removed.
  12194. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. To know root cause of exception:
  12196. * src/Exception.h
  12197. (cause): New variable.
  12198. (Exception): Added a parameter.
  12199. (getMsg): Return const reference to msg.
  12200. (getCause): New function.
  12201. * src/DlRetryEx.h
  12202. (DlRetryEx): Added a parameter 'cause'.
  12203. Added an overloaded constructor.
  12204. (DlAbortEx): Added a parameter 'cause'.
  12205. Added an overloaded constructor.
  12206. * src/SimpleLogger.cc
  12207. (writeLog): Log nested exception messages recursively.
  12208. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. * src/DefaultBtProgressInfoFile.cc
  12210. (load): Fixed memory leak when the infohash doesn't match.
  12211. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12212. * src/DefaultPeerStorage.cc
  12213. (calculateStat): Simplified the code by combining 2 loops into 1.
  12214. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12216. for BitTorrent download:
  12217. * src/PeerAbstractCommand.cc
  12218. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12219. * src/main.cc:
  12220. (timeoutSpecified): Removed.
  12221. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12222. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12223. * src/TorrentRequestInfo.cc
  12224. (timeoutSpecified): Removed.
  12225. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12226. timeout value.
  12227. * src/prefs.h
  12228. (PREF_BT_TIMEOUT): New definition.
  12229. Delete unused variables:
  12230. * src/TorrentRequestInfo.cc
  12231. (requestInfo): Removed.
  12232. Move setSignalHander to Util::setGlobalSignalHandler:
  12233. * src/TorrentRequestInfo.cc:
  12234. setSignalHander -> Util::setGlobalSignalHandler
  12235. * src/main.cc
  12236. (setSignalHander): Removed.
  12237. (main): setSignalHander -> Util::setGlobalSignalHandler
  12238. * src/Util.h
  12239. (setGlobalSignalHandler): New function.
  12240. * src/Util.cc
  12241. (setGlobalSignalHandler): New function.
  12242. * src/UrlRequestInfo.cc:
  12243. setSignalHander -> Util::setGlobalSignalHandler
  12244. Reset peer status in order to exit gracefully:
  12245. * src/PeerAbstractCommand.cc
  12246. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12247. To fix the bug that causes the number of bytes uploaded is not saved
  12248. to .aria2 file:
  12249. * src/DefaultPeerStorage.h
  12250. (removedPeerSessionDownloadLength): New variable.
  12251. (removedPeerSessionUploadLength): New variable.
  12252. * src/DefaultPeerStorage.cc
  12253. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12254. removedPeerSessionUploadLength(0).
  12255. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12256. through all peers, and then add removedPeerSessionDownloadLength(
  12257. removedPeerSessionUploadLength) to it.
  12258. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12259. (to) the peer to removedPeerSessionDownloadLength
  12260. (removedPeerSessionUploadLength).
  12261. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12262. To add Metalink location option:
  12263. * src/MetalinkRequestInfo.cc
  12264. (execute): Call MetalinkEntry::setLocationPreference()
  12265. * src/main.cc
  12266. (showUsage): Added the help message for --metalink-location option.
  12267. (main): Added --metalink-location option.
  12268. * src/prefs.h
  12269. (PREF_METALINK_LOCATION): New definition.
  12270. * src/MetalinkEntry.cc
  12271. (AddLocationPreference): New function object.
  12272. (setLocationPreference): New function.
  12273. * src/Xml2MetalinkProcessor.cc
  12274. (getResource): Set location attribute to MetalinkResource
  12275. To show URLs to download
  12276. * src/UrlRequestInfo.h
  12277. (printUrls): New function.
  12278. To add multiple <file> Metalink support:
  12279. * src/MetalinkEntry.h
  12280. (MetalinkResources): Removed.
  12281. (setLocationPreference): New function.
  12282. (MetalinkEntryHandle): New type definition.
  12283. (MetalinkEntries): New type definition.
  12284. * src/Xml2MetalinkProcessor.h
  12285. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12286. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12287. (parseFile): Metalinker* -> MetalinkerHandle
  12288. * src/UrlRequestInfo.h
  12289. (execute): RequestInfo* -> RequestInfos
  12290. * src/MetalinkRequestInfo.cc
  12291. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12292. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12293. (execute): RequestInfo* -> RequestInfos
  12294. Added multiple <file> support. Print filename when it is queued.
  12295. * src/MetalinkRequestInfo.h
  12296. (execute): RequestInfo* -> RequestInfos
  12297. (getDownloadEngine): Removed.
  12298. * src/RequestInfo.h
  12299. (RequestInfoHandle): New type definition.
  12300. (RequestInfos): New type definition.
  12301. (execute): RequestInfo* -> RequestInfos
  12302. (getDownloadEngine): Removed.
  12303. * src/MetalinkResource.h
  12304. (MetalinkResourceHandle): New type definition.
  12305. (MetalinkResources): New type definition.
  12306. * src/MetalinkEntry.cc
  12307. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12308. because the element is now of type MetalinkResourceHandle.
  12309. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12310. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12311. (dropUnsupportedResource): Removed the deletion of the elements of
  12312. resources because the element is now of type MetalinkResourceHandle.
  12313. * src/Xml2MetalinkProcessor.cc
  12314. (parseFile): Metalinker* -> MetalinkerHandle
  12315. MetalinkEntry* -> MetalinkEntryHandle
  12316. Removed try-catch block.
  12317. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12318. MetalinkResource* -> MetalinkResourceHandle
  12319. Removed try-catch block.
  12320. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12321. Free result by using xmlXPathFreeObject()
  12322. * src/Metalinker.cc
  12323. (~Metalinker): Removed the deletion of entries.
  12324. MetalinkEntry* -> MetalinkEntryHandle
  12325. (queryEntry): Add multiple <file> Metalink support.
  12326. * src/Metalinker.h
  12327. (MetalinkEntries): Removed.
  12328. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12329. * src/MetalinkProcessor.h
  12330. (parseFile): Metalinker* -> MetalinkerHandle
  12331. Bug fixes:
  12332. * src/PeerChokeCommand.cc
  12333. (execute): cat01->cat02
  12334. * src/DefaultPieceStorage.cc
  12335. (DefaultPieceStorage): Added diskAdaptor(0)
  12336. * src/TrackerWatcherComand.cc:
  12337. (execute): Use btAnnounce->noMoreAnnounce()
  12338. to determin whether the function returns true or not.
  12339. * src/TrackerUpdateCommand.cc:
  12340. (execute): Use btAnnounce->noMoreAnnounce()
  12341. to determin whether the function returns true or not.
  12342. * src/FtpConnection.cc
  12343. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12344. This is the fix of the busy loop bug.
  12345. * src/DownloadCommand.cc
  12346. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12347. cached PeerStat.
  12348. The value of "name" entry in torrent file is now set by
  12349. *DiskAdaptor::setTopDir(...) methods.
  12350. * src/MultiDiskAdaptor.h
  12351. (topDir): New variable.
  12352. (setTopDir): New function.
  12353. (getTopDir): New function.
  12354. * src/MultiDiskAdaptor.cc
  12355. (getFilePath): Concat storDir, "/" and topDir.
  12356. (mkdir): Use getFilePath() to get the directory path for output.
  12357. * src/DefaultPieceStorage.cc
  12358. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12359. CopyDiskAdaptor.
  12360. * src/CopyDiskAdaptor.h
  12361. (topDir): New variable.
  12362. (setTopDir): New function.
  12363. (getTopDir): New function.
  12364. * src/CopyDiskAdaptor.cc
  12365. (fixFilename): Updated.
  12366. Misc
  12367. * src/UrlRequestInfo.h
  12368. (e): Removed.
  12369. (UrlRequestInfo): Removed e.
  12370. (getDownloadEngine): Removed.
  12371. * src/UrlRequestInfo.cc
  12372. (handler): Rewritten.
  12373. (printUrls): New function.
  12374. (execute): Call printUrls().
  12375. * src/HandshakeMessage.cc
  12376. (check): peerinteraction->getBtContext() -> btContext
  12377. * src/PeerInteraction.h
  12378. (getBtContext): Removed.
  12379. * src/TorrentRequestInfo.h
  12380. (execute): RequestInfo* -> RequestInfos
  12381. (getDownloadEngine): Removed.
  12382. * src/TorrentRequestInfo.cc
  12383. (haltRequested): Removed.
  12384. (btHaltRequested): New variable.
  12385. (torrentHandler): haltRequested -> btHaltRequested
  12386. (execute): RequestInfo* -> RequestInfos
  12387. * src/TorrentConsoleDownloadEngine.cc
  12388. (afterEachIteration): haltRequested -> btHaltRequested.
  12389. * src/ConsoleDownloadEngine.h
  12390. (initStatistics): Added virtual.
  12391. (calculateStatistics): Added virtual.
  12392. (onEndOfRun): Added virtual.
  12393. (afterEachIteration): Added virtual.
  12394. * src/ConsoleDownloadEngine.cc
  12395. (haltRequested): New variable.
  12396. (afterEachIteration): New function.
  12397. * src/main.cc
  12398. (requestInfo): Removed.
  12399. * src/SegmentMan.cc
  12400. (findSlowerSegmentEntry): Refactored.
  12401. * Release 0.9.0
  12402. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12404. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12405. * src/TorrentMan.h: Removed.
  12406. * src/TorrentMan.cc: Removed.
  12407. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12408. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12409. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12410. * src/PeerAbstractCommand.cc: Use btRuntime.
  12411. * src/BtContextAwareCommand.h: New class.
  12412. * src/FileEntry.h: Added accessor methods for following variables.
  12413. (path): Made private.
  12414. (length): Made private.
  12415. (offset): Made private.
  12416. (extracted): Made private.
  12417. (requested): Made private.
  12418. (FileEntries): New definition.
  12419. (FileEntryHandle): New definition.
  12420. * src/FileEntry.cc: New file.
  12421. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12422. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12423. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12424. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12425. * src/PieceStorage.h: New file.
  12426. * src/PeerInteractionCommand.h: Use btContext.
  12427. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12428. btRuntime.
  12429. * src/DefaultBtProgressInfoFile.h: New file.
  12430. * src/DefaultBtProgressInfoFile.cc: New file.
  12431. * src/File.cc
  12432. (Util.h): New include.
  12433. (mkdirs): New function.
  12434. * src/MultiDiskAdaptor.h
  12435. (mkdir): New function.
  12436. * src/PeerListProcessor.h
  12437. (Peers): Removed.
  12438. * src/PeerInteraction.h
  12439. (torrentMan): Removed.
  12440. (btContext): New variable.
  12441. (peerStorage): New variable.
  12442. (pieceStorage): New variable.
  12443. (btAnnounce): New variable.
  12444. (getTorrentMan): Removed.
  12445. (getBtContext): New function.
  12446. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12447. btAnnounce.
  12448. * src/HandshakeMessage.h
  12449. (TorrentMan.h): Removed.
  12450. * src/HandshakeMessage.cc: Use btContext.
  12451. * src/DefaultBtAnnounce.cc: New file.
  12452. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12453. * src/DefaultPieceStorage.cc: New file.
  12454. * src/DefaultBtContext.h: New file.
  12455. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12456. Use the accessor methods of FileEntry.
  12457. * src/CookieBox.cc: Updated to use Util::slice().
  12458. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12459. * src/common.h (SharedHandle.h): New include.
  12460. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12461. pieceStorage.
  12462. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12463. * src/DiskAdaptor.h
  12464. (topDir): Removed.
  12465. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12466. (setTopDir): Removed.
  12467. (getTopDir): Removed.
  12468. * src/BtContext.h: New file.
  12469. * src/DefaultPeerStorage.h: New file.
  12470. * src/PieceMessage.h (TorrentMan.h): Removed.
  12471. * src/RequestMessage.h (TorrentMan.h): Removed.
  12472. * src/TorrentDownloadEngine.h
  12473. (uploadLength): New variable.
  12474. (btContext): New variable.
  12475. (btRuntime): New variable.
  12476. (pieceStorage): New variable.
  12477. (peerStorage): New variable.
  12478. (btAnnounce): New variable.
  12479. (btProgressInfoFile): New variable.
  12480. (torrentMan): Removed.
  12481. (setBtContext): New function.
  12482. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12483. peerStorage, btAnnounce, btProgressInfoFile.
  12484. * src/Piece.h
  12485. (toString): New function.
  12486. (Pieces): New type definition.
  12487. * src/Peer.h
  12488. (active): New variable.
  12489. (Peer): Added active.
  12490. (activate): Set active to true.
  12491. (deactivate): Set active to false.
  12492. (isActive): New function.
  12493. (Peers): New type definition.
  12494. * src/DirectDiskAdaptor.cc
  12495. (getFilePath): Use the accessor methods of FileEntry.
  12496. * src/TorrentConsoleDownloadEngine.h
  12497. (afterEachIteration): New function.
  12498. * src/TorrentConsoleDownloadEngine.cc
  12499. (haltRequested): New variable.
  12500. (sendStatistics): Use pieceStorage, btRuntime.
  12501. (afterEachIteration): New function.
  12502. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12503. * src/Directry.h
  12504. (Directory): New function.
  12505. (DirectoryHandle): New type definition.
  12506. * src/BtProgressInfoFile.h: New file.
  12507. * src/RequestMessage.cc: Use pieceStorage.
  12508. * src/BtRuntime.h: New file.
  12509. * src/DefaultBtContext.cc: New file.
  12510. * src/BitfieldMan.h
  12511. (getCompletedLength): New function(private).
  12512. (getCompletedLength): New function.
  12513. (getFilteredCompletedLength): New function.
  12514. * src/BitfieldMan.h
  12515. (getCompletedLength): New function(private).
  12516. (getCompletedLength): New function.
  12517. (getFilteredCompletedLength): New function.
  12518. * src/MultiDiskAdaptor.cc
  12519. (mkdir): New function.
  12520. (openFile): Call mkdir().
  12521. (initAndOpenFile): Call mkdir().
  12522. * src/CancelMessage.h
  12523. (TorrentMan.h): Removed.
  12524. * src/RejectMessage.h
  12525. (TorrentMan.h): Removed.
  12526. * src/DownloadEngineFactory.cc
  12527. (DefaultPieceStorage.h): New include.
  12528. (DefaultPeerStorage.h): New include.
  12529. (DefaultBtAnnounce.h): New include.
  12530. (DefaultBtProgressInfoFile.h): New include.
  12531. (newTorrentConsoleEngine): Rewritten.
  12532. * src/ShareRatioSeedCriteria.h
  12533. (torrentMan): Removed.
  12534. (btContext): New variable.
  12535. (peerStorage): New variable.
  12536. (btRuntime): New variable.
  12537. (evaluate): Use btContext, btRuntime, peerStorage.
  12538. * src/AnnounceTier.h: New file.
  12539. * src/BtAnnounce.h: New file.
  12540. * src/BtRegistry.h: New file.
  12541. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12542. * src/PeerConnection.h (TorrentMan.h): Removed.
  12543. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12544. * src/Util.h
  12545. (slice): Added an argument.
  12546. * src/Util.cc
  12547. (slice): Added an argument to control whether trim is made or not.
  12548. * src/PeerStorage.h: New file.
  12549. * src/BtRegistry.cc: New file.
  12550. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12551. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12552. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12553. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12554. * src/TorrentRequestInfo.h
  12555. (e): Removed.
  12556. (showFileEntry): Added an argument.
  12557. (getDownloadEngine): Return 0.
  12558. * src/DefaultBtAnnounce.h: New file.
  12559. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12560. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12561. * src/PeerMessageFactory.h
  12562. (btContext): New variable.
  12563. (pieceStorage): New variable.
  12564. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12565. btAnnounce.
  12566. * src/DiskAdaptor.cc
  12567. (DiskAdaptor): Removed topDir.
  12568. (~DiskAdaptor): Removed topDir.
  12569. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12570. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12571. * src/File.h (mkdirs): New function.
  12572. * src/DefaultPeerStorage): New file.
  12573. * src/DownloadEngineFactory.h
  12574. (newTorrentConsoleEngine): Use btContext.
  12575. * src/BtContextAwareCommand.cc: New file.
  12576. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12577. * src/PeerMessage.h
  12578. (btContext): New variable.
  12579. (peerStorage): New variable.
  12580. (pieceStorage): New variable.
  12581. (setBtContext): New function.
  12582. * src/Directry.cc
  12583. (Directory): New function.
  12584. (createDir): Do nothing if name.size() == 0.
  12585. * src/AnnounceList.h
  12586. (AnnounceTier): Removed.
  12587. (AnnounceTiers): Removed.
  12588. * src/DefaultPieceStorage.h: New file.
  12589. * src/Piece.cc (toString): New function.
  12590. To fix typo:
  12591. * src/main.cc (showVersion): Fixed typo.
  12592. To fix compile warning:
  12593. * src/DelegatingPeerListProcessor.cc
  12594. (canHandle): Added "return false".
  12595. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12597. make the process of announce request testable.
  12598. * src/TrackerWatcherCommand.h
  12599. (TimeA2.h): Removed.
  12600. (interval): Removed.
  12601. (checkPoint): Removed.
  12602. (createRequestCommand): Added an argument 'url'.
  12603. (TrackerWatherCommand): Removed interval.
  12604. (createCommand): New function.
  12605. * src/DownloadEngineFactory.cc
  12606. (newTorrentConsoleEngine): Updated according to the changes in
  12607. TrackerWatherCommand.
  12608. * src/TorrentMan.cc
  12609. (DelegatingPeerListProcessor.h): New includes.
  12610. (TorrentMan): Added the initialization of announceInterval.
  12611. (isStoppedAnnounceReady): New function.
  12612. (isCompletedAnnounceReady): New function.
  12613. (isDefaultAnnounceReady): New function.
  12614. (isAnnounceReady): New function.
  12615. (getAnnounceUrl): New function.
  12616. (announceStart): New function.
  12617. (announceFailure): New function.
  12618. (announceSuccess): New function.
  12619. (isAllAnnounceFailed): New function.
  12620. (resetAnnounce): New function.
  12621. (processAnnounceResponse): New function.
  12622. (needMorePeerConnection): New function.
  12623. (noMoreAnnounce): New function.
  12624. * src/TrackerUpdateCommand.h
  12625. (getTrackerResponse): int->size_t
  12626. * src/TorrentMan.h
  12627. (isStoppedAnnounceReady): New function.
  12628. (isCompletedAnnounceReady): New function.
  12629. (isDefaultAnnounceReady): New function.
  12630. (announceInterval): New variable.
  12631. (isAnnounceReady): New function.
  12632. (getAnnounceUrl): New function.
  12633. (announceStart): New function.
  12634. (announceFailure): New function.
  12635. (announceSuccess): New function.
  12636. (isAllAnnounceFailed): New function.
  12637. (resetAnnounce): New function.
  12638. (processAnnounceResponse): New function.
  12639. (needMorePeerConnection): New function.
  12640. (noMoreAnnounce): New function.
  12641. * src/TrackerWatcherCommand.cc
  12642. (TrackerWatherCommand): Removed interval and checkPoint.
  12643. (execute): Rewritten.
  12644. (createCommand): New function.
  12645. (createRequestCommand): Rewritten.
  12646. * src/TrackerUpdateCommand.cc
  12647. (MetaFileUtil.h): Removed.
  12648. (DelegatingPeerListProcessor.h): Removed.
  12649. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12650. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Request -> RequestHandle:
  12652. * src/HttpResponseCommand.h: Request->RequestHandle
  12653. * src/AbstractCommand.cc: Request->RequestHandle
  12654. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12655. * src/HttpRequestCommand.cc: Request->RequestHandle
  12656. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12657. * src/AbstractCommand.h: Request->RequestHandle
  12658. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12659. * src/HttpResponseCommand.cc: Request->RequestHandle
  12660. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12661. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12662. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12663. * src/HttpConnection.h: Request->RequestHandle
  12664. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12665. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12666. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12667. * src/DownloadCommand.h: Request->RequestHandle
  12668. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12669. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12670. * src/HttpRequestCommand.h: Request->RequestHandle
  12671. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12672. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12673. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12674. * src/HttpDownloadCommand.h: Request->RequestHandle
  12675. * src/FtpConnection.cc: Request->RequestHandle
  12676. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12677. * src/UrlRequestInfo.cc: Request->RequestHandle
  12678. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12679. * src/HttpConnection.h: Request->RequestHandle
  12680. * src/DownloadCommand.cc: Request->RequestHandle
  12681. * src/FtpConnection.h: Request->RequestHandle
  12682. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12683. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12684. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12685. * src/Request.h
  12686. (SharedHandle.h): New include.
  12687. (RequestHandle): New type definition.
  12688. (Requests): Redefined.
  12689. To add MULTITRACKER support:
  12690. * src/TrackerWatcherCommand.h
  12691. (createRequestCommand): New function.
  12692. * src/DownloadEngineFactory.cc
  12693. (newTorrentConsoleEngine): Removed req.
  12694. * src/prefs.h
  12695. (PREF_TRACKER_MAX_TRIES): New definition.
  12696. * src/TorrentMan.cc
  12697. (TorrentMan): Removed req. Added trackerNumTry.
  12698. (~TorrentMan): Removed req.
  12699. (setupInternal1): Added announceList.
  12700. * src/TorrentRequestInfo.cc
  12701. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12702. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12703. * src/main.cc
  12704. (main): Added PREF_TRACKER_MAX_TRIES.
  12705. * src/TorrentMan.h
  12706. (Request.h): Removed.
  12707. (AnnounceList.h): New include.
  12708. (trackerNumTry): New variable.
  12709. (req): Removed.
  12710. (announceList): New variable.
  12711. * src/TrackerWatcherCommand.cc
  12712. (execute): Rewritten.
  12713. (createRequestCommand): New function.
  12714. * src/TrackerUpdateCommand.cc
  12715. (execute): Updated with the use of AnnounceList.
  12716. * src/AnnounceList.cc: New class.
  12717. * src/AnnounceList.h: New class.
  12718. To fix typo:
  12719. * src/prefs.h
  12720. (PREF_MAX_TRIES): max_try->max_tries
  12721. To not to decode "+" as space in URL decode:
  12722. * src/Util.cc
  12723. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12724. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. To add timeout to async name resolution:
  12726. * src/AbstractCommand.h
  12727. (nameResolveFinished): New function. This is not elegant way. It needs
  12728. to be more refined.
  12729. (nameResolverCheck): New variable.
  12730. * src/AbstractCommand.cc
  12731. (AbstractCommand): Added nameResolverCheck.
  12732. (execute): Added the check whether the name resolution has finished.
  12733. (setNameResolverCheck): Set nameResolverCheck to true.
  12734. (disableNameResolverCheck): Set nameResolverCheck to false.
  12735. (nameResolverFinished): New function.
  12736. * src/FtpInitiateConnectionCommand.h
  12737. (nameResolverFinished): New function.
  12738. * src/FtpInitiateConnectionCommand.cc
  12739. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12740. * src/HttpInitiateConnectionCommand.h
  12741. (nameResolverFinished): New function.
  12742. * src/HttpInitiateConnectionCommand.cc
  12743. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12744. * src/prefs.h
  12745. (PREF_DNS_TIMEOUT): New definition.
  12746. * src/main.cc
  12747. (main): Added PREF_DNS_TIMEOUT.
  12748. To add the support for a non-compact response from a tracker:
  12749. * src/PeerListProcessor.h: New class.
  12750. * src/DefaultPeerListProcessor.h: New class.
  12751. * src/DefaultPeerListProcessor.cc: New class.
  12752. * src/CompactPeerListProcessor.h: New class.
  12753. * src/CompactPeerListProcessor.cc: New class.
  12754. * src/DelegatingPeerListProcessor.h: New class.
  12755. * src/DelegatingPeerListProcessor.cc: New class.
  12756. * src/TorrentMan.cc
  12757. (addPeer): New function(overload).
  12758. (addPeer): Delete unused peers only when new peer is added.
  12759. * src/TorrentMan.h
  12760. (PeerListProcessor.h): Included.
  12761. (Peers): Removed.
  12762. (addPeer): New function(overload).
  12763. * src/TrackerUpdateCommand.cc
  12764. (netinet/in.h): Removed.
  12765. (DelegatingPeerListProcessor.h): Included.
  12766. (execute): Updated to use DelegatingPeerListProcessor.
  12767. To fix the memory leak in TorrentMan::peers:
  12768. * src/PeerAbstractCommand.cc
  12769. (onAbort): Added peer->resetStatus().
  12770. * src/Peer.h
  12771. (resetStatus): Made public.
  12772. To improve the precision of the speed calculation:
  12773. * src/SpeedCalc.h
  12774. (nextInterval): New variable.
  12775. * src/SpeedCalc.cc
  12776. (reset): Added nextInterval.
  12777. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12778. (changeSw): Set nextInterval to 15 seconds relative to the current
  12779. instant time.
  12780. * src/main.cc
  12781. (showVersion): Updated.
  12782. (showUsage): Updated.
  12783. * Release 0.8.1
  12784. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12785. * src/main.cc
  12786. (showUsage): Commented out --min-segment-size option.
  12787. (main): Commented out --min-segment-size option.
  12788. * Release 0.8.0
  12789. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12790. * src/*.{h,cc}:
  12791. Added an exception to the license which allows linking with OpenSSL.
  12792. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12793. * src/AbstractCommand.cc
  12794. (execute): Check whether the download has finished before checking
  12795. socket status.
  12796. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12797. Do not exit even if no segment is available.
  12798. * src/prefs.h
  12799. (PREF_STARTUP_IDLE_TIME): New definition.
  12800. * src/PeerInteractionCommand.cc
  12801. (executeInternal): Removed max speed limit. Because it performs bad.
  12802. (receiveMessages): Added max speed limit. This was better than above,
  12803. but still a little bit to be desired. Sometimes the download speed
  12804. became much faster than I specified.
  12805. * src/SpeedCalc.h
  12806. (start): New variable.
  12807. (accumulatedLength): New variable.
  12808. (getAvgSpeed): New function.
  12809. * src/SpeedCalc.cc
  12810. (reset): Added start, accumulatedLength.
  12811. (update): Added calculation of an average speed.
  12812. (getAvgSpeed): New function.
  12813. * src/DownloadCommand.h
  12814. (sw): Removed.
  12815. * src/main.cc
  12816. (main): Added PREF_STARTUP_IDLE_TIME.
  12817. * src/PeerStat.h
  12818. (STATUS): Added REQUEST_IDLE.
  12819. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12820. (getAvgDownloadSpeed): New function
  12821. (requestIdle): New function.
  12822. * src/SegmentMan.h
  12823. (SegmentEntryHandle): New type definition.
  12824. (SegmentEntries): Now holds SegmentEntryHandle.
  12825. (findSlowerSegmentEntry): New funtion.
  12826. * src/SegmentMan.cc
  12827. (save): Updated according to the changes in SegmentEntries.
  12828. (read): Updated according to the changes in SegmentEntries.
  12829. (FindSegmentEntryByIndex): Updated according to the changes in
  12830. SegmentEntries.
  12831. (FindSegmentEntryByCuid): Updated according to the changes in
  12832. SegmentEntries.
  12833. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12834. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12835. Renamed uitr as itr.
  12836. (findSlowerSegmentEntry): New function.
  12837. (getSegment): Updated according to the changes in SegmentEntries.
  12838. Added the feature that cancels the segment with slow server and fast
  12839. one takes it over.
  12840. (cancelSegment): Updated according to the changes in SegmentEntries.
  12841. (getDownloadLength): Updated according to the changes in
  12842. SegmentEntries.
  12843. (init): Assigned 0 to bitfield after deleting it.
  12844. * src/DownloadCommand.cc
  12845. (STARTUP_IDLE_TIME): Removed.
  12846. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12847. * src/PeerChokeCommand.cc
  12848. (optUnchokingPeer): Updated according to the changes in Peer.
  12849. (ResetDelta): Removed.
  12850. (UploadFaster): Updated according to the changes in Peer.
  12851. (DownloadFaster): Updated according to the changes in Peer.
  12852. (execute): I clarify the meaning of "upload" and "download" here.
  12853. "upload" means the transfer from localhost to remote host.
  12854. "download" means the transfer from remote host to localhost.
  12855. Based on this rule, I swapped orderByUploadRate and
  12856. orderByDownloadRate.
  12857. * src/PeerInteractionCommand.cc
  12858. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12859. (executeInternal): Removed the argument of
  12860. peerInteraction->sendMessages().
  12861. (receiveMessages): Rewritten download speed limit.
  12862. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12863. * src/HttpResponseCommand.cc
  12864. (handleDefaultEncoding): If file size is unknown in torrent request,
  12865. do not call segmentMan->initBitfield() here.
  12866. Disabled persistent connection feature in torrent request.
  12867. * src/UrlRequestInfo.h
  12868. (UrlRequestInfo): Removed const qualifier from option.
  12869. * src/TorrentMan.h
  12870. (TransferStat): New class.
  12871. (deltaDownloadLength): Removed.
  12872. (deltaUploadLength): Removed.
  12873. (addDeltaDownloadLength): Removed.
  12874. (getDeltaDownloadLength): Removed.
  12875. (resetDeltaDownloadLength): Removed.
  12876. (addDeltaUploadLength): Removed.
  12877. (getDeltaUploadLength): Removed.
  12878. (resetDeltaUploadLength): Removed.
  12879. (addActivePeer): Added peer->activate().
  12880. (deleteActivePeer): Added peer->deactivate().
  12881. (calculateStat): New function.
  12882. * src/TorrentMan.cc
  12883. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12884. (calculateStat): New function.
  12885. * src/PeerInteraction.h
  12886. (uploadLimit): Removed.
  12887. (option): New variable.
  12888. (setUploadLimit): Removed.
  12889. (getUploadSpeed): Removed.
  12890. (sendMessages): Removed the argument "currentUploadSpeed".
  12891. * src/PeerInteraction.cc
  12892. (prefs.h): Included.
  12893. (PeerInteraction): Removed uploadLimit. Added option.
  12894. (sendMessages): Rewritten upload speed limit.
  12895. (sendHandshake): Removed the argument from sendMessages().
  12896. (sendBitfield): Removed the argument from sendMessages().
  12897. * src/PeerAbstractCommand.cc
  12898. (execute): Commented out the portion of upload limit.
  12899. (onAbort): Removed peer->resetStatus().
  12900. * src/TorrentRequestInfo.cc
  12901. (timeoutSpecified): Declared extern.
  12902. (execute): Set timeout to 180 if timeout is not specified by.
  12903. command-line.
  12904. * src/PieceMessage.cc
  12905. (receivedAction): Added peer->updateDownloadLength().
  12906. Removed peer->addPeerUpload().
  12907. Removed torrentMan->addDeltaDownloadLength().
  12908. (send): Added peer->updateUploadLength().
  12909. Removed peer->addPeerDownload().
  12910. Removed torrentMan->addDeltaUploadLength().
  12911. * src/main.cc
  12912. (timeoutSpecified): New variable.
  12913. (main): Set timeoutSpecified to false.
  12914. If the command-line option "--upload-limit" is specified, then
  12915. timeoutSpecified is set to true. This option will remain in the next
  12916. release, but be deprecated in the future release.
  12917. * src/TorrentRequestInfo.h
  12918. (TorrentRequestInfo): Removed const qualifier from op.
  12919. * src/PeerStat.h
  12920. (uploadSpeed): New variable.
  12921. (PeerStat): Added default value to cuid.
  12922. (calculateUploadSpeed): New function.
  12923. (updateUploadLength): New function.
  12924. (getMaxUploadSpeed): New function.
  12925. (getAvgUploadSpeed): New function.
  12926. (reset): Added uploadSpeed. Set status to IDLE.
  12927. * src/TorrentDownloadEngine.h
  12928. (cp): Declared as Time.
  12929. (sessionDownloadLengthArray): Removed.
  12930. (sessionUploadLengthArray): Removed.
  12931. (currentCp): Removed.
  12932. (lastCalcStat): New variable
  12933. (lastElapsed): Removed.
  12934. (sessionDownloadLength): Removed.
  12935. (calculateStat): New function.
  12936. * src/TorrentDownloadEngine.cc
  12937. (initStatistics): Removed lastElapsed, cp[],
  12938. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12939. currentCp, sessionDownloadLength.
  12940. Added cp.reset() and lastCalcStat.reset().
  12941. (calculateSpeed): Changed the name of the argument.
  12942. (calculateStatistics): Rewritten.
  12943. (calculateStat): New function.
  12944. * src/Peer.h
  12945. (PeerStat.h): Included.
  12946. (peerUpload): Removed.
  12947. (peerDownload): Removed.
  12948. (peerStat): New variable.
  12949. (sessionUploadLength): New variable.
  12950. (sessionDownloadLength): New variable.
  12951. (deltaUpload): Removed.
  12952. (deltaDownload): Removed.
  12953. (resetStatus): Made private.
  12954. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12955. Removed peerUpload, peerDownload.
  12956. (updateUploadLength): New function.
  12957. (addDeltaUpload): Removed.
  12958. (updateDownloadLength): New function.
  12959. (resetDeltaUpload): Removed.
  12960. (getDeltaUpload): Removed.
  12961. (addDeltaDownload): Removed.
  12962. (calculateUploadSpeed): New function.
  12963. (resetDeltaDownload): Removed.
  12964. (getDeltaDownload): Removed.
  12965. (calculateDownloadSpeed): New function.
  12966. (getSessionUploadLength): New function.
  12967. (getSessionDownloadLength): New function.
  12968. (activate): New function.
  12969. (deactivate): New function.
  12970. (addPeerUpload): Removed.
  12971. (setPeerUpload): Removed.
  12972. (getPeerUpload): Removed.
  12973. (addPeerDownload): Removed.
  12974. (setPeerDownload): Removed.
  12975. (getPeerDownload): Removed.
  12976. * src/Peer.cc
  12977. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12978. * src/MetalinkRequestInfo.h
  12979. (MetalinkRequestInfo): Removed const qualifier from op.
  12980. * src/RequestInfo.h
  12981. (op): Removed const qualifier.
  12982. (RequestInfo): Removed const qualifier from op.
  12983. * src/prefs.h
  12984. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12985. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12986. * src/PeerInteractionCommand.cc
  12987. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12988. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12989. * src/PeerInteraction.cc
  12990. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12991. * src/main.cc
  12992. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12993. Added the description of "--max-download-limit" option.
  12994. Removed the description of "--upload-limit" option.
  12995. Added the description of "--max-upload-limit" option.
  12996. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12997. Added "--max-download-limit" option and "--max-upload-limit" option.
  12998. Added the warning message if "--upload-limit" option is used.
  12999. * src/DownloadCommand.cc
  13000. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13001. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13002. To rewrite segment download mechanism for HTTP/FTP download.
  13003. Use BitfieldMan to manage segment download.
  13004. * src/HttpResponseCommand.h
  13005. (executeInternal): Pass the reference of segment.
  13006. * src/AbstractCommand.cc
  13007. (prepareForRetry): Call segmentMan->cancelSegment here.
  13008. (onAbort): Call segmentMan->cancelSegment here.
  13009. * src/HttpDownloadCommand.cc
  13010. (prepareForNextSegment): New function.
  13011. * src/DownloadEngineFactory.cc
  13012. (newConsoleEngine): Removed splitter.
  13013. (newTorrentConsoleEngine): Removed splitter.
  13014. * src/Request.h
  13015. (segment): Renamed from seg.
  13016. * src/FtpInitiateConnectionCommand.h
  13017. (executeInternal): Pass the reference of segment.
  13018. * src/AbstractCommand.h
  13019. (executeInternal): Pass the reference of segment.
  13020. * src/pref.h
  13021. (PREF_SEGMENT_SIZE): New definition.
  13022. * src/HttpProxyRequestCommand.h
  13023. (executeInternal): Pass the reference of segment.
  13024. * src/HttpResponseCommand.cc
  13025. (checkResponse): Allowed status 206 when a request range starts 0.
  13026. (handleDefaultEncoding): Rewritten the code related to Segment.
  13027. (handleOtherEncoding): Rewritten the code related to Segment.
  13028. * src/SegmentMan.h
  13029. (SegmentEntry): New class.
  13030. (SegmentEntries): New type definition.
  13031. (bitfield): New variable.
  13032. (usedSegmentEntries): New variable.
  13033. (onNullBitfield): New function.
  13034. (checkoutSegment): New function.
  13035. (segments): Removed.
  13036. (splitter): Removed.
  13037. (unregisterId): Removed.
  13038. (getSegment): New function(overload)
  13039. (getDownloadedSize): Removed.
  13040. (cancelSegment): New function.
  13041. (completeSegment): New function.
  13042. (initBitfield): New function.
  13043. (hasSegment): New function.
  13044. (getDownloadLength): New function.
  13045. * src/BitfieldMan.h
  13046. (getStartIndex): New function.
  13047. (getEndIndex): New function.
  13048. (getMissingUnusedIndex): New function(overload).
  13049. (getSparseMissingUnusedIndex): New function.
  13050. * src/BitfieldMan.cc
  13051. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13052. (getMissingUnusedIndex): New function(overload).
  13053. (Range): New class.
  13054. (getStartIndex): New function.
  13055. (getEndIndex): New function.
  13056. (getSparseMissingUnusedIndex): New function.
  13057. (isBitSetInternal): Return false if the given index is less than 0.
  13058. * src/HttpInitiateConnectionCommand.h
  13059. (executeInternal): Pass the reference of segment.
  13060. * src/FtpNegotiateCommand.h
  13061. (executeInternal): Pass the reference of segment.
  13062. * src/FtpNegotiateCommand.cc
  13063. (recvSize): Initialize bitfield here.
  13064. * src/FtpTunnelResponseCommand.h
  13065. (executeInternal): Pass the reference of segment.
  13066. * src/HttpConnection.cc
  13067. (createRequest): Rewritten range header processing.
  13068. * src/DownloadCommand.h
  13069. (executeInternal): Pass the reference of segment.
  13070. (prepareForRetry): Removed.
  13071. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13072. function.
  13073. * src/main.cc
  13074. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13075. * src/SegmentMan.cc
  13076. (SegmentMan): Added bitfield. Removed splitter.
  13077. (~SegmentMan): Added bitfield. Removed splitter.
  13078. (unregisterId): Removed.
  13079. (getSegment): Rewritten.
  13080. (updateSegment): Rewritten.
  13081. (save): Rewritten.
  13082. (read): Rewritten.
  13083. (finished): Rewritten.
  13084. (getDownloadedSize): Removed.
  13085. (initBitfield): New function.
  13086. (FindSegmentEntryByIndex): New function object.
  13087. (FindSegmentEntryByCuid): New function object.
  13088. (checkoutSegment): New function.
  13089. (onNullBitfield): New function.
  13090. (getSegment): New function(overload).
  13091. (CancelSegment): New function object.
  13092. (cancelSegment): New function.
  13093. (completeSegment): New function.
  13094. (hasSegment): New function.
  13095. (getDownloadLength): New function.
  13096. * src/FtpInitiateConnectionCommand.cc
  13097. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13098. * src/Segment.h: Rewritten.
  13099. * src/Segment.cc (operator<<): New function.
  13100. * src/HttpDownloadCommand.h
  13101. (prepareForNextSegment): New function.
  13102. * src/Request.cc
  13103. (resetUrl): Made segment null.
  13104. * src/DownloadEngine.cc
  13105. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13106. * src/HttpProxyRequestCommand.h
  13107. (executeInternal): Pass the reference of segment.
  13108. * src/DownloadCommand.cc
  13109. (executeInternal): Rewritten the code related to Segment.
  13110. (prepareForRetry): Removed.
  13111. (prepareForNextSegment): Rewritten.
  13112. * src/FtpTunnelResponseCommand.h
  13113. (executeInternal): Pass the reference of segment.
  13114. To add HTTP 1.1 persistent connection support(experimental)
  13115. * src/HttpRequestCommand.cc
  13116. (executeInternal): Disable keep alive if it is disabled by
  13117. configuration.
  13118. * src/Request.h
  13119. (keepAlive): New variable.
  13120. (isKeepAlive): New function.
  13121. (setKeepAlive): New function.
  13122. * src/pref.h
  13123. (PREF_HTTP_KEEP_ALIVE): New definition.
  13124. * src/HttpResponseCommand.cc
  13125. (executeInternal): Check the remote server supports keep alive.
  13126. * src/HttpConnection.cc
  13127. (createRequest): Send "Connection: close" only if keep alive is
  13128. disabled.
  13129. * src/main.cc
  13130. (main):
  13131. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13132. To add max download speed limit:
  13133. * src/pref.h
  13134. (PREF_MAX_SPEED_LIMIT): New definition.
  13135. * src/PeerInteractionCommand.cc
  13136. (executeInternal): Added max download speed limit. Not tested yet.
  13137. * src/SegmentMan.h
  13138. (PeerStats): New type definition.
  13139. (peerStats): New variable.
  13140. (registerPeerStat): New function.
  13141. (FindPeerStat): New function object.
  13142. (getPeerStat): New function.
  13143. (calculateDownloadSpeed): New function.
  13144. * src/SpeedCalc.h: New class.
  13145. * src/SpeedCalc.cc: New class.
  13146. * src/main.cc
  13147. (main):
  13148. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13149. download speed is not restricted).
  13150. * src/PeerStat.h: New class.
  13151. * src/SegmentMan.cc
  13152. (registerPeerStat): New function.
  13153. (calculateDownloadSpeed): New function.
  13154. * src/DownloadCommand.cc
  13155. (STARTUP_IDLE_TIME): New definition.
  13156. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13157. downloadStart.
  13158. (~DownloadCommand): Call peerStat->downloadStop.
  13159. (executeInternal): Added download speed limitter. Rewritten lowest
  13160. speed limitter.
  13161. * src/HttpConnection.cc
  13162. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13163. * src/AbstractCommand.cc
  13164. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13165. Added hostname to the error message.
  13166. * src/ConsoleDownloadEngine.cc
  13167. (calculateStatistics): Initialize psize with dlSize.
  13168. * src/PieceMessage.cc
  13169. (receivedAction): Do not call peerInteraction->abortPiece here.
  13170. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13171. * src/BitfieldMan.h
  13172. (clearAllUseBit): New function.
  13173. (setAllUseBit): New function.
  13174. * src/BitfieldMan.cc
  13175. (clearAllBit): Do not clear useBitfield here.
  13176. (clearAllUseBit): New function.
  13177. (setAllUseBit): New function.
  13178. * src/Piece.cc
  13179. (clearAllBlock): Call bitfield->clearAllUseBit().
  13180. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13181. To make filename URL-decoded:
  13182. * src/HttpResponseCommand.h: Updated doc.
  13183. * src/HttpResponseCommand.cc
  13184. (determinFilename): Made filename URL-decoded.
  13185. * src/FtpInitiateConnectionCommand.cc
  13186. (executeInternal): Made filename URL-decoded.
  13187. * src/Util.h (urldecode): New function.
  13188. * src/Util.cc (urldecode): New function.
  13189. To fix a bug that caused assertion failure in ares_strerror:
  13190. * src/NameResolver.cc (callback): Fixed the bug.
  13191. * Release 0.7.3
  13192. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13193. To add --seed-time and --seed-ratio command-line option:
  13194. * src/Option.h (getAsDouble): New function.
  13195. * src/Option.cc (getAsDouble): New function.
  13196. * src/SeedCheckCommand.h: New class.
  13197. * src/SeedCheckCommand.cc: New class.
  13198. * src/DownloadEngineFactory.cc
  13199. (SeedCheckCommand.h): Included.
  13200. (UnionSeedCriteria.h): Included.
  13201. (TimeSeedCriteria.h): Included.
  13202. (ShareRatioSeedCriteria.h): Included.
  13203. (newTorrentConsoleEngine): Added the processing of seed option.
  13204. * src/SeedCriteria.h: New class.
  13205. * src/ShareRatioSeedCriteria.h: New class.
  13206. * src/TimeSeedCriteria.h: New class.
  13207. * src/UnionSeedCriteria.h: New class.
  13208. * src/prefs.h
  13209. (PREF_SEED_TIME): New definition.
  13210. (PREF_SEED_RATIO): New definition.
  13211. * src/main.cc
  13212. (showUsage): Added --seed-time and --seed-ratio option.
  13213. (main): Added --seed-time and --seed-ratio option.
  13214. Made default log file name "/dev/null".
  13215. * src/SharedHandle.h
  13216. (SharedHandle): Copy constructor. Made it assignable from the
  13217. SharedHandle of the subclasses.
  13218. (operator=): Made it assignable from the SharedHandle of the
  13219. subclasses.
  13220. (getRefCount): New function.
  13221. To add notice log level and the switch to write log to stdout. This
  13222. switch is configurable per log level.
  13223. * src/Logger.h
  13224. (notice): New function.
  13225. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13226. constant.
  13227. * src/LogFactory.cc
  13228. (getInstance): The use of NullLogger was removed. A log message with
  13229. notice log level was made written to stdout along with log file.
  13230. * src/NullLogger.h
  13231. (notice): New function.
  13232. * src/SimpleLogger.h
  13233. (writeHeader): Added the 'file' argument.
  13234. (writeLog): Added the 'file' argument.
  13235. (writeFile): New function.
  13236. (stdoutField): New variable.
  13237. (SimpleLogger): Removed the default constructor.
  13238. (SimpleLogger): Made the default value of logfile 0.
  13239. (debug): Added 'virtual' keyword.
  13240. (info): Added 'virtual' keyword.
  13241. (warn): Added 'virtual' keyword.
  13242. (error): Added 'virtual' keyword.
  13243. (notice): New function.
  13244. (setStdout): New function.
  13245. * src/SimpleLogger.cc
  13246. (WRITE_LOG): Replaced writeLog with writeFile.
  13247. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13248. (SimpleLogger): Removed the default constructor.
  13249. (setStdout): New function.
  13250. (writeLog): Added the handling of NOTICE log level.
  13251. (writeFile): New function.
  13252. (notice): New function.
  13253. * src/TorrentMan.h: Updated doc.
  13254. * src/BitfieldMan.h: Updated doc.
  13255. * src/TrackerWatcherCommand.cc
  13256. (execute): Return true if error occurred in the request to the tracker
  13257. and halt is requested.
  13258. * src/TrackerUpdateCommand.cc
  13259. (execute): Return true if error occurred in the request to the tracker
  13260. and halt is requested.
  13261. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13262. DownloadEngine:
  13263. * src/TorrentConsoleDownloadEngine.h
  13264. (onSelectiveDownloadingCompletes): Removed.
  13265. * src/TorrentConsoleDownloadEngine.cc
  13266. (onSelectiveDownloadingCompletes): Removed.
  13267. * src/TorrentDownloadEngine.h
  13268. (onEndOfRun): Added 'virtual' keyword.
  13269. (afterEachIteration): Removed.
  13270. (onSelectiveDownloadingCompletes): Removed.
  13271. * src/TorrentDownloadEngine.cc
  13272. (onEndOfRun): Removed filenameFixed.
  13273. (afterEachIteration): Removed.
  13274. * src/TorrentMan.cc
  13275. (completePiece): Call onDownloadComplete here.
  13276. (onDownloadComplete): Added 2 log messages.
  13277. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13279. * src/NameResolver.h: Added the prototype declaration of callback().
  13280. To support c-ares library:
  13281. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13282. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13283. * src/FtpInitiateConnectionCommand.h:
  13284. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13285. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13286. * src/HttpInitiateConnectionCommand.h:
  13287. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13288. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13289. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13290. #1542285 by tizianomueller)
  13291. * src/HttpInitiateConnectionCommand.cc:
  13292. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13293. * src/FtpInitiateConnectionCommand.cc:
  13294. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13295. * src/DownloadEngine.h:
  13296. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13297. * src/DownloadEngine.cc:
  13298. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13299. To fix the bug that causes compilation failure with metalink-support
  13300. disabled(bug#1543587):
  13301. * src/main.cc: Fixed with the patch by tizianomueller.
  13302. * Release 0.7.2
  13303. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13304. * src/main.cc
  13305. (main): Added a message to inform users that aria2 is starting to
  13306. verify checksum.
  13307. * src/RequestInfo.cc
  13308. (printDownloadAbortMessage): Added a message to inform users that
  13309. transfer can be resumed.
  13310. * src/FeatureConfig.cc
  13311. (FEATURE_ASYNC_DNS): New definition.
  13312. (FeatureConfig): Added aysnc DNS entry.
  13313. To replace CommandUuid with Command* in SocketEntry and
  13314. NameResolverEntry:
  13315. * src/DownloadEngine.h
  13316. (CommandUuids): Removed.
  13317. (SocketEntry::commandUuid): Removed.
  13318. (SocketEntry::command): New variable.
  13319. (SocketEntry::SocketEntry): Updated.
  13320. (SocketEntry::operator==): Updated.
  13321. (NameResolverEntry::commandUuid): Removed.
  13322. (NameResolverEntry::command): New variable.
  13323. (NameResolverEntry::NameResolverEntry): Updated.
  13324. (NameResolverEntry::operator==): Updated.
  13325. (waitData): Changed the argument type.
  13326. (addSocketForReadCheck): Changed the argument type.
  13327. (deleteSocketForReadCheck): Changed the argument type.
  13328. (addSocketForWriteCheck): Changed the argument type.
  13329. (deleteSocketForWriteCheck): Changed the argument type.
  13330. (addNameResolverCheck): Changed the argument type.
  13331. (deleteNameResolverCheck): Changed the argument type.
  13332. * src/DownloadEngine.cc
  13333. (FindCommand): Removed.
  13334. (run): Removed activeUuid. Added activeCommands instead.
  13335. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13336. (AccumulateActiveCommand): New function object.
  13337. (waitData): Use AccumulateActiveCommand.
  13338. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13339. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13340. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13341. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13342. (addNameResolverCheck): Use Command instead of CommandUuid.
  13343. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13344. * src/AbstractCommand.cc
  13345. (disableReadCheckSocket): Updated according to the changes in
  13346. DownloadEngine.
  13347. (setReadCheckSocket): Updated according to the changes in
  13348. DownloadEngine.
  13349. (disableWriteCheckSocket): Updated according to the changes in
  13350. DownloadEngine.
  13351. (setWriteCheckSocket): Updated according to the changes in
  13352. DownloadEngine.
  13353. (setNameResolverCheck): Updated according to the changes in
  13354. DownloadEngine.
  13355. (disableNameResolverCheck): Updated according to the changes in
  13356. DownloadEngine.
  13357. * src/AbstractCommand.cc
  13358. (disableReadCheckSocket): Updated according to the changes in
  13359. DownloadEngine.
  13360. (setReadCheckSocket): Updated according to the changes in
  13361. DownloadEngine.
  13362. (disableWriteCheckSocket): Updated according to the changes in
  13363. DownloadEngine.
  13364. (setWriteCheckSocket): Updated according to the changes in
  13365. DownloadEngine.
  13366. * release 0.7.1
  13367. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13368. To handle the case where some BitTorrent tracker requires all letters
  13369. except for [A-Za-z0-9] is URL encoded.
  13370. * src/Util.h
  13371. (torrentUrlencode): New function.
  13372. * src/Util.cc
  13373. (ctype.h): Included.
  13374. (torrentUrlencode): New function.
  13375. * src/TrackerWatcherCommand.cc
  13376. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13377. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13378. To add asynchronous DNS support(libares):
  13379. * src/AbstractCommand.h
  13380. (setNameResolverCheck): New function.
  13381. (disableNameResolverCheck): New function
  13382. (resolveHostname): New function.
  13383. * src/AbstractCommand.cc
  13384. (setNameResolverCheck): New function.
  13385. (disableNameResolverCheck): New function
  13386. (resolveHostname): New function.
  13387. * src/FtpInitiateConnectionCommand.h
  13388. (nameResolver): New function.
  13389. * src/FtpInitiateConnectionCommand.cc
  13390. (Util.h): Included.
  13391. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13392. disableWriteCheckSocket.
  13393. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13394. (executeInternal): Added async DNS support.
  13395. * src/HttpInitiateConnectionCommand.h
  13396. (nameResolver): New function.
  13397. * src/HttpInitiateConnectionCommand.cc
  13398. (DlRetryEx.h): Included.
  13399. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13400. disableWriteCheckSocket.
  13401. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13402. (executeInternal): Added async DNS support.
  13403. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13404. by extern "C" declaration.
  13405. * src/NameResolver.cc: New class.
  13406. * src/Util.h:
  13407. (isNumberAndDotsNotation): New function
  13408. * src/Util.cc
  13409. (isNumberAndDotsNotation): New function.
  13410. * src/DownloadEngine.h
  13411. (NameResolver.h): Included.
  13412. (NameResolverEntry): New class.
  13413. (NameResolverEntries): New type definition.
  13414. (addNameResolverCheck): New function.
  13415. (deleteNameResolverCheck): New function.
  13416. * src/DownloadEngine.cc
  13417. (run): Initialize cp with 0.
  13418. (SetDescriptor::operator()): Added for NameResolverEntry.
  13419. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13420. (waitData): Check nameResolver entries.
  13421. (updateFdSet): Update fds in nameResolver entries.
  13422. (addNameResolverCheck): New function.
  13423. (deleteNameResolverCheck): new function.
  13424. * src/PeerInteractionCommand.cc
  13425. (executeInternal): Fixed wrong socket handling.
  13426. * src/main.cc
  13427. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13428. * src/Util.cc
  13429. (fileChecksum): Removed the call to ctx.digestReset().
  13430. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13431. * po/ru.po: Azamat sent me Russian translation.
  13432. * src/FtpNegotiateCommand.cc
  13433. (recvGreeting): Call disableWriteCheckSocket just after
  13434. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13435. (recvRetr): Recognized status code 125 as a acceptable response code.
  13436. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13437. case-insesitive filesystem(BUG#1531057).
  13438. * src/Time.h: Renamed as TimeA2.h.
  13439. * src/Time.cc: Renamed as TimeA2.cc.
  13440. * src/TimeA2.h: New class.
  13441. * src/TimeA2.cc: New class.
  13442. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13443. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13444. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13445. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13446. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13447. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13448. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13449. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13450. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13451. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13452. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13453. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13454. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13455. * release 0.7.0
  13456. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13457. * src/PeerChokeCommand.h
  13458. (PeerChokeCommand): Rearranged the arguments.
  13459. * src/PeerChokeCommand.cc
  13460. (PeerChokeCommand): Rearranged the arguments.
  13461. * src/MetalinkEntry.h
  13462. (Checksum.h): Included.
  13463. (md5): Removed.
  13464. (sha1): Removed.
  13465. (checksum): New variable.
  13466. (operator=): Updated.
  13467. (check): Removed.
  13468. * src/prefs.h
  13469. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13470. (PREF_FOLLOW_TORRENT): New definition.
  13471. (PREF_SELECT_FILE): New definition.
  13472. (PREF_FOLLOW_METALINK): New definition.
  13473. * src/MetalinkResource.h
  13474. (TYPE_HTTPS): Added to enum TYPE.
  13475. * src/TorrentMan.cc
  13476. (~TorrentMan): Rewritten.
  13477. * src/MultiDiskWriter.cc
  13478. (MultiDiskAdaptor): Updated according to the changes in
  13479. MessageDigestContext.
  13480. (~MultiDiskAdaptor): Updated according to the changes in
  13481. MessageDigestContext.
  13482. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13483. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13484. * src/Util.h
  13485. (fileChecksum): Updated according to the changes in
  13486. MessageDigestContext.
  13487. * src/Util.cc
  13488. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13489. (fileChecksum): Updated according to the changes in
  13490. MessageDigestContext.
  13491. * src/messageDigest.h: Rewritten.
  13492. * src/MetalinkEntry.cc
  13493. (check): Removed.
  13494. (Supported): Updated.
  13495. (dropUnsupportedResource): Fixed a memory leak.
  13496. * src/ShaVisitor.cc
  13497. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13498. (~ShaVisitor): Updated according to the changes in
  13499. MessageDigestContext.
  13500. (visit): Updated according to the changes in MessageDigestContext.
  13501. * src/main.cc
  13502. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13503. command-line option added.
  13504. * src/DownloadEngine.h
  13505. (SocketEntry): New class.
  13506. (SocketEntries): New definition.
  13507. (PairFind): Removed.
  13508. (SockCmdMap): Removed.
  13509. * src/DownloadEngine.cc
  13510. (DownloadEngine): Rewritten.
  13511. (~DownloadEngine): Rewritten.
  13512. (run): Renamed activeCommandUuids as activeUuids.
  13513. (SetDescriptor): Rewritten.
  13514. (AccumulateActiveCommandUuid): Removed.
  13515. (AccumulateActiveUuid): New function object.
  13516. (waitData): Rewritten.
  13517. (updateFdSet): Rewritten.
  13518. (addSocket): Rewritten.
  13519. (deleteSocket): Rewritten.
  13520. (addSocketForReadCheck): Rewritten.
  13521. (deleteSocketForReadCheck): Rewritten.
  13522. (addSocketForWriteCheck): Rewritten.
  13523. (deleteSocketForWriteCheck): Rewritten.
  13524. * src/Xml2MetalinkProcessor.cc
  13525. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13526. * src/DownloadCommand.cc
  13527. (executeInternal): Added the check routine for lowest speed limit.
  13528. * src/AbstractDiskWriter.cc
  13529. (AbstractDiskWriter): Updated according to the changes in
  13530. MessageDigestContext.
  13531. (~AbstractDiskWriter): Updated according to the changes in
  13532. MessageDigestContext.
  13533. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13534. * src/RequestInfo.h: New class.
  13535. * src/UrlRequestInfo.h: New class.
  13536. * src/UrlRequestInfo.cc: New class.
  13537. * src/TorrentRequestInfo.h: New class.
  13538. * src/TorrentRequestInfo.cc: New class.
  13539. * src/MetalinkRequestInfo.h: New class.
  13540. * src/MetalinkRequestInfo.cc: New class.
  13541. * src/Checksum.h: New class.
  13542. * src/DownloadEngineFactory.h: New class.
  13543. * src/DownloadEngineFactory.cc: New class.
  13544. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13545. * src/Option.h
  13546. (getAsBool): New function.
  13547. * src/Option.cc
  13548. (prefs.h): Included.
  13549. (defined): 0-length value is now recognized as undefined.
  13550. (getAsInt): Rewritten.
  13551. (getAsLLInt): Rewritten.
  13552. (getAsBool): New function.
  13553. * src/FeatureConfig.h: Rewritten.
  13554. * src/FeatureConfig.cc: Rewritten.
  13555. * src/prefs.h
  13556. (PREF_STDOUT_LOG): New definition.
  13557. (PREF_LOG): New definition.
  13558. (PREF_DIR): New definition.
  13559. (PREF_OUT): New definition.
  13560. (PREF_SPLIT): New definition.
  13561. (PREF_DAEMON): New definition.
  13562. (PREF_REFERER): New definition.
  13563. (PREF_TORRENT_FILE): New definition.
  13564. (PREF_LISTEN_PORT): New definition.
  13565. (PREF_METALINK_FILE): New definition.
  13566. (PREF_METALINK_VERSION): New definition.
  13567. (PREF_METALINK_LANGUAGE): New definition.
  13568. (PREF_METALINK_OS): New definition.
  13569. (PREF_METALINK_SERVERS): New definition.
  13570. * src/main.cc
  13571. (main): Following command-line parameters are now put into Option
  13572. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13573. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13574. metalinkLanguage, metalinkOs, metalinkServers
  13575. To fix the bug that aria2 can not handle http response header properly.
  13576. * src/HttpHeader.cc
  13577. (put): Made name lowercased.
  13578. (defined): Made name lowercased.
  13579. (getFirst): Made name lowercased.
  13580. (get): Made name lowercased.
  13581. (getFirstAsInt): Rewritten.
  13582. (getFirstAsLLInt): Rewritten.
  13583. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13584. * src/TorrentMan.h:
  13585. (advertisePiece): Updated doc.
  13586. (getAdvertisedPieceIndexes): Updated doc.
  13587. (removeAdvertisedPiece); New function.
  13588. * src/TorrentMan.cc
  13589. (FindElapsedHave): New function object.
  13590. (removeAdvertisedPiece): New function.
  13591. * src/HaveEraseCommand.h: New class.
  13592. * src/HaveEraseCommand.cc: New class.
  13593. * src/FeatureConfig.h: New class.
  13594. * src/FeatureConfig.cc: New class.
  13595. * src/Request.h
  13596. (defaultPorts): Removed.
  13597. * src/Request.cc
  13598. (FeatureConfig.h): Included.
  13599. (Request): Removed the statements related to defaultPorts.
  13600. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13601. A default port number is now retrieved from FeatureConfig.
  13602. * src/main.cc
  13603. (HaveEraseCommand.h): Included.
  13604. (showVersion): Added the output of feature list.
  13605. (main): Added HaveEraseCommand to command queue in BitTorrent
  13606. downloading.
  13607. * src/PeerInteractionCommand.h
  13608. (chokeCheckPoint): Commented out.
  13609. (periodicExecPoint): New variable.
  13610. * src/PeerInteractionCommand.cc
  13611. (executeInternal): Following methods are now called in at least every
  13612. 0.5 seconds to reduce CPU usage:
  13613. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13614. checkHave(), sendKeepAlive().
  13615. (checkLongTimePeerChoking): Commented out.
  13616. * src/BitfieldMan.h
  13617. (getNthBitIndex): Changed the method signature.
  13618. (getMissingIndexRandomly): Changed the method signature.
  13619. * src/BitfieldMan.cc
  13620. (getNthBitIndex): Rewritten
  13621. (getMissingIndexRandomly): Rewritten.
  13622. (hasMissingPiece): Rewritten.
  13623. (getMissingIndex): Refactored.
  13624. (getMissingUnusedIndex); Refactored.
  13625. (getMissingIndex): Refactored.
  13626. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13627. * src/PeerMessage.h
  13628. (Piece.h): Included.
  13629. (SharedHandle.h): Included.
  13630. (invalidate): New variable.
  13631. (uploading): New variable.
  13632. (isInvalidate): New function.
  13633. (isUploading): New function.
  13634. (onPush): New function.
  13635. (onChoked): New function.
  13636. (onCanceled): New function.
  13637. (onAbortPiece): New function.
  13638. (PeerMessageHandle): New type definition.
  13639. * src/PeerMessage.cc
  13640. (PeerMessage): Added the initialization for invalidate and uploading.
  13641. * src/CancelMessage.h
  13642. (CancelMessage): Rewritten.
  13643. * src/RejectMessage.h
  13644. (RejectMessage): Rewritten.
  13645. * src/Metalinker.h
  13646. (operator=): Defined.
  13647. * src/MetaEntry.h
  13648. (operator=): Defined.
  13649. * src/MetalinkResource.h
  13650. (operator=): Defined.
  13651. * src/AllowedFastMessage.h
  13652. (AllowedFastMessage): Rewritten.
  13653. * src/HandshakeMessage.h
  13654. (HandshakeMessage): New function(overload).
  13655. * src/HandshakeMessage.cc
  13656. (HandshakeMessage): Rewritten.
  13657. (init): New function.
  13658. * src/HaveMessage.h
  13659. (HaveMessage): Rewritten.
  13660. * src/Time.h
  13661. (operator=): Defined the function body here.
  13662. * src/Time.cc
  13663. (operator=): Removed.
  13664. * src/SocketCore.h
  13665. (operator==): Defined here.
  13666. (operator!=): Defined here.
  13667. (operator<): Defined here.
  13668. * src/SocketCore.cc
  13669. (operator==): Removed.
  13670. (operator<): Removed.
  13671. * src/BitfieldMan.h
  13672. (operator=): Defined the function body here.
  13673. * src/BitfieldMan.cc
  13674. (operator=): Removed.
  13675. * src/TorrentMan.h
  13676. (deleteErrorPeer): Removed.
  13677. (deleteUnusedPeer); New function.
  13678. * src/TorrentMan.cc
  13679. (addPeer): Call deleteUnusedPeer.
  13680. (deleteErrorPeer): Removed.
  13681. (deleteUnusedPeer): New function.
  13682. * src/PeerAbstractCommand.h
  13683. (setNoCheck): New function.
  13684. (noCheck): New variable.
  13685. * src/PeerAbstractCommand.cc
  13686. (PeerAbstractCommand): Added the initialization of noCheck.
  13687. (execute): Added a check for noCheck.
  13688. (setNoCheck): New function.
  13689. * src/Util.h
  13690. (stdio.h): Included.
  13691. * src/Util.cc
  13692. (unistd.h): Included.
  13693. * src/DefaultDiskWriter.cc
  13694. (unistd.h): Included.
  13695. * src/Peer.h
  13696. (operator==): Defined the function body here.
  13697. (operator!=): Defined the function body here.
  13698. * src/Peer.cc
  13699. (operator==): Removed.
  13700. (operator!=): Removed.
  13701. * src/Piece.h
  13702. (Piece): Defined the function body here(copy constructor).
  13703. (operator=): Defined the function body here.
  13704. (operator==): Defined the function body here.
  13705. * src/Piece.cc
  13706. (Piece): Removed(copy constructor).
  13707. (operator=): Removed.
  13708. (operator==): Removed.
  13709. * src/PeerMessageUtil.h
  13710. (ChokeMessage.h): Removed.
  13711. (UnchokeMessage.h): Removed.
  13712. (InterestedMessage.h): Removed.
  13713. (NotInterestedMessage.h): Removed.
  13714. (HaveMessage.h): Removed.
  13715. (BitfieldMessage.h): Removed.
  13716. (RequestMessage.h): Removed.
  13717. (CancelMessage.h): Removed.
  13718. (PieceMessage.h): Removed.
  13719. (HandshakeMessage.h): Removed.
  13720. (KeepAliveMessage.h): Removed.
  13721. (PortMessage.h): Removed.
  13722. (HaveAllMessage.h): Removed.
  13723. (HaveNoneMessage.h): Removed.
  13724. (PeerConnection.h): Removed.
  13725. (HandshakeMessage.h): Included.
  13726. * src/BitfieldMessage.h
  13727. (init): New function.
  13728. (BitfieldMessage): Rewritten.
  13729. (BitfieldMessage): New function(overload).
  13730. * src/RequestSlot.h
  13731. (operator=): Defined the function body here.
  13732. (operator==): Defined the function body here.
  13733. * src/RequestSlot.cc
  13734. (operator=): Removed.
  13735. (operator==): Removed.
  13736. To remove the dependency on the PeerMessage subclass from
  13737. PeerInteraction:
  13738. * src/PeerMessageFactory.h: New class.
  13739. * src/PeerMessageFactory.cc: New class.
  13740. * src/SimplePeerMessage.cc
  13741. (send): If invalidate is true then do nothing.
  13742. * src/PeerInteractionCommand.cc
  13743. (HandshakeMessage.h): Included.
  13744. (KeepAliveMessage.h): Included.
  13745. (ChokeMessage.h): Included.
  13746. (UnchokeMessage.h): Included.
  13747. (HaveMessage.h): Included.
  13748. (executeInternal): Call setNoCheck().
  13749. Removed setWriteCheckSocket(socket).
  13750. * src/PeerInteraction.h
  13751. (ChokeMessage.h): Removed.
  13752. (UnchokeMessage.h): Removed.
  13753. (InterestedMessage.h): Removed.
  13754. (NotInterestedMessage.h): Removed.
  13755. (HaveMessage.h): Removed.
  13756. (BitfieldMessage.h): Removed.
  13757. (RequestMessage.h): Removed.
  13758. (CancelMessage.h): Removed.
  13759. (PieceMessage.h): Removed.
  13760. (HandshakeMessage.h): Removed.
  13761. (KeepAliveMessage.h): Removed.
  13762. (PortMessage.h): Removed.
  13763. (HaveAllMessage.h): Removed.
  13764. (HaveNoneMessage.h): Removed.
  13765. (RejectMessage.h): Removed.
  13766. (AllowedFastMessage.h): Removed.
  13767. (SuggestPieceMessage.h): Removed.
  13768. (PeerMessageFactory.h): Included.
  13769. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13770. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13771. (PeerMessageFactory): New variable.
  13772. (createPeerMessage): Removed.
  13773. (createHandshakeMessage): Removed.
  13774. (setPeerMessageCommonProperty): Removed.
  13775. (addRequestSlot): New function.
  13776. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13777. (getPeerMessageFactory): New function.
  13778. (createRequestMessage): Removed.
  13779. (createCancelMessage): Removed.
  13780. (createPieceMessage): Removed.
  13781. (createHaveMessage): Removed.
  13782. (createChokeMessage): Removed.
  13783. (createUnchokeMessage): Removed.
  13784. (createInterestedMessage): Removed.
  13785. (createNotInterestedMessage): Removed.
  13786. (createBitfieldMessage): Removed.
  13787. (createKeepAliveMessage): Removed.
  13788. (createHaveAllMessage): Removed.
  13789. (createHaveNoneMessage): Removed.
  13790. (createRejectMessage): Removed.
  13791. (createAllowedFastMessage): Removed.
  13792. * src/PeerInteraction.cc
  13793. (PeerInteraction): Allocate PeerMessageFactory here.
  13794. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13795. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13796. PieceMessage::ID.
  13797. (addMessage): Simplified by using PeerMessage::onPush().
  13798. (addRequestSlot): New function.
  13799. (rejectAllPieceMessageInQueue): Simplified by using
  13800. PeerMessage::onChoked().
  13801. (rejectPieceMessageInQueue): Simplified by using
  13802. PeerMessage::onCanceled().
  13803. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13804. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13805. (createHandshakeMessage): Removed.
  13806. (createPeerMessage): Removed.
  13807. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13808. (setPeerMessageCommonProperty): Removed.
  13809. (createRequestMessage): Removed.
  13810. (createCancelMessage): Removed.
  13811. (createPieceMessage): Removed.
  13812. (createHaveMessage): Removed.
  13813. (createChokeMessage): Removed.
  13814. (createUnchokeMessage): Removed.
  13815. (createInterestedMessage): Removed.
  13816. (createNotInterestedMessage): Removed.
  13817. (createBitfieldMessage): Removed.
  13818. (createKeepAliveMessage): Removed.
  13819. (createHaveAllMessage): Removed.
  13820. (createHaveNoneMessage): Removed.
  13821. (createRejectMessage): Removed.
  13822. (createAllowedFastMessage): Removed.
  13823. * src/PieceMessage.h
  13824. (createRejectMessage): New function.
  13825. (PieceMessage): Rewritten.
  13826. (onChoked): New function.
  13827. (onCanceled): New function.
  13828. * src/PieceMessage.cc
  13829. (send): If invalidate is true then do nothing, just return.
  13830. (createRejectMessage): New function.
  13831. (onChoked): New function.
  13832. (onCanceled): New function.
  13833. * src/RequestMessage.h
  13834. (RequestMessage): Rewritten.
  13835. (onPush): New function.
  13836. (onAbortPiece): New function.
  13837. * src/RequestMessage.cc
  13838. (onPush): New function.
  13839. (onAbortPiece): New function.
  13840. Update fd_set when a socket is added or deleted in order to improve
  13841. performance:
  13842. * src/DownloadEngine.h
  13843. (rfdset): New variable.
  13844. (wfdset): New variable.
  13845. (updateFdSet): New function.
  13846. * src/DownloadEngine.cc
  13847. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13848. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13849. (waitData): Copy rfdset and wfdset.
  13850. (updateFdSet): New function.
  13851. (addSocket): Call updateFdSet.
  13852. (deleteSocket): Call updateFdSet.
  13853. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13854. To add the support for Metalink3.0 backward compatible links:
  13855. * src/Request.h
  13856. (SAFE_CHARS): Added '#'.
  13857. (METALINK_MARK): New definition.
  13858. * src/Request.cc
  13859. (parseUrl): Added the support for Metalink3.0 backward compatible
  13860. links.
  13861. etc
  13862. * src/PeerInteraction.cc
  13863. (MsgPushBack): Removed.
  13864. (sendMessages): Use STL copy and back_inserter.
  13865. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13866. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13867. * src/TorrentMan.h
  13868. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13869. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13870. * src/SharedHandle.h: New class.
  13871. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13872. * src/HttpResponseCommand.h
  13873. (HttpResponseCommand): Wrapped Socket.
  13874. * src/SocketCore.h
  13875. (operator==): New function.
  13876. (operator!=): New function.
  13877. (operator<): New function.
  13878. (getSockfd): New function.
  13879. (isOpen): New function.
  13880. (writeData): New function.
  13881. * src/SocketCore.cc
  13882. (operator==): New function.
  13883. (operator!=): New function.
  13884. (operator<): New function.
  13885. * src/AbstractCommand.h
  13886. (socket): Changed its type to SocketHandle.
  13887. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13888. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13889. (disableReadCheckSocket): New function.
  13890. (disableWriteCheckSocket): New function.
  13891. (readCheckTarget): Changed its type to SocketHandle.
  13892. (writeCheckTarget): Changed its type to SocketHandle.
  13893. (AbstractCommand): Replaced Socket with SocketHandle.
  13894. * src/AbstractCommand.cc
  13895. (AbstractCommand): Replaced Socket with SocketHandle.
  13896. (~AbstractCommand): Removed the deallocation for Socket object.
  13897. (disableReadCheckSocket): New function.
  13898. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13899. (disableWriteCheckSocket): New function.
  13900. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13901. * src/HttpDownloadCommand.cc
  13902. (DownloadCommand): Replaced Socket with SocketHandle.
  13903. * src/PeerAbstractCommand.h
  13904. (socket): Changed its type to SocketHandle.
  13905. (peer): Changed its type to PeerHandle.
  13906. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13907. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13908. (disableReadCheckSocket): New function.
  13909. (disableWriteCheckSocket): New function.
  13910. (readCheckTarget): Changed its type to SocketHandle.
  13911. (writeCheckTarget): Changed its type to SocketHandle.
  13912. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13913. Replaced Peer with PeerHandle.
  13914. * src/HttpRequestCommand.cc
  13915. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13916. Use disableReadCheckSocket.
  13917. * src/PeerInitiateConnectionCommand.h
  13918. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13919. * src/PeerChokeCommand.cc
  13920. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13921. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13922. (execute): Use PeerHandle.
  13923. * src/PeerConnection.h
  13924. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13925. (socket): Changed its type to SocketHandle.
  13926. (PeerConnection): Replaced Socket with SocketHandle.
  13927. * src/PeerConnection.cc
  13928. (PeerConnection): Replaced Socket with SocketHandle.
  13929. * src/PeerInteractionCommand.h
  13930. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13931. Replaced Peer with PeerHandle.
  13932. * src/PeerInteractionCommand.cc
  13933. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13934. Replaced Peer with PeerHandle.
  13935. (executeInternal): Use disableWriteCheckSocket.
  13936. Use HandshakeMessageHandle.
  13937. (receiveMessages): Use PeerMessageHandle.
  13938. (prepareForNextPeer): Use PeerHandle.
  13939. * src/HttpProxyRequestCommand.h
  13940. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13941. * src/HttpResponseCommand.cc
  13942. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13943. * src/TorrentMan.cc
  13944. (nullPeer): Added external reference.
  13945. (~TorrentMan): Removed the deallocation of the elements of peers.
  13946. (addPeer): Rewritten.
  13947. (isPeerAvailable): Use nullPeer.
  13948. (deleteOldpeers): Replaced with deleteErrorPeer.
  13949. (deleteErrorPeer): New function.
  13950. (getPeer): Use PeerHandle and nullPeer.
  13951. (hasMissingPiece): Replaced Peer with PeerHandle.
  13952. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13953. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13954. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13955. (getMissingPiece): Replaced Peer with PeerHandle.
  13956. * src/FtpNegotiateCommand.cc
  13957. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13958. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13959. (recvGreeting): Use disableWriteCheckSocket.
  13960. (recvPasv): Removed the allocation of Socket.
  13961. Use disableReadCheckSocket.
  13962. (sendRestPasv): Use disableWriteCheckSocket.
  13963. (recvRetr): Changed assertion.
  13964. * src/PeerInteraction.h
  13965. (SharedHandle.h): Included SharedHandle.h.
  13966. (PeerMessageHandle): New type definition.
  13967. (HandshakeMessageHandle): New type definition.
  13968. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13969. (peer): Changed its type to PeerHandle.
  13970. (createHandshakeMessage): Replaced HandshakeMessage with
  13971. HandshakeMessageHandle.
  13972. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13973. (PeerInteraction): Replaced Peer with PeerHandle.
  13974. Replaced Socket with SocketHandle.
  13975. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13976. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13977. (receiveHandshake): Replaced HandshakeMessage with
  13978. HandshakeMessageHandle.
  13979. * src/PeerInteraction.cc
  13980. (PeerInteraction): Replaced Peer with PeerHandle.
  13981. Replaced Socket with SocketHandle.
  13982. (~PeerInteraction): Removed the deallocation of the elements of
  13983. messageQueue.
  13984. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13985. (isSendingMessageInProgress): Replaced PeerMessage with
  13986. PeerMessageHandle.
  13987. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13988. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13989. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13990. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13991. (abortPiece): Use PeerMessageHandle.
  13992. (receiveHandshake): Replaced HandshakeMessage with
  13993. HandshakeMessageHandle. Removed try-catch block.
  13994. (createHandshakeMessage): Replaced HandshakeMessage with
  13995. HandshakeMessageHandle.
  13996. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13997. Removed try-catch block.
  13998. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13999. * src/HttpProxyResponseCommand.cc
  14000. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14001. * src/FtpTunnelResponseCommand.h
  14002. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14003. * src/HttpConnection.cc
  14004. (HttpConnection): Replaced Socket with SocketHandle.
  14005. * src/PeerAbstractCommand.cc
  14006. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14007. (~PeerAbstractCommand): Removed the deallocation of socket.
  14008. Use disableReadCheckSocket, disableWriteCheckSocket.
  14009. (disableReadCheckSocket): New function.
  14010. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14011. (disableWriteCheckSocket): New function.
  14012. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14013. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14014. * src/FtpTunnelRequestCommand.cc
  14015. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14016. (~FtpTunnelRequestCommand): Corrected indentation.
  14017. * src/DownloadCommand.h
  14018. (DownloadCommand): Replaced Socket with SocketHandle.
  14019. * src/PeerListenCommand.cc
  14020. (PeerListenCommand): Removed the initialization of socket.
  14021. (~PeerListenCommand): Removed the deallocation of socket.
  14022. (bindPort): Use SocketHandle.
  14023. (execute): Use SocketHandle and PeerHandle.
  14024. * src/FtpDowndloadCommand.cc
  14025. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14026. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14027. * src/main.cc
  14028. (main): Corrected indentation.
  14029. * src/HttpInitiateConnectionCommand.cc
  14030. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14031. (executeInternal): Removed the allocation of socket.
  14032. * src/HttpRequestCommand.h
  14033. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14034. * src/FtpNegotiationCommand.h
  14035. (dataSocket): Changed its type to SocketHandle.
  14036. (serverSocket): Changed its type to SocketHandle.
  14037. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14038. * src/TorrentMan.h
  14039. (MAX_PEER_UPDATE): Removed.
  14040. (MAX_PEERS): New definition.
  14041. (Peers): The element is now of type PeerHandle.
  14042. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14043. (getPeer): Replaced Peer with PeerHandle.
  14044. (deleteOldErrorPeers): Removed.
  14045. (deleteErrorPeer): New function.
  14046. (hasMissingPiece): Replaced Peer with PeerHandle.
  14047. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14048. (getMissingPiece): Replaced Peer with PeerHandle.
  14049. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14050. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14051. (addActivePeer): Replaced Peer with PeerHandle.
  14052. (deleteActivePeer): Replaced Peer with PeerHandle.
  14053. Added a check for the return value of find.
  14054. * src/FtpTunnelResponseCommand.cc
  14055. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14056. * src/FtpInitiateConnectionCommand.cc
  14057. (executeInternal): Removed the allocation of socket.
  14058. * src/DownloadEngine.h
  14059. (Sockets): An element is now of type SocketHandle.
  14060. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14061. (CommandUuids): New type definition.
  14062. (rsockets): Changed its type to SockCmdMap.
  14063. (wsockets): Changed its type to SockCmdMap.
  14064. (addSocket): Rewritten.
  14065. (deleteSocket): Rewritten.
  14066. (addSocketForReadCheck): Rewritten.
  14067. (deleteSocketForReadCheck): Rewritten.
  14068. (addSocketForWriteCheck): Rewritten.
  14069. (deleteSocketForWriteCheck): Rewritten.
  14070. (PairFind): New template class.
  14071. * src/HttpDownloadCommand.h
  14072. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14073. * src/FtpConnection.cc
  14074. (FtpConnection): Replaced Socket with SocketHandle.
  14075. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14076. block.
  14077. * src/InitiateConnectionCommandFactory.cc
  14078. (DlAbortEx.h): Included DlAbortEx.h.
  14079. (createInitiateConnectionCommand): Throw exception if the protocol of
  14080. requested URI is not supported.
  14081. * src/Peer.cc
  14082. (nullPeer): Changed its type to PeerHandle.
  14083. (operator==): New function.
  14084. (operator!=): New function.
  14085. * src/Peer.h
  14086. (SharedHandle.h): Included SharedHandle.h.
  14087. (operator==): New function.
  14088. (operator!=): New function.
  14089. (Peer): Added the default constructor.
  14090. Use resetStatus() to initialize member variables.
  14091. (nullPeer): Removed.
  14092. * src/TrackerUpdateCommand.cc
  14093. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14094. with MIN_PEERS.
  14095. * src/PeerListenCommand.h
  14096. (socket): Changed its type to SocketHandle.
  14097. * src/Command.h
  14098. (CommandUuid): New type definition.
  14099. (uuid): New variable.
  14100. (uuidGen): New variable.
  14101. (Command): Added the initialization of uuid.
  14102. (getUuid): New function.
  14103. * src/Socket.h
  14104. (Socket): Removed.
  14105. (SocketHandle): New type definition.
  14106. * src/DownloadEngine.h
  14107. (FindCommand): New function object.
  14108. (run): The portion of socket check was rewritten.
  14109. (SetDescriptor): New function object.
  14110. (AccumulateActiveCommandUuid): New function object.
  14111. (waitData): Rewritten.
  14112. (addSocket): Rewritten.
  14113. (deleteSocket): Rewritten.
  14114. (addSocketForReadCheck): Rewritten.
  14115. (addSocketForWriteCheck): Rewritten.
  14116. (deleteSocketForReadCheck): Rewritten.
  14117. (deleteSocketForWriteCheck): Rewritten.
  14118. * src/HttpProxyResponseCommand.h
  14119. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14120. * src/HttpConnection.h
  14121. (socket): Changed its type to SocketHandle.
  14122. (HttpConnection): Replaced Socket with SocketHandle.
  14123. * src/PeerInitiateConnectionCommand.cc
  14124. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14125. (executeInternal): Removed the allocation of socket.
  14126. (prepareForNextPeer): Use PeerHandle.
  14127. * src/PeerMessage.h
  14128. (peer): Changed its type to PeerHandle.
  14129. (getPeer): Replaced Peer with PeerHandle.
  14130. (setPeer): Replaced Peer with PeerHandle.
  14131. * src/DownloadCommand.cc
  14132. (DownloadCommand): Replaced Socket with SocketHandle.
  14133. * src/FtpConnection.h
  14134. (socket): Changed its type to SocketHandle.
  14135. (FtpConnection): Replaced Socket with SocketHandle.
  14136. (sendPort); Replaced Socket with SocketHandle.
  14137. * src/FtpDowndloadCommand.h
  14138. (ctrlSocket): Changed its type to SocketHandle.
  14139. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14140. * src/HttpProxyRequestCommand.cc
  14141. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14142. * src/FtpTunnelRequestCommand.h
  14143. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14144. etc
  14145. * src/PeerChokeCommand.h
  14146. (setAllPeerChoked): Removed.
  14147. (setAllPeerResetDelta): Removed.
  14148. * src/PeerChokeCommand.cc
  14149. (setAllPeerChoked): Removed.
  14150. (ChokePeer): New function object.
  14151. (setAllPeerResetDelta): Removed.
  14152. (ResetDelta): New function object.
  14153. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14154. (execute): Show download speed when the local node is a seeder.
  14155. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14156. using STL.
  14157. * src/TrackerWatcherCommand.h
  14158. (MIN_PEERS): Removed.
  14159. * src/TorrentMan.cc
  14160. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14161. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14162. To fix the bug that .aria2 file is not saved if downloading is stopped
  14163. by the errors:it results that aria2 can not resume downloading:
  14164. * src/main.cc
  14165. (normalDownload): Added the call to save().
  14166. (main): Added the deletion of the elements in 'reserved'.
  14167. To fix log:
  14168. * src/PeerInteraction.cc
  14169. (receiveHandshake): Fixed log.
  14170. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14171. To improve download performance in BitTorrent:
  14172. * src/TorrentMan.cc
  14173. (getPeer): Check the number of connections. Return nullPeer if
  14174. it is greater than MAX_PEER_UPDATE.
  14175. This code was originally here, but was removed in 0.5.1.
  14176. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14177. To improve the conditional compilation:
  14178. * src/MultiDiskWriter.h:
  14179. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14180. * src/MultiDiskWriter.cc:
  14181. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14182. * src/Util.h:
  14183. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14184. Added ENABLE_BITTORRENT around computeFastSet().
  14185. * src/Util.cc:
  14186. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14187. Added ENABLE_BITTORRENT around computeFastSet().
  14188. * src/messageDigest.h:
  14189. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14190. * src/ShaVisitor.h:
  14191. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14192. * src/ShaVisitor.cc:
  14193. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14194. * src/main.cc:
  14195. Added ENABLE_BITTORRENT around includes and blocks related to
  14196. BitTorrent.
  14197. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14198. digest support is not available.
  14199. * src/AbstractDiskWriter.h:
  14200. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14201. * src/AbstractDiskWriter.cc:
  14202. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14203. * src/MetalinkEntry.cc
  14204. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14205. support is not available.
  14206. To add command-line options for Metalink:
  14207. * src/main.cc:
  14208. Added metalink-version, metalink-language, metalink-os,
  14209. follow-metalink.
  14210. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14211. * src/main.cc: Use these definition.
  14212. * Release 0.6.0
  14213. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14214. To add Metalink support(http/ftp only):
  14215. * src/AbstractCommand.h
  14216. (tryReserved): New function.
  14217. * src/AbstractCommand.cc
  14218. (execute): Call tryReserved().
  14219. (tryReserved): New function.
  14220. * src/Request.h
  14221. (Requests): New type definition.
  14222. * src/SegmentMan.h
  14223. (reserved): New variable.
  14224. * src/Util.h
  14225. (fileChecksum): New function.
  14226. (toUpper): New function.
  14227. (toLower): New function.
  14228. * src/Util.cc
  14229. (messageDigest.h): Included.
  14230. (trim): Trim \r\n\t.
  14231. (fileChecksum): New function.
  14232. (toUpper): New function.
  14233. (toLower): New function.
  14234. * src/main.cc
  14235. (normalDownload): New function.
  14236. (main): Added 2 command-line options: metalink-file,
  14237. metalink-connection. Their usage has not been written yet.
  14238. * src/MetalinkProcessor.h: New class.
  14239. * src/Xml2MetalinkProcessor.h: New class.
  14240. * src/Xml2MetalinkProcessor.cc: New class.
  14241. * src/MetalinkEntry.h: New class.
  14242. * src/MetalinkEntry.cc: New class.
  14243. * src/MetalinkResource.h: New class.
  14244. * src/MetalinkResource.cc: New class.
  14245. To add md5 message digest checking:
  14246. * src/messageDigest.h: Rewritten.
  14247. * src/MultiDiskWriter.cc: Updated according to the changes in
  14248. messageDigest.h.
  14249. * src/ShaVisitor.cc: Updated according to the changes in
  14250. messageDigest.h.
  14251. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14252. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14253. messageDigest.h.
  14254. To fix a bug that causes segfault when the payload length in peer
  14255. message is less than 0:
  14256. * src/PeerConnection.cc:
  14257. (receiveMessage): Fixed the bug.
  14258. * src/PeerMessageUtil.cc
  14259. (checkLength): Throw an exception if length is less than or equals to
  14260. 0.
  14261. To add new interfaces to Base64 encoding/decoding:
  14262. * src/Base64.h
  14263. (part_encode): Changed the method signature.
  14264. (encode): New function(overload).
  14265. (decode): New function(overload).
  14266. * src/Base64.cc
  14267. (part_encode): Rewritten.
  14268. (encode): Rewritten.
  14269. (encode): New function(overload).
  14270. To prevent a peer to download same piece if there is an error in
  14271. checksum:
  14272. * src/PieceMessage.cc
  14273. (receivedAction): Call peerInteraction->abortPiece().
  14274. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14275. To fix the bug that causes same have message is sent many times to
  14276. a single peer.
  14277. * src/Time.cc
  14278. (isNewer): Use Util::difftv().
  14279. * src/Util.cc
  14280. (difftv): Added a cast to (long long int).
  14281. * src/TorrentMan.cc
  14282. (advertisePiece): Use push_front.
  14283. (getAdvertisedPieceIndexes): A performance improvement was made.
  14284. To fix the bug that sends tracker requests without a sleep interval
  14285. when the number of connections is less than 15.
  14286. * src/TrackerWatcherCommand.cc
  14287. (execute): Now the number of connections is not a factor to decide
  14288. whether or not a tracker request should be sent or not.
  14289. * src/Time.h
  14290. (setTimeInSec): New function.
  14291. * src/Time.cc
  14292. (setTimeInSec): New function.
  14293. etc.
  14294. * src/ChokeMessage.cc
  14295. (receivedAction): Removed peer->snubbing = false
  14296. * src/PeerConnection.h
  14297. (receiveHandshake): Updated doc.
  14298. * src/TorrentMan.h
  14299. (getAdvertisedPieceIndexes): Updated the method signature.
  14300. * src/TorrentMan.cc
  14301. (getAdvertisedPieceIndexes): Updated the method signature.
  14302. * src/Time.h
  14303. (getTimeInMicros): Added a cast to (long long int).
  14304. (getTimeInMillis): Added a cast to (long long int).
  14305. * Release 0.5.2
  14306. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14307. To make a listening socket non-block:
  14308. * src/SocketCore.h
  14309. (setNonBlockingMode): New function.
  14310. * src/SocketCore.cc
  14311. (setNonBlockingMode): New function.
  14312. (beginListen): Added a call to setNonBlockingMode().
  14313. (acceptConnection): Call setNonBlockingMode().
  14314. (setBlockingMode): Updated.
  14315. To handle tracker's NAT-checking:
  14316. * src/PeerConnection.cc
  14317. (receiveHandshake): 'msg' param is filled with received data and
  14318. its length is assigned to 'length' param, even if all handshake
  14319. message is not yet received.
  14320. * src/PeerInteractionCommand.cc
  14321. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14322. a new peer connects to localhost.
  14323. A call to peerInteraction->sendHandshake() was removed because
  14324. it is called from peerInteraction->receiveHandshake(true).
  14325. * src/PeerInteraction.h
  14326. (quickReplied): New variable.
  14327. (receiveHandshake): Added an argument.
  14328. * src/PeerInteraction.cc
  14329. (PeerInteraction): Added the initialization of quickReplied.
  14330. (receiveHandshake): Send handshake message as soon as the info hash
  14331. in a handshake message from a peer is correct.
  14332. To change the random part of peer id and key parameter:
  14333. * src/TorrentMan.h
  14334. (key): New variable.
  14335. * src/TorrentMan.cc
  14336. (setupInternal1): Use Util::randomAlpha() to generate random part
  14337. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14338. key is also generated by Util::randomAlpha() and it is now 8 character
  14339. long.
  14340. * src/Util.h
  14341. (randomAlpha): New function.
  14342. * src/Util.cc
  14343. (randomAlpha): New function.
  14344. * src/TrackerWatcherCommand.cc
  14345. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14346. Added no_peer_id=1.
  14347. Set snubbing flag to false when a choke message is received from a
  14348. snubbed peer.
  14349. * src/ChokeMessage.cc
  14350. (receivedAction): Set snubbing flag to false.
  14351. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14352. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14353. * src/SimpleLogger.h (writeHeader): New function.
  14354. * src/SimpleLogger.cc (writeHeader): New function.
  14355. (writeLog): Fixed the bug that causes segfaults if exception message
  14356. contains an unescaped "%" character.
  14357. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14358. when a tracker request fails.
  14359. * src/Request.cc (parseUrl): Query string is now handled properly.
  14360. * Release 0.5.1
  14361. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14362. To add Time class which represents a specific instant in time and
  14363. its precision is microseconds. Time checking procedures were rewritten
  14364. using this object.
  14365. * src/Time.h: New class.
  14366. * src/Time.cc: New class.
  14367. * src/AbstractCommand.h
  14368. (updateCheckPoint): Removed.
  14369. (isTimeoutDetected): Removed.
  14370. (checkPoint): Changed the type to Time.
  14371. (timeout): New variable.
  14372. (setTimeout): New function.
  14373. * src/AbstractCommand.cc
  14374. (AbstractCommand): Removed the initialization of checkPoint.
  14375. Added the initialization of timeout.
  14376. (updateCheckPoint): Removed.
  14377. (isTimeoutDetected): Removed.
  14378. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14379. * src/PeerChokeCommand.h
  14380. (checkPoint): Changed the type to Time.
  14381. * src/PeerChokeCommand.cc
  14382. (PeerChokeCommand): Removed the initialization of checkPoint.
  14383. (execute): Rewritten using Time object.
  14384. * src/TrackerWatcherCommand.h
  14385. (checkPoint): Changed the type to Time.
  14386. * src/TrackerWatcherCommand.cc
  14387. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14388. (execute): Rewritten.
  14389. * src/ConsoleDownloadEngine.h
  14390. (cp): Changed the type to Time.
  14391. (startup): Changed the type to Time.
  14392. * src/ConsoleDownloadEngine.cc
  14393. (initStatistics): Use cp.reset(), startup.reset().
  14394. (calculateStatistics): Rewritten using Time object.
  14395. * src/PeerAbstractCommand.h
  14396. (updateCheckPoint): Removed.
  14397. (isTimeoutDetected): Removed.
  14398. (checkPoint): Changed the type to Time.
  14399. * src/PeerAbstractCommand.cc
  14400. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14401. (updateCheckPoint): Removed.
  14402. (isTimeoutDetected): Removed.
  14403. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14404. * src/PeerInteractionCommand.cc
  14405. (PeerInteractionCommand): Removed the initializations of struct
  14406. timeval variables.
  14407. * src/PeerInteractionCommand.h
  14408. (keepAliveCheckPoint): Changed the type to Time.
  14409. (chokeCheckPoint): Changed the type to Time.
  14410. (freqCheckPoint): Changed the type to Time.
  14411. (haveCheckTime): Changed the type to Time.
  14412. * src/PeerInteractionCommand.cc
  14413. (executeInternal): Rewritten using Time object.
  14414. (detectMessageFlooding): Rewritten using Time object.
  14415. (checkLongTimePeerChoking): Rewritten using Time object.
  14416. (sendKeepAlive): Rewritten using Time object.
  14417. (checkHave): Rewritten using Time object.
  14418. * src/SleepCommand.h
  14419. (checkPoint): Changed the type to Time.
  14420. * src/SleepCommand.cc
  14421. (SleepCommand): Removed the initialization of checkPoint.
  14422. (execute): Rewritten using Time object.
  14423. * src/TorrentAutoSaveCommand.h
  14424. (checkPoint): Changed the type to Time.
  14425. * src/TorrentAutoSaveCommand.cc
  14426. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14427. (execute): Rewritten.
  14428. * src/DownloadCommand.h
  14429. (sw): Changed the type to Time.
  14430. * src/DownloadCommand.cc
  14431. (DownloadCommand): Removed the initialization of sw.
  14432. (executeInternal): Rewritten.
  14433. * src/RequestSlot.h
  14434. (dispatchedTime): Changed the type to Time.
  14435. * src/RequestSlot.cc
  14436. (RequestSlot): Removed the call to setDispatchedTime().
  14437. (setDispatchedTime): Rewirtten.
  14438. (isTimeout): Rewritten.
  14439. (getLatencyInMillis): Rewritten.
  14440. * src/TorrentDownloadEngine.h
  14441. (cp): Changed the type to Time[2].
  14442. (startup): Changed the type to Time.
  14443. * src/TorrentDownloadEngine.cc
  14444. (initStatistics): Rewritten.
  14445. (calculateStatistics): Rewritten.
  14446. * src/DownloadEngine.cc
  14447. (run): Rewritten.
  14448. To detect all attempts to connect to the tracker are failed:
  14449. * src/AbstractCommand.cc
  14450. (execute): Increment e->segmentMan->errors if a command aborted.
  14451. * src/SegmentMan.h
  14452. (errors): New variable.
  14453. * src/SegmentMan.cc
  14454. (SegmentMan): Added the initialization of errors.
  14455. (init): Added the initialization of errors.
  14456. * src/TrackerWatcherCommand.cc
  14457. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14458. request was failed.
  14459. To handle snubbed peers:
  14460. * src/PeerChokeCommand.cc
  14461. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14462. (execute): Snubbed peers don't get unchoked.
  14463. * src/PeerInteraction.h
  14464. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14465. * src/PeerInteraction.cc
  14466. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14467. back the requested 16k block in 60 seconds.
  14468. * src/PieceMessage.cc
  14469. (receivedAction): A peer's snubbed state is cleard if it sends
  14470. the requested 16k block in 60 seconds.
  14471. * src/Peer.h
  14472. (snubbing): New variable.
  14473. * src/Peer.cc
  14474. (resetStatus): Added snubbed = false.
  14475. To fix the bug that causes have message is not sent:
  14476. * src/PeerInteractionCommand.cc
  14477. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14478. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14479. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14480. * src/TorrentMan.h
  14481. (HaveEntry): New class.
  14482. (advertisePiece): Rewritten.
  14483. (getAdvertisedPieceIndexes): Rewritten.
  14484. (Haves): Changed the type.
  14485. (getAdvertisedPieceIndexes): Added an argument.
  14486. Others:
  14487. * src/TorrentMan.h
  14488. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14489. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14490. * src/TorrentMan.cc
  14491. (getPeer): Don't check the number of connections here.
  14492. (setupInternal1): Changed peerId.
  14493. * src/PeerInteractionCommand.h
  14494. (KEEP_ALIVE_INTERVAL): New definition.
  14495. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14496. * src/main.cc
  14497. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14498. * src/DownloadEngine.h: Removed unnecessary header includes.
  14499. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14500. To fix the bug that causes segfaults if a tracker returns a zero-length
  14501. list as "peers":
  14502. * src/TrackerUpdateCommand.cc
  14503. (execute): Added a check to see wether the type of peers is Data*.
  14504. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14505. * Release 0.5.0
  14506. To fix compile issue with gcc3:
  14507. * src/CancelMessage.h
  14508. (ID): Renamed as ID_t
  14509. (ID_t): New enum.
  14510. * src/RejectMessage.h
  14511. (ID): Renamed as ID_t
  14512. (ID_t): New enum.
  14513. * src/SuggestPieceMessage.h
  14514. (ID): Renamed as ID_t
  14515. (ID_t): New enum.
  14516. * src/AllowedFastMessage.h
  14517. (ID): Renamed as ID_t
  14518. (ID_t): New enum.
  14519. * src/PortMessage.h
  14520. (ID): Renamed as ID_t
  14521. (ID_t): New enum.
  14522. * src/HaveNoneMessage.h
  14523. (ID): Renamed as ID_t
  14524. (ID_t): New enum.
  14525. * src/KeepAliveMessage.h
  14526. (ID): Renamed as ID_t
  14527. (ID_t): New enum.
  14528. * src/HaveAllMessage.h
  14529. (ID): Renamed as ID_t
  14530. (ID_t): New enum.
  14531. * src/UnchokeMessage.h
  14532. (ID): Renamed as ID_t
  14533. (ID_t): New enum.
  14534. * src/BitfieldMessage.h
  14535. (ID): Renamed as ID_t
  14536. (ID_t): New enum.
  14537. * src/PieceMessage.h
  14538. (ID): Renamed as ID_t
  14539. (ID_t): New enum.
  14540. * src/RequestMessage.h
  14541. (ID): Renamed as ID_t
  14542. (ID_t): New enum.
  14543. * src/NotInterestedMessage.h
  14544. (ID): Renamed as ID_t
  14545. (ID_t): New enum.
  14546. * src/ChokeMessage.h
  14547. (ID): Renamed as ID_t
  14548. (ID_t): New enum.
  14549. * src/InterestedMessage.h
  14550. (ID): Renamed as ID_t
  14551. (ID_t): New enum.
  14552. * src/HaveMessage.h
  14553. (ID): Renamed as ID_t
  14554. (ID_t): New enum.
  14555. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14556. * src/PeerAbstractCommand.h
  14557. (beforeSocketCheck): Removed.
  14558. * src/PeerAbstractCommand.cc
  14559. Modified in order to call executeInternal() even if socket check
  14560. and upload limit check fail.
  14561. * src/PeerInteractionCommand.h
  14562. (keepAlive): Removed.
  14563. (sendKeepAlive): New function.
  14564. (checkHave): New function.
  14565. (beforeSocketCheck): Removed.
  14566. * src/PeerInteractionCommand.cc
  14567. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14568. calls to checkHave() and sendKeepAlive().
  14569. (keepAlive): Renamed to sendKeepAlive().
  14570. (sendKeepAlive): New function.
  14571. (beforeSocketCheck): Removed.
  14572. (checkHave): New function.
  14573. * src/BitfieldMan.cc
  14574. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14575. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14576. 0.
  14577. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14578. * src/TorrentMan.h
  14579. (UsedPieces): Removed.
  14580. (Pieces): New type definition.
  14581. * src/Piece.h: Updated doc.
  14582. * src/Peer.h
  14583. (totalLength): Removed.
  14584. * src/Peer.cc
  14585. (updateLatency): Fixed the latency calculation.
  14586. * src/TorrentMan.cc
  14587. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14588. than or equal to MAX_PEER_LIST_SIZE.
  14589. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14590. then return false.
  14591. (deleteOldErrorPeers): Rewritten.
  14592. (deleteUsedPiece): Fixed the miss use of STL remove.
  14593. * src/PeerInteraction.h
  14594. (Pieces): Removed.
  14595. (deleteTimeoutRequestSlot): Removed.
  14596. (deleteCompletedRequestSlot): Removed.
  14597. (checkRequestSlot): New function.
  14598. * src/PeerInteraction.cc
  14599. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14600. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14601. (checkRequestSlot): New function.
  14602. * src/DownloadEngine.cc
  14603. (run): Clear activeSockets before calling waitData().
  14604. (waitData): Removed a call to activeSockets.clear().
  14605. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14606. To attempt to handle EINTR:
  14607. * src/SocketCore.cc
  14608. (isReadable): Added EINTR handling.
  14609. (isWritable): Added EINTR handling.
  14610. To improve the performance:
  14611. * src/AbstractCommand.cc
  14612. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14613. * src/PeerInteractionCommand.h
  14614. (receiveMessage): Renamed as receiveMessages().
  14615. (receiveMessages): New function.
  14616. * src/PeerInteractionCommand.cc
  14617. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14618. () function. detectMessageFlooding() is moved here.
  14619. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14620. (). The flooding detection for have message is comment out.
  14621. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14622. Util::difftv().
  14623. (receiveMessage): Renamed as receiveMessages().
  14624. (receiveMessages): New function.
  14625. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14626. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14627. * src/SleepCommand.cc
  14628. (execute): Use Util::difftvsec() instead of Util::difftv().
  14629. * src/BitfieldMan.h
  14630. (getNthBitIndex): New function.
  14631. (hasMissingPiece): New function.
  14632. (getAllMissingIndexes): New function.
  14633. * src/BitfieldMan.cc
  14634. (countSetBit): Rewritten.
  14635. (getNthBitIndex): New function.
  14636. (getMissingIndexRandomly): Rewritten.
  14637. (hasMissingPiece): New function.
  14638. (getAllMissingIndexes): New function.
  14639. * src/TorrentMan.cc
  14640. (hasMissingPiece): New function.
  14641. (deleteUsedPiece): Rewritten using STL.
  14642. * src/PeerInteraction.cc
  14643. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14644. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14645. (addRequests): Updated the number of pending requests.
  14646. * src/PeerAbstractCommand.cc
  14647. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14648. (execute): Returns true if TorrentMan::isHalt() is true.
  14649. Corrected the condition of upload limit checking.
  14650. * src/Util.h
  14651. (countBit): New function.
  14652. * src/Util.cc
  14653. (nbits): New variable.
  14654. (countBit): New function.
  14655. * src/DownloadEngine.h
  14656. (SockCmdMap): New type definition.
  14657. (waitData): Added an argument.
  14658. (addSocket): Added an argument.
  14659. (addSocketForReadCheck): Added an argument.
  14660. (addSocketForWriteCheck): Added an argument.
  14661. * src/DownloadEngine.cc
  14662. (run): Executes only commands whose sockets are ready to read or write.
  14663. All commands are executed in every 1 second.
  14664. (waitData): Calls select() again if it returned
  14665. EINTR.
  14666. (addSocket): Saves socket and command object pair to the map.
  14667. (deleteSocket): Deletes socket and command object pair from the map.
  14668. (addSocketForReadCheck): Added an argument.
  14669. (addSocketForWriteCheck): Added an argument.
  14670. * src/DownloadCommand.cc
  14671. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14672. To send "event=stopped" to the tracker when the application finishes:
  14673. * src/PeerChokeCommand.h
  14674. (checkPoint): New variable.
  14675. * src/PeerChokeCommand.cc
  14676. (PeerChokeCommand): Added the initialization of checkPoint.
  14677. (execute): The interval check is now done by checkPoint, not
  14678. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14679. * src/TorrentMan.h
  14680. (halt): New function.
  14681. (hasMissingPiece): New function.
  14682. (isHalt): New function.
  14683. (setHalt): New function.
  14684. * src/TorrentMan.cc
  14685. (TorrentMan): Added the initialization of halt.
  14686. * src/TorrentAutoSaveCommand.h
  14687. (checkPoint): New variable.
  14688. * src/PeerListenCommand.cc
  14689. (execute): Returns true if TorrentMan::isHalt() is true.
  14690. * src/main.cc
  14691. (setSignalHander): Added flags argument.
  14692. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14693. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14694. Removed printDownloadAbortMessage() after torrent downloading loop.
  14695. * src/TorrentAutoSaveCommand.cc
  14696. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14697. (execute): Returns true if TorrentMan::isHalt() is true.
  14698. The interval check is now done by checkPoint, not SleepCommand.
  14699. * src/TrackerWatcherCommand.cc
  14700. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14701. event=stopped.
  14702. * src/TrackerUpdateCommand.cc
  14703. (prepareForRetry): Do not use SleepCommand here.
  14704. (execute): Returns true if TorrentMan::isHalt() is true.
  14705. Others:
  14706. * src/TorrentMan.cc
  14707. (getMissingPieceIndex): Updated log message.
  14708. * src/PeerInteraction.cc
  14709. (createPeerMessag): Updated log message.
  14710. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14711. To add the ability to download several pieces in mix in a command and
  14712. increase the number of request slots according to request-cancel
  14713. latency:
  14714. * src/PeerInteractionCommand.cc
  14715. (executeInternal): The number of messages to be received at a time
  14716. is increased from 10 to 50.
  14717. * src/LogFactory
  14718. (getInstance): Added NullLogger.
  14719. * src/NullLogger.h: New class.
  14720. * src/BitfieldMan.h
  14721. (getMissingIndex): New function.
  14722. * src/BitfieldMan.cc
  14723. (getMissingIndex): New function.
  14724. * src/TorrentMan.h
  14725. (checkOutPiece): New function.
  14726. (getMissingPieceIndex): New function.
  14727. (getMissingFastPieceIndex): New function.
  14728. (getMissingFastPiece): New function.
  14729. * src/TorrentMan.cc
  14730. (updatePiece): Rewritten using STL.
  14731. (syncPiece): Rewritten using STL.
  14732. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14733. checkOutPiece().
  14734. (getMissingPieceIndex): New function.
  14735. (getMissingFastPieceIndex): New function.
  14736. (getMissingFastPiece): New function.
  14737. (checkOutPiece): New function.
  14738. * src/PeerInteraction.h
  14739. (Pieces): New type definition.
  14740. (piece): Removed.
  14741. (pieces): New variable.
  14742. (getNewPieceAndSendInterest): Added the "piece" argument.
  14743. (abortPiece): Added the "piece" argument.
  14744. (abortAllPieces): New function.
  14745. (isInRequestSlot): New function.
  14746. (hasDownloadPiece): Added the "index" argument.
  14747. (setDownloadPiece): Removed.
  14748. (getDownloadPiece): Added the "index" argument.
  14749. (updatePiece): New function.
  14750. (createRequestMessage): Added the "index" argument.
  14751. * src/PeerInteraction.cc
  14752. (onChoked): Rewritten.
  14753. (abortPiece): Rewirtten.
  14754. (abortAllPieces): New function.
  14755. (deleteTimeoutRequestSlot): Rewritten.
  14756. Clarified code a little bit.
  14757. (deleteCompletedRequestSlot): Rewritten.
  14758. (isInRequestSlot): New function.
  14759. (syncPiece): Rewritten.
  14760. (updatePiece): New function.
  14761. (getNewPieceAndSendInterest): Rewritten.
  14762. (addRequests): Rewritten.
  14763. (getDownloadPiece): Rewritten.
  14764. (hasDownloadPiece): Rewritten.
  14765. (createRequestMessage): Added the "index" argument.
  14766. * src/common.h
  14767. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14768. (DIV_FLOOR): New definition.
  14769. * src/PieceMessage.cc
  14770. (receivedAction): Update request-piece latency here.
  14771. * src/RequestSlot.h
  14772. (getLatencyInMillis): New function.
  14773. * src/RequestSlot.cc
  14774. (isTimeout): Rewritten using getLatencyInMillis.
  14775. (getLatencyInMillis): New function.
  14776. * src/Piece.h
  14777. (operator==): New function.
  14778. (getMissingBlockIndex): New function.
  14779. * src/Piece.cc
  14780. (operator==): New function.
  14781. (getMissingBlockIndex): New function.
  14782. * src/Peer.h
  14783. (DEFAULT_LATENCY): New definition.
  14784. (latency): New variable.
  14785. (updateLatency): New function.
  14786. (getLatency): New function.
  14787. * src/Peer.cc
  14788. (resetStatus): Reset latecy.
  14789. (updateLatency): New function.
  14790. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14791. * src/SocketCore.cc
  14792. (isReadable): Added secure to the condition.
  14793. * src/HttpConnection.cc
  14794. (receiveResponse): Fixed a bug that causes no response header
  14795. exception.
  14796. * src/Peer.h
  14797. (getFastSet): Fixed the return value type.
  14798. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14799. To remove a wait from download loop:
  14800. * src/DownloadEngine.cc
  14801. (run): Comment out shortSleep.
  14802. To rewrite the message handling:
  14803. * src/SimplePeerMessage.h: New class.
  14804. * src/SimplePeerMessage.cc: New class.
  14805. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14806. (msg): New variable.
  14807. (create): New function.
  14808. (send): Removed.
  14809. (getMessage): New function.
  14810. (getMessageLength): New function.
  14811. * src/CancelMessage.cc
  14812. (create): New function.
  14813. (receivedAction): Replaced deleteRequestMessageInQueue with
  14814. rejectPieceMessageInQueue.
  14815. (send): Removed.
  14816. (getMessage): New function.
  14817. (getMessageLength): New function.
  14818. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14819. (msg): New variable.
  14820. (msgLength): New variable.
  14821. (~BitfieldMessage): Deleted msg.
  14822. (send): Removed.
  14823. (getMessage): New function.
  14824. (getMessageLength): New function.
  14825. * src/BitfieldMessage.cc
  14826. (create): New function.
  14827. (send): Removed.
  14828. (getMessage): New function.
  14829. (getMessageLength): New function.
  14830. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14831. (msg): New variable.
  14832. (sendPredicate): New function.
  14833. (onSendComplete): New function.
  14834. (send): Removed.
  14835. (getMessage): New function.
  14836. (getMessageLength): New function.
  14837. (create): New function.
  14838. * src/ChokeMessage.cc
  14839. (create): New function.
  14840. (send): Removed.
  14841. (sendPredicate): New function.
  14842. (getMessage): New function.
  14843. (getMessageLength): New function.
  14844. (onSendComplete): New function.
  14845. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14846. (msg): New variable.
  14847. (send): Removed.
  14848. (getMessage): New function.
  14849. (getMessageLength): New function.
  14850. * src/KeepAliveMessage.cc
  14851. (send): Removed.
  14852. (getMessage): New function.
  14853. (getMessageLength): New function.
  14854. * src/PortMessage.h
  14855. (create): New function.
  14856. (receivedAction): Updated log message.
  14857. * src/PortMessage.cc: New file.
  14858. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14859. (msg): New variable.
  14860. (sendPredicate): New function.
  14861. (onSendComplete): New function.
  14862. (create): New function.
  14863. (send): Removed.
  14864. (getMessage): New function.
  14865. (getMessageLength): New function.
  14866. * src/UnchokeMessage.cc
  14867. (create): New function.
  14868. (send): Removed.
  14869. (sendPredicate): New function.
  14870. (getMessage): New function.
  14871. (getMessageLength): New function.
  14872. (onSendComplete): New function.
  14873. * src/PieceMessage.h
  14874. (leftPieceDataLength): Removed.
  14875. (leftDataLength): New variable.
  14876. (headerSend): New variable.
  14877. (pendingCount): New variable.
  14878. (msgHeader): New variable.
  14879. (sendPieceData): New function.
  14880. (incrementPendingCount): New function.
  14881. (isPendingCountMax): New function.
  14882. (create): New function.
  14883. (getMessageHeader): New function.
  14884. (getMessageHeaderLength): New function.
  14885. * src/PieceMessage.cc
  14886. (create): New function.
  14887. (getMessageHeader): New function.
  14888. (getMessageHeaderLength): New function.
  14889. (send): Rewritten.
  14890. (sendPieceData): New function.
  14891. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14892. (msg): New variable.
  14893. (create): New function.
  14894. (getMessage): New function.
  14895. (getMessageLength): New function.
  14896. * src/HaveMessage.cc
  14897. (create): New function.
  14898. (send): Removed.
  14899. (sendPieceData): New function.
  14900. (getMessage): New function.
  14901. (getMessageLength): New function.
  14902. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14903. (msg): New variable.
  14904. (create): New function.
  14905. (send): Removed.
  14906. (getMessage): New function.
  14907. (getMessageLength): New function.
  14908. * src/RequestMessage.cc
  14909. (create): New function.
  14910. (receivedAction): Added the handling of fast extension.
  14911. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14912. (send): Removed.
  14913. (getMessage): New function.
  14914. (getMessageLength): New function.
  14915. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14916. (msg): New variable.
  14917. (sendPredicate): New function.
  14918. (onSendComplete): New function.
  14919. (create): New function.
  14920. (getMessage): New function.
  14921. (getMessageLength): New function.
  14922. * src/InterestedMessage.cc
  14923. (create): New function.
  14924. (send): Removed.
  14925. (sendPieceData): New function.
  14926. (getMessage): New function.
  14927. (getMessageLength): New function.
  14928. (onSendComplete): New function.
  14929. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14930. (msg): New variable.
  14931. (sendPieceData): New function.
  14932. (onSendComplete): New function.
  14933. (create): New function.
  14934. (send): Removed.
  14935. (getMessage): New function.
  14936. (getMessageLength): New function.
  14937. * src/NotInterestedMessage.cc
  14938. (create): New function.
  14939. (send): Removed.
  14940. (sendPredicate): New function.
  14941. (getMessage): New function.
  14942. (getMessageLength): New function.
  14943. (onSendComplete): New function.
  14944. * src/AllowedFastMessage.h: New class.
  14945. * src/AllowedFastMessage.cc: New class.
  14946. * src/RejectMessage.h: New class.
  14947. * src/RejectMessage.cc: New class.
  14948. * src/SuggestPieceMessage.h: New class.
  14949. * src/SuggestPieceMessage.cc: New class.
  14950. * src/HaveAllMessage.h: New class.
  14951. * src/HaveAllMessage.cc: New class.
  14952. * src/HaveNoneMessage.h: New class.
  14953. * src/HaveNoneMessage.cc: New class.
  14954. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14955. (msg): New variable.
  14956. (reserved): New variable.
  14957. (create): New function.
  14958. (getId): New function.
  14959. (receivedAction): New function.
  14960. (getMessage): New function.
  14961. (getMessageLength): New function.
  14962. (isFastExtensionSupported): New function.
  14963. * src/HandshakeMessage.cc
  14964. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14965. (create): New function.
  14966. (getMessage): New function.
  14967. (getMessageLength): New function.
  14968. (toString): Added the output of reserved field.
  14969. (check): Added const qualifier.
  14970. (isFastExtensionSupported): New function.
  14971. * src/PeerMessageUtil.h
  14972. (createChokeMessage): Removed.
  14973. (createUnchokeMessage): Removed.
  14974. (createInterestedMessage): Removed.
  14975. (createNotInterestedMessage): Removed.
  14976. (createHaveMessage): Removed.
  14977. (createBitfieldMessage): Removed.
  14978. (createRequestMessage): Removed.
  14979. (createCancelMessage): Removed.
  14980. (createPieceMessage): Removed.
  14981. (createPortMessage): Removed.
  14982. (createChokeMessage): Removed.
  14983. (createUnchokeMessage): Removed.
  14984. (createInterestedMessage): Removed.
  14985. (createNotInterestedMessage): Removed.
  14986. (createHaveMessage): Removed.
  14987. (createBitfieldMessage): Removed.
  14988. (createRequestMessage): Removed.
  14989. (createCancelMessage): Removed.
  14990. (createPieceMessage): Removed.
  14991. (createKeepAliveMessage): Removed.
  14992. (createHandshakeMessage): Removed.
  14993. (setIntParam): New function.
  14994. (createPeerMessageString): New function.
  14995. * src/PeerMessageUtil.cc
  14996. (createChokeMessage): Removed.
  14997. (createUnchokeMessage): Removed.
  14998. (createInterestedMessage): Removed.
  14999. (createNotInterestedMessage): Removed.
  15000. (createHaveMessage): Removed.
  15001. (createBitfieldMessage): Removed.
  15002. (createRequestMessage): Removed.
  15003. (createCancelMessage): Removed.
  15004. (createPieceMessage): Removed.
  15005. (createPortMessage): Removed.
  15006. (createRequestMessage): Removed.
  15007. (createCancelMessage): Removed.
  15008. (createPieceMessage): Removed.
  15009. (createHaveMessage): Removed.
  15010. (createChokeMessage): Removed.
  15011. (createUnchokeMessage): Removed.
  15012. (createInterestedMessage): Removed.
  15013. (createNotInterestedMessage): Removed.
  15014. (createBitfieldMessage): Removed.
  15015. (createKeepAliveMessage): Removed.
  15016. (createHandshakeMessage): Removed.
  15017. (setIntParam): New function.
  15018. (createPeerMessageString): New function.
  15019. * src/PeerConnection.h
  15020. (peer): Removed.
  15021. (torrentMan): Removed.
  15022. (createNLengthMessage): Removed.
  15023. (setIntParam): Removed.
  15024. (writeOutgoingMessageLog): Removed all overloaded functions.
  15025. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15026. (sendMessage): New function.
  15027. (sendHandshake): Removed.
  15028. (sendKeepAlive): Removed.
  15029. (sendChoke): Removed.
  15030. (sendUnchoke): Removed.
  15031. (sendInterested): Removed.
  15032. (sendNotInterested): Removed.
  15033. (sendHave): Removed.
  15034. (sendBitfield): Removed.
  15035. (sendRequest): Removed.
  15036. (sendPiece): Removed.
  15037. (sendPieceHeader): Removed.
  15038. (sendPieceData): Removed.
  15039. (sendCancel): Removed.
  15040. (getPeer): Removed.
  15041. * src/PeerConnection.cc
  15042. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15043. (sendHandshake): Removed.
  15044. (sendKeepAlive): Removed.
  15045. (createNLengthMessage): Removed.
  15046. (setIntParam): Removed.
  15047. (writeOutgoingMessageLog): Removed all overloaded functions.
  15048. (sendChoke): Removed.
  15049. (sendUnchoke): Removed.
  15050. (sendInterested): Removed.
  15051. (sendNotInterested): Removed.
  15052. (sendHave): Removed.
  15053. (sendBitfield): Removed.
  15054. (sendRequest): Removed.
  15055. (sendPiece): Removed.
  15056. (sendPieceHeader): Removed.
  15057. (sendPieceData): Removed.
  15058. (sendMessage): New function.
  15059. (sendCancel): Removed.
  15060. * src/PeerInteractionCommand.cc
  15061. (PeerInteractionCommand): Call setUploadLimit.
  15062. (executeInternal): Call setUploadLimit.
  15063. Added the handling of "inProgress" state of handshake message.
  15064. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15065. sendNow().
  15066. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15067. sendNow().
  15068. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15069. * src/TorrentMan.h
  15070. (PEER_ID_LENGTH): New definition.
  15071. (hasAllPieces): New function.
  15072. * src/TorrentMan.cc
  15073. (getMissingPiece): Added the handling of fast extension.
  15074. (cancelPiece): Call updatePiece().
  15075. (hasAllPieces): New function.
  15076. * src/PeerInteraction.h
  15077. (fastSet): New variable.
  15078. (getNewPieceAndSendInterest): Changed the return type to void.
  15079. (send): Renamed as sendMessages.
  15080. (deleteAllRequestSlot): Removed.
  15081. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15082. (cancelAllRequest): Removed all overloaded functions.
  15083. (deleteAllRequestSlot): Removed.
  15084. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15085. (rejectPieceMessageInQueue): New function.
  15086. (rejectAllPieceMessageInQueue): New function.
  15087. (onChoked): New function.
  15088. (isSendingMessageInProgress): New function.
  15089. (getCorrespondingRequestSlot): Changed its arguments.
  15090. (isInFastSet): New function.
  15091. (addFastSetIndex): New function.
  15092. (addRequests): New function.
  15093. (sendNow): Removed.
  15094. (trySendNow): Removed.
  15095. (sendBitfield): New function.
  15096. (sendAllowdFast): New function.
  15097. (createHaveAllMessage): New function.
  15098. (createHaveNoneMessage): New function.
  15099. (createRejectMessage): New function.
  15100. (createAllowedFastMessage): New function.
  15101. * src/PeerInteraction.cc
  15102. (send): Renamed as sendMessages.
  15103. (sendMessages): New function.
  15104. (MsgPushBack): New class.
  15105. (isSendingMessageInProgress): New function.
  15106. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15107. (rejectAllPieceMessageInQueue): New function.
  15108. Added the handling of fast extension.
  15109. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15110. (rejectPieceMessageInQueue): New function.
  15111. Added the handling of fast extension.
  15112. (deleteRequestSlot): Replaced for loop with std::find.
  15113. (onChoked): New function.
  15114. (deleteAllRequestSlot): Removed.
  15115. (abortPiece): Rewirtten.
  15116. (deleteTimeoutRequestSlot): Updated log messages.
  15117. (getCorrespondingRequestSlot): Changed its arguments.
  15118. (cancelAllRequest): Removed all overloaded functions.
  15119. (receiveHandshake): Added the check to see whether an incoming peer
  15120. supports fast extension.
  15121. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15122. PeerMessageUtil.
  15123. (createPeerMessage): Use create() of each message class instead of
  15124. PeerMessageUtil.
  15125. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15126. AllowedFastMessage were added.
  15127. (getNewPieceAndSendInterest): Changed its return value type to void.
  15128. Added the handling of fast extension.
  15129. (addRequests): New function.
  15130. (sendNow): Removed.
  15131. (sendHandshake): Rewritten.
  15132. (trySendNow): Removed.
  15133. (sendBitfield): New function.
  15134. (sendAllowdFast): New function.
  15135. (isInFastSet): New function.
  15136. (addFastSetIndex): New function.
  15137. (createRequestMessage): Use RequestMessage::create instead of
  15138. PeerMessageUtil.
  15139. (createCancelMessage): Use CancelMessage::create instead of
  15140. PeerMessageUtil.
  15141. (createPieceMessage): Use PieceMessage::create instead of
  15142. PeerMessageUtil.
  15143. (createHaveMessage): Use HaveMessage::create instead of
  15144. PeerMessageUtil.
  15145. (createChokeMessage): Use ChokeMessage::create instead of
  15146. PeerMessageUtil.
  15147. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15148. PeerMessageUtil.
  15149. (createInterestedMessage): Use InterestedMessage::create instead of
  15150. PeerMessageUtil.
  15151. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15152. of PeerMessageUtil.
  15153. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15154. PeerMessageUtil.
  15155. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15156. PeerMessageUtil.
  15157. (createHaveAllMessage): New function.
  15158. (createHaveNoneMessage): New function.
  15159. (createRejectMessage): New function.
  15160. (createAllowedFastMessage: New function.
  15161. * src/Util.h
  15162. (sha1Sum): New function.
  15163. (computeFastSet): New function.
  15164. * src/Util.cc
  15165. (sha1Sum): New function.
  15166. (computeFastSet): New function.
  15167. * src/Peer.h
  15168. (fastExtensionEnabled): New variable.
  15169. (fastSet): New variable.
  15170. (setAllBitfield): New function.
  15171. (setFastExtensionEnabled): New function.
  15172. (isFastExtensionEnabled): New function.
  15173. (addFastSetIndex): New function.
  15174. (getFastSet): New function.
  15175. (isInFastSet): New function.
  15176. (countFastSet): New function.
  15177. * src/Peer.cc
  15178. (isInFastSet): New function.
  15179. (addFastSetIndex): New function.
  15180. (setAllBitfield): New function.
  15181. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15182. sockets.
  15183. * src/PeerAbstractCommand.cc
  15184. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15185. and uploadLimit.
  15186. (execute): Changed the procedure of checking sockets. The upload speed
  15187. checking were added.
  15188. (setUploadLimit): New function.
  15189. (setUploadLimitCheck): New function.
  15190. * src/PeerAbstractCommand.h
  15191. (setUploadLimit): New function.
  15192. (setUploadLimitCheck): New function.
  15193. (uploadLimit): New variable.
  15194. (uploadLimitCheck): New variable.
  15195. To contact a tracker regularly:
  15196. * src/TrackerWatcherCommand.h (interval): New variable.
  15197. (checkPoint): New variable.
  15198. (TrackerWatcherCommand): Added interval argument.
  15199. * src/TrackerWatcherCommand.cc
  15200. (TrackerWatcherCommand): Initialized checkPoint.
  15201. (execute): Now a tracker is contacted in every specified period.
  15202. If peer list is not needed, send request with numwant=0.
  15203. * src/TrackerUpdateCommand.cc
  15204. (execute): Updated log messages.
  15205. * src/DownloadEngine.cc
  15206. (~DownloadEngine): Removed two asserts.
  15207. (waitData): Uncommented wfds. May be a bug fix.
  15208. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15209. * src/PeerInteractionCommand.h
  15210. (checkInactiveConnection): Removed.
  15211. * src/PeerInteractionCommand.cc
  15212. (executeInternal): Removed following function calls:
  15213. detectMessageFlooding(), checkLongTimePeerChoking and
  15214. checkInactiveConnection().
  15215. (checkInactiveConnection): Removed.
  15216. (detectMessageFlooding): Removed function call to
  15217. checkInactiveConnection().
  15218. * src/PeerMessageUtil.h
  15219. (createChokeMessage): New function. Overload.
  15220. (createUnchokeMessage): New function. Overload.
  15221. (createInterestedMessage): New function. Overload.
  15222. (createNotInterestedMessage): New function. Overload.
  15223. (createHaveMessage): New function. Overload.
  15224. (createBitfieldMessage): New function. Overload.
  15225. (createRequestMessage): New function. Overload.
  15226. (createCancelMessage): New function. Overload.
  15227. (createPieceMessage): New function. Overload.
  15228. (createKeepAliveMessage): New function. Overload.
  15229. * src/PeerMessageUtil.cc
  15230. (createChokeMessage): New function. Overload.
  15231. (createUnchokeMessage): New function. Overload.
  15232. (createInterestedMessage): New function. Overload.
  15233. (createNotInterestedMessage): New function. Overload.
  15234. (createHaveMessage): New function. Overload.
  15235. (createBitfieldMessage): New function. Overload.
  15236. (createRequestMessage): New function. Overload.
  15237. (createCancelMessage): New function. Overload.
  15238. (createPieceMessage): New function. Overload.
  15239. (createKeepAliveMessage): New function. Overload.
  15240. * src/SendMessageQueue.cc
  15241. (createRequestMessage): Use PeerMessageUtil.
  15242. (createCancelMessage): Use PeerMessageUtil.
  15243. (createPieceMessage): Use PeerMessageUtil.
  15244. (createHaveMessage): Use PeerMessageUtil.
  15245. (createChokeMessage): Use PeerMessageUtil.
  15246. (createUnchokeMessage): Use PeerMessageUtil.
  15247. (createInterestedMessage): Use PeerMessageUtil.
  15248. (createNotInterestedMessage): Use PeerMessageUtil.
  15249. (createBitfieldMessage): Use PeerMessageUtil.
  15250. (createKeepAliveMessage): Use PeerMessageUtil.
  15251. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15252. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15253. * src/PeerInteraction.h: New class.
  15254. * src/PeerInteraction.cc: New class.
  15255. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15256. Each peer message has its own class.
  15257. * src/PendingMessages.h: Removed.
  15258. * src/PendingMessages.cc: Removed. The sending process was moved to
  15259. each message class.
  15260. * src/RequestSlotMan.h: Removed.
  15261. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15262. SendMessageQueue.
  15263. * src/RequestMessage.h: New class.
  15264. * src/RequestMessage.cc: New class.
  15265. * src/CancelMessage.h: New class.
  15266. * src/CancelMessage.cc: New class.
  15267. * src/BitfieldMessage.h: New class.
  15268. * src/BitfieldMessage.cc: New class.
  15269. * src/ChokeMessage.h: New class.
  15270. * src/ChokeMessage.cc: New class.
  15271. * src/KeepAliveMessage.h: New class.
  15272. * src/KeepAliveMessage.cc: New class.
  15273. * src/PortMessage.h: New class.
  15274. * src/UnchokeMessage.h: New class.
  15275. * src/UnchokeMessage.cc: New class.
  15276. * src/PieceMessage.h: New class.
  15277. * src/PieceMessage.cc: New class.
  15278. * src/HaveMessage.h: New class.
  15279. * src/HaveMessage.cc: New class.
  15280. * src/BitfieldMessage.h: New class.
  15281. * src/BitfieldMessage.cc: New class.
  15282. * src/NotInterestedMessage.h: New class.
  15283. * src/NotInterestedMessage.cc: New class.
  15284. * src/InterestedMessage.h: New class.
  15285. * src/InterestedMessage.cc: New class.
  15286. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15287. (getSendMessageQueue): New function.
  15288. (setSendMessageQueue): New function.
  15289. * src/HandshakeMessage.cc: New class.
  15290. * src/PeerConnection.h (receiveMessage): Changed return value and
  15291. arguments.
  15292. (receiveHandshake): Changed return value and arguments.
  15293. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15294. here.
  15295. (receiveHandshake): Do not create handshake class here.
  15296. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15297. (piece): Removed.
  15298. (syncPiece): Removed.
  15299. (sendInterest): Removed.
  15300. (sendMessages): Removed.
  15301. (createRequestPendingMessage): Removed.
  15302. (checkPieceHash): Removed.
  15303. (erasePieceOnDisk): Removed.
  15304. (getNewPieceAndSendInterest): Removed.
  15305. (onGotNewPice): Removed.
  15306. (onGotWrongPiece): Removed.
  15307. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15308. Removed peerConnection, piece.
  15309. (~PeerInteractionCommand): Removed peerConnection.
  15310. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15311. (syncPiece): Moved to SendMessageQueue.
  15312. (decideChoking): Removed PendingMessage.
  15313. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15314. The action after receiving peer message was moved to each message
  15315. class.
  15316. (onGotNewPice): Moved to SendMessageQueue.
  15317. (onGotWrongPiece): Moved to SendMessageQueue.
  15318. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15319. (sendInterest): Moved to SendMessageQueue.
  15320. (createRequestPendingMessage): Removed.
  15321. (sendMessages): Moved to SendMessageQueue.
  15322. (onAbort): Use SendMessageQueue::abortPiece()
  15323. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15324. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15325. (checkPieceHash): Moved to SendMessageQueue.
  15326. (erasePieceOnDisk): Moved to SendMessageQueue.
  15327. * src/PeerMessageUtil.h
  15328. (createBitfieldMessage): Removed.
  15329. (createHaveMessage): Changed return value and arguments.
  15330. (createBitfieldMessage): Changed return value and arguments.
  15331. (createRequestCancelMessage): Removed.
  15332. (createPieceMessage): Changed return value and arguments.
  15333. (getShortIntParam): New function.
  15334. (checkIndex): Changed arguments.
  15335. (checkBegin): Changed arguments.
  15336. (checkLength): Changed arguments.
  15337. (checkPieceOffset): Removed.
  15338. (checkRange): New function.
  15339. (checkBitfield): Changed arguments.
  15340. (createPeerMessage): Removed.
  15341. (checkIntegrity): Removed.
  15342. (createHandshakeMessage): Changed arguments.
  15343. (createChokeMessage): New function.
  15344. (createUnchokeMessage): New function.
  15345. (createInterestedMessage): New function.
  15346. (createNotInterestedMessage): New function.
  15347. (createRequestMessage): New function.
  15348. (createCancelMessage): New function.
  15349. (createPortMessage): New function.
  15350. * src/PeerMessageUtil.cc
  15351. (createBitfieldMessage): Removed.
  15352. (createHaveMessage): Changed return value and arguments.
  15353. (createBitfieldMessage): Changed return value and arguments.
  15354. (createRequestCancelMessage): Removed.
  15355. (createPieceMessage): Changed return value and arguments.
  15356. (getShortIntParam): New function.
  15357. (checkIndex): Changed arguments.
  15358. (checkBegin): Changed arguments.
  15359. (checkLength): Changed arguments.
  15360. (checkPieceOffset): Removed.
  15361. (checkRange): New function.
  15362. (checkBitfield): Changed arguments.
  15363. (createPeerMessage): Removed.
  15364. (checkIntegrity): Removed.
  15365. (createHandshakeMessage): Changed arguments.
  15366. (createChokeMessage): New function.
  15367. (createUnchokeMessage): New function.
  15368. (createInterestedMessage): New function.
  15369. (createNotInterestedMessage): New function.
  15370. (createRequestMessage): New function.
  15371. (createCancelMessage): New function.
  15372. (createPortMessage): New function.
  15373. * src/PeerMessage.h
  15374. (id): Removed.
  15375. (index): Removed.
  15376. (begin): Removed.
  15377. (length): Removed.
  15378. (bitfield): Removed.
  15379. (bitfieldLength): Removed.
  15380. (block): Removed.
  15381. (blockLength): Removed.
  15382. (inProgress): New variable.
  15383. (cuid): New variable.
  15384. (peer): New variable.
  15385. (sendMessageQueue): New variable.
  15386. (logger): New variable.
  15387. (setBitfield): Removed.
  15388. (getBitfield): Removed.
  15389. (setBlock): Removed.
  15390. (getBlock): Removed.
  15391. (getBitfieldLength): Removed.
  15392. (getBlockLength): Removed.
  15393. (isInProgress): New function.
  15394. (toString): Made pure virtual.
  15395. (check): New function.
  15396. (send): New function.
  15397. (receivedAction): New function.
  15398. (getId): Made pure virtual.
  15399. (setId): Removed.
  15400. (getIndex): Removed.
  15401. (setIndex): Removed.
  15402. (getBegin): Removed.
  15403. (setBegin): Removed.
  15404. (getLength): Removed.
  15405. (setLength): Removed.
  15406. (getCuid): New function.
  15407. (setCuid): New function.
  15408. (getPeer): New function.
  15409. (setPeer): New function.
  15410. (getSendMessageQueue): New function.
  15411. (setSendMessageQueue): New function.
  15412. (ID): Removed.
  15413. * src/PeerMessage.cc
  15414. (setBitfield): Removed.
  15415. (setBlock): Removed.
  15416. (toString): Removed.
  15417. * src/TorrentMan.h
  15418. (getPieceLength): New function.
  15419. (getPieceLength): New function.
  15420. * src/SendMessageQueue.h
  15421. (REQUEST_TIME_OUT): New definition.
  15422. (RequestSlots): New definition.
  15423. (MessageQueue): New definition.
  15424. (requestSlotMan): Removed.
  15425. (pendingMessages): Removed.
  15426. (requestSlots): New variable.
  15427. (messageQueue): New variable.
  15428. (torrentMan): New variable.
  15429. (peerConnection): New variable.
  15430. (peer): New variable.
  15431. (piece): New variable.
  15432. (getNewPieceAndSendInterest): New function.
  15433. (createPeerMessage): New function.
  15434. (createHandshakeMessage): New function.
  15435. (send): Made private.
  15436. (setPeerMessageCommonProperty): New function.
  15437. (deleteAllRequestSlot): New function.
  15438. (deleteRequestMessageInQueue): New function.
  15439. (cancelAllRequest): Made private.
  15440. (cancelAllRequest): Made private.
  15441. (countRequestSlot): Made private.
  15442. (addPendingMessage): Removed.
  15443. (deletePendingPieceMessage): Removed.
  15444. (deletePendingRequestMessage): Removed.
  15445. (addMessage): New function.
  15446. (deletePieceMessageInQueue): New function.
  15447. (deleteTimeoutRequestSlot): Changed argument.
  15448. (deleteCompletedRequestSlot): Changed argument.
  15449. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15450. (getCorrespondingRequestSlot): New function.
  15451. (countPendingMessage): Removed.
  15452. (countMessageInQueue): New function.
  15453. (getTorrentMan): New function.
  15454. (getPeerConnection): New function.
  15455. (hasDownloadPiece): New function.
  15456. (getDownloadPiece): New function.
  15457. (setDownloadPiece): New function.
  15458. (syncPiece): New function.
  15459. (sendMessages): New function.
  15460. (sendNow): New function.
  15461. (trySendNow): New function.
  15462. (abortPiece): New function.
  15463. (sendHandshake): New function.
  15464. (receiveMessage): New function.
  15465. (receiveHandshake): New function.
  15466. (createRequestMessage): New function.
  15467. (createCancelMessage): New function.
  15468. (createPieceMessage): New function.
  15469. (createHaveMessage): New function.
  15470. (createChokeMessage): New function.
  15471. (createUnchokeMessage): New function.
  15472. (createInterestedMessage): New function.
  15473. (createNotInterestedMessage): New function.
  15474. (createBitfieldMessage): New function.
  15475. (createKeepAliveMessage): New function.
  15476. * src/SendMessageQueue.cc
  15477. (SendMessageQueue): Removed requestSlotMan.
  15478. Instantiated peerConnection here.
  15479. (~SendMessageQueue): Removed requestSlotMan.
  15480. Added deletion of peerConnection and the contents of messageQueue.
  15481. (send): Updated according to the change of messageQueue.
  15482. (addPendingMessage): Renamed to addMessage.
  15483. (addMessage): New function.
  15484. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15485. (deletePieceMessageInQueue): New function.
  15486. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15487. (deleteRequestMessageInQueue): New function.
  15488. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15489. here.
  15490. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15491. (...) was moved here.
  15492. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15493. moved here.
  15494. (deleteCompletedRequestSlot):
  15495. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15496. (getCorrespondingRequestSlot):
  15497. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15498. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15499. (countPendingMessage): Renamed to countMessageInQueue.
  15500. (countMessageInQueue): New function.
  15501. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15502. (receiveHandshake): New function.
  15503. (createHandshakeMessage): New function.
  15504. (receiveMessage): New function.
  15505. (createPeerMessage): New function.
  15506. (syncPiece): New function.
  15507. (getNewPieceAndSendInterest): New function.
  15508. (sendMessages): New function.
  15509. (sendNow): New function.
  15510. (trySendNow): New function.
  15511. (sendHandshake): New function.
  15512. (abortPiece): New function.
  15513. (getDownloadPiece): New function.
  15514. (getPeerMessageCommonProperty): New function.
  15515. (createRequestMessage): New function.
  15516. (createCancelMessage): New function.
  15517. (createPieceMessage): New function.
  15518. (createHaveMessage): New function.
  15519. (createChokeMessage): New function.
  15520. (createUnchokeMessage): New function.
  15521. (createInterestedMessage): New function.
  15522. (createNotInterestedMessage): New function.
  15523. (createBitfieldMessage): New function.
  15524. (createKeepAliveMessage): New function.
  15525. To add simple Content-Disposition support:
  15526. * src/HttpResponseCommand.h (determinFilename): New function.
  15527. * src/HttpResponseCommand.cc (executeInternal):
  15528. Use determinFilename(headers) instead of req->getFile() when comparing
  15529. filename.
  15530. (determinFilename): New function.
  15531. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15532. req->getFile().
  15533. (handleOtherEncoding): Use determinFilename(headers) instead of
  15534. req->getFile().
  15535. * src/Util.h (getContentDispositionFilename): New function.
  15536. * src/Util.cc (getContentDispositionFilename): New function.
  15537. * src/LogFactory.h (release): New function.
  15538. * src/LogFactory.cc (release): New function.
  15539. To fix a bug that causes out-of-bound exception when HTTP status
  15540. line is wrong:
  15541. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15542. size.
  15543. * src/common.h (Deleter): New class.
  15544. * src/SegmentMan.cc
  15545. (~SegmentMan): Added deletion of splitter and diskWriter.
  15546. * src/DownloadEngine.h
  15547. (Commands): Use deque.
  15548. (clearQueue): New function.
  15549. * src/DownloadEngine.cc
  15550. (~DownloadEngine): Added deletion of segmentMan.
  15551. (cleanQueue): New function.
  15552. * src/TorrentDownloadEngine.h
  15553. (TorrentDownloadEngine): The implementation was moved to
  15554. TorrentDownloadEngine.cc.
  15555. (~TorrentDownloadEngine): The implementation was moved to
  15556. TorrentDownloadEngine.cc.
  15557. * src/TorrentDownloadEngine.cc
  15558. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15559. * src/main.cc
  15560. (clearRequest): Removed.
  15561. (handler): Added deletion of e.
  15562. (torrentHandler): Added deletion of te.
  15563. (main): Do not share splitter.
  15564. Use Deleter instead of clearRequest.
  15565. Deletion of classes were updated.
  15566. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15567. * src/main.cc (main): Fixed typo.
  15568. * src/message.h: Fixed typo.
  15569. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15570. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15571. To add --select-file command-line option:
  15572. * src/Util.cc
  15573. (unfoldRange): New function.
  15574. (getNum): New function.
  15575. (unfoldSubRange): New function
  15576. * src/main.cc
  15577. (showUsage): Added help message.
  15578. (main): Added --select-file command-line option. Updated the layout of
  15579. file listing.
  15580. * src/common.h
  15581. (Integers): New definition.
  15582. * src/SocketCore.cc
  15583. (writeData): Removed timeout argument.
  15584. (readData): Removed timeout argument.
  15585. (peekData): Removed timeout argument.
  15586. * src/Socket.cc
  15587. (writeData): Removed timeout argument.
  15588. (readData): Removed timeout argument.
  15589. (peekData): Removed timeout argument.
  15590. * Release 0.4.1
  15591. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15592. To deploy upload rate based choking algorithm:
  15593. * src/PeerInteractionCommand.cc
  15594. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15595. peer currently used.
  15596. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15597. download completes. Simplified.
  15598. (receiveMessage): Updated.
  15599. * src/TorrentMan.h
  15600. (activePeers): New variable.
  15601. (addActivePeer): New function.
  15602. (getActivePeers): New function.
  15603. (deleteActivePeer): New function.
  15604. * src/TorrentMan.cc
  15605. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15606. * src/PeerAbstractCommand.cc
  15607. (onAbort): Use peer->resetStatus().
  15608. * src/main.cc
  15609. (PeerChokeCommand.h): Included.
  15610. (main): Added the instance of ChokingCommand to the command queue.
  15611. * src/Peer.h
  15612. (amChoking): Renamed from amChocking
  15613. (chokingRequired): New variable.
  15614. (optUnchoking): New variable.
  15615. (deltaUpload): New variable.
  15616. (deltaDownload): New variable.
  15617. (addDeltaUpload): New function.
  15618. (resetDeltaUpload): New function.
  15619. (addDeltaDownload): New function.
  15620. (resetDeltaDownload): New function.
  15621. (addPeerUpload): Added a call to addDeltaUpload.
  15622. (addPeerDownload): Added a call to addDeltaDownload.
  15623. * src/Peer.cc
  15624. (shouldBeChoking): Renamed from shouldChoke.
  15625. (resetStatus): New function.
  15626. * src/PeerChokeCommand.h: New class.
  15627. * src/PeerChokeCommand.cc: New class.
  15628. To add lazy upload speed limiter:
  15629. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15630. statistics calculation to TorrentDownloadEngine.
  15631. * src/TorrentConsoleDownloadEngine.cc
  15632. (sendStatistics): Renamed from printStatistics.
  15633. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15634. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15635. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15636. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15637. calculation.
  15638. (sendStatistics): New function as pure virtual function.
  15639. (getUploadSpeed): New function.
  15640. * src/TorrentDownloadEngine.cc
  15641. (initStatistics): New function.
  15642. (calculateSpeed): New function.
  15643. (calculateStatistics): New function.
  15644. * src/SendMessageQueue.h
  15645. (uploadLength): New variable.
  15646. (send): Added an argument.
  15647. (setUploadLimit): New function.
  15648. (getUploadLimit): New function.
  15649. * src/SendMessageQueue.cc
  15650. (send): Added upload speed limiter.
  15651. * src/prefs.h
  15652. (PREF_UPLOAD_LIMIT): New definition.
  15653. * src/PeerInteractionCommand.cc
  15654. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15655. * src/main.cc
  15656. (main): Added --upload-limit option
  15657. For bug fixes:
  15658. * src/main.cc
  15659. (showUsage): Corrected --listen-port help
  15660. Other changes:
  15661. * src/TorrentMan.cc
  15662. (getPeer): Return nullPeer if connection is grather than
  15663. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15664. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15665. To add some useful information to the exception message:
  15666. * src/SocketCore.cc : Updated messages.
  15667. * src/SegmentMan.cc :
  15668. * src/TorrentMan.cc : Updated messages.
  15669. * src/MultiDiskWriter.cc : Updated messages.
  15670. * src/Util.cc : Updated messages.
  15671. * src/AbstractDiskWriter.cc : Updated messages.
  15672. * src/PreAllocationDiskWriter.cc : Updated messages.
  15673. * src/message.cc : Added new messages. Updated some messages.
  15674. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15675. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15676. Updated threshold from 30 to 15.
  15677. * src/AbstractDiskWriter.h (filename): New variable.
  15678. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15679. (createFile): Assigned filename.
  15680. * src/main.cc: Updated the help message for http-auth-scheme.
  15681. * Release 0.4.0
  15682. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15683. To add TrackerUpdateCommand with which replaces
  15684. CompactTrackerResponseProcessor:
  15685. * src/TrackerWatcherCommand.h (req): Removed.
  15686. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15687. if the number of peer connections are less than 30.
  15688. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15689. * src/SegmentMan.h (diskWriter): New function.
  15690. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15691. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15692. (main): Use TrackerUpdateCommand.
  15693. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15694. (req): New variable.
  15695. (setTrackerResponseProcessor): Removed.
  15696. (getTrackerResponseProcessor): Removed.
  15697. (processTrackerResponse): Removed.
  15698. * src/DownloadEngine.h (diskWriter): Removed.
  15699. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15700. to torrentMan->processTrackerResponse().
  15701. To add Util::expandBuffer:
  15702. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15703. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15704. * src/Util.h (expandBuffer): New function.
  15705. To fix the bug that causes segmentation fault when "-l ." is specified
  15706. in command-line option:
  15707. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15708. (openFile): New function.
  15709. (closeFile): New function.
  15710. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15711. (~SimpleLogger): Call closeFile();
  15712. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15713. * src/main.cc (main): Added a check to see logger is configured
  15714. properly.
  15715. To enable HTTP authentication without specifying "--http-auth-scheme"
  15716. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15717. * src/HttpConnection.cc (createRequest): Send Authorization header
  15718. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15719. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15720. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15721. * src/Peer.cc (shouldChoke): Updated algorithm.
  15722. * src/message.h (EX_AUTH_FAILED): New definition.
  15723. (EX_FILE_OPEN): New definition.
  15724. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15725. if status == 401.
  15726. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15727. if req->isTorrent == true.
  15728. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15729. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15730. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15731. (createFile): Updated message.
  15732. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15733. To add a readout of estimated remaining time to normal HTTP/FTP
  15734. downloads:
  15735. * src/ConsoleDownloadEngine.h (startup): New variable.
  15736. (startupLength): New variable.
  15737. (isStartupLengthSet): New variable.
  15738. (avgSpeed): New variable.
  15739. (eta): New variable.
  15740. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15741. estimated remaining time.
  15742. (initStatistics): Initialized newly added variables.
  15743. (calculateStatistics): Calculate average speed and estimated remaining
  15744. time.
  15745. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15746. * src/TrackerDownloadCommand.h: Removed.
  15747. * src/TrackerDownloadCommand.cc: Removed.
  15748. * src/TrackerInitCommand.h: Removed.
  15749. * src/TrackerInitCommand.cc: Removed.
  15750. * src/TrackerUpdateCommand.h: Removed.
  15751. * src/TrackerUpdateCommand.cc: Removed.
  15752. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15753. url written in TrackerInitCommand was moved here. Do not create
  15754. tracker request command if torrentMan->trackers != 0.
  15755. * src/CompactTrackerResponseProcessor.h: New class.
  15756. * src/CompactTrackerResponseProcessor.cc: New class.
  15757. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15758. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15759. Decoupled TorrentDownloadEngine from this.
  15760. * src/SegmentMan.h (init): New function.
  15761. * src/SegmentMan.cc (init): New function.
  15762. * src/TorrentMan.h (responseProcessor): New variable.
  15763. (trackers): New variable.
  15764. (setTrackerResponseProcessor): New function.
  15765. (getTrackerResponseProcessor): New function.
  15766. (processTrackerResponse): New function.
  15767. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15768. (processTrackerResponse): New function.
  15769. * src/main.cc (main): Use ByteArrayDiskWriter and
  15770. CompactTrackerResponseProcessor.
  15771. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15772. processTrackerResponse().
  15773. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15774. readout.
  15775. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15776. which indicates download has completed.
  15777. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15778. (closeFile): fd >= 0, not fd > 0
  15779. * src/main.cc (main): Added short cut for show-files.
  15780. Added short cut for torrent-file.
  15781. Added new command-line option listen-port.
  15782. Updated i18n messages.
  15783. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15784. To add LogFactory which creates singleton logger:
  15785. * src/LogFactory.h: New class.
  15786. * src/LogFactory.cc: New class.
  15787. * src/Command.h (logger): New variable.
  15788. (Constructor): Use LogFactory.
  15789. * src/AbstractCommand.cc: Use Command::logger
  15790. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15791. Use LogFactory.
  15792. * src/SegmentSplitter.h : Made logger protected.
  15793. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15794. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15795. * src/DownloadEngine.h : Made logger protected.
  15796. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15797. * src/PeerInteractionCommand.cc : Use Command::logger.
  15798. * src/HttpResponseCommand.cc : Use Command::logger.
  15799. * src/SegmentMan.h : Made logger private.
  15800. * src/TorrentMan.h : Made logger private.
  15801. * src/TorrentMan.cc : Use LogFactory.
  15802. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15803. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15804. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15805. Use LogFactory.
  15806. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15807. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15808. Use LogFactory.
  15809. * src/DownloadCommand.cc : Use Command::logger.
  15810. * src/PeerAbstractCommand.cc : Use Command::logger.
  15811. * src/PeerListenCommand.cc : Use Command::logger.
  15812. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15813. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15814. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15815. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15816. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15817. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15818. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15819. Use LogFactory.
  15820. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15821. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15822. Use LogFactory.
  15823. * src/main.cc (main): Use LogFactory.
  15824. * src/DiskAdaptor.h (logger): New variable.
  15825. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15826. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15827. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15828. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15829. parameter to a tracker request.
  15830. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15831. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15832. * src/main.cc (setSignalHander): New function.
  15833. (main): Added a handler for SIGTERM.
  15834. (handler): Updated message.
  15835. (torrentHandler): Updated message.
  15836. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15837. * src/TorrentConsoleDownloadEngine.cc
  15838. (onPartialDownloadingCompletes): Renamed as
  15839. onSelectiveDownloadingCompletes.
  15840. (onSelectiveDownloadingCompletes): Updated message.
  15841. To add DiskAdaptor which abstract DiskWriter family:
  15842. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15843. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15844. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15845. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15846. MultiDiskAdaptor.h.
  15847. (readFileEntry): Changed its arguments.
  15848. (setup): setupDiskWriter is merged into this function.
  15849. (setupDiskWriter): Removed.
  15850. (setFileFilter): New function.
  15851. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15852. made in readFileEntry.
  15853. (getFilePath): Removed.
  15854. (getTempFilePath): Removed.
  15855. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15856. (fixFilename): Removed.
  15857. (copySingleFile): Removed.
  15858. (splitMultiFile): Removed.
  15859. (deleteTempFile): Removed.
  15860. (setFileEntriesToDownload): Removed.
  15861. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15862. (isSelectiveDownloadingMode): New function.
  15863. (setAllMultiFileRequestedState): Removed.
  15864. (finishPartialDownloadingMode): Renamed as
  15865. finishSelectiveDownloadingMode.
  15866. (finishSelectiveDownloadingMode): New function.
  15867. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15868. (getSelectedTotalLength): New function.
  15869. (onDownloadComplete): Use diskAdaptor.
  15870. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15871. (Range): Removed.
  15872. (setMultiFileEntries): Renamed as setFileEntries.
  15873. (setFileEntries): New function.
  15874. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15875. (pieceLength): New variable.
  15876. * src/main.cc (printDownloadCompeleteMessage): New function.
  15877. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15878. (main): Renamed torrent-show-files to show-files.
  15879. Rewritten file contents listing.
  15880. * src/TorrentMan.h (FileEntry): Removed.
  15881. (multiFileTopDir): Removed.
  15882. (multiFileEntries): Removed.
  15883. (diskWriter): Removed.
  15884. (diskAdaptor): New variable.
  15885. * src/DefaultDiskWriter.h (totalLength): New variable.
  15886. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15887. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15888. diskWriter.
  15889. * src/TorrentConsoleDownloadEngine.h
  15890. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15891. (partialTotalLength): Renamed as selectedTotalLength.
  15892. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15893. openExistingFile, otherwise call initAndOpenFile.
  15894. (closeFile): fd > 0, not fd != 0.
  15895. * src/DirectDiskAdaptor.h: New class.
  15896. * src/DirectDiskAdaptor.cc: New class.
  15897. * src/MultiDiskAdaptor.h: New class.
  15898. * src/MultiDiskAdaptor.cc: New class.
  15899. * src/CopyDiskAdaptor.h: New class.
  15900. * src/CopyDiskAdaptor.cc: New class.
  15901. * src/DiskAdaptor.h: New class.
  15902. * src/DiskAdaptor.cc: New class.
  15903. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15904. (PREF_SHOW_FILES): New definition.
  15905. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15906. To add the ability to download multi torrent into respective files
  15907. directly:
  15908. * src/DiskWriter.h (openFile): New function.
  15909. (seek): Removed.
  15910. * src/MultiDiskWriter.h: New class.
  15911. * src/MultiDiskWriter.cc: New class.
  15912. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15913. protected.
  15914. (openFile): New function.
  15915. * src/AbstractDiskWriter.cc (openFile): New function.
  15916. * src/prefs.h (V_FALSE): New definition.
  15917. (PREF_DIRECT_FILE_MAPPING): New definition.
  15918. * src/TorrentMan.h (setupDiskWriter): New function.
  15919. (setAllMultiFileRequestedState): New function.
  15920. (onDownloadComplete): New function.
  15921. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15922. (setupDiskWriter): New function.
  15923. (getFilePath): Updated.
  15924. (getTempFilePath): Updated.
  15925. (getSegmentFilePath): Updated.
  15926. (fixFilename): Updated.
  15927. (deleteTempFile): Updated.
  15928. (setAllMultiFileRequestedState): New function.
  15929. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15930. (finishPartialDownloadingMode): Reset requested flags.
  15931. (onDownloadComplete): New function.
  15932. * src/main.cc: Added --direct-file-mapping option.
  15933. Use TorrentMan::setupDiskWriter().
  15934. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15935. onDownloadComplete().
  15936. To fix ETA bug:
  15937. * src/Util.h (difftvsec): New function.
  15938. * src/Util.cc (difftvsec): New function.
  15939. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15940. type of "elapsed" instead of long long int.
  15941. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15942. The updates of statistics takes place every 1 seconds.
  15943. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15944. (calculateSpeed): Changed its argument signature.
  15945. * src/PeerMessage.cc (toString): Fixed message.
  15946. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15947. To print ETA:
  15948. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15949. completion handling when dealing with
  15950. TorrentMan::isPartialDownloadingMode() == true.
  15951. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15952. New function.
  15953. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15954. (sessionDownloadLength): New variable.
  15955. (avgSpeed): New variable.
  15956. (eta): New variable.
  15957. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15958. new variables: eta, avgSpeed, startup.
  15959. (calculateSpeed): Calculate average speed and ETA.
  15960. (printStatistics): Added ETA.
  15961. * src/Util.h (secfmt): New function.
  15962. * src/Util.cc (secfmt): New function.
  15963. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15964. To detect "keep alive" flooding:
  15965. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15966. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15967. variable: keepAliveCount.
  15968. (detectMessageFlooding): Added "keep alive" flooding detection.
  15969. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15970. received.
  15971. To add the ability to download only specified files in multi-file
  15972. torrent:
  15973. * src/BitfieldMan.h (filterBitfield): New variable.
  15974. (filterEnabled): New variable.
  15975. (setFilterBit): New function.
  15976. (enableFilter): New function.
  15977. (disableFilter): New function.
  15978. (isFilterEnabled): New function.
  15979. (getFilteredTotalLength): New function.
  15980. (getCompletedLength): New function.
  15981. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15982. filterBitfield, filterEnabled.
  15983. (CopyConstructor): Added filterBitfield and filterEnabled.
  15984. (operator==): Added filterBitfield and filterEnabled.
  15985. (Destructor): Added filterBitfield.
  15986. (getMissingIndex): Use filterBitfield.
  15987. (getMissingUnusedIndex): Use filterBitfield.
  15988. (getFirstMissingUnusedIndex): Use filterBitfield.
  15989. (getFirstMissingUnusedIndex): Use filterBitfield.
  15990. (getAllMissingIndexes): Use filterBitfield.
  15991. (countMissingBlock): Use filterBitfield.
  15992. (countBlock): Use filterBitfield.
  15993. (setBitInternal): Added new argument on.
  15994. (setUseBit): Use setBitInternal.
  15995. (unsetUseBit): Use setBitInternal.
  15996. (setBit): Use setBitInternal.
  15997. (unsetBit): Use setBitInternal.
  15998. (isAllBitSet): Use filterBitfield.
  15999. (setFilterBit): New function.
  16000. (addFilter): New function.
  16001. (enableFilter): New function.
  16002. (disableFilter): New function.
  16003. (clearFilter): New function.
  16004. (isFilterEnabled): New function.
  16005. (getFilteredTotalLength): New function.
  16006. (getCompletedLength): New function.
  16007. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16008. Initalized newly added variables.
  16009. [FileEntry](offset): New variable.
  16010. [FileEntry](extracted): New variable.
  16011. [FileEntry](requested): New variable.
  16012. (readFileEntry): New function.
  16013. (option): New variable.
  16014. (splitMultiFile): Removed const qualifier.
  16015. (fixFilename): Removed const qualifier.
  16016. (readFileEntryFromMetaInfoFile): New function.
  16017. (finishPartialDownloadingMode): New function.
  16018. (isPartialDownloadingMode): New function.
  16019. (setFileEntriesToDownload): New function.
  16020. (getCompletedLength): New function.
  16021. (getPartialTotalLength): New function.
  16022. * src/TorrentMan.cc (readFileEntry): New function.
  16023. (setup): Use readFileEntry. If no-preallocation option is specified,
  16024. use DefaultDiskWriter.
  16025. (readFileEntryFromMetaInfoFile): New function.
  16026. (fixFilename): Removed const qualifier.
  16027. (splitMultiFile): Removed const qualifier.
  16028. (setFileEntriesToDownload): New function.
  16029. (isPartialDownloadingMode): New function.
  16030. (finishPartialDownloadingMode): New function.
  16031. (getCompletedLength): New function.
  16032. (getPartialTotalLength): New function.
  16033. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16034. New variable.
  16035. (partialTotalLength): New variable.
  16036. (downloadLength): New variable.
  16037. (totalLength): New variable.
  16038. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16039. Added log.
  16040. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16041. partialTotalLength, downloadLength, totalLength.
  16042. (calculate): Calculate downloadLength and totalLength.
  16043. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16044. * src/main.cc (addCommand): Changed argument signature.
  16045. (main): Added new variable: args. Added new option "torrent-show-files"
  16046. "no-preallocation". Usage is not updated yet.
  16047. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16048. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16049. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16050. Attempt to add the ability to listing file entries in a .torrent file.
  16051. This feature is not yet complete.
  16052. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16053. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16054. (getName): New function.
  16055. * src/TorrentMan.h (getMultiFileEntries): New function.
  16056. (getName): New function.
  16057. * src/main.cc (main): Use above 2 funtion.
  16058. * Release 0.3.2
  16059. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16060. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16061. (detectMessageFlooding): Updated threshold value.
  16062. (checkLongTimePeerChoking): Updated timeout value.
  16063. (getNewPieceAndSendInterest): Added debug log.
  16064. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16065. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16066. (getPeer): Updated.
  16067. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16068. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16069. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16070. is localhost.
  16071. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16072. * src/PendingMessage.cc (processMessage): Not to send piece message
  16073. if peer is not interested in the pieces localhost has.
  16074. * src/Peer.cc (shouldChoke): Updated.
  16075. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16076. * src/Util.cc (isPowerOf): New function.
  16077. * src/Util.h (isPowerOf): New function.
  16078. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16079. whether or not it is power of 2.
  16080. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16081. Added new class SendMessageQueue that includes PendingMessages and
  16082. RequestSlotMan.
  16083. * src/SendMessageQueue.h: New class.
  16084. * src/SendMessageQueue.cc: New class.
  16085. * src/PendingMessage.h: Added new member variable blockIndex and its
  16086. accessors.
  16087. (createRequestMessage): Updated.
  16088. * src/PendingMessage.cc (createRequestMessage): Updated.
  16089. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16090. SendMessageQueue.
  16091. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16092. (receiveMessage): Updated with SendMessageQueue.
  16093. (deletePendingPieceMessage): Removed.
  16094. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16095. (sendInterest): Updated with SendMessageQueue.
  16096. (createRequestPendingMessage): Updated with SendMessageQueue.
  16097. (sendMessages): Updated with SendMessageQueue.
  16098. (onAbort): Updated with SendMessageQueue.
  16099. (keepAlive): Updated with SendMessageQueue.
  16100. (beforeSocketCheck): Updated SendMessageQueue.
  16101. * src/PeerInteractionCommand (sendMessages): Shuffle
  16102. missingBLockIndexes before using it.
  16103. Added its own timeout for peer connection.
  16104. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16105. setter.
  16106. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16107. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16108. Added setTimeout() call.
  16109. (executeInternal): Added setTimeout() call.
  16110. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16111. Added timeout.
  16112. (isTimeoutDetected): Updated.
  16113. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16114. option.
  16115. Added *simple* message flooding checker.
  16116. * src/PeerInteractionCommand.cc (executeInternal):
  16117. Added detectMessageFlooding() call.
  16118. (detectMessageFlooding): New function.
  16119. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16120. (beforeSocketCheck): Added detectMessageFlooding() call.
  16121. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16122. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16123. Removed deletePendingPieceMessage(), getRequestSlot(),
  16124. deleteRequestSlot(), deleteAllRequestSlot().
  16125. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16126. Added checkLongTimePeerChoking() call.
  16127. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16128. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16129. if duplicate == false.
  16130. The parameter "uploaded" and "downloaded" in the tracker request are
  16131. the size since the client sent the "started" event to the tracker.
  16132. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16133. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16134. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16135. getSessionDownloadedSize(), getSessionUploadedSize().
  16136. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16137. getSessionUploadedSize() instead of getDownloadedSize(),
  16138. getUploadedSize().
  16139. * src/PendingMessage.cc (processMessage): Do not send request message
  16140. if the peer is choking the client.
  16141. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16142. less than interval.
  16143. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16144. * configure.in: Added gnutls support. Added several CPP macros.
  16145. * m4/openssl.m4: Added.
  16146. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16147. readData(), peekData(). Added gnutls support.
  16148. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16149. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16150. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16151. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16152. Instead, added a check for whether setup method has executed
  16153. successfully.
  16154. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16155. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16156. * src/Makefile.am: Updated.
  16157. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16158. using whether OpenSSL or gcrypt, depending on the result of configure
  16159. script.
  16160. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16161. messageDigest.h.
  16162. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16163. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16164. Fixed memory leak.
  16165. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16166. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16167. Removed instantiation of TrackerInitCommand. Instead,
  16168. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16169. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16170. ENABLE_SSL.
  16171. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16172. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16173. If a piece is already acquired by another command, delete the request
  16174. slots for the piece.
  16175. * src/TrackerUpdateCommand.cc (execute):
  16176. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16177. Added a check whether peer list is null.
  16178. Fixed the bug that causes sending completed event to the tracker
  16179. several times.
  16180. * src/TrackerInitCommand.cc (execute):
  16181. Fixed the bug that causes sending completed event to the tracker
  16182. several times.
  16183. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16184. by using messageDigest.h.
  16185. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16186. * PeerConnection.cc: Replaced log message "keep-alive" with
  16187. "keep alive".
  16188. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16189. localhost long time.
  16190. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16191. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16192. at most 100 failure entry from the list. If with duplicate = false,
  16193. MAX_PEER_LIST is not checked.
  16194. * PeerListenCommand.cc: Fixed the argument order of log message.
  16195. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16196. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16197. Added warn().
  16198. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16199. Implemented warn().
  16200. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16201. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16202. * Request.h: Added AFTER_COMPLETED event.
  16203. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16204. instead of downloaded size and progress(%) after download completes.
  16205. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16206. message to the peer if it is interested in what localhost has
  16207. downloaded.
  16208. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16209. destination instead of just renaming it.
  16210. * TorrentMan.cc: Added deleteTempFile().
  16211. * PeerAbstractCommand.cc: do not stop execution after download
  16212. completes. This makes localhost a seeder.
  16213. * Util.{h,cc}: Added fileCopy().
  16214. * PeerListenCommand.cc: do not stop execution after download completes.
  16215. This makes localhost a seeder.
  16216. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16217. Added TorrentMan::deleteTempFile() to torrentHandler.
  16218. Initialized the variable dir as ".".
  16219. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16220. Deleted renameSingleFile().
  16221. Added copySingleFile(), deleteTempFile().
  16222. * DownloadEngine.h: Added virtual function afterEachIteration().
  16223. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16224. in onEndOfRun() to afterEachIteration().
  16225. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16226. true.
  16227. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16228. In rangedFileCopy(), added try-catch block to properly close file
  16229. descriptors.
  16230. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16231. Added afterEachIteration(), isFilenameFixed().
  16232. * Peer.cc: Changed choking strategy.
  16233. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16234. * TrackerInitCommand.cc: Send completed event only once.
  16235. * DownloadEngine.cc: Added a call to afterEachIteration().
  16236. * TrackerUpdateCommand.cc: Do not stop execution after download
  16237. completes.
  16238. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16239. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16240. received from a tracker.
  16241. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16242. Decreased the number of failure peers to delete to 0(just comment out
  16243. the line).
  16244. * Release 0.3.1
  16245. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16246. * PeerInteractionCommand.cc: added a call to
  16247. TorrentMan::unadvertisePiece in Destructor.
  16248. * PeerInteractionCommand.cc: make have message sent immediately
  16249. if the size of pending message queue is zero.
  16250. * TorrentMan.cc: set the maximum size of peer list to 250.
  16251. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16252. to deque.
  16253. * Util.cc: fixed rangedFileCopy.
  16254. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16255. to Constructor. Also, moved digest cleanup to Destructor.
  16256. * MetaFileUtil.cc: fixed memory leak
  16257. * replaced std::vector with std::deque.
  16258. * AbstractCommand.cc: casted timeout value to long long int.
  16259. * ChunkedEncoding.cc: fixed memory leak.
  16260. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16261. * SleepCommand.cc: casted timeout value to long long int.
  16262. * Data.cc: fixed memory leak.
  16263. * Data.cc: fixed toLLInt().
  16264. * BitfieldMan.cc: fixed memory leak.
  16265. * TorrentMan.cc: initialized storeDir to ".".
  16266. * TorrentMan.cc: fixed memory leak.
  16267. * TorrentMan.cc: corrected file paths of splitted files.
  16268. * PeerAbstractCommand.cc: casted timeout to long long int.
  16269. * main.cc: added delete(req) and delete(te->diskWriter).
  16270. * RequestSlot.cc: casted timeout value to long long int.
  16271. * Request.cc: fixed memory leak.
  16272. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16273. have the piece.
  16274. * Peer.{h,cc}: added hasPiece(int index).
  16275. * main.cc: corrected addCommand.
  16276. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16277. * BitTorrent protocol support added.
  16278. * Release 0.3.0
  16279. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16280. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16281. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16282. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16283. decoding did not work properly.
  16284. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16285. * DownloadEngine.h: included sys/time.h
  16286. * DownloadEngine.cc: remove sys/time.h
  16287. * Makefile.am (SUBDIRS): Add intl.
  16288. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16289. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16290. * main.cc: correct help message for --http-auth-scheme.
  16291. * main.cc: changed e-mail address for bug reports.
  16292. * ja.po: added japanese translation.
  16293. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16294. * SimpleLogger.cc: flush log file instead of stdout.
  16295. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16296. * main.cc: Fixed command-line option: max-tries
  16297. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16298. does not equal to seg.sp.
  16299. * DownloadCommand.cc: If EOF is got from the server and the total size
  16300. of file is not zero, then throw DlRetryEx.
  16301. * main.cc: Set the minium value of min-segment-size to 1024.
  16302. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16303. fails because of a regression since 0.2.0 release.
  16304. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16305. * HttpConnection.cc:
  16306. * common.h: defined the user agent name as macro
  16307. * DownloadEngine.{h, cc}:
  16308. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16309. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16310. * main.cc: Download complete/abort message is now generated by main.
  16311. * Makefile.am (SUBDIRS): Add m4.
  16312. (ACLOCAL_AMFLAGS): New variable.
  16313. (EXTRA_DIST): New variable.
  16314. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16315. * gettext: added gettext functionality
  16316. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16317. * AbstractCommand.cc:
  16318. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16319. unregister its cuid from SegmentMan.
  16320. * DownloadEngine.cc: .aria2 file was written when a downloading
  16321. failed with errors.
  16322. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16323. Added "User-Agent" header to CONNECT proxy request.
  16324. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16325. properly.
  16326. * Logger.h:
  16327. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16328. * ChunkedEncoding.cc: Added #include directive for strings.h
  16329. * Release 0.2.1
  16330. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16331. * Util.{h,cc}: added startsWith().
  16332. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16333. Util::endsWith().
  16334. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16335. * common.h: added #include directive of limit.h.
  16336. * DownloadEngine.cc: added #include directive of sys/time.h and
  16337. algorithm.
  16338. * Exception.h: added #include directive of stdio.h.
  16339. * AbstractCommand.h: added #include directive of sys/time.h.
  16340. * DownloadCommand.h: added #include directive of sys/time.h.
  16341. * *.h: added #include directive of common.h to all base classes.
  16342. subclasses' one was removed.
  16343. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16344. does not define these macros.
  16345. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16346. * Release 0.2.0
  16347. * main.cc:
  16348. * HttpInitiateConnectionCommand.{h,cc}:
  16349. * prefs.h:
  16350. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16351. We can now use GET command in http proxy.
  16352. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16353. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16354. that splits slowest segment of SegmentMan::commands vector.
  16355. This is the default split algorithm of aria2.
  16356. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16357. that splits first segment of SegmentMan::commands vector.
  16358. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16359. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16360. * Segment.h:
  16361. * SegmentMan.cc: Added speed field to Segment.h
  16362. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16363. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16364. * message.h: Change file size related %d to %lld.
  16365. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16366. * FtpInitiateConnectionCommand.{h,cc}:
  16367. * FtpNegotiationCommand.{h,cc}:
  16368. * FtpDownloadCommand.{h,cc}:
  16369. * FtpConnection.{h,cc}: Added FTP support
  16370. * SimpleLogger.cc: Log message now includes time information.
  16371. * main.cc: The value of --http-auth-scheme option is chagned from
  16372. 'BASIC' to 'basic'
  16373. * main.cc: Added --timeout command-line option.
  16374. * main.cc: Added --min-segment-size command-line option.
  16375. * main.cc: Added --max-retries command-line option.
  16376. * prefs.h: option string constants are now defined in prefs.h
  16377. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16378. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16379. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16380. with version 0.1.0's one.
  16381. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16382. * configure.in: Added --enable-ssl option to configure script.
  16383. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16384. cannot permit absoluteURI as Request-URI.
  16385. * HttpConnection.cc: Added Referer support.
  16386. * main.cc: Added referer command-line option.
  16387. * main.cc: Added rety-wait command-line option.
  16388. * Exception.h: Fixed formating bug in Exception::setMsg()
  16389. * SocketCore.{h,cc}:
  16390. * Socket.{h, cc}:
  16391. * Request.cc:
  16392. * InitiateConnectionCommandFactory.cc:
  16393. * HttpRequestCommand.cc: Added HTTPS support.
  16394. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16395. for SocketCore.
  16396. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16397. size is wrong
  16398. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16399. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16400. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16401. * Release 0.1.0